[Q] can't decompile settings.apk with any apktool? - Sony Xperia M

can someone help me please:crying:? i've been trying any apktool for decompile the settings.apk, but the result it's only failed and apktool always make progress like this "please install any framework files, see this on our forum" although i've been installed framework-res.apk first? why ya? that app is almost succesfuly decompile i can see all xml file has been decoding, but not all files decoding some files still can't be read with notepad++? and when i try to recompile again it's always say error although i'm never modified or remove any content from that app? why ya that happen? i still dizzy with that? settings.apk from C1905 4.3 Single Sim (deodexed) with stock framework, are that can be combine for decompile?

1) Any apps you wish to decompile coming from a Sony ROM you MUST install framework-res.apk AND SencGenericUxpRes.apk
2) Your framework files MUST be deodexed, meaning that if you are using framework-res.apk and you have a framework-res.odex file next to it you will have to deodex the framework files first.
3) The framework files MUST come from the same firmware as the app.

gamer649 said:
1) Any apps you wish to decompile coming from a Sony ROM you MUST install framework-res.apk AND SencGenericUxpRes.apk
2) Your framework files MUST be deodexed, meaning that if you are using framework-res.apk and you have a framework-res.odex file next to it you will have to deodex the framework files first.
3) The framework files MUST come from the same firmware as the app.
Click to expand...
Click to collapse
so you mean is? i need SemcGenericUxpRes.apk and framework-res.odex too. to deodex any files from sony rom? but how i can install SemcGenericUxpRes.apk? because in this selection this only must install framework first? is that you mean SemcGenericUxpRes.apk must i install to like install any framework files?

Nicklas Van Dam said:
so you mean is? i need SemcGenericUxpRes.apk and framework-res.odex too. to deodex any files from sony rom? but how i can install SemcGenericUxpRes.apk? because in this selection this only must install framework first? is that you mean SemcGenericUxpRes.apk must i install to like install any framework files?
Click to expand...
Click to collapse
You do NOT need any .odex files relating to the framework. HOWEVER, the framework MUST be fully deodexed (deodexing means repacking the .apk/.jar file in such a way that the .odex file and the .apk/.jar file are one and not two separate parts).
To install the SemcGenericUxpRes.apk you must install it as you would with any other framework file.
Two questions while I am here, what firmware are you on? And what is your native language?

gamer649 said:
You do NOT need any .odex files relating to the framework. HOWEVER, the framework MUST be fully deodexed (deodexing means repacking the .apk/.jar file in such a way that the .odex file and the .apk/.jar file are one and not two separate parts).
To install the SemcGenericUxpRes.apk you must install it as you would with any other framework file.
Two questions while I am here, what firmware are you on? And what is your native language?
Click to expand...
Click to collapse
i use C1905 15.4.A.1.9 Indonesia, and native language is English (CA), why? so i must rename SemcGenericUxpRes.apk and change to framework-res.apk? but how can be 2 framework installed?,

Nicklas Van Dam said:
i use C1905 15.4.A.1.9 Indonesia, and native language is English (CA), why? so i must rename SemcGenericUxpRes.apk and change to framework-res.apk? but how can be 2 framework installed?,
Click to expand...
Click to collapse
For your firmware I might be able to upload the two framework files you need to use, it depends on if and when I can get them. And for your native language I was thinking that it might be better for me to give my reply for you if you used a different language than English.
But no, you do not need to change the name of SemcGenericUpxRes.apk, all you need to do is install framework-res.apk and then immediately install SemcGenericUpxRes.apk (there is no name change needed). If you install them under different names they won't overwrite each other and thus won't give errors and two frameworks can be installed.

gamer649 said:
For your firmware I might be able to upload the two framework files you need to use, it depends on if and when I can get them. And for your native language I was thinking that it might be better for me to give my reply for you if you used a different language than English.
But no, you do not need to change the name of SemcGenericUpxRes.apk, all you need to do is install framework-res.apk and then immediately install SemcGenericUpxRes.apk (there is no name change needed). If you install them under different names they won't overwrite each other and thus won't give errors and two frameworks can be installed.
Click to expand...
Click to collapse
i download the stock rom in here https://mega.co.nz/#!29ww0Rpb!NVOkXyH1nEoIbZXtetmg1i_Sbf8raArFVQ7Yfn8DDks stock rom c1905 4.3, ok i will try to install framework file first. But my settings.apk is deodexed? for decompile i must use app that have been deodexed or not?

