If We want to uninstall the apk, using adb, we need to know the package name of the application. Using package name, use below command. [ Note: we considered the package name as “com.android.helloword” , you can use your application package name ] $ adb shell pm uninstall com.android.helloworld OR $ adb uninstall com.android.helloworld Now, lets say you have a development board / device and you want to know where the application/service is installed as part of system apps, and want to delete this permanantly, then use the below procedure, $ adb shell $ su $ mount -o rw,remount /system $ cmd packages com.android.helloworld Above command will return, where this helloworld system application in installed in /system/app OR /system/priv-app $ rm PATH_TO_APK_AS_RETURNED_ABOVE
Execution & Command Syntax
adb shell pm uninstall comadb uninstall comadb shell $ su $ mount -o rw,remount /system $ cmd packages comGotchas and Common Issues
Permission Verification - confirm execution permissions and path variables before invoking system binaries.
Version Compatibility - check software version release notes for deprecated flags or syntax changes.
Log Monitoring - inspect system logs (
journalctlor/var/log) to troubleshoot execution failures.
Following these steps ensures clean configuration, proper security boundaries, and reliable execution for adb uninstall.
Comments and corrections