Clear Application Data - Android
Clearing the application data is a common task in android development. Often you want to clear out the database or just reset the app to a “fresh install state”. It has been a pain to do until I realized I could do it this way.
Things I used to have to do:
- Open App Tray
- Open settings App
- Navigate to apps section
- Scroll to Hashable App
- Click on Hashable App
- Click on Clear Data
Things I do now:
- ./adb shell pm clear com.mypackage.name
File this one under “things I really wish I knew I could do F**kin months ago”.