Decompiling DefaultThemes.apk - Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A

Hello,
I want to decompile the DefaultThemes.apk ! However,decompiling with apk manager 4.9 gives an error !
I dont want to just change the images,but add another theme !
What can be done ?

probably the best solution would be enable the cyanogenmod themes manager and install that theme...

nicom.mt said:
probably the best solution would be enable the cyanogenmod themes manager and install that theme...
Click to expand...
Click to collapse
But that isn't possible on stock ROM right ?? What to do for stock ROM ?

dont need to decompile, just change files using 7zip

metalrawk said:
dont need to decompile, just change files using 7zip
Click to expand...
Click to collapse
I want to add a theme,not replace existing !

defaultheme.apk need dependencies for being decompiled which is framework-res.apk and SemcGenericUxpRes.apk
you can find them on /system/framework
I do not use apkmanager so can't tell you the way to do it but with apktool i do this
Code:
apktool if framework-res.apk
apktool if SemcGenericUxpRes.apk

peexl said:
defaultheme.apk need dependencies for being decompiled which is framework-res.apk and SemcGenericUxpRes.apk
you can find them on /system/framework
I do not use apkmanager so can't tell you the way to do it but with apktool i do this
Code:
apktool if framework-res.apk
apktool if SemcGenericUxpRes.apk
Click to expand...
Click to collapse
Hello,thanks ! I was able to decompile the apk successfully. However,I added the desired files for new theme,added the ids,and edited the smali files ! I then recompiled it and signed it. However,after pushing it to the phone,it doesn't work,just a blank screen is displayed ! Here is my apk ! What shall I do to make it work ?
Thanks !
Edit : It is working after restarting phone,however new theme doesn't show up in themes menu,only old ones are shown !

i have this eror too...
decompile apkmanager v5.0 send log: cant find framework resourse of parkage of id:2.You must install proper framework file, see project wedsite for more info.??
How can i decompile this defaultthemes.apk?
sr my bad english..!

Solution?
What I do is using Root Explorer.apk I extract the file while on the phone (it automatically unfold it in a new folder called extracted). I copy the original files to a TMP folder in case I delete or make mistake with the original files when copy them over.
I then connect the phone via USB and change the files thats need to be changed and then I unplug the USB cable and again using the Root Explorer.apk I choose to zip it again. An from there I rename the new file to *.apk
Hope it helps

guys please help...i like too much defaultthemes but i did everything and they don't take effect to my phone...mini pro 2.3.7 mcm7 v21 i put them in the system/app change perm but nothing...maybe cause i have a theme from themechooser or something...in the start i didn't replace the default themes.apk there wasn't anything there... any ideas???thanks

nitsakh said:
Hello,thanks ! I was able to decompile the apk successfully. However,I added the desired files for new theme,added the ids,and edited the smali files ! I then recompiled it and signed it. However,after pushing it to the phone,it doesn't work,just a blank screen is displayed ! Here is my apk ! What shall I do to make it work ?
Thanks !
Edit : It is working after restarting phone,however new theme doesn't show up in themes menu,only old ones are shown !
Click to expand...
Click to collapse
how did yu decompile it? please tell me too.. i use apk manager!

Aarush said:
how did yu decompile it? please tell me too.. i use apk manager!
Click to expand...
Click to collapse
Use the following commands with apktool to decompile ::
Code:
apktool if framework-res.apk
apktool if SemcGenericUxpRes.apk
apktool d DefaultThemes.apk

Related

[Q]mdpi-v4

i see some framework-res.apk use mdpi-v4, land-mdpi-v4, en-mdpi-v4, nodpi-v4 in framework-res.apk.
anyone know how to build it?
thx for your answer
agresive said:
i see some framework-res.apk use mdpi-v4, land-mdpi-v4, en-mdpi-v4, nodpi-v4 in framework-res.apk.
anyone know how to build it?
thx for your answer
Click to expand...
Click to collapse
those that you talk about where rebuilded (recomplided) with apktool (or apk manager)...one decompiled it can't be recompiled...when themin you nedd the original framework-res.apk...you theme it and then you recompile
adi4motion said:
those that you talk about where rebuilded (recomplided) with apktool (or apk manager)...one decompiled it can't be recompiled...when themin you nedd the original framework-res.apk...you theme it and then you recompile
Click to expand...
Click to collapse
original framework-res.apk from original ROM? if i use apk manager, how i can do it?

Need help editing fw-res

