Guest Benjay09 Posted April 23, 2010 Report Posted April 23, 2010 Hi !! I've a little question for you , skilled users and developpers ^^ I've made a copy of HTC battery widget .apk (the one that comes with MCR) with root explorer to modify some pictures. (i found it in system/sd/apps , but i've noticed there's one in data/app too) So i've extracted it , modified the pngs (there's no .9.png in it) , rezipped , and resigned. The same way i do when i modify other apps skin..... btw , it doesn't want to install , of course i've uninstalled the stock one first. i get a "can not be installed on that phone".. i've tried many times to resign it (to be sure) , but with no success... I can reinstall the original from the market with no problem. I've also tried not to unzip it , and just replace the pngs , and not resign : no success , still the same error message. I believe this is some sort of copy protection , but is there any way to force it to install ? i'm rooted , on MCR 3.1, i've root explorer , i can use the SDK , adb commands etc etc.. or any way to force the picture replacement in the phone ? (like metamorph does) Thanks in advance for your tips :huh:
Guest zorm Posted April 24, 2010 Report Posted April 24, 2010 After you've modified the apk, can't you just push it back into /system/sd/app, rather than uninstall/reinstall? BTW /data/app is a symlink to /system/sd/app
Guest Benjay09 Posted April 24, 2010 Report Posted April 24, 2010 (edited) great idea ^^ i tried to push in system/sd/app : not allowed , this folder is read-only i tried to push in data/app : it bricked my phone. That's a chance i've Amon RA recovery. btw , thanks for your help. Another tip ?? someone ? Edited April 24, 2010 by Benjay09
Guest Posted April 24, 2010 Report Posted April 24, 2010 great idea ^^ i tried to push in system/sd/app : not allowed , this folder is read-only i tried to push in data/app : it bricked my phone. That's a chance i've Amon RA recovery. btw , thanks for your help. Another tip ?? someone ? Have you tried accessing the phone in recovery mode using adb and then doing the copy to system/sd/app? You may need to do a mount remount so that the area is read write. I suspect the phone would have problems if there are two apps with the same name. If it still bricks the phone in normal mode, you can rollback to the stock.
Guest zorm Posted April 24, 2010 Report Posted April 24, 2010 great idea ^^ i tried to push in system/sd/app : not allowed , this folder is read-only i tried to push in data/app : it bricked my phone. That's a chance i've Amon RA recovery. btw , thanks for your help. Another tip ?? someone ? You must push it back to the same location. Yeah, it would say the folder is read only. You need to remount /system first: adb remount adb push ....
Guest Benjay09 Posted April 25, 2010 Report Posted April 25, 2010 (edited) I'm back ^^ Well , i've tried again with the adb remount command before to push , still with no success , this is what i did : - first i pulled the original .apk with adb , replace the images (without uncompress the file) , no resign , push : widget is no more listed on my phone.... - secondly i pulled the original .apk with adb , replace the images (without uncompress) , resigned with stericson's tool , pushed : widget is no more listed on my phone ^^ - thirdly : i tried to push back the original .apk : the widget is now listed again on my phone (but it's still the original lol) i have made a reboot of my phone after each push. What did i do wrong ?? is it just somehow impossible to modify this .apk ? Thanks again for your help. PS : i've tried to boot into recovery , and push the file from here with adb. the file seems to be pushed (i get the speed transfer and the size) , but when i reboot the phone , it is still the stock one....(and with root explorer i can see that the file's size is still the stock one)...so it looks like it was not replaced with the new one. Edited April 25, 2010 by Benjay09
Guest zorm Posted April 25, 2010 Report Posted April 25, 2010 (edited) I've not tried any theming myself. You could ask about this issue on the xda-dev -> Android dev & hacking -> Android themes forum. Alternatively, in the same forum, look at Stericson's Metamorph. Aiui it's an app which makes replacing individual files within apks much more simple. When you find a solution hopefully you'll post back here? Edited April 25, 2010 by zorm
Guest Benjay09 Posted April 26, 2010 Report Posted April 26, 2010 (edited) Yeah i thought about XDA , and Metamorph (i used it to apply the black-eclair theme on my Hero) I'll have a look at the forum , and if i find a solution , sure i'll post it here :huh: Edited April 26, 2010 by Benjay09
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now