ADB is a toolkit provided by Google to access your Android device from your desktop. Before reading the steps below, we assume you know how to install a non-market application through ADB (if not, please see: How to Install Non-Market .Apk Application on an Android Phone).
The few reasons you may want to remove the apk via ADB are the following:
- Removing the application via Manage Applications appears to not work perhaps because the developer packaged the application poorly.
- Convenience: if you are already at the adb shell and have run into an installation problem because the application already exists.
- Geekness: you wanna be just too cool.
The sequence of command lines will walk you through how to remove an app using ADB. We also warn that the following steps can harm your phone. Do not remove APKs flippantly.
- Connect your phone to the computer and successfully log into the adb shell. (refer to the adb setup)
- su (Login as root)
- mount -o remount,rw -t rfs /dev/stl5 /system (the ‘rw’ allows you to modify the system directory.)
- rm -r /system/app/[AppName].apk (or apps)
- … You may repeat #4 for other apps.
- mount -o remount,ro -t rfs /dev/stl5 /system (Set system to read only, ‘ro’, to prevent malicious activity.)
If you need to look up the AppName:
- cd /system/app
- ls *.apk (This will provide you with a list of APKs)
If you need to backup your app:
- cat [AppName].apk > /sdcard/[AppName].apk (This will backup the APK specified to your SD Card. Do this if you are unsure if it is safe to remove.)








{ 9 comments… read them below or add one }
damn! ive just typed rm -r /system/app/ and accidentally hit enter!! it startet to show crash messages on the screen and now im rebooting the tablet to see whats going to be.
sh*t!!!!!!!!!
hi!
i tried to delete an app but it didn’t work: the error message is:
“can’t remove ‘/system/app/[name of app].apk’ : Read-only file system
but i did all the steps successfully… any suggestion how to make it work?
There is apps on the Market to do that for you if your phone is rooted! System Tuner is one of them. It doesn’t do backup yet, but description says it’s coming!
Excellent work, Flux. I have been searching and trying adb shell commands all morning that never were able to allow removal of the Phone.apk application from my tablet. This app was the biggest battery hog on my device (Cell standby), which does not even have a phone on it! Now thanks to your post, I was able to remove it and everything works exactly like it is supposed to. Like pharmacy tech said, it does take some time to write this in a simple, concise, yet teachable way and Flux nailed it perfectly.
Thanks again!
Dear Adrian,
Yes to remove carrier or region specific apps you need to root the device, thanks for the question!
Is it required a rooted device to remove system/internal/built-in apps ?
Thanks for very useful tip, much quicker than previous approaches I was using.
By this is no. 4 hit on google for the search “android adb modify /system”
giles…
Thanks! It takes time to write that all out in a teachable way. Try linking us through some of your favorite forums or something. Is there any other types of information you wish for us to endeavor?
Terrific work! This is the type of information that should be shared around the web. Shame on the search engines for not positioning this post higher!
{ 2 trackbacks }