Hi All!
I wanted to found, delete, and reinstall Webapps on my phone through ADB.
Also i need to clear browser cache.
Can you please suggest me the correct topic, where to get help on how tos?
Thanks
How to install adb
A step-by-step guide to get you started with the Android Debug Bridge tool.
www.xda-developers.com
After installation of adb
Under developer settings on phone, turn on adb debugging.
You will need the .apk file.
Download the most recent version of WhatsApp from apkpure
Or you can download WhatsApp from the playstore and install it then extract the apk file using an APK extractor. You will need to save this file to the platform-tools directory on your PC.
Backup your installed apps. Install regular and split APKs easily
play.google.com
How to extract .apk file installed on phone
Open "My APK" and search for WhatsApp under apps, then extract the apk file and save it on your phone under downloads.
Now using your computer, browse to your phone directly and find this file under downloads and copy it over to platform-tools on your computer.
Example: C:\Android\Platform-tools
rename .apk file to WhatsApp.apk
If downloading WhatsApp .apk online from Apkpure
"Messenger_2.23.18.20_Apkpure.apk" rename the file to WhatsApp.apk
I always shorten the name of said .apk files because sometimes the name can be too long for adb.
Copy the .apk file to the directory where you have platform-tools installed
Example: C:\Android\Platform-tools
Run cmd under platform tools
1. Click on the Windows Explorer's location bar.
2. Type cmd.
3. Hit Enter.
When cmd opens
Type "adb devices" You will see a prompt click allow debugging on your phone
To uninstall Whatsapp
Remember 0 will delete app data, put a 1 if you are wanting to keep previous app data
Type "adb uninstall --user 0 com.whatsapp"
This command will install WhatsApp
Type "adb install WhatsApp.apk"
You can also use adb shell
Type adb shell in the cmd window
Commands
pm uninstall -k --user 0 com.whatsapp
pm install WhatsApp.apk
How to clear app cache
Hope this helps!