Can anyone please direct me to the correct tutorial(or similar) on how to modify framework-res.apk files of 2011 xperias like St15i,st18i, etc.. ????
I have been Here but it is for the earlier xperias. Does it apply to today's xperias also ???
decompile apk using apkmanager , edit files and zip.
install apkmanager first and you will get to know everything, no need for a tutorial.
metalrawk said:
decompile apk using apkmanager , edit files and zip.
install apkmanager first and you will get to know everything, no need for a tutorial.
Click to expand...
Click to collapse
I'm using Apk Multi tool, since Apk manager is no longer supporting.
My problem is that the system ui apk i have is from a custom rom(Hybrom v11) which has control panel in the notification area.
Now when i'm decompiling the system ui.apk i get an error in apk tool, an error too technical in the log for me to understand.
I get an error in Apk Manager 4.9 too probably the same as apk multi tool.
So if error occurs some part of the apk is not decompiled right ?
If it is not decompiled correctly how am i going to edit the xmls and recompile it ??
systemui.apk needa dependencies to be decompiled. check there will be an option of decompiling apk with with dependency. when it asks for dependency file, point it to framework-res.apk
metalrawk said:
systemui.apk needa dependencies to be decompiled. check there will be an option of decompiling apk with with dependency. when it asks for dependency file, point it to framework-res.apk
Click to expand...
Click to collapse
Just now did that. But apk tool says that framw-res is not the dependent apk. So what is the solution ??
decompile it without dependency and post log here.
Strange now i'm not getting any error . I really had that problem today morning. Thanks for Prompt replies prateek
Any way one off topic question . Can you tell me how to mod power menu. I want to add reboot and recovery in power menu for my st15i . Do i have to add images for it ??
its not in systemUI afaik. there is other file I forgot its name.
metalrawk said:
its not in systemUI afaik. there is other file I forgot its name.
Click to expand...
Click to collapse
Currently i'm refering This thread. It says I have to edit fw-res and Android.policy.jar . Is that method applicable to Xperia 2011 devices ??
crazyadmit said:
Currently i'm refering This thread. It says I have to edit fw-res and Android.policy.jar . Is that method applicable to Xperia 2011 devices ??
Click to expand...
Click to collapse
yes it will work

[ HELP ] Decompiling and recompiling stock ICS framework-res

Hallo, I tried a lot of apktools and aapts but I am unable to recompile framework-res Every time resources have diferent size than stock framework-res and I have no idea how to hack them. If some one allready hacked them please help here! Seems Sony using an totally new aapt tool which is not public? I tried to recompile framework-res without modifying them but every time I getting boot loop.
munjeni said:
Hallo, I tried a lot of apktools and aapts but I am unable to recompile framework-res Every time resources have diferent size than stock framework-res and I have no idea how to hack them. If some one allready hacked them please help here! Seems Sony using an totally new aapt tool which is not public? I tried to recompile framework-res without modifying them but every time I getting boot loop.
Click to expand...
Click to collapse
framework from stock???
Yes
Note: mean about modifying xml files, not drag and drop from the one to the another... ! I have resigned all apks (including framework-res) and have no boot loop but framework-res can not be recompiled and signed, only signed! Allso drag and drop not working if xml files is modified! Hope you understand what I mean?
munjeni said:
Yes
Note: mean about modifying xml files, not drag and drop from the one to the another... ! I have resigned all apks (including framework-res) and have no boot loop but framework-res can not be recompiled and signed, only signed! Allso drag and drop not working if xml files is modified! Hope you understand what I mean?
Click to expand...
Click to collapse
Have U tried to drag 'n drop AndroidManifest.xml and META-INF folder from stock to modified framework-res and overwrite everything ( of course using archive manager )??
I needed to do this in my MIUI port ( CyanogenMod10 based ) for X8, because after every recompile I needed to copy them to not get bootloop
NeveHanter said:
Have U tried to drag 'n drop AndroidManifest.xml and META-INF folder from stock to modified framework-res and overwrite everything ( of course using archive manager )??
I needed to do this in my MIUI port ( CyanogenMod10 based ) for X8, because after every recompile I needed to copy them to not get bootloop
Click to expand...
Click to collapse
No, I have success in resigning unmodified stock framework-res, so META-INF have no sense because new META-INF is signed by new key and its working! There is problem with "format" ...seems Sony have his own aapt and apktool which making totaly diferent "format" than apktool and aapt that we using. I tried many of the aapt | apktool but .arsc have totaly diferent size (allso png files is with totaly diferent size)... !
Have u used the apk manager by diamondback??
http://forum.xda-developers.com/showthread.php?t=1619473
I am working in Linux machine!
munjeni said:
I am working in Linux machine!
Click to expand...
Click to collapse
have you figured out the problem yet??
and one thing I wanted a favour........
I wanted to change the rotation fix for your MIUI to back to its original state..... decompiled the framework-res.apk from the MIUI and changed the some values in framework-res/res/values/bools.xml and then recompiled it and when I replaced it with the default one I was getting the status bar of different width from the original..... it was almost double..... I also tried by just replacing some images just for test and the same thing happened........
Can you tell me whats the problem is????
Hey bro,
Even I was stuck with this issue for a while I think it was Spaun_Studio who found out how to fix this issue Its basically to do with apktool not bundling the required nxt drawables as needed Anyway, Here's the fix :
1) After decompiling, go to apktool.iml and delete the following lines :
usesFramework:
ids:
- 2
Click to expand...
Click to collapse
2) Go to res/values and open styles.xml. There, delete all references to sonyericcson.uxp:drawable (Delete the entire line)
Then, compile and it will work
Credits to Spaun_Studio and not me for the idea
Cheers
@[email protected] said:
have you figured out the problem yet??
and one thing I wanted a favour........
I wanted to change the rotation fix for your MIUI to back to its original state..... decompiled the framework-res.apk from the MIUI and changed the some values in framework-res/res/values/bools.xml and then recompiled it and when I replaced it with the default one I was getting the status bar of different width from the original..... it was almost double..... I also tried by just replacing some images just for test and the same thing happened........
Can you tell me whats the problem is????
Click to expand...
Click to collapse
Seems you missing something!
Min3r said:
Hey bro,
Even I was stuck with this issue for a while I think it was Spaun_Studio who found out how to fix this issue Its basically to do with apktool not bundling the required nxt drawables as needed Anyway, Here's the fix :
1) After decompiling, go to apktool.iml and delete the following lines :
2) Go to res/values and open styles.xml. There, delete all references to sonyericcson.uxp:drawable (Delete the entire line)
Then, compile and it will work
Credits to Spaun_Studio and not me for the idea
Cheers
Click to expand...
Click to collapse
Thanks mate for info, I will try soon! Its looking like problem you mentioned!
munjeni said:
Thanks mate for info, I will try soon! Its looking like problem you mentioned!
Click to expand...
Click to collapse
If you can help with the steps it would be great....... IF you are free then please help........ Thanks....

