I've looked around and haven't found any thread which quite addresses my unique situation. Here it is. I've rooted my Droid X several times now, each time renaming those programs I didn't want running from .apk to .bak.
The long story short, it goes like this: Root, rename to .bak, rename to .apk, update to 2.2, root, rename to .bak, bad phone, rename to .apk, unroot, new phone, root (rinse, repeat. lol).
Now, having done this several times and being a very lazy person, I was looking for a way to save time and keystrokes, so I wrote a linux script for use inside adb shell. Here's the script:
mv /system/app/WorkContacts.apk WorkContacts.bak
mv /system/app/SocialShare.apk SocialShare.bak
mv /system/app/SocialMessaging.apk SocialMessaging.bak
mv /system/app/PhotoWidget.apk PhotoWidget.bak
mv /system/app/HelpCenter.apk HelpCenter.bak
mv /system/app/Mynet.apk Mynet.bak
mv /system/app/Blockbuster.apk Blockbuster.bak
mv /system/app/CityID.apk CityID.bak
mv /system/app/CarDock.apk CarDock.bak
mv /system/app/StatusWidget.apk StatusWidget.bak
mv /system/app/AdService.apk AdService.bak
mv /system/app/DLNA.apk DLNA.bak
mv /system/app/DlnaSystemService.apk DlnaSystemService.bak
mv /system/app/amazonmp3_1.8.11_signed_zipaligned.apk amazonmp3_1.8.11_signed_zipaligned.bak
mv /system/app/com.vznavigator.DROIDX.apk com.vznavigator.DROIDX.bak
mv /system/app/redding-7648-signed-zipped.apk redding-7648-signed-zipped.bak
mv /system/app/QuickOffice.apk QuickOffice.bak
echo "Rename Complete!"
I named this file droidxnamebak.sh and pushed it to the sd card using
: adb push droidxnamebak.sh /sdcard/droidxnamebak.sh
I entered shell and su, moved droidxnamebak.sh to /system/app:
: adb shell
$ su
# mount -o rw,remount -t ext3 /dev/block/mmcblk1p21 /system
# cd sdcard
# cp /sdcard/droidxnamebak.sh /system/app/droidxnamebak.sh
I attempted to cd to system/app, but it wouldn't let me without exit:
# exit
# cd system/app
Set permissions for file:
# chmod 0755 /system/app/droidxnamebak.sh
Ran the file:
# ./droidxnamebak.sh
Now when it ran, it gave me errors, which unfortunately I didn't have the good sense to save. Something to the effect of:
failed on mv [apk here] - no such file or directory
It gave me this error about 15 times, then told me "Rename Complete!", but continued to display 2 errors after that. Fully expecting this script to rename all 17 files, I ran ls *.bak, but it returned "No such file or directory." hmmm... so I ran ls and sure enough, all 17 had been renamed to *.bak.
Only problem is, while they've been renamed and they no longer run on the phone, adb shell now cannot do anything with them. It can't find them. All 17 of them appear under the system/app directory when I run "ls", but return "No such file or directory" when I run "ls *.bak" or when I try to rename them to ".apk", such as:
# mv /system/app/DLNA.bak DLNA.apk
mv /system/app/DLNA.bak DLNA.apk
failed on '/system/app/DLNA.bak' - No such file or directory
So, I hope that I have fully explained the problem, and hopefully someone can help me figure out what I screwed up.
Thanks!
The long story short, it goes like this: Root, rename to .bak, rename to .apk, update to 2.2, root, rename to .bak, bad phone, rename to .apk, unroot, new phone, root (rinse, repeat. lol).
Now, having done this several times and being a very lazy person, I was looking for a way to save time and keystrokes, so I wrote a linux script for use inside adb shell. Here's the script:
mv /system/app/WorkContacts.apk WorkContacts.bak
mv /system/app/SocialShare.apk SocialShare.bak
mv /system/app/SocialMessaging.apk SocialMessaging.bak
mv /system/app/PhotoWidget.apk PhotoWidget.bak
mv /system/app/HelpCenter.apk HelpCenter.bak
mv /system/app/Mynet.apk Mynet.bak
mv /system/app/Blockbuster.apk Blockbuster.bak
mv /system/app/CityID.apk CityID.bak
mv /system/app/CarDock.apk CarDock.bak
mv /system/app/StatusWidget.apk StatusWidget.bak
mv /system/app/AdService.apk AdService.bak
mv /system/app/DLNA.apk DLNA.bak
mv /system/app/DlnaSystemService.apk DlnaSystemService.bak
mv /system/app/amazonmp3_1.8.11_signed_zipaligned.apk amazonmp3_1.8.11_signed_zipaligned.bak
mv /system/app/com.vznavigator.DROIDX.apk com.vznavigator.DROIDX.bak
mv /system/app/redding-7648-signed-zipped.apk redding-7648-signed-zipped.bak
mv /system/app/QuickOffice.apk QuickOffice.bak
echo "Rename Complete!"
I named this file droidxnamebak.sh and pushed it to the sd card using
: adb push droidxnamebak.sh /sdcard/droidxnamebak.sh
I entered shell and su, moved droidxnamebak.sh to /system/app:
: adb shell
$ su
# mount -o rw,remount -t ext3 /dev/block/mmcblk1p21 /system
# cd sdcard
# cp /sdcard/droidxnamebak.sh /system/app/droidxnamebak.sh
I attempted to cd to system/app, but it wouldn't let me without exit:
# exit
# cd system/app
Set permissions for file:
# chmod 0755 /system/app/droidxnamebak.sh
Ran the file:
# ./droidxnamebak.sh
Now when it ran, it gave me errors, which unfortunately I didn't have the good sense to save. Something to the effect of:
failed on mv [apk here] - no such file or directory
It gave me this error about 15 times, then told me "Rename Complete!", but continued to display 2 errors after that. Fully expecting this script to rename all 17 files, I ran ls *.bak, but it returned "No such file or directory." hmmm... so I ran ls and sure enough, all 17 had been renamed to *.bak.
Only problem is, while they've been renamed and they no longer run on the phone, adb shell now cannot do anything with them. It can't find them. All 17 of them appear under the system/app directory when I run "ls", but return "No such file or directory" when I run "ls *.bak" or when I try to rename them to ".apk", such as:
# mv /system/app/DLNA.bak DLNA.apk
mv /system/app/DLNA.bak DLNA.apk
failed on '/system/app/DLNA.bak' - No such file or directory
So, I hope that I have fully explained the problem, and hopefully someone can help me figure out what I screwed up.
Thanks!