and after i install a framework-res.apk and SemcGenericUxpRes.apk to decompile setinggs.apk(deodexed) always happen like this
Log For : Settings.apk
Log Type : Decompiling
Log Recorded At : 09 2014-28- 11:01:05,83
Log Recorded By : Advanced ApkTool v2.0.0 By BDFreak
------------------------------------------------------
Can't find framework resources for package of id: 2. You must install proper framework files, see project website for more info.
------------------------------------------------------
why ya? :crying: i still dizzy with this kind, or the settings.apk must odexed first?

and this time the settings.apk is odexed, and i try again to decompile this files. but the result is always same like this
Log For : Settings.apk
Log Type : Decompiling
Log Recorded At : 09 2014-28- 11:06:38,76
Log Recorded By : Advanced ApkTool v2.0.0 By BDFreak
------------------------------------------------------
Can't find framework resources for package of id: 2. You must install proper framework files, see project website for more info.
------------------------------------------------------

Related

[Q] need help with decompilling

every time i'm trying to decompile an APK i get this error:
Code:
Decompiling Apk
testCan't find framework resources for package of id: 2. You must install proper framework files, see project website for more info.
"An Error Occured, Please Check The Log (option 24)"
can someone help me?:crying:
someone? anyone?
:crying:
make sure you installed correct framework apps..and then decompile again
arpith.fbi said:
make sure you installed correct framework apps..and then decompile again
Click to expand...
Click to collapse
I already installed the framework-res.apk and the systemui.apk
Sent from my LT18i using xda premium
can you post the 4-5 previous lines in the code before getting error?
arpith.fbi said:
can you post the 4-5 previous lines in the code before getting error?
Click to expand...
Click to collapse
i used used apk multi tool, so i selected a project, chose to decompile, and that are all the lines i get.
install original stock framework-res.apk including other frameworks
First try decompiling and re-compiling the original stock apk before decompiling & recompiling apk of some other roms.
but i still feel framework-res.apk isnt properly installed
Code:
apktool install-framework framework-res.apk
apktool if framework-res.apk
/1.apk successfully created.
apktool if SemcgenericUXpres.apk
/2.apk successfully created..
After that try it.. ıt works lots of apk instead of systemUI.apk :S I dont know where I have mistakes during COMPILE process :/
Erhany said:
apktool if framework-res.apk
/1.apk successfully created.
apktool if SemcgenericUXpres.apk
/2.apk successfully created..
After that try it.. ıt works lots of apk instead of systemUI.apk :S I dont know where I have mistakes during COMPILE process :/
Click to expand...
Click to collapse
thanks, it worked
now i can't compile the apk:crying:
Code:
The system cannot find the file specified.
what can i do to fix that?
please, can someone help me with that?

Please help me in this problem

