[SOLVED] Edit framework-res.apk in rom.zip - Optimus One, P500, V General

OK so i modified the framework-res.apk of a rom i recompiled it without signing. The problem is that i want to replace the old framework-res.apk in the zip file before flashing the rom.
When i do this either with 7 zip or winrar i get stuck in bootloop BUT if i flash only the framework-res.apk with an update.zip after i install the rom it works perfectly .
I searched all over and from what i read this should work... do i need to sign the apk if i replace it in the zip before flashing?
And if i need to sign it how i do that, i just sign it with apkmanager?

I haven't this problem, but try to sign it. They are many tools and apps for Android (also Linux) and Windows.

fd1999 said:
I haven't this problem, but try to sign it. They are many tools and apps for Android (also Linux) and Windows.
Click to expand...
Click to collapse
So you just open the .zip file replace the apk and it works?? Can you sugest some tool for signing? cause i signed it with apk manager and it din't work i got stuck at boot animation only this time it stops completly it doesn't loop...
Also i have the same issue with Settings.apk , this one if i put it in the zip before flashing it doesn't open even if i sign it or not ... what the hell am i doing wrong???
If i flash them individualy with .zip update after i flash the rom, everything works fine . But i want to modify the rom before flashing... to have only one zip ...

gafaysto said:
OK so i modified the framework-res.apk of a rom i recompiled it without signing. The problem is that i want to replace the old framework-res.apk in the zip file before flashing the rom.
When i do this either with 7 zip or winrar i get stuck in bootloop BUT if i flash only the framework-res.apk with an update.zip after i install the rom it works perfectly .
I searched all over and from what i read this should work... do i need to sign the apk if i replace it in the zip before flashing?
And if i need to sign it how i do that, i just sign it with apkmanager?
Click to expand...
Click to collapse
what actually happens is when u decompile apk with apktool and then recompile it, signature gets mismatched so it gets stuck on bootloop. To solve this use apkmanager and decompile it as system app, perform changes and then recompile by following instructions therein

fundoozzz said:
decompile it as system app, perform changes and then recompile by following instructions therein
Click to expand...
Click to collapse
Is that the option to decompile apk <with dependencies> cause i don't find any other option to decompile , or i have to switch decompile mode ???

gafaysto said:
Is that the option to decompile apk <with dependencies> cause i don't find any other option to decompile , or i have to switch decompile mode ???
Click to expand...
Click to collapse
yup decompile with dependencies

fundoozzz said:
yup decompile with dependencies
Click to expand...
Click to collapse
Ok i got it working , the problem was that i skipped a step when building the apk , when it offered to copy any additional files in order to ensure
least number of errors it seems that is an very important step ...

gafaysto said:
Ok i got it working , the problem was that i skipped a step when building the apk , when it offered to copy any additional files in order to ensure
least number of errors it seems that is an very important step ...
Click to expand...
Click to collapse
fundoozzz said:
perform changes and then recompile by following instructions therein
Click to expand...
Click to collapse
Thats what I said

Related

[SOLVED] Modifying layout xmls in framework-res.apk, fails, have questions.

This has happened twice to me:
1) I modify a xml file in framework-res.apk (using apktool)
(I modified the two slide lock screen xmls. apktol rebuilt it without any errors)
2) push the rebuilt apk back. (didnt sign it)
3) reboot
During the reboot i get a ton of app permission errors, and then a "Failure starting core service" error, a few seconds later the phone restarts
The permission errors ("no group null"):
http://pastebin.com/p2ut8MmB
And then the actual errors:
http://pastebin.com/Hg4M9jcA
Fixed by:
1)pushing the backup framework-res.apk back.
2)fixing UID mismatches using the utility in AMON-RA's recovery
Solution: http://forum.xda-developers.com/showpost.php?p=6334647&postcount=5
Questions:
What am I doing wrong?
What triggers the permission errors?
My suggestion didn't work, see below for alternative.
I don't know much about all these signing mechanisms, but I had exactly the same problems when I was testing framework-res rebuilding capabilities of apktool. Tried to sign it using testsign, but had no luck.
I searched for help on IRC and prash told me that I must testsign update.zip file, not framework-res.apk. I did as he said and it worked for me
Brut.all said:
I don't know much about all these signing mechanisms, but I had exactly the same problems when I was testing framework-res rebuilding capabilities of apktool. Tried to sign it using testsign, but had no luck.
I searched for help on IRC and prash told me that I must testsign update.zip file, not framework-res.apk. I did as he said and it worked for me
Click to expand...
Click to collapse
Thanks for the info. Great tool by the way
Will try the update.zip method, and the method djmcnz mentioned.
Update:
Brut.all's tip worked!! thanks again man. I learnt how to create update zips now
Also tried djmcnz's test but it did not work.
update 11/19/2010:
All you need to do is copy/install the file while the OS is not running. The signing part was only needed to allow the update to be flashed
Since AmonRa 2.0 has an option to turn off signature checking all you need to do is
1) update whatever you need in framework-res.apk
2) put the new framework-res.apk in any update.zip whose script copies it to /system/framework. (get a CM nightly if you dont have one)
3) reboot to recovery
4) turn off update signature checking (options>)
5) flash the update. and reboot.
Hmm, is this nexus specific? I'm trying to update framework-res.apk
on motorole milestone, but I get only crashreport after my device boots up.
I jarsign and zipalign this apk and set mode 644 before reboot.
herrlado said:
Hmm, is this nexus specific? I'm trying to update framework-res.apk
on motorole milestone, but I get only crashreport after my device boots up.
I jarsign and zipalign this apk and set mode 644 before reboot.
Click to expand...
Click to collapse
see #3 "..I must testsign update.zip file, not framework-res.apk. I did as he said and it worked for me "
OK Thx, do not need we to zipalign framework-res.apk?
Lado
rori~ said:
see #3 "..I must testsign update.zip file, not framework-res.apk. I did as he said and it worked for me "
Click to expand...
Click to collapse

