ADB help...

Demented71

Senior Member
Sep 5, 2010
449
10
0
Philadelphia
OK, I know how to use ADB to reboot and get into download mode on my phone, but I have a kind of emergency. I was attempting to replace a framework-res.apk file on my phone to change the battery icon, and now I am stuck FCing all over the place. So much that I can't put my backed up framework-res.apk file back in /system/framework via Root Explorer like I normally do.

I am connected to my phone, can list directories, but cannot seem to push the framework-res.apk file.

Can someone give me a step by step on how to do this and soon please...

EDIT: I think I got it. I needed to be in Recovery Mode, and then it seemed to copy fine.

While I do have someone's attention (hopefully), how do you change directories if the directory you want to change to is two names, IE 'Battery Mod'?
 
Last edited:

bobbylx

Senior Member
Sep 12, 2009
749
123
0
Holly Springs, NC
OK, I know how to use ADB to reboot and get into download mode on my phone, but I have a kind of emergency. I was attempting to replace a framework-res.apk file on my phone to change the battery icon, and now I am stuck FCing all over the place. So much that I can't put my backed up framework-res.apk file back in /system/framework via Root Explorer like I normally do.

I am connected to my phone, can list directories, but cannot seem to push the framework-res.apk file.

Can someone give me a step by step on how to do this and soon please...
Is your backed up framework on your sdcard? You could try adb shell.

from pc,

adb shell
su
cp XXXX/framework-res.apk system/framework <<<may need to use busybox cp
exit
exit
adb reboot
 

Demented71

Senior Member
Sep 5, 2010
449
10
0
Philadelphia
Is your backed up framework on your sdcard? You could try adb shell.

from pc,

adb shell
su
cp XXXX/framework-res.apk system/framework <<<may need to use busybox cp
exit
exit
adb reboot
My backed up framework file was on my PC. The first one I was trying to get to was on my phone, in a folder called Battery Mod, which I could not get into because ADB kept saying wrong substitution or something?

Either way, I was able to get it done, so I learned something new again. :)
 

bobbylx

Senior Member
Sep 12, 2009
749
123
0
Holly Springs, NC
EDIT: I think I got it. I needed to be in Recovery Mode, and then it seemed to copy fine.

While I do have someone's attention (hopefully), how do you change directories if the directory you want to change to is two names, IE 'Battery Mod'?
That makes sense, it may not let you Push to the file system while it's in use.

As for 2 names, do you mean from a windows command box or in the android command line. Windows you just type it as is. Linux is a little more picky, I usually try to remove spaces from directory names so I don't run into any problems with that. In linux a backslash works, ie, cd /sdcard/Battery\ Mod
Not sure if it will work on our phones.