I'm working on an MIUI Rom and I want to edit the framework-res.apk; I decompiled the apk using apktool and then I rebuilt after changing the default lockscreen and default wallpaper; I then signed the apk using the autosigner from Stericson and it signed successfully; after repacking the rom and installing I successfully installed my signed rom, but afterwards my bootloader just went into a loop; my only thought of what could be wrong is when I changed the framework-res.apk; does anyone know if you have to do anything more then rebuild and sign? Sorry for the nub question, but I've been trying to get it to work to no avail and I don't really know what else to do at this point, but ask someone else for their input. Thanks.
Related
Ok i've Rooted the Desire,
and I tried Metamorph, however it needed Busybox, but that won't install, does anyone know a fix for this?
I'm also wanting to be able to get into the file system on the device, how do i do this?
I'm trying to get skinning the UI for my own amusement, but also to release to the community, so where would i find the stock theme on the file system, or where can i download it?
and how do i impliment it?
TIA
Luke.
Metamorph won't work on Desire because there is no write access to /system.
thanks for the heads up the personal who suggested this, never pointed that out.
so is the Desire Semi rooted then?
I think not fully rooted fits better. In custom recovery there is a access to system but not while the desire is running the os itself.
To theme you have to edit the apks in framework-res and so on. Here is a short tutorial for editing the apks without metamorph.
forum.xda-developers.com/showpost.php?p=3175518&postcount=2
sry for bad english and i can't post links^^
Benee
I was just wondering if there are a clever trick to reflash a theme already installed on the device.
In this particular situation I have changed some of the icons in the framwork-res.apk. I then copied them to the theme, wich is BrightSilence, and tried to flash it all over again. Result - bootloop.
So, is there any step you could do to circumvent this, or is the only option to reflash the ROM. and then the theme?
Thanks
Yes, just reflash a unmodified version of, in your case, BrightSilence or am i missing something?
Or revert to the nandroid you made before messing with the system partition.
The thing is that BrightSilence is already installed on the device, but now I want another set of icons. Flashing the theme again with the modified framework-res just result in a bootloop.
It seems there really is no shortcut, than to reflash ROM, then new theme.
Thanks anyway.
hallydamaster said:
The thing is that BrightSilence is already installed on the device, but now I want another set of icons. Flashing the theme again with the modified framework-res just result in a bootloop.
It seems there really is no shortcut, than to reflash ROM, then new theme.
Thanks anyway.
Click to expand...
Click to collapse
U are wrong.
Installing theme - means overwriting some files into new ones, not adding or removing some.
So if u changed framework file, flashed and got bootloop - u can flash theme again (overwrite bad file) and boot correctly.
Sent from my pocket using pen
mendozinas said:
U are wrong.
Installing theme - means overwriting some files into new ones, not adding or removing some.
So if u changed framework file, flashed and got bootloop - u can flash theme again (overwrite bad file) and boot correctly.
Sent from my pocket using pen
Click to expand...
Click to collapse
I do get that really. But what now if I want to apply a new framework-res? I know I can always nandroid my self out of a bootloop.
hallydamaster said:
I do get that really. But what now if I want to apply a new framework-res? I know I can always nandroid my self out of a bootloop.
Click to expand...
Click to collapse
U have to mod framework correctly and will not end in booloops.
Use Apk Manager to decompile, change, compile and sign framework-res.apk.
Do not push file via adb - use flashable zip.
Sent from my pocket using pen
mendozinas said:
U have to mod framework correctly and will not end in booloops.
Use Apk Manager to decompile, change, compile and sign framework-res.apk.
Do not push file via adb - use flashable zip.
Sent from my pocket using pen
Click to expand...
Click to collapse
But the framework-res is from the UOT, shouldn't that be packed/signed properly?
Well, I am going to try anyway, thanks!
EDIT: Tried to cook a new file, with the exact same framework-res I used earlier. Used UOT to cook, and worked perfectly. Thanks to mendozinas! ;-)
I definitely wouldn't call my self a noob but also would never call myself a programmer or a pro by any means. I can change the framework-res.apk with out any problems and am getting the hang of different theming from messing around with that. I have read just about every tutorial that I can get my hands on too but haven't found anything regarding com.htc.resources.apk. The are files in that apk that I want to change but every time I even change the smallest png in there when I push with adb or droid explorer or simply copy and paste with root exp I get bootloops no matter what. I've tried signed unsigned nothing seems to work. If it matters Im running CMYLXGO's HD build on NAND. And I've been told that com.htc.resources.apk is a "sensitive" file but based on others themes and build I imagine that there has to be a way to modify it. So please any advice or ideas are very welcome...thanks so much in advance.
+1
I can replace com.htc.resources, BUT millions of FCs
Even if I replace it with the original file!!
Can somebody help us?
I think you need to set permissions
Hi everybody,
I use the BCM CM9 2.2U2, and I want to mod the Mms.apk to override the SMS to MMS conversion after 4 texts.
Here is what I did:
- I used Apk-Multi Tool to decompile the Mms.apk.
- I modify /res/xml/mms_config.xml (to be precise, I replace the line "<int name="smsToMmsTextThreshold">4</int>" by "<int name="smsToMmsTextThreshold">100</int>")
- I recompile the apk, answering "y" to both questions and being careful with what Apk Multi Tool told me (basically, I deleted the files I needed to delete in the "keep" folder, ie. mms_config.xml and something.armsc-or-something-like that)
- I push the modded apk to my phone
But unfortunately, after I did that, I could not see the Mms.apk in the app drawer. I checked the permissions and the owner and they were correct (or at least, the same as the working Mms.apk).
I attached the original Mms.apk I'm trying to mod, and the actual modded Mms.apk (which does not work).?
Does somebody have an idea of what's gone wrong?
Thank you in advance!
FrancisFuku said:
Hi everybody,
I use the BCM CM9 2.2U2, and I want to mod the Mms.apk to override the SMS to MMS conversion after 4 texts.
Here is what I did:
- I used Apk-Multi Tool to decompile the Mms.apk.
- I modify /res/xml/mms_config.xml (to be precise, I replace the line "<int name="smsToMmsTextThreshold">4</int>" by "<int name="smsToMmsTextThreshold">100</int>")
- I recompile the apk, answering "y" to both questions and being careful with what Apk Multi Tool told me (basically, I deleted the files I needed to delete in the "keep" folder, ie. mms_config.xml and something.armsc-or-something-like that)
- I push the modded apk to my phone
But unfortunately, after I did that, I could not see the Mms.apk in the app drawer. I checked the permissions and the owner and they were correct (or at least, the same as the working Mms.apk).
I attached the original Mms.apk I'm trying to mod, and the actual modded Mms.apk (which does not work).?
Does somebody have an idea of what's gone wrong?
Thank you in advance!
Click to expand...
Click to collapse
I have the exact same problem! Did you find any solution?
I gave up but I've found a Mms.apk (from the latest CM9 source) which does include a option to not convert SMS into MMS (you have to change it in the settings of the app). But it is for the HTC One X, so I do not know if it works for other devices. I attach it so you can try.
Thank you
Sent from my HTC Desire CDMA using Tapatalk 2
The problem is that all apps must be signed to run on Android. Once you recompile your apk with apktool, you have to sign it with a release key (and optionally but recommended - run zipalign), before pushing it back to your phone.
The android developers guide has an excellent article on creating a set of release keys and using them to sign your apk (the apk just has to be signed with any key, it doesn't have to match the same key the original ROM authors used).
Hello! I'm trying to make something relatively simple, but i'm doing something wrong. What i want to achieve is to change the stock battery icon with a circle with % inside. I managed to decompile LGSystemUI.apk using the latest apktool. I changed the pngs and edited the battery stats and chatging animation xmls. I'm not touching the .odex file since i don't have anything to change there. I recompiled the apk again using the apktool and zipaligned it. And here comes the issue - once i push it to the phone and reboot i get only desktop without navbar, status bar and lock screen. I don't get a FC but the Systemui is not loading properly. I also tryed to sign the zipaligned apk which resulted in constant FC from LGSystemUI, something which i don't get is the apk is not signed. I lost a significant amount of time recompiling and trying different combinations but the result is always the same - either fc or no fc but ststemui is not loaded. Can you do please help me with some ideas what i might be doing wrong?
Sent from my LG-D802 using XDA Free mobile app
I use Advanced APK Tool , and have changed apktool.jar to 2.0.0 RC4.
DonĀ“t sign the file, that is wrong.
Have u tried only replace the new (recompiled) files in the original LGSystemUI.apk (the xml & png , ressources if u need)
i tried several tools and many combinations today - they're all either FC-ing or just giving the desktop without status bar, navbar and lock screen. i tried both odexed and deodexed version. i tried taking files from the original lgsystemui.apk, i also tried injecting already compiled xml and png-s to the original - nothing. i have the feeling i'm missing something. i'm installing both the framework-res.apk and the lge-res.apk to the tools i tried to work with. everything decompiles and recompiles without a single error. no matter what i try i get the same 2 types of errors, which i mentioned above. i also tried not signing, signing with the original signature and signing with a new signature. everything should be relatively simple, but the output never works. do i need to decompile/recompile (or deodex) the framework too?
show me your changed files, i will try for myself
I tried to do some changes too, I tried deodexing systemUI and odex and same result as you
Hi i see you have manged to make it work in your other thread. May i know which files and code i need to edit in order to make this work. I know how to compile and decompile ,sign, zipalign......etc. i have checked other tutorials to do this in the net but to no avail. Ty in advance.
Hello, yes I managed to make it work using the latest ApkTool 2.0.0 rc4. Also it's a good idea to use something like TickleMyAndroid tool or similar automated de/recompile script. You need to sign with the original signature in order to make it work. Also please keep an eye on the exact version of the ApkTool included in the tool, only rc4 is working fine with our stock Rom.
There's no need to deodex if you only want to make some cosmetic changes.
Sent from my LG-D802 using XDA Free mobile app
d_ave said:
Hello, yes I managed to make it work using the latest ApkTool 2.0.0 rc4. Also it's a good idea to use something like TickleMyAndroid tool or similar automated de/recompile script. You need to sign with the original signature in order to make it work. Also please keep an eye on the exact version of the ApkTool included in the tool, only rc4 is working fine with our stock Rom.
There's no need to deodex if you only want to make some cosmetic changes.
Sent from my LG-D802 using XDA Free mobile app
Click to expand...
Click to collapse
Cool ty, but which exact files and code i need to edit?. i know i am asking alot here but if you can answer me or refer me to a tutorial that helped you that will be great. i have already tried TickleMyAndroid to change the battery icon but it doesn't seem to work. So i prefer doing it the old way more easier to know what is going on. Thx
d_ave said:
Hello, yes I managed to make it work using the latest ApkTool 2.0.0 rc4. Also it's a good idea to use something like TickleMyAndroid tool or similar automated de/recompile script. You need to sign with the original signature in order to make it work. Also please keep an eye on the exact version of the ApkTool included in the tool, only rc4 is working fine with our stock Rom.
There's no need to deodex if you only want to make some cosmetic changes.
Sent from my LG-D802 using XDA Free mobile app
Click to expand...
Click to collapse
@d_ave
I wanted to only change color of the LGContacts but now on lolipop its shows FC,so i am using the latest apk tool.jar with Advanced apk tool,so how should i sign and is there need for zipaligning the apk?