[Q] Re-compile framework-res.apk

I am trying to make some minor changes to framework-res.apk in /res/values/bools.xml
I used apktool to decompile and make my changes but I am not sure how to properly re-compile.
Just "apktool b framework-res" errors out with invalid resource names.
Finally got it to re-compile by pasting the resource.arsc. from original apk(Dunno if this is correct way)
Then, after re-compile I paste the META-INF from the original apk.
I am hesitant to push this onto my phone now because to file sizes of the modified and original .apk differ by like 2mb. And theres 100 more files in /res of the modified .apk. (Now shows file I was trying to access by decompiling before)
Can I safely push the .apk? or am I doing it completly wrong?
Thanks!
( I did search forums and web before, but did not find anyone having to copy resource.arsc before re-compiling)
trailblazerz11 said:
I am trying to make some minor changes to framework-res.apk in /res/values/bools.xml
I used apktool to decompile and make my changes but I am not sure how to properly re-compile.
Just "apktool b framework-res" errors out with invalid resource names.
Finally got it to re-compile by pasting the resource.arsc. from original apk(Dunno if this is correct way)
Then, after re-compile I paste the META-INF from the original apk.
I am hesitant to push this onto my phone now because to file sizes of the modified and original .apk differ by like 2mb. And theres 100 more files in /res of the modified .apk. (Now shows file I was trying to access by decompiling before)
Can I safely push the .apk? or am I doing it completly wrong?
Thanks!
( I did search forums and web before, but did not find anyone having to copy resource.arsc before re-compiling)
Click to expand...
Click to collapse
FOr me, APKtool works as ****...
What you can do: pull /system/framework/framework-res.apk ~/backup
and then you can push. If it doesn't work, then boot into recovery, select mount system and push back the old one.
OT: I don't get why you should use original resources.arsc...
offtopic: when I decompile framework-res using apktool, I get other file structure then normal extract. example: my framework-res doenst have a raw-folder, but apktool decompiled has...
mDroidd said:
FOr me, APKtool works as ****...
What you can do: pull /system/framework/framework-res.apk ~/backup
and then you can push. If it doesn't work, then boot into recovery, select mount system and push back the old one.
OT: I don't get why you should use original resources.arsc...
offtopic: when I decompile framework-res using apktool, I get other file structure then normal extract. example: my framework-res doenst have a raw-folder, but apktool decompiled has...
Click to expand...
Click to collapse
This is due to the raw folder being combined into the resources file. Search for apkmultitool it is a far easier tool to use and will do everything you need. That goes for both posts
Before doing that, create a flashable zip containing the framework-res.apk file which you can use in case you get a black screen or something.
So that you don't have to restore.
You do realize that resources.arsc, aka resources directory is the collection of xml and other data. You take it from another ROM, how on earth will your xml edits be preserved?
Sent from my HTC Desire using Tapatalk
I need to edit the bools.xml file in framework-res.apk and an a bit stuck on the apktool. I used the APK Multitool to decompile the framework-res.apk file. I then used notepad++ to edit the bools.xml file. I then recompiled it using the APK Multitool and pushed it to /system/framework overwriting the original (after first making a copy of the original). On reboot the phone is stuck in a boot loop.
I managed to use ADB shell to restore the original file and it now boots (I lost all the synchronise stuff but not a big deal). So I have been searching and have found various posts about the later versions of apktool not working very well.
I have a fairly clean Windows 7 x86 installation with Java 1.6 and am using this to do the work on. Can someone point me in the right direction as to how to edit/recompile the framework-res.apk file?
Andy
I actually also trying to edit bools.xml located in framework-res.apk
I'm using Apk Changer it may be easier.
after some tries (and bootloops) I've managed to do some changes in framework-res : replacing pictures -> It works
after decompiling the apk, when I edit values within bools.xml , & then choose to compile, it creates a folder called "keep" and i have to delete edited files in that folder so as to replace them by my customized files.
BUT I don't find the folder "values" that contains bools.xml . Therefore, the generated apk will not make changes done in bools.xml .
Does anyone has any idea about Editing that xml ?
More details & Tuto :
http://forum.xda-developers.com/showthread.php?t=916814
http://forum.xda-developers.com/showpost.php?p=9066440&postcount=1
http://forum.xda-developers.com/showpost.php?p=9978779&postcount=62
@ADB100
Advanced Decompiling
Sometimes, you have that pesky app that just won't decompile correctly. Usually, it's an app related to others, like a proprietary system app based off framework-res.apks.
When this happens, you need to ensure that the frameworks are there to have the app's recourse tables properly compile.
For either apktool or apk manager, find a folder on your computer called "apktool."
The should be a folder in here called "framework," and inside that, a 1.apk.
For an app that is dependent on the framework-res.apk in a specific phone/rom, take the framework-res.apk for that rom and rename it 1.apk.
Replace the default one in the folder with yours.
If there's a second one, like the twframework-res.apk for Samsung phones, rename it 2.apk and place it in the "framework" folder.
Now, decompile like normal, and everything should be good
//By theimpaler747
Click to expand...
Click to collapse
-Yasser-
-yasser- said:
I actually also trying to edit bools.xml located in framework-res.apk
I'm using Apk Changer it may be easier.
after some tries (and bootloops) I've managed to do some changes in framework-res : replacing pictures -> It works
after decompiling the apk, when I edit values within bools.xml , & then choose to compile, it creates a folder called "keep" and i have to delete edited files in that folder so as to replace them by my customized files.
BUT I don't find the folder "values" that contains bools.xml . Therefore, the generated apk will not make changes done in bools.xml .
Does anyone has any idea about Editing that xml ?
More details & Tuto :
http://forum.xda-developers.com/showthread.php?t=916814
http://forum.xda-developers.com/showpost.php?p=9066440&postcount=1
http://forum.xda-developers.com/showpost.php?p=9978779&postcount=62
@ADB100
-Yasser-
Click to expand...
Click to collapse
The values folders get compressed into the resources.arsc file so in the keep folder delete this file and your changes will stick
not sure if you got this figured out yet but if not heres how the whole process should go.
Code:
apktool if framework-res.apk
if on a sense based rom do this too
Code:
apktool if com.htc.resources.apk
change to the directory where your framework-res.apk is
Code:
apktool d -f framework-res.apk out
or something like this if apktool is not in your path
Code:
apktool d -f ~/Desktop/framework-res.apk ~/Desktop/out
easy way to build is to cd to out folder
Code:
cd ~/Desktop/out
to build apk
Code:
apktool b
then just sign apk if needed
if you are on linux you can try this:
http://forum.xda-developers.com/showthread.php?t=1446233
wes342 said:
not sure if you got this figured out yet but if not heres how the whole process should go.
Code:
apktool if framework-res.apk
if on a sense based rom do this too
Code:
apktool if com.htc.resources.apk
change to the directory where your framework-res.apk is
Code:
apktool d -f framework-res.apk out
or something like this if apktool is not in your path
Code:
apktool d -f ~/Desktop/framework-res.apk ~/Desktop/out
easy way to build is to cd to out folder
Code:
cd ~/Desktop/out
to build apk
Code:
apktool b
then just sign apk if needed
if you are on linux you can try this:
http://forum.xda-developers.com/showthread.php?t=1446233
Click to expand...
Click to collapse
Thanks for this. This is what I have done but it hasn't worked for me so far. I am not sure whether I need to sign the file or not - I suspect I do?
Apart from the boot-loop another thing that worries me is the file sizes - the original framework-res.apk is 6,135,120-bytes whilst the new one is 3,319,608-bytes.
My ROM is based on the stock rooted 3.12.405.1 by nitro. The framework-res.apk already had a modification (the default wallpaper was changed) and I changed this back by just replacing the image in the .apk from WinRar and this worked fine. I want to edit the bools.xml file and get it back into the resources.arsc file.
Andy
ADB100 said:
Thanks for this. This is what I have done but it hasn't worked for me so far. I am not sure whether I need to sign the file or not - I suspect I do?
Apart from the boot-loop another thing that worries me is the file sizes - the original framework-res.apk is 6,135,120-bytes whilst the new one is 3,319,608-bytes.
My ROM is based on the stock rooted 3.12.405.1 by nitro. The framework-res.apk already had a modification (the default wallpaper was changed) and I changed this back by just replacing the image in the .apk from WinRar and this worked fine. I want to edit the bools.xml file and get it back into the resources.arsc file.
Andy
Click to expand...
Click to collapse
No you don't have to sign the framework API. System apks are signed. What edits are you trying to do?
zelendel said:
No you don't have to sign the framework API. System apks are signed. What edits are you trying to do?
Click to expand...
Click to collapse
All I want to edit is the bools.xml file so I can enable the SIP client to work over 3G: i.e. change this line in the file and re-cook it
Code:
<bool name="config_sip_wifi_only">true</bool>
This is potentially the 1st step though. If I can sucessfully edit this then I will probably try other things.
Andy
ADB100 said:
All I want to edit is the bools.xml file so I can enable the SIP client to work over 3G: i.e. change this line in the file and re-cook it
Code:
<bool name="config_sip_wifi_only">true</bool>
This is potentially the 1st step though. If I can sucessfully edit this then I will probably try other things.
Andy
Click to expand...
Click to collapse
Ok so here is a step by step that I have used to make just this edit.
Apkmultitool is the one I use.
1. Decompile the apk
2. Change the false to true
3. Compile with option 11
4. In the keep folder delete the resource.asc file and then finish compiling.
5. Put New apk in zip removing the unsigned so it is named properly
6. Flash
zelendel said:
Ok so here is a step by step that I have used to make just this edit.
Apkmultitool is the one I use.
1. Decompile the apk
2. Change the false to true
3. Compile with option 11
4. In the keep folder delete the resource.asc file and then finish compiling.
5. Put New apk in zip removing the unsigned so it is named properly
6. Flash
Click to expand...
Click to collapse
OK - just removed and reinstalled APK Multitool, verified the path environment variable and followed these steps - Step 3 where it asks whether this is a system apk I said yes and when it asks about copying files I said yes. The resulting file is now 5,653KB compared to the original that is 5,992KB. I assume the difference is the lack of signing?
Does this sound right?
Andy
ADB100 said:
OK - just removed and reinstalled APK Multitool, verified the path environment variable and followed these steps - Step 3 where it asks whether this is a system apk I said yes and when it asks about copying files I said yes. The resulting file is now 5,653KB compared to the original that is 5,992KB. I assume the difference is the lack of signing?
Does this sound right?
Andy
Click to expand...
Click to collapse
That and the compression level that is used. It will also change if you optimize the pngs. Nothing to really worry about
I am obviously doing something fundamentally wrong
I followed the instructions to the letter, created the unsignedframework-res.apk, renamed it, pushed it to to my device (adb remount, adb push framework-res.apk system/framework/framework-res.apk) and rebooted - boot loop. Tried signing it with APK Multitool and then pushing this file. This time it booted but I had forced close on all sorts of things. Restored the original file and it is working again but all the sync stuff has screwed up meaning I need to re-flash as my ROM has stuff in /data that will get wiped if I do a factory reset.
Any other pointers or do you want to try editing the file for me and I'll see if yours works? I have attached the original file.
Andy
ADB100 said:
I am obviously doing something fundamentally wrong
I followed the instructions to the letter, created the unsignedframework-res.apk, renamed it, pushed it to to my device (adb remount, adb push framework-res.apk system/framework/framework-res.apk) and rebooted - boot loop. Tried signing it with APK Multitool and then pushing this file. This time it booted but I had forced close on all sorts of things. Restored the original file and it is working again but all the sync stuff has screwed up meaning I need to re-flash as my ROM has stuff in /data that will get wiped if I do a factory reset.
Any other pointers or do you want to try editing the file for me and I'll see if yours works? I have attached the original file.
Andy
Click to expand...
Click to collapse
I've tried to change it for you,
Code:
<bool name="config_sip_wifi_only">false</bool>
The file size is reduced to 3.23 Mb maybe it's bcz of optimizing effect..
check if it works .
-Yasser-
-yasser- said:
I've tried to change it for you,
Code:
<bool name="config_sip_wifi_only">false</bool>
The file size is reduced to 3.23 Mb maybe it's bcz of optimizing effect..
check if it works .
-Yasser-
Click to expand...
Click to collapse
Hi
Thanks for this. Just renamed this and pushed it to my DHD, rebooted and yep it works. I haven't built a ROM with it yet but this tells me something is wrong at my end....
I have a fairly vanilla Dell PC with Windows 7 Ultimate x86 OEM. I have installed the DSIXDA kitchen and have been building ROMs for my DHD for a while. I have some of the Android SDK installed but maybe not all or updated (not sure if this is a problem?) but enough for adb.exe to work? I have installed the APK Multitool (obviously) and some other utilities (Ultimate Multi Tool, HTC Sync)
Other than that its a pretty clean machine - Microsoft Security Essentials and WinRar is all that's installed. This is a spare PC that I wiped recently and installed Windows 7 on and all I am really using it for is making android ROMs.
EDIT: Just built a ROM with this framework-res.apk as swapping this after I have configured account sync seems to screw the accounts up (they sync but aren't displayed in Settings, Accounts & Sync). Anyway the ROM built OK and its all working. I'd really like to know what I am doing wrong with editing the APK?
Andy
OK.
I don't really know what's wrong with your PC, or procedure ..
I'll tell you what I am doing, that may helps.
I'm using apk changer . download it from here
I think It's nearly the same as other tools, although you can try it.
For editing framework-res.apk,
first open cmd : cd <..>\apk_changer\other (folder containing apktool.jar)
then type : java -jar apktool.jar if <PATH To>\framework-res.apk
It should tell you that "framework installed to ..."
Now put your framework-res.apk in "place-files-here-for-modding"
and run apkchanger.bat choose 1 (decompile) and 3 (for sources & resources)
Do your modifications.
then return to bat, type 3 (compile). yes for system apk & yes for replacing original files.
a 'keep' folder will be created, delete resources.asc inside it.
type enter within cmd & you're done . check the new file in "place-files-here-for-modding" (unsignedframework-res.apk)
Yasser
-yasser- said:
OK.
I don't really know what's wrong with your PC, or procedure ..
I'll tell you what I am doing, that may helps.
I'm using apk changer . download it from here
I think It's nearly the same as other tools, although you can try it.
For editing framework-res.apk,
first open cmd : cd <..>\apk_changer\other (folder containing apktool.jar)
then type : java -jar apktool.jar if <PATH To>\framework-res.apk
It should tell you that "framework installed to ..."
Now put your framework-res.apk in "place-files-here-for-modding"
and run apkchanger.bat choose 1 (decompile) and 3 (for sources & resources)
Do your modifications.
then return to bat, type 3 (compile). yes for system apk & yes for replacing original files.
a 'keep' folder will be created, delete resources.asc inside it.
type enter within cmd & you're done . check the new file in "place-files-here-for-modding" (unsignedframework-res.apk)
Yasser
Click to expand...
Click to collapse
Hi
Thanks for replying. I am going to wipe and reinstall Windows 7. I know it seems a bit drastic but its the only way I can eliminate it - plus its just a PC in the corner that has no important stuff (apart from the android stuff) on it.
Andy

Status bar background

How to change the status-bar background?
i want to change the transparent black background with the image in attachment so that it match my theme.
So which files i have to replace with this background?
Using xPeria Mini with stock ICS ROM
So no help?:crying:
piousheart said:
So no help?:crying:
Click to expand...
Click to collapse
Try to post in Themes and Apps section.
Publiuss said:
Try to post in Themes and Apps section.
Click to expand...
Click to collapse
What is this thread?
mobilephone01 said:
What is this thread?
Click to expand...
Click to collapse
Actually this thread was in general but i moved it
And guys will you all please stick to the topic..any help?
maybe this ??
http://forum.xda-developers.com/showthread.php?t=1786889
iiandskater said:
maybe this ??
http://forum.xda-developers.com/showthread.php?t=1786889
Click to expand...
Click to collapse
See here is my systemUI.apk please add the image at OP (opaque)
piousheart said:
See here is my systemUI.apk please add the image at OP (opaque)
Click to expand...
Click to collapse
Why not do it yourself? There is plenty of TUT's around that help you decompile and recompile apks.
evilbarcode said:
Why not do it yourself? There is plenty of TUT's around that help you decompile and recompile apks.
Click to expand...
Click to collapse
I tried but when i recompile it & push it in system\app with proper permission, after rebooting phone it stuck bootlogo..
The same happens when i tried to decompile DefaultThemes.apk & MusicWidget.apk they both were not installed...
then i searched & found that we have to compress the resources.arc blablablaaa... & signing with recompiling system apk..
Still after giving a lot of tries i dont understand how to use signing & compress resources.arc blablaballl idk..
If you know than may be you can teach
Rebooted my phone 100z of time to check every method i found but no success
Now i dont wana harm my phone, rebooting it again & again for the things that isn't working for me...
See this thread, i asked on xda but people aren't explaining properly, they just stop answering after certain question:crying:
piousheart said:
See this thread, i asked on xda but people aren't explaining properly, they just stop answering after certain question:crying:
Click to expand...
Click to collapse
Well, I am a bit on the busy side.... I assume you didn't try my tool then?
To do this manually, you need to first recompile your apk after you've done all your changes. You already know this bit.
Then:
Make a copy of the old apk
Use 7zip to open both the copy and the recompiled apk
Drag the 'res' folder from the recompiled apk to the copy
Close the copy
Extract 'resources.arsc' from the recompiled apk
Add 'resources.arsc' to the copy, selecting 'STORE' compression
Close the recompiled apk
Open the copy and check that resources.arsc has the same size and packed size
Reboot the phone and go into recovery
Mount the /system partition
Push the apk straight to the right folder
Unmount the /system partition
Reboot the phone
Wait for it all to load
Wait a bit longer
Wait a bit longer still
And you're done.
If you've pulled the app from the phone to a Windows PC then you don't need to worry about permissions. That's only when you copy the app to your sdcard or pull the app using Linux.
Going into recovery might not be needed. Pushing system apps while the phone is running can cause some nasty bugs so I always use recovery just to play it safe. You'll need to reboot most of the time anyway to see the changes you've made.
Instead of pushing, you could make a flashable zip. As an amazing coincidence, Tickle My Android can do that too.
Ticklefish said:
Well, I am a bit on the busy side.... I assume you didn't try my tool then?
To do this manually, you need to first recompile your apk after you've done all your changes. You already know this bit.
Then:
Make a copy of the old apk
Use 7zip to open both the copy and the recompiled apk
Drag the 'res' folder from the recompiled apk to the copy
Close the copy
Extract 'resources.arsc' from the recompiled apk
Add 'resources.arsc' to the copy, selecting 'STORE' compression
Close the recompiled apk
Open the copy and check that resources.arsc has the same size and packed size
Reboot the phone and go into recovery
Mount the /system partition
Push the apk straight to the right folder
Unmount the /system partition
Reboot the phone
Wait for it all to load
Wait a bit longer
Wait a bit longer still
And you're done.
If you've pulled the app from the phone to a Windows PC then you don't need to worry about permissions. That's only when you copy the app to your sdcard or pull the app using Linux.
Going into recovery might not be needed. Pushing system apps while the phone is running can cause some nasty bugs so I always use recovery just to play it safe. You'll need to reboot most of the time anyway to see the changes you've made.
Instead of pushing, you could make a flashable zip. As an amazing coincidence, Tickle My Android can do that too.
Click to expand...
Click to collapse
Thank you brother i will try it
and yes i have your tool too, it helped me to restore system fonts when i messed with it & had a bootloop:victory:
Great tool:good:
BTW can i use winrar instead of 7zip?
Where is 'STORE' compression can be found in winrar?
How to check that resources.arsc has the same size ( same size compared to with file? ) and packed size?
piousheart said:
Thank you brother i will try it
and yes i have your tool too, it helped me to restore system fonts when i messed with it & had a bootloop:victory:
Great tool:good:
BTW can i use winrar instead of 7zip?
Click to expand...
Click to collapse
Excellent. I'm glad it helped.
Technically, you could use any archival program but it has to be one that lets you add files to an archive without compressing them. I find 7zip to be fairly quick and user-friendly. Plus, it's free which is always a good thing.
Ticklefish said:
Excellent. I'm glad it helped.
Technically, you could use any archival program but it has to be one that lets you add files to an archive without compressing them. I find 7zip to be fairly quick and user-friendly. Plus, it's free which is always a good thing.
Click to expand...
Click to collapse
Where is 'STORE' compression can be found in winrar?
How to check that resources.arsc has the same size ( same size compared to with file? ) and packed size?
piousheart said:
Where is 'STORE' compression can be found in winrar?
How to check that resources.arsc has the same size ( same size compared to with file? ) and packed size?
Click to expand...
Click to collapse
I don't know. I don't even know if winrar can do it. That's why I suggested using 7zip instead.
To check sizes, just open the app (again, this is using 7zip) and look at the numbers to the right of resources.arsc. One is the original size of the file, the other is the size it's been compressed to. These need to be the same.
Ticklefish said:
I don't know. I don't even know if winrar can do it. That's why I suggested using 7zip instead.
To check sizes, just open the app (again, this is using 7zip) and look at the numbers to the right of resources.arsc. One is the original size of the file, the other is the size it's been compressed to. These need to be the same.
Click to expand...
Click to collapse
Leme have my hands on some app..
Edit : I tried this but when ever i put it back to sdcard and look at it the app loses its icon ( just a green android logo ) and when i put it in syste\app with proper permission & then restart it doesn't install and even i tried to install as normal apk then it says parse problem..
What i am doing wrong i followed the same procedure above & also the size of resources is same.
piousheart said:
Leme have my hands on some app..
Edit : I tried this but when ever i put it back to sdcard and look at it the app loses its icon ( just a green android logo ) and when i put it in syste\app with proper permission & then restart it doesn't install and even i tried to install as normal apk then it says parse problem..
What i am doing wrong i followed the same procedure above & also the size of resources is same.
Click to expand...
Click to collapse
I got your pm asking me to reply to this. I do most of my android modding stuff during spare moments at work because I don't have the time at home so I'd have gotten round to answering this in time.
I'm not sure what you're doing wrong here. Since you're got my tool installed, try using that first. If that works, then we know that there's something going wrong with the manual procedure and we can fix it.
If it doesn't work, then there's something wrong with the mod you're doing and we need to fix that instead.
Ticklefish said:
I got your pm asking me to reply to this. I do most of my android modding stuff during spare moments at work because I don't have the time at home so I'd have gotten round to answering this in time.
I'm not sure what you're doing wrong here. Since you're got my tool installed, try using that first. If that works, then we know that there's something going wrong with the manual procedure and we can fix it.
If it doesn't work, then there's something wrong with the mod you're doing and we need to fix that instead.
Click to expand...
Click to collapse
Okay thanks..
So i tried to mod even after knowing that it wont work as before..
So what i did in DefaultThemes.apk is edited the Androidmanifest & string files to change the name & nothing else
is i am doing it editing wrong file and yes how can i use your tool for this?
Originally Posted by Ticklefish<br />
I got your pm asking me to reply to this. I do most of my android modding stuff during spare moments at work because I don't have the time at home so I'd have gotten round to answering this in time.<br />
<br />
I'm not sure what you're doing wrong here. Since you're got my tool installed, try using that first. If that works, then we know that there's something going wrong with the manual procedure and we can fix it.<br />
If it doesn't work, then there's something wrong with the mod you're doing and we need to fix that instead.
Click to expand...
Click to collapse
<br />
<br />
Okay thanks..<br />
So i tried to mod even after knowing that it wont work as before..<br />
So what i did in DefaultThemes.apk is edited the Androidmanifest & string files to change the name & nothing else<br />
is i am doing it editing wrong file and yes how can i use your tool for this?
Click to expand...
Click to collapse
To be honest, I don't know how to change the name of an app. It's something I've never done before.
I suspect that you've gotten the mod wrong somewhere but unfortunately I can't advise on where that could be.
Sorry, mate.

[HELP] Apktool Decompile Error

Hi everyone, I have a little problem here on decompile apk (UxpNxtLockScreen.apk), I had attached those screenshot while i decompile and recompile the apk. Does anyone know what is the problem I'm having? It wasn't behave like this back to few times ago i decompile the same file.....
JRE: version 7 update 17
Apktool: Framework Toolkit by Themike10452
Delete the apktool folder itself and also in C:users/xxx/apktool <--- delete that too !
Now reboot ur PC and redo the apktool again ! It should work !
I also face that problem
Saingpor said:
Delete the apktool folder itself and also in C:users/xxx/apktool <--- delete that too !
Now reboot ur PC and redo the apktool again ! It should work !
I also face that problem
Click to expand...
Click to collapse
Problem still remain, even though i re-installed the JDK and JRE. i still get the same result..... delete the whole apktool folder and re-download from web again. anything else that i can try, i already did. Anyone else have a working version of apktool mind to upload to me?
http://blownco.com/index.php/doc_download/170-apk-manager-ics-zip
Try this one I've never had a problem. Make sure to install your framework-res in the apkmanager folder. You'll have to rename it to 1.apk

Editing Settings.apk - Signing possible or custom ROM needed?

Hi guys,
my father recently bought a so-called China phone (Doogee X5max) that comes with several malwares right out of the box.
Most of the are quite easy to remove, two of them give me the creeps.
I am no pro when it comes to Android and so I stumbled across several problems.
First of all I managed to remove the malware from Settings.apk and SystemUI.apk by decompiling, editing and odexing the files and compiling them again. Easy going...
So far so good.
Now for the hard part.
How to get those files back into the ROM? Since those files need to be resigned with the same certificate that was used signing all the other system files I am kind of stuck here. Resigning the files with Zipsigner (using all possible types, "platform", etc.) did not work which leads me to the conclusion that Doogee did not use the AOSP certificates to sign their ROM. Am I right?
The only possible solution seems to be creating a custom ROM out of the Doogee X5max stock ROM. Is this correct?
I googled a lot but have not found up-to-date or understandable manuals/instructions on how to do this.
Can someone please help me or give me a hint at least?
Thanks in andvance
deomaki
deomaki said:
Hi guys,
my father recently bought a so-called China phone (Doogee X5max) that comes with several malwares right out of the box.
Most of the are quite easy to remove, two of them give me the creeps.
I am no pro when it comes to Android and so I stumbled across several problems.
First of all I managed to remove the malware from Settings.apk and SystemUI.apk by decompiling, editing and odexing the files and compiling them again. Easy going...
So far so good.
Now for the hard part.
How to get those files back into the ROM? Since those files need to be resigned with the same certificate that was used signing all the other system files I am kind of stuck here. Resigning the files with Zipsigner (using all possible types, "platform", etc.) did not work which leads me to the conclusion that Doogee did not use the AOSP certificates to sign their ROM. Am I right?
The only possible solution seems to be creating a custom ROM out of the Doogee X5max stock ROM. Is this correct?
I googled a lot but have not found up-to-date or understandable manuals/instructions on how to do this.
Can someone please help me or give me a hint at least?
Thanks in andvance
deomaki
Click to expand...
Click to collapse
After recompiling your modded apk, unzip it and the original apk, replace everything in the original apk with what is in your modded apk except meta-inf and Android manifest. Zip back up, change it from .zip to .apk. That is what you use to replace your system apk. That only goes for system apks. You sign the others.
Tulsadiver said:
After recompiling your modded apk, unzip it and the original apk, replace everything in the original apk with what is in your modded apk except meta-inf and Android manifest. Zip back up, change it from .zip to .apk. That is what you use to replace your system apk. That only goes for system apks. You sign the others.
Click to expand...
Click to collapse
Hi,
Thanks for your reply.
Before giving this a chance, just one question: By "Android manifest" I suppose you mean manifest.ms?
Kind regards
deomaki
deomaki said:
Hi,
Thanks for your reply.
Before giving this a chance, just one question: By "Android manifest" I suppose you mean manifest.ms?
Kind regards
deomaki
Click to expand...
Click to collapse
I have never seen a manifest.ms but I suppose so if that is what is in yours.
Tulsadiver said:
I have never seen a manifest.ms but I suppose so if that is what is in yours.
Click to expand...
Click to collapse
The manifest.ms resides inside the META-INF folder...
Trying to installl the so manipulated original apk via adb results in [INSTALL_PARSE_FAILED_NO_CERTIFICATES].
Am I supposed to uninstall the original settings.apk from the device first (which I did) or just replace the original apk on the device with the newly created one and delete the odex in oat/arm?
Thanks in advance
deomaki
deomaki said:
The manifest.ms resides inside the META-INF folder...
Trying to installl the so manipulated original apk via adb results in [INSTALL_PARSE_FAILED_NO_CERTIFICATES].
Am I supposed to uninstall the original settings.apk from the device first (which I did) or just replace the original apk on the device with the newly created one and delete the odex in oat/arm?
Thanks in advance
deomaki
Click to expand...
Click to collapse
You leave the original meta-inf like I said. You use the original apk replacing everything in it with the modded stuff, res, resource.arsc if any and any classes.dexs. Don't worry about any oat folders.
Tulsadiver said:
You leave the original meta-inf like I said. You use the original apk replacing everything in it with the modded stuff, res, resource.arsc if any and any classes.dexs. Don't worry about any oat folders.
Click to expand...
Click to collapse
Hi Tulsadiver,
I followed your advice and replaced everything except the menta-inf folder from the original apk. Then I copied over my modded apk and restarted the device (just to be sure).
After rebooting the Settings icon was gone from my homescreen and the app drawer, leaving me unable to start the settings.
Tapping the seetings.apk using a file browser left me with the error, that there was an error while parsing...
Regards
deomaki
deomaki said:
Hi Tulsadiver,
I followed your advice and replaced everything except the menta-inf folder from the original apk. Then I copied over my modded apk and restarted the device (just to be sure).
After rebooting the Settings icon was gone from my homescreen and the app drawer, leaving me unable to start the settings.
Tapping the seetings.apk using a file browser left me with the error, that there was an error while parsing...
Regards
deomaki
Click to expand...
Click to collapse
I actually said, everything but the original meta-inf folder and original Android manifest....
Steps
Decompile apk.
Edit your apk
Recompile apk.
Unzip both modded and original apk
Delete everything in the original apk except meta-inf and Android manifest.
Copy everything from modded apk over to original apk except for the meta-inf and Android manifest.
Zip it back up, change it from .zip to .apk.
Copy this apk to the root of your phone.
Change permission to 0644
Copy/Move to replace the existing apk.
Reboot
Tulsadiver said:
I actually said, everything but the original meta-inf folder and original Android manifest....
Steps
Decompile apk.
Edit your apk
Recompile apk.
Unzip both modded and original apk
Delete everything in the original apk except meta-inf and Android manifest.
Copy everything from modded apk over to original apk except for the meta-inf and Android manifest.
Zip it back up, change it from .zip to .apk.
Copy this apk to the root of your phone.
Change permission to 0644
Copy/Move to replace the existing apk.
Reboot
Click to expand...
Click to collapse
Hi again,
thanks for your efforts by the way
That's exactly what I did except taking the original androidmanifest.xml since I had to change some things in it...
Will the whole process be not applicable then?
Regards
deomaki
deomaki said:
Hi again,
thanks for your efforts by the way
That's exactly what I did except taking the original androidmanifest.xml since I had to change some things in it...
Will the whole process be not applicable then?
Regards
deomaki
Click to expand...
Click to collapse
Unclear. I've seen some doogee posts on here. Maybe try one of those?
Tulsadiver said:
Unclear. I've seen some doogee posts on here. Maybe try one of those?
Click to expand...
Click to collapse
mmmh, maybe if will have to find out all system apks that use the same certificate framework-res.apk does and resign them with a new cert including the modded system.apk.
I was trying to find a way around that, but maybe I have to go the hard way...
I think that should solve my problem, what do you think?
Regards
deomaki

Categories

Resources