[Q] How to MOD APPS ?

HI Guys !
I am new to this developer world.I recently joined XDA and i am seeing here that there are many developers modding apps ...like [MOD][APP]WALKMAN APP FOR XPERIA P FROM XPERIA V..
My question is how they make it able to run on other devices?...How i can mod ? answer my question take me as a noob.
plz help me ..
it is only for developer i think,
mod app is not easy for common user,
if you do not know well about development .you will find mod some application is a very difficult thing.
timgreen123 said:
mod app is not easy for common user,
if you do not know well about development .you will find mod some application is a very difficult thing.
Click to expand...
Click to collapse
Don't worry i know java programming....You only tell me method and what i have to download....what procedure.
P.fever said:
Don't worry i know java programming....You only tell me method and what i have to download....what procedure.
Click to expand...
Click to collapse
Well first things first, you need the apps you're going to mod...
Pull them from your ROM.
Decompile
You need apktool for this...
First things first, you need the framework-res.apk in the apktool folder.
Open a command script and install it with: apktool if framework-res.apk
Then decompile your app ( ex: SystemUI.apk ) with: apktool d SystemUI.apk
Make your changes
Change the images, do some XML editing, some smali things....
Recompile
If you want to recompile it to an .apk file use this in the command: apktool b SystemUI
DO NOT ADD APK, cuz you're building the SystemUI folder contents into an .apk
Jeroenvk94 said:
Make your changes
Change the images, do some XML editing, some smali things....
Recompile
If you want to recompile it to an .apk file use this in the command: apktool b SystemUI
DO NOT ADD APK, cuz you're building the SystemUI folder contents into an .apk
Click to expand...
Click to collapse
Is this just an posibility 4 Layout and ui (XML) changes or can i even look & change @ the java Code and underling activities?

[solved][help] error decompile home.apk file

cant decompile home.apk using apktool. nothing files found on values folder, except styles.xml file with blank content. please help. here i attach log sreenshot. thx in advance..
Try use framework-res from 4.3+
DanielFlorin said:
Try use framework-res from 4.3+
Click to expand...
Click to collapse
hi,
thanks you for reply..
my problem had solved yesterday..
just install
framework-res.apk
SemcGenericUxpRes.apk
systemui.apk

Categories

Resources