git clone https://gist.github.com/d75b0fc8c74b81d9c1a5.git
cd d75b0fc8c74b81d9c1a5
./androidClear <search_text>
# type a number at the prompt to clear an app's data
# warning: this is the same as running "clear data" from the app manager
# and could have bad effects if ran on the wrong app
Note: replace the search_text
with a search term that will find the app you want to clear
For this to work you need two things:
- the current directory
.
should be on your path
- When this is missing you will see the following error message:
./androidClear:19: command not found: androidProcesses
- the
adb
command should be on your path
- When this is missing, you will see the following error message:
androidProcesses:10: command not found: adb
- if you use Android Studio on a mac and don't have adb on your path, simply add these directories
- /Applications/Android\ Studio.app/sdk/platform-tools
- /Applications/Android\ Studio.app/sdk/tools