Hy i just de-compiled Default Themes.apk from ST15i
as i wanted to change the name From DefaultThemes.apk to something i want & i successfully did it
but now that .apk in not installing as a normal apk or by pushing into system app
even tried to sign it but no luck:crying:
I attached the .apk i moded, please someone look into it and tell me whats wrong
This defaultthemes.apk is de-compiles so just extract it and peep into it
Thanks
piousheart said:
Hy i just de-compiled Default Themes.apk from ST15i
as i wanted to change the name From DefaultThemes.apk to something i want & i successfully did it
but now that .apk in not installing as a normal apk or by pushing into system app
even tried to sign it but no luck:crying:
I attached the .apk i moded, please someone look into it and tell me whats wrong
This defaultthemes.apk is de-compiles so just extract it and peep into it
Thanks
Click to expand...
Click to collapse
What did you do after you recompiled the apk?
Ticklefish said:
What did you do after you recompiled the apk?
Click to expand...
Click to collapse
Pushed in system\app rebooted phone ( This method didn't worked, defaultthemes.apk didn't installed )
Then i tried to sign the apk and pushed - didnt workred.. then installed as a normal apk still no sucess
Thanks for the reply.
piousheart said:
Pushed in system\app rebooted phone ( This method didn't worked, defaultthemes.apk didn't installed )
Then i tried to sign the apk and pushed - didnt workred.. then installed as a normal apk still no sucess
Thanks for the reply.
Click to expand...
Click to collapse
So you didn't use the signing from the original app? Or change the compression rate of resources.arsc? Just compiled and pushed?
1.Make a copy of an original apk
2.Decompile the app
3.Do desired changes
4.Recompile
5.Replace changed resources from recompiled app back to original app (without unpacking it, use winrar or something like that open the apk and then just paste the changed resources inside)
6.Copy the file to /system/app
7.Give 644 permissions.
Ticklefish said:
So you didn't use the signing from the original app? Or change the compression rate of resources.arsc? Just compiled and pushed?
Click to expand...
Click to collapse
How to use the signing from original app?
How to change the compression ratio of resources.arsc?
Sorry for making you concern but i am really a noob
Theonewithideas said:
1.Make a copy of an original apk
2.Decompile the app
3.Do desired changes
4.Recompile
5.Replace changed resources from recompiled app back to original app (without unpacking it, use winrar or something like that open the apk and then just paste the changed resources inside)
6.Copy the file to /system/app
7.Give 644 permissions.
Click to expand...
Click to collapse
Thanks for replying..
I tired to paste the changed work from recompiled app to original but the problem is i changed the values in res\value\string ( changed the name of application so that i can install w\o replacing the original themes ) but after recompiling VALUE folder disappeared from res, now how do i move the STRING to original apk?
piousheart said:
Thanks for replying..
I tired to paste the changed work from recompiled app to original but the problem is i changed the values in res\value\string ( changed the name of application so that i can install w\o replacing the original themes ) but after recompiling VALUE folder disappeared from res, now how do i move the STRING to original apk?
Click to expand...
Click to collapse
That's inside resources.arsc. Which needs to be compressed at a STORE rate. Have a look at the tool in my signature, it can do all this for you automatically.
Ticklefish said:
That's inside resources.arsc. Which needs to be compressed at a STORE rate. Have a look at the tool in my signature, it can do all this for you automatically.
Click to expand...
Click to collapse
Can you teach me how do i make that defaultThemes.apk a normal installable apk?
Related
First of all... Thanks go to sbong for bringing this to my attention and helping me through it.. including proving me with some of the files I needed to make this work..
Also thanks to the devs who created the util's needed to do this mod.
Ok - So I've already modded my framework-res.apk in UOT kitchen so I didn't want to re-do all those mods... and as much as anything else I wanted to be able to do this myself..
Adding the CRT animation to your phone.
You'll need root access
You'll need this APK MANAGER 4.9 - http://forum.xda-developers.com/showthread.php?t=695701 install it somewhere on your PC
You'll need to replace the apktool in the OTHER directory once you've installed apkmanager with the one attached below.
1. Get your framework-res.apk from your phone and put it in the "modding" folder
2. Run apk manager, decompile option 9 [NOT USING DEPENDENCY OPTION]
3. Go into projects\framework-res\res\values\bools.xml [EDIT]
4. Make config_animateScreenLights to false [SAVE and EXIT]
5. Go back to script and select compile option 11.
6. Say y [System app]
7. Say n [don't need to retain anything else]
8. Delete AndroidManifest.xml and Meta-Inf folder from unsignedframework-res.apk
9. Copy and paste AndroidManifest.xml and Meta-Inf folder from original framework-res.apk into unsignframework-res
.......... open the apk files using 7 zip or similar. Do not extract them..
.......... Copy and paste from inside the original apk to inside the new one.
10. You'll find unsignedframework-res.apk in "place-apk-here-for-modding" folder
10a. RENAME IT to framework-res.apk
11. Copy the new framework-res.apk onto your phone in the SYSTEM folder
12. Change the permissions to RW-R--R--
13. Move the file into the FRAMEWORK folder.
Reboot...
Done..
Tested and works on my arc. (Finally!)
Video of the animation...
[EDIT - Added the apktool here as the original link is now dead.]
Hi mate, can you upload the jar file again?
Done! 10chrs
hey ice....sent you a pm!
here's my framework....thanks a lot in advance
im_iceman said:
First of all... Thanks go to sbong for bringing this to my attention and helping me through it.. including proving me with some of the files I needed to make this work..
Also thanks to the devs who created the util's needed to do this mod.
Ok - So I've already modded my framework-res.apk in UOT kitchen so I didn't want to re-do all those mods... and as much as anything else I wanted to be able to do this myself..
Adding the CRT animation to your phone.
You'll need root access
You'll need this APK MANAGER 4.9 - http://forum.xda-developers.com/showthread.php?t=695701 install it somewhere on your PC
You'll need to replace the apktool in the OTHER directory once you've installed apkmanager with the one attached below.
1. Get your framework-res.apk from your phone and put it in the "modding" folder
2. Run apk manager, decompile option 9 [NOT USING DEPENDENCY OPTION]
3. [NOT REQUIRED?] Drag twframework-res.apk into the script.
4. Go into projects\framework-res\res\values\bool.xml [EDIT]
5. Make config_animateScreenLights to false [SAVE and EXIT]
6. Go back to script and select compile option 11.
7. Say y [System app]
8. Say n [don't need to retain anything else]
9. Delete AndroidManifest.xml and Meta-Inf folder from unsignedframework-res.apk
10. Copy and paste AndroidManifest.xml and Meta-Inf folder from original framework-res.apk into unsignframework-res
11. U'll find unsignedframework-res.apk in "place-apk-here-for-modding" folder
12. Copy the unsignedframework-res.apk onto your phone in the SYSTEM folder
13. Change the permissions to RW-R--R--
14. Move the file into the FRAMEWORK folder.
Reboot...
Done..
Tested and works on my arc. (Finally!)
Video of the animation...
[EDIT - Added the apktool here as the original link is now dead.]
Click to expand...
Click to collapse
noobish question here mate, hope you can help me.
First: After compiling the framework-res.apk, how do you edit and overwrite meta.inf and androidmanifest.xml? and when you use the apk manager, their is no meta.inf folder when decompiling framework-res.apk
2nd: Do you need to rename your unsignedframework-res.apk to framework-res.apk?
just copy and paste the androidmanifest and meta.inf files from your original framework-res.apk into the new one..
and yes - rename it to framework-res.apk
im_iceman said:
just copy and paste the androidmanifest and meta.inf files from your original framework-res.apk into the new one..
and yes - rename it to framework-res.apk
Click to expand...
Click to collapse
do you mean to extract the apk again then after copying the files, zip the apk again still using the apk manager?
No..open the apk files using 7 zip or similar. Do not extract them..
Copy and paste from inside the original apk to inside the new one.
Sent from The arc using XDA premium..
im_iceman said:
No..open the apk files using 7 zip or similar. Do not extract them..
Copy and paste from inside the original apk to inside the new one.
Sent from The arc using XDA premium..
Click to expand...
Click to collapse
ok thanks..going to try using winrar.
i've tried this but i got a bootloop
I've done a few of these now and it works perfectly.. perhaps worth trying again.. follow the instructions very carefully.
hello.i have small problem using apk manager 4.9 with replaced apktool.jar. problem is when i try decompile file.still i have error.please help.log attached.thanks
i followed your steps to the letter and im getting bootloop but ill try it again and see if i get a different result
"4. Go into projects\framework-res\res\values\bool.xml [EDIT]" should be bools, am I right ?
works like a charm thanks mate, its not that hard when you know what to do thanks again
well spotted!.. yes.. it should!
kondejm said:
hello.i have small problem using apk manager 4.9 with replaced apktool.jar. problem is when i try decompile file.still i have error.please help.log attached.thanks
Click to expand...
Click to collapse
Looks like your trying to mod your phonebook.apk...
Nie mo¾na odnale«† C:\Users\Niuniek\Desktop\APK editor\place-apk-here-for-modding\../place-apk-here-for-modding/signedPhonebook.apk.
Nie mo¾na odnale«† C:\Users\Niuniek\Desktop\APK editor\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedPhonebook.apk.
Click to expand...
Click to collapse
I've just amended the first post...
you need to rename the unsignedframework-res.apk to framework-res.apk (ie the name of the original file)..
I thought that would have been obvious.. but perhaps not.
post deleted
Just followed the guide, no issues.
Loving the animation
One small thing, can't help feeling that the first post should be edited to include this to make it clearer:
im_iceman said:
No..open the apk files using 7 zip or similar. Do not extract them..
Copy and paste from inside the original apk to inside the new one.
Click to expand...
Click to collapse
Done!.....
Just achieved root using azuzu's method and the fist thing I attempted was to get rid of the dull-dark backgrounds on the Stock ROM and use the bright blue backgrounds from the Xperia 1.6 days, which was also ported to 2.1
I modified the framework-res.apk on PC and used RootExplorer to overwrite the existing framework-res.apk but still I dont see any changes in the backgrounds. Any idea what's amiss? Here is a strp-by-step writ of what i did:
1. Use root explorer to copy the existing framework-res.zpk to /SDCARD/
2. Transferred the apk to PC, replaced the existing semc_bg.png and semc_general_bg in the archive.
3. Transferred the modified apk to sdcard.
4. Using root Explorer on the phone, copied the modified apk to /system/
5. Changed the permissions to match the original apk
6. Copied the modified apk from /system/ to /system/framework/ and overwritten the original apk
7. The file gets overwritten successfully - but there is no change in the system background images
Whare am i going wrong? AFAIK there is nothing wrong with the apk (I have learnt that an incorrect framework-res.apk can brick the phone!)
You also need to edit system/framework/SemcGeneralUxpRes.apk
Locate SemcGenericUxpRes.apk (system/framework) and SystemUI.apk (system/app).
They will also need to be modded for a full theme on GB.
*Edit- Lol, M_I ya beat me to it
Thanks @My_Immortal and AyDee.
I had checked the SystemUI.apk and there was nothing to edit in the package. Checking the SemcGenericUxpRes.apk now, will let y'all know soon!
It worked!!! Thanks guys...my UI looks much lore alive now! http://media.xda-developers.com/images/smilies/biggrin.gif
Also don't forget to replace the image for landscape mode too
here is something I wrote earlier:
http://forum.xda-developers.com/showpost.php?p=16201956&postcount=12
riginal said:
Also don't forget to replace the image for landscape mode too
here is something I wrote earlier:
http://forum.xda-developers.com/showpost.php?p=16201956&postcount=12
Click to expand...
Click to collapse
@riginal : I worked out that bit myself, but thanks all the same.
Posted it here because i need a dev.
I pulled my Framework-res.apk and modified all the icons for everything. I decompiled using apktool.
My question is what steps do i take now (do i need to sign it, what a good tool to recompile it as apktool does and gives me a framework-res.apk but caused my phone not to boot up)..also someone said seomthing about resources.arsc or something..not sure where to go...thanks for your help.
Open ur new apk using 7zip (righr click>7zip>open archive) and do the same with ur old one. Delete the resources.xxxx(i dont know the name by heart lol) and drag and drop the one (by one i meant the resources.xxxx file) from the new zip to the old zip and adb push ur old frameworkres apk and reboot
Sent from my PG86100 using XDA App
kpkimmel said:
Posted it here because i need a dev.
I pulled my Framework-res.apk and modified all the icons for everything. I decompiled using apktool.
My question is what steps do i take now (do i need to sign it, what a good tool to recompile it as apktool does and gives me a framework-res.apk but caused my phone not to boot up)..also someone said seomthing about resources.arsc or something..not sure where to go...thanks for your help.
Click to expand...
Click to collapse
sounds more like a question. Use apk manager and or 7zip
how does just that one file carry over all the new pics and stuff i changed...
edited......
What exactly have you edited? If you just change non patch9 images... then you can just drag and drop the new images into the apk (may have to rename apk to zip).
If they are patch9's... you need to..
decompile framework-res.apk (apktool d framework-res.apk)
swap out images
recompile (apktool b framework-res)
Now take the newly compiled apk (in the /dist folder). Open it up and take the edited images (only the ones you need changed) and put them into your original apk.
No need to resign just push it to your phone and verify that it works
If you are editing xml files in /values* or /layout..
do the same as above, except after re-compiling, you're going to swap over the resources.arsc file to the original apk.
This is using apktool... in my experience apk manager doesn't do the job to my expectations... so i just do it manually with apktool.
Lemme know if u need anything more, or if i didnt touch on a specific situation.
Btw, maybe to combat the retarded comments about q&a and being in the right section... maybe turn the OP into a How-To?
preludedrew said:
What exactly have you edited? If you just change non patch9 images... then you can just drag and drop the new images into the apk (may have to rename apk to zip).
If they are patch9's... you need to..
decompile framework-res.apk (apktool d framework-res.apk)
swap out images
recompile (apktool b framework-res)
Now take the newly compiled apk (in the /dist folder). Open it up and take the edited images (only the ones you need changed) and put them into your original apk.
No need to resign just push it to your phone and verify that it works
If you are editing xml files in /values* or /layout..
do the same as above, except after re-compiling, you're going to swap over the resources.arsc file to the original apk.
This is using apktool... in my experience apk manager doesn't do the job to my expectations... so i just do it manually with apktool.
Lemme know if u need anything more, or if i didnt touch on a specific situation.
Btw, maybe to combat the retarded comments about q&a and being in the right section... maybe turn the OP into a How-To?
Click to expand...
Click to collapse
Thank you very much..finally...one last question, where do i put the wallpaper so when the system is fully booted it shows the wallpaper i want? Thanks.
kpkimmel said:
Thank you very much..finally...one last question, where do i put the wallpaper so when the system is fully booted it shows the wallpaper i want? Thanks.
Click to expand...
Click to collapse
There's an xml edit for it... but forgot it off the top of my head... quickest way is to replace system/customize/resource/shows_over.jpg with your image.
preludedrew said:
There's an xml edit for it... but forgot it off the top of my head... quickest way is to replace system/customize/resource/shows_over.jpg with your image.
Click to expand...
Click to collapse
Thanks you, sorry about the stupid framework-res question...i knew the answer but had been so long forget the simplest of steps....instead of normal compression i was using store instead.....duh.......thank you though for the reminder because 7zip will automatically restore the same it was decompressed with, unlike that crap winrar. Have a good one man and thank you again.
Signing and edit framework-res.apk and other by apk manager
Signing and edit framework-res.apk:
hi if you worked by
apk manager
copy that apk to this folder "place-apk-here-for-modding" of apk manager
and open apk manager app
1-22 after that select a apk file by number
2-1 to extra
3- an goes to "project" folder and edit that files
4-2 to optimize
5-3 to zip apk
and no need to singed
and you can edit frame work whit winrar zip and dont use front guide
tahnks yousef-p
other apks like apps and games soon:
.....
thanks for the tutorial.looking forward to it!
yousef-p said:
Signing and edit framework-res.apk and other by apk manager
Signing and edit framework-res.apk:
hi if you worked by
apk manager
copy that apk to this folder "place-apk-here-for-modding" of apk manager
and open apk manager app
1-22 after that select a apk file by number
2-1 to extra
3- an goes to "project" folder and edit that files
4-2 to optimize
5-3 to zip apk
and no need to singed
tahnks yousef-p
other apks like apps and games soon:
.....
Click to expand...
Click to collapse
instep 4.. i've got message "has been not extracted".. why?
Thanks by the way
games?
fjw0803 said:
instep 4.. i've got message "has been not extracted".. why?
Thanks by the way
Click to expand...
Click to collapse
select the apk file from list?
give me link apk manager please ! btw ..does it work on ics rom ?
Bejjo said:
give me link apk manager please ! btw ..does it work on ics rom ?
Click to expand...
Click to collapse
http://d-h.st/iJP
i did the above method and replace my edited framework-res.apk, after phone boot looping.....
why is that??????? original framework size is 10mb and edited is 4mb....why????
bandarigoda123 said:
i did the above method and replace my edited framework-res.apk, after phone boot looping.....
why is that??????? original framework size is 10mb and edited is 4mb....why????
Click to expand...
Click to collapse
resources.arsc is probably at the wrong compression rate.
why mean it can
not be framework.res signin
ariadelvana95 said:
why mean it can
not be framework.res signin
Click to expand...
Click to collapse
that mean no need to siging frameworl-res (that is system apk)
bandarigoda123 said:
i did the above method and replace my edited framework-res.apk, after phone boot looping.....
why is that??????? original framework size is 10mb and edited is 4mb....why????
Click to expand...
Click to collapse
maybe from your rom / and you can edit frame work whit winrar zip and dont use front guide
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