Pleas Help..
When I work Combile and Decombile APKTOOL for File framwork-res.apk
Of Version Jelly Bean 4.1.2 XXLSJ All OK
But When Add My Rom BootLoop
Are you signing the apk after you recompile it??
Sent from my GT-I9300 using Tapatalk 2
AuSSiELaMbChOpS said:
Are you signing the apk after you recompile it??
Sent from my GT-I9300 using Tapatalk 2
Click to expand...
Click to collapse
no signing apk
whats this broplem
help
heeeeeeeeeeeeeeeeeeeeeeelp
amro habib said:
help
heeeeeeeeeeeeeeeeeeeeeeelp
Click to expand...
Click to collapse
The problem is with the signing. (The framework-res.apk has to be signed with the platform key)
Try to sign the apk (use apkmultitool), but I think it won't work, because you wont have the platform key.
I suggest you to do the following:
If you use apktool or apk-multi-tool apkmultitool.com:
1) if you want to change drawables, just push the new png-s into the original framework-res.apk (open the original framework-res.apk with 7zip, and drag and drop the new png in the corresponding drawable folder).
2) if you want to change xml-s, decompile framework-res.apk, change xml-s, recompile framework-res.apk, then extract the "resources.arsc" from the new apk, and push it to the original framework-res.apk (again with 7zip or any compatible file manager)
3) if you change some smali code, then you need to the same as in step 2, but with the classes.dex file.
Basically you should use the original framework-res.apk as a starting point, and (without extracting it) push all your mods into it!
OR try the UOT kitchen: http://uot.dakra.lt/
Cheers!
Gyebro said:
The problem is with the signing. (The framework-res.apk has to be signed with the platform key)
Try to sign the apk (use apkmultitool), but I think it won't work, because you wont have the platform key.
I suggest you to do the following:
If you use apktool or apk-multi-tool apkmultitool.com:
1) if you want to change drawables, just push the new png-s into the original framework-res.apk (open the original framework-res.apk with 7zip, and drag and drop the new png in the corresponding drawable folder).
2) if you want to change xml-s, decompile framework-res.apk, change xml-s, recompile framework-res.apk, then extract the "resources.arsc" from the new apk, and push it to the original framework-res.apk (again with 7zip or any compatible file manager)
3) if you change some smali code, then you need to the same as in step 2, but with the classes.dex file.
Basically you should use the original framework-res.apk as a starting point, and (without extracting it) push all your mods into it!
OR try the UOT kitchen: http://uot.dakra.lt/
Cheers!
Click to expand...
Click to collapse
all this work bootloop..

[Q] bravia engine 2 not compatible in deodexed framework files?

when i try to deodex all framework files with baksmali and smali jar, is done with great and try to port to framework of my xperia m and go to reboot. after reboot deodex process is complete, and when i try to move all bravia engine 2 file to my system i've got a little problem when i want to move com.sonyericcson.uxp.jar from bravia engine is only 4kb with classes.dex include in .jar file. but in my stock deodexed framework file com.sonyericcson.uxp.jar is 14kb? is this a very big different? can i replace it? if i can , what i must do? only replace that file? but when i do that bootloop happen after i reboot. and bootloop happen to when i replace that file with included old .odex file from my framework before deodex process?
what i must do? is bravia engine can't work with deodexed framework file? or something is missing from me?
Replacing framework files can and WILL cause bootloops if you don't run the stop command through ADB shell to stop the phone from using them. You are trying to replace files what the phone is actively using, stopping the phone from using it part way through the replacement and thus only part of the file is replaced.
Why don't you just use files what have already been deodexed for you instead of doing it the hard way around? Like I have got deodexed files for the two 4.3 versions for both SS and DS, paper13579 created a guide to show you how to properly replace system apks and system framework files. Check it out, themes & apps section.
gamer649 said:
Replacing framework files can and WILL cause bootloops if you don't run the stop command through ADB shell to stop the phone from using them. You are trying to replace files what the phone is actively using, stopping the phone from using it part way through the replacement and thus only part of the file is replaced.
Why don't you just use files what have already been deodexed for you instead of doing it the hard way around? Like I have got deodexed files for the two 4.3 versions for both SS and DS, paper13579 created a guide to show you how to properly replace system apks and system framework files. Check it out, themes & apps section.
Click to expand...
Click to collapse
ya i know, i deodexed my current rom 15.4.A.1.10 from my xperia m, and i replace it all in app and framework in my system and after reboot all working correctly and when i try to move file from bravia engine 2. and replace com.sonyericsson.uxp.jar,set permission to rw-r-r (i don't use any adb to move folder and deodexed files to my system, because i don't have any problem with error without adb) , reboot. Done with bootloop? so what i must do ? BE 2 can't run in deodexed framework? or i must do some modification in this jar file?
Nicklas Van Dam said:
ya i know, i deodexed my current rom 15.4.A.1.10 from my xperia m, and i replace it all in app and framework in my system and after reboot all working correctly and when i try to move file from bravia engine 2. and replace com.sonyericsson.uxp.jar,set permission to rw-r-r (i don't use any adb to move folder and deodexed files to my system, because i don't have any problem with error without adb) , reboot. Done with bootloop? so what i must do ? BE 2 can't run in deodexed framework? or i must do some modification in this jar file?
Click to expand...
Click to collapse
You should use ADB as you can corrupt files you're moving and end up in a bootloop. You said the framework file you had with BE2 was only 4kb? I think that may be a problem. It should be around 13kb-14kb. Can you link me to the thread (if applicable) of where you are trying to port BE2 from? I'll have a look, see if I can work it out. And you're using the 15.4.A.1.10 build for definite? Not one of the earlier 4.3 or 4.1 builds for the SS and not one of the 4.3 or 4.1 builds for the DS?
gamer649 said:
You should use ADB as you can corrupt files you're moving and end up in a bootloop. You said the framework file you had with BE2 was only 4kb? I think that may be a problem. It should be around 13kb-14kb. Can you link me to the thread (if applicable) of where you are trying to port BE2 from? I'll have a look, see if I can work it out. And you're using the 15.4.A.1.10 build for definite? Not one of the earlier 4.3 or 4.1 builds for the SS and not one of the 4.3 or 4.1 builds for the DS?
Click to expand...
Click to collapse
for BE2 may be i can only give you a link for this port for thread i forget it to find in where ?, for my firmware 15.4.A.1.10 is 4.3 build for SS and deodexed myself. and here for this thread http://forum.xda-developers.com/showpost.php?p=56995184&postcount=1. problem? hmmm what's problem?
Nicklas Van Dam said:
for BE2 may be i can only give you a link for this port for thread i forget it to find in where ?, for my firmware 15.4.A.1.10 is 4.3 build for SS and deodexed myself. and here for this thread http://forum.xda-developers.com/showpost.php?p=56995184&postcount=1. problem? hmmm what's problem?
Click to expand...
Click to collapse
I've already got that firmware, it you can find the thread where you get instructions for porting BE2 let me know and I'll look into it.
The problem about your framework file being 4kb once you've 'ported' BE2, it should still be around 13-14kb.
gamer649 said:
I've already got that firmware, it you can find the thread where you get instructions for porting BE2 let me know and I'll look into it.
The problem about your framework file being 4kb once you've 'ported' BE2, it should still be around 13-14kb.
Click to expand...
Click to collapse
So that's a problem ? One question from me, is this com.sonyericsson.uxp.jar from BE2 is already deodexed or not? Because is very small size I think?

Theming / Editing Settings.apk

Hi,
i have themed/edited Settings.apk, then i recompiled/signed/zipaligned without warnings with ApkTool, but once overwritten original Settings.apk and chmoded to 0644 i can't restart the phone, it is stuck on "Android starting" or "updating" (i can't remember the correct text showing). Now i resored the original Settings.apk and all is working fine.
Am i missing something? I have used framework-res and framework-res-htc.
I'm on rooted stock rom latest firmware, no xposed.
Thanks and sorry for my bad english.
which version of apktool?
you need to manually resign the rebuild apk in newer apktool versions
In order to run a rebuilt application. You must resign the application. Android documentation can help with this.
Click to expand...
Click to collapse
and why the double post?
peteter said:
which version of apktool?
you need to manually resign the rebuild apk in newer apktool versions
and why the double post?
Click to expand...
Click to collapse
I'm using "Advanced ApkTool v4.2.0", apktool.jar is a compatible version for marshmallow but i don't remember the version number, previously i themed various xperia themes for marshmallow without issues.
What do you mean with "you need to manually resign the rebuild apk in newer apktool versions"? Like i said i'm using Advanced ApkToo and it has sign command.
Double post is an error, i have requested the deletion.
Thank you
ah ok, thought you were using the standalone apktool from ibotpeaches, there you have to resign the rebuild apk yourself.
just check the link in the quote

[Q] How to edit systemui.apk in Stock ROM?

How to edit systemui.apk in Stock ROM?
denisf1981 said:
How to edit systemui.apk in Stock ROM?
Click to expand...
Click to collapse
Decompile it with apktool
Make changes
Recompile with apktool
Push to system with permissions 644 & restart phone or make a flashable zip
Apktool with instructions & usage can be found
https://ibotpeaches.github.io/Apktool/
Can use Ubuntu/Linux or Windows
Obviously requires rooted phone

Categories

Resources