[Q] Help Required Editting framework.jar - Android Q&A, Help & Troubleshooting

Hi, I am hoping that one of the Android developers on here might be able to give me a bit of advice please regarding editting my 'framework.jar' file.
I have a Jiayu G3 phone running Android Jelly Bean 4.1.2 but my caller ID is not functioning properly because it is not matching local & international numbers. Having done a lot of searching it appears that this is probably due to the parameters in the 'framework.jar' file as per this post on xdadevelopers here
I have succesfully decompiled the 'framework-res.apk' file using apktools and confirmed that the 'config_use_strict_phone_number_comparation' variable is set to false. However, I am having trouble decompiling the 'framework.jar' file.
I have copied the 'framework.jar' file from my phone and opened it in a Jave decompiler. However, all I am presented with is the following:
Code:
META-INF
MANIFEST.MF
preloaded-classes
(See attached image)
In the xda post it says the following:
II) Check for and fix MIN_MATCH constant in telephony framework
1) Decompile framework.jar
2) Open smali/android/telephony/PhoneNumberUtils.smali
3) Search for MIN_MATCH constant and set it to 0x7
Click to expand...
Click to collapse
...but I don't appear to have that in mine.
Am I doing something wrong.
If anyone could offer any advice I would be very grateful.
Many thanks
Russell
P'S. I tried replying about this in the original xda post itself but I don't have authorisation to post in the developers section so I thought I would try here instead.

So, is no one able to help me with this then. All the searching I've done indicates that when I decompress 'framework.jar' then I should have 'classes.dex' inside. However I don't have that.
Can anyone explain to me why this is please before I pull the rest of my hair out.
Thanks

Russell_S said:
So, is no one able to help me with this then. All the searching I've done indicates that when I decompress 'framework.jar' then I should have 'classes.dex' inside. However I don't have that.
Can anyone explain to me why this is please before I pull the rest of my hair out.
Thanks
Click to expand...
Click to collapse
You have to use apktool and apply the command to decompile..
eg.
apktool d framework.jar
this in cmd, will create a new folder named framework.jar.out, then you navigate inside this folder were all the smali's files are etc..
PS. you can't open framework.jar in java decompile, you can open framework.jar extract the classes.dex then use dex2jar tool and turn it back into framework_classes.jar this is the one that can be viewed with java decompilers

Does annybody know....
Where i can find a clean Settings.apk for the GE 4.3 (i9505) that i can mod? (Decompile/Recompile)

frapedas said:
You have to use apktool and apply the command to decompile..
eg.
apktool d framework.jar
this in cmd, will create a new folder named framework.jar.out, then you navigate inside this folder were all the smali's files are etc..
PS. you can't open framework.jar in java decompile, you can open framework.jar extract the classes.dex then use dex2jar tool and turn it back into framework_classes.jar this is the one that can be viewed with java decompilers
Click to expand...
Click to collapse
Thanks for the help. I'm away this week but I'll give it a go next weekend when I'm back.
Sent from my GT-I9100 using Tapatalk 2

Force it into submission
be rough with it
Sent from my HTC One using Tapatalk 4

Russell_S said:
then I should have 'classes.dex' inside. However I don't have that.
Click to expand...
Click to collapse
Are you using a deodexed ROM?

XperienceD said:
Are you using a deodexed ROM?
Click to expand...
Click to collapse
You've got me there. How would I find out?
Sent from my GT-I9100 using Tapatalk 2

Ok, I'm gradually learning here. Having done a bit of research it appears that my rom is odexed (I have .apk and .odex files in my /system/app folder).
I'm assuming then that this will scupper my plans to edit my framework.jar file.
Sent from my GT-I9100 using Tapatalk 2

Russell_S said:
I'm assuming then that this will scupper my plans to edit my framework.jar file.
Click to expand...
Click to collapse
No no, you just need to deodex your ROM then, luckily for you I've got a little thread here - [Info/How-To/Tools] Deodexing Made Easy... - which will help you with that, obviously ignore the Xperia Z Users part and give the rest a read.

XperienceD said:
No no, you just need to deodex your ROM then, luckily for you I've got a little thread here - [Info/How-To/Tool] Deodexing Made Easy... - which will help you with that, obviously ignore the Xperia Z Users part and give the rest a read.
Click to expand...
Click to collapse
Thanks very much for that, I shall digest the information while I'm on holiday ready to act on it when I get back.
I'll let you know how I get on.
Sent from my GT-I9100 using Tapatalk 2

Related

[Q] What is VRTHEME??

I saw lots of theme which has this in their title. but I can't find any guide or tutorial about this. So, what is this? how could I use it? has it any benefit over usual "decompile/theme/recompile/replace"ing an apk?Is there any script to implement it like apktool?
Its the universal theme flasher created by Villain ROM.
As for all your other questions I'm not sure.
Sent from my GT-I9100 using XDA
thanks,
correct me if I'm worng pls.
Universal theme flasher, is kind of template. and I should extract compiled PNGs and xmls from apk file and paste theme into that. and for editing theme, I need to paste and replace those files into the apk file and then decompile that apk.
then what should I do if I changed something in "values" folder? cause it just appears in decompiled apps and It can't be seen in a compiled app.
sam5154 said:
thanks,
correct me if I'm worng pls.
Universal theme flasher, is kind of template. and I should extract compiled PNGs and xmls from apk file and paste theme into that. and for editing theme, I need to paste and replace those files into the apk file and then decompile that apk.
then what should I do if I changed something in "values" folder? cause it just appears in decompiled apps and It can't be seen in a compiled app.
Click to expand...
Click to collapse
I think after compiling the apk, you should copy the "classes" and the other file *-) I can remember its name, and add them there.
Am not sure *-) I had this question too but I thought abt trying it first and if it doesnt work I wld ask. I have no time to try I have exams
Ba7rani123 said:
I think after compiling the apk, you should copy the "classes" and the other file *-) I can remember its name, and add them there.
Am not sure *-) I had this question too but I thought abt trying it first and if it doesnt work I wld ask. I have no time to try I have exams
Click to expand...
Click to collapse
classes.dex is for the smali that has been edited if there was any.
I assume that if the xmls were edited and they point to new PNG images/objects then the resources has been changed. I would say that in this case you would need to have an updated resources file for these adjustments? This could be pulled from your newly compiled .apk that you want to base your flashable theme off?
I am unsure if resources needs to be updated though for certain? I have flashed in the past new xmls and they worked fine, however these were not referencing any new sources or images...so my thoughts are that these mods I made didn't require this additional file?? I could be wrong. I really should read the thread about it here on XDA. I did a long time ago, but have come a long way since then.
I diverse. Try using it without new resources file and see what happens?
You may also like to looking into Morphing as well (very similar concept).
James
i would also like a explanation to what vrtheme is, all i know is that when i flash it IT NEVER WORKS!
xdarkmario said:
i would also like a explanation to what vrtheme is, all i know is that when i flash it IT NEVER WORKS!
Click to expand...
Click to collapse
is your ROM deodexede? It only works on deodexed Rom?
Sent from my GT-N7100 using Tapatalk 2
sam5154 said:
is your ROM deodexede? It only works on deodexed Rom?
Sent from my GT-N7100 using Tapatalk 2
Click to expand...
Click to collapse
yep, both my phones i tried them on are deodexed.

[team d.i.r.t] how to properly de/recompile apks on all android versions!

There is now a new person taking over the apktool project, his name is ibotpeaches.. His apktool works with every android version up to date.. This thread will now be a basic guide on how to use apktool
iBotPeaches' APKTOOL THREAD
What I do is create a folder to work in and call it for example:
Code:
c:\apktools
1) Take the apktool.jar from ibot's OP and the modded aapt he provided and place them in the folder.
2) You will need to pull the framework-res.apk from the rom you are working on. Copy it to c:\apktools.
4) Open a command window and navigate to your apktool folder
cd c:\apktools
5) We now need to install the framework and type the following:
java -jar apktool.jar if framework-res.apk
If you are decompiling any framework other that AOSP ie: sense, touchwiz, ect you will have to install the framework and systemui.apk for them as well, ie: for miui it's framework-miui-res.apk
You only need to do this once, unless you are working on a different Rom, then you will need to copy the framework-res.apk from that Rom and run the above command again.
6) We can now decompile framework-res with apktool
java -jar apktool.jar d framework-res.apk (here you can add the folder you'd like to have your extracted apk save to)
it will create a folder by the name of the .apk or .jar by default but say you wanted it just to go to a folder called "frameres" (just to be a lil more convienent while typing your command would look like this
java -jar apktool.jar d framework-res.apk frameres
the d option stands for decompile and you will now see a folder under c:\apktools\frameres (in my case, yours will be whatever your output folder's name is). Here is all the output and can make any changes you want, and then can recompile. I would test to make sure you can recompile before making a lot of changes though.
6) We will now compile framework-res.apk
java -jar apktool.jar b frameres NEWframework-res.apk
I always put something different in the new apk name for instance i always put NEWapk.apk some people use numbers like apk1.apk ect.. whatever you feel is comfortable for you.. But once you enter the command it will take a few minutes and it should complete without any errors.
7) Once it is done compiling you will need to go to c:\apktools\ and you will now see your new framework-res.apk in my case titled "NEWframework-res.apk"
IMPORTANT LAST STEP
Once you recompile the apk you're going to wanna use 7-zip to open both the original UNMODDED apk and the newly compiled apk
you wanna copy the META-INF folder and the AndroidManifest.xml from the ORIGINAL into the NEWLY compiled apk otherwise your apk won't work
Just remember to copy any apk you want to decompile right into the root of c:\apktools, run the decompile command and it will create a folder of the output that has the same of the apk file.
Thanks for sharing and posting this! (I know there are similar threads scattered all over, but it's nice to see it fresh again). I am still on GB, but eagerly awaiting the update for ICS... Moto & AT&T - not quite a dynamic duo unfortunately...
And just to clarify a few things - what about the oem framework files, like moto/blur, touchwiz, etc..? I believe some apks require those to also be installed with apktool... and I've also read somewhere to install SystemUI.apk as well.. not sure if they are needed, but it doesn't hurt.
And at the end you mention for any xml edits to just copy the resources.arsc over to the old apk - but I think that is only for xml edits in the /values folders, that's what gets tucked in to the resources.arsc - one would still need to copy the edited and compiled xml from any other folder (like layout, anim, etc..), along with any other res changes...
Again, this is just my understanding, and I have my own ways that work well for me so far... and thanks for taking the time to put this thread together. Maybe it will serve as a sort of question and answer thread on the subject, as I have also seen many having troubles/questions..
Sent from my phone's mind
Okay fully got it but download link is broken can anyone share it with us if he has?
Regards
Sent from my GT-I9000 using Tapatalk 2
dreamer94 said:
Okay fully got it but download link is broken can anyone share it with us if he has?
Regards
Sent from my GT-I9000 using Tapatalk 2
Click to expand...
Click to collapse
It's working fine for me.
alteredlikeness said:
Thanks for sharing and posting this! (I know there are similar threads scattered all over, but it's nice to see it fresh again). I am still on GB, but eagerly awaiting the update for ICS... Moto & AT&T - not quite a dynamic duo unfortunately...
And just to clarify a few things - what about the oem framework files, like moto/blur, touchwiz, etc..? I believe some apks require those to also be installed with apktool... and I've also read somewhere to install SystemUI.apk as well.. not sure if they are needed, but it doesn't hurt.
And at the end you mention for any xml edits to just copy the resources.arsc over to the old apk - but I think that is only for xml edits in the /values folders, that's what gets tucked in to the resources.arsc - one would still need to copy the edited and compiled xml from any other folder (like layout, anim, etc..), along with any other res changes...
Again, this is just my understanding, and I have my own ways that work well for me so far... and thanks for taking the time to put this thread together. Maybe it will serve as a sort of question and answer thread on the subject, as I have also seen many having troubles/questions..
Sent from my phone's mind
Click to expand...
Click to collapse
Yes your right for htc , Motorola, touchwiz and some others you do have to install the appropriate frameworks and in those cases systemui as well but most of them do not have 4.0.4 if I'm not mistaken.. I know HTC is on 4.0.3 but that's all I can truly account for.. but about copying resources.arsc is only if you made XML edits in the values folders, it does state that if other changes were made you'd have to copy those as well.. I will clarify that better thanks for pointing that out
Sent from my Nexus S 4G using xda premium
evol4g said:
Yes your right for htc , Motorola, touchwiz and some others you do have to install the appropriate frameworks and in those cases systemui as well but most of them do not have 4.0.4 if I'm not mistaken.. I know HTC is on 4.0.3 but that's all I can truly account for.. but about copying resources.arsc is only if you made XML edits in the values folders, it does state that if other changes were made you'd have to copy those as well.. I will clarify that better thanks for pointing that out
Sent from my Nexus S 4G using xda premium
Click to expand...
Click to collapse
Yea, Moto & Verizon just started last weekend - my buddy with a RAZR got the 4.0.4 update. I had a chance to do a system dump right away, then I decompiled the homescreen.apk just to take a look (I installed all 4 .apks in to apktool as I listed above for his system).
But, after I decompiled homescreen.apk I noticed that there were broken 9patch files already!! Before I even touched it. And that obviously messes up the compiling process - so I had to correct 6 or so broken .9.pngs - broken by Moto or Verizon, I can only assume - and after I repaired them everything compiled normally..
Just a heads-up that the "professional" devs mess up things also - and broken .9.pngs are often the cause for compiling errors..
Well, this is very handy.
I'd thought I'd chip in and say that resources.arsc often needs to be compressed at the right rate as well. If it's not at 'store', in other words if the file in the apk is smaller than normal, the app might not work correctly.
Thanks for the useful information! Here is an archive of batch files that simplify the process. Enough to drag needed file or folder with mouse at appropriate batch file:
apktool-if.cmd - installation of framework-res, SystemUI, etc.
apktool-d-1.4.2.cmd - decompiling with apktool.jar.1.4.2.
apktool-d-1.4.3.cmd - decompiling with apktool.jar.1.4.3.
apktool-b.cmd - building.
Correct version of apktool is selected automatically.
Link: ApkTools-ICS-Simple.rar
Thanks for sharing this info. I know a lot of people have been frustrated lately getting apks to properly decode and rebuild in ICS.
I took your great instructions and refined them a bit to reduce the workflow, having to rename the apktool.jar between decoding and building. You can download what I am using here.
First register framework-res by placing the framework-res.apk from your rom into the extracted apktool zip directory, then execute 0-FRAMEWORK-IF.BAT:
Code:
C:\Test\Test1.4.2-1.4.3>0-FRAMEWORK-IF.bat
I: Framework installed to: C:\Users\Derek\apktool\framework\1.apk
Next decode the apk, 1-DECODE.BAT SystemUI.apk . A new output sub-directory will automatically be created based on the apk name (SystemUI.apk_out):
Code:
C:\Test\Test1.4.2-1.4.3>apktool-1.4.2.bat d SystemUI.apk ./SystemUI.apk_out
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\Derek\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
Make your edits and build. 2-BUILD.BAT SystemUI.apk:
Code:
C:\Test\Test1.4.2-1.4.3>2-BUILD.bat SystemUI.apk
C:\Test\Test1.4.2-1.4.3>apktool-1.4.3.bat b -f -d SystemUI.apk_out
I: Smaling...
I: Building resources...
I: Building apk file...
Download zip package
a-id said:
Thanks for the useful information! Here is an archive of batch files that simplify the process. Enough to drag needed file with mouse at appropriate batch file:
apktool-if.cmd - installation of framework-res, SystemUI, etc.
apktool-d-1.4.2.cmd - decompiling with apktool.jar.1.4.2.
apktool-d-1.4.3.cmd - decompiling with apktool.jar.1.4.3.
apktool-b - building.
Correct version of apktool is selected automatically.
Link: ApkTools-ICS-Simple.rar
Click to expand...
Click to collapse
Awesome! Looks like we had the same idea in mind!
myn said:
Awesome! Looks like we had the same idea in mind!
Click to expand...
Click to collapse
It's not my merit, I just edited files a bit...
a-id said:
It's not my merit, I just edited files a bit...
Click to expand...
Click to collapse
Awesome thank you guys both, seriously the lack of support for the editing of 4.0.4 apks was really limiting the possibilities of ics, nice to see support from you guys
Sent from my Nexus S 4G using Tapatalk 2
Originally Posted by a-id
It's not my merit, I just edited files a bit...
Click to expand...
Click to collapse
Awesome thank you guys both, seriously the lack of support for the editing of 4.0.4 apks was really limiting the possibilities of ics, nice to see support from you guys
Sent from my Nexus S 4G using Tapatalk 2
Click to expand...
Click to collapse
Apktool and ICS haven't been friends for ages..but there's a new version out now. Head here:
http://forum.xda-developers.com/showthread.php?p=28366939#post28366939
This is designed to work with most ICS files. Some Sense files don't decompile properly but that's something HTC have done. That's nothing we can do about it.
Ticklefish said:
Apktool and ICS haven't been friends for ages..but there's a new version out now. Head here: http://forum.xda-developers.com/showthread.php?t=
This is designed to work with most ICS files. Some Sense files don't decompile properly but that's something HTC have done. That's nothing we can do about it.
Click to expand...
Click to collapse
Well that link doesn't work
Sent from my Nexus S 4G using Tapatalk 2
evol4g said:
Well that link doesn't work
Sent from my Nexus S 4G using Tapatalk 2
Click to expand...
Click to collapse
Yeah, the app didn't copy/paste correctly. I've updated the post.
Decompile Contacts.apk
I am trying o decompile any of the contacts.apk, logsprovider.apk or mms.apk to figure out a way to remove the SMS from call logs...anyone with an ideea how to accomplish this mission?
I have SGS2 with the new ICS 4.0.4 , XXLQ5
nice! thanks for redoing guide a guide like this!
---------- Post added at 12:41 AM ---------- Previous post was at 12:38 AM ----------
cristeaflorin2000 said:
I am trying o decompile any of the contacts.apk, logsprovider.apk or mms.apk to figure out a way to remove the SMS from call logs...anyone with an ideea how to accomplish this mission?
I have SGS2 with the new ICS 4.0.4 , XXLQ5
Click to expand...
Click to collapse
your going to need to provide more info about your setup... custom rom or stock rom? and have you google'd this question yet?
edit:
ive found this app, will it work for you? Call Log & SMS Clear
hmmm .. this is work for ICS 4.0.3 sir ??
Hmmmm using my easyapktool and decompiling & recompiling for ICS seems fine. I'm using the modded apktool from wanam...
Not working for odexed ROMS
da-pharoah said:
nice! thanks for redoing guide a guide like this!
---------- Post added at 12:41 AM ---------- Previous post was at 12:38 AM ----------
your going to need to provide more info about your setup... custom rom or stock rom? and have you google'd this question yet?
edit:
ive found this app, will it work for you? []
Click to expand...
Click to collapse
That ROM is fully stock and, ofcourse, odexed.It is rooted...i have google it for more than a week and tried all methods but nothing worked.That application u mentioned is doing the job(maybe) but manually.What i want is to find a method to remove from start the sms from call log, without any other further action.
I moved from that ROM to this one :WanamLite ICS UHLPS V12.2 Android 4.0.3 Stable Blue ICS & Stock Themed ...deodexed and he replaced the default option "View by - All logs" with "View by - All calls".Still not what I was looking for but is better than the stock.

[Q] Editing Mms.apk on Korean phone

Hi all,
I have a new Korea phone which I decompiled the Mms.apk and edited the xml to allow sending more than 160 chars.
On my first attempt to push it back to system, it wouldn't install. I was thinking maybe the signature was altered so I copied the compiled xml files into the original apk file and push it back into the system and this time it installed however sms is still limited to 80 chars.
My question now is that what are the other apk files that could affect sms settings and what other settings or files in the Mms.apk did I missed?
Sent from my IM-A860K using xda premium
Leechoonhwee said:
Hi all,
I have a new Korea phone which I decompiled the Mms.apk and edited the xml to allow sending more than 160 chars.
On my first attempt to push it back to system, it wouldn't install. I was thinking maybe the signature was altered so I copied the compiled xml files into the original apk file and push it back into the system and this time it installed however sms is still limited to 80 chars.
My question now is that what are the other apk files that could affect sms settings and what other settings or files in the Mms.apk did I missed?
Sent from my IM-A860K using xda premium
Click to expand...
Click to collapse
Did you copy all the xml files only the mainfest and meta inf is to be copied
More over this cannot be achieved by xml modding you need mod smali files or preferably compile Mms.apk from its source editing required filed
Sent from my GT-S5302 using Tapatalk 2
Hit Thanx Button if i helped you!
sak-venom1997 said:
Did you copy all the xml files only the mainfest and meta inf is to be copied
More over this cannot be achieved by xml modding you need mod smali files or preferably compile Mms.apk from its source editing required filed
Sent from my GT-S5302 using Tapatalk 2
Hit Thanx Button if i helped you!
Click to expand...
Click to collapse
Basically I decompiled the Mmk.apk and I edited the xml and then recompile it again but it didnt want to be installed so I just copy the compiled xml into the original apk file and push it back into the system.
Compiling from source means I gotta get hold of a AOSP mms.apk source file and compile it from there?
Leechoonhwee said:
Basically I decompiled the Mmk.apk and I edited the xml and then recompile it again but it didnt want to be installed so I just copy the compiled xml into the original apk file and push it back into the system.
Compiling from source means I gotta get hold of a AOSP mms.apk source file and compile it from there?
Click to expand...
Click to collapse
Things like this are not controlled by xml files they are done within the code so grab a aosp source if you know java or mod the smali files
Sent from my GT-S5302 using Tapatalk 2
Hit Thanx Button if i helped you!
sak-venom1997 said:
Things like this are not controlled by xml files they are done within the code so grab a aosp source if you know java or mod the smali files
Sent from my GT-S5302 using Tapatalk 2
Hit Thanx Button if i helped you!
Click to expand...
Click to collapse
Thanks. Modded the smali but still no go and it seems that it is the framework.jar that is needed to be changed but that's a different ball game so probably I might just try to port cm over to my device and solve everything in one go.
Sent from my IM-A860K using xda premium

[Q] How to change the list on press action or bg in Xperia U devices?

Hi guys, I'm fairly new to this but I wanted to know how I can change the list pressed animation style in Xperia U? I mean the white background glow on pressing and holding any list button in menus or tabs or buttons, for example see the following photo (attachments), how the background of the notification has turn to white (fading).
I thought there might be a. 9.png file for that, but when I started searching for in the drawable folder of framework-res.apk, I wasn't able to find it?
So I wanna know that am I searching wrongly or there is no such file and just a xml code which I'm not able to get my hands on because of lack of my knowledge of decompiling the apks. I tried decompiling it by apktool but it won't budge. Also to edit pngs I am using a simple technique (posted by a xda user, sorry for not recalling your name but thanks) that is to just open or extract the roms through 7zip and then just copy them back to the respective apk file. This seems to be working as I was able to create my own lockscreen. So please help me in finding where I'm going wrong.
Thanks in advanced...
You must decompile the framework-res.apk and then, search in /drawable-hdpi folder the image. Its name is notification-normal-bg.9.png or something like that. Edit it with photoshop, and, when you have all that you want, compile the framework-res.apk and change it in your phone. Do a backup before do anything.
Enviado desde mi ST25i usando XDA Premium HD app
Slash137 said:
You must decompile the framework-res.apk and then, search in /drawable-hdpi folder the image. Its name is notification-normal-bg.9.png or something like that. Edit it with photoshop, and, when you have all that you want, compile the framework-res.apk and change it in your phone. Do a backup before do anything.
Enviado desde mi ST25i usando XDA Premium HD app
Click to expand...
Click to collapse
First of all thanks for your advice, but as it turns out the Sony isn't using that file?? And also I just did it with my normal method (described before), so I guess it might be a problem that I'm not decompiling it, but as it turns out I don't know exactly how to. So can you suggest me a Guide or something like that through which I can learn to do it without any problems...?? Because last I time tried it, I got a failed app! Please help, thanks in advance...
divinemamgai said:
First of all thanks for your advice, but as it turns out the Sony isn't using that file?? And also I just did it with my normal method (described before), so I guess it might be a problem that I'm not decompiling it, but as it turns out I don't know exactly how to. So can you suggest me a Guide or something like that through which I can learn to do it without any problems...?? Because last I time tried it, I got a failed app! Please help, thanks in advance...
Click to expand...
Click to collapse
I have successfully figured out the first part of the problem, the sony uses the .png starting with semc... So I just searched for semc_list_.... And found what I was looking for. But still how to decompile system apps in Xperia based devices succesfully..? Please someone..?
divinemamgai said:
I have successfully figured out the first part of the problem, the sony uses the .png starting with semc... So I just searched for semc_list_.... And found what I was looking for. But still how to decompile system apps in Xperia based devices succesfully..? Please someone..?
Click to expand...
Click to collapse
You must use APKTool for decompile. When you got it it's so easy to use.
Slash137 said:
You must use APKTool for decompile. When you got it it's so easy to use.
Click to expand...
Click to collapse
Yeah buddy, it was pretty easy. And I figured out what I was doing wrong before, I wasn't including framework-res.apk and SemcGenericUxp.apk in the tool to help it compile the resources! Thanks.
divinemamgai said:
Yeah buddy, it was pretty easy. And I figured out what I was doing wrong before, I wasn't including framework-res.apk and SemcGenericUxp.apk in the tool to help it compile the resources! Thanks.
Click to expand...
Click to collapse
Can you suggest me a method of porting roms perfectly...?
divinemamgai said:
Can you suggest me a method of porting roms perfectly...?
Click to expand...
Click to collapse
Don't worry GOT.. IT....

[Q] How to decompile and re-compile settings.apk for KitKat 4.4?

Ill start with my story...I want to modify settings.apk and put a few of my own apps in and change the appearance a little bit. I decompile with apk manager and i get res, smali, and AndroidManifest.xml. I don't get apktool.yml, i dont have a problem with this with a jb 4.3 settings.apk. I try to re-compile after edits but I can't because of the missing yml file. Does settings.apk for 4.4 have dependencies I require? Im running slimkat 4.4 for the SGH-T889. I just began learning and find this new world very intresting. Any help, tips, and advice would be amazing! Thank you for time
Ill start with my story...I want to modify settings.apk and put a few of my own apps in and change the appearance a little bit. I decompile with apk manager and i get res, smali, and AndroidManifest.xml. I don't get apktool.yml, i dont have a problem with this with a jb 4.3 settings.apk. I try to re-compile after edits but I can't because of the missing yml file. Does settings.apk for 4.4 have dependencies I require? Im running slimkat 4.4 for the SGH-T889. I just began learning and find this new world very intresting. Any help, tips, and advice would be amazing! Thank you for time
Click to expand...
Click to collapse
Have you installed framework-res.apk?
Sent from my GT-I9001 Gadget of Mass Destruction with CM11 using XDA Developers App.
hnkotnis said:
Have you installed framework-res.apk?
Sent from my GT-I9001 Gadget of Mass Destruction with CM11 using XDA Developers App.
Click to expand...
Click to collapse
I have place framework-res.apk in C:\Users\Droid\Desktop\APK-Multi-Tool\other folder. I took it out of the framework folder of the un zipped ROM. This seems to work with 4.3 without a problem. I'm stumped haha
TheStart101 said:
I have place framework-res.apk in C:\Users\Droid\Desktop\APK-Multi-Tool\other folder. I took it out of the framework folder of the un zipped ROM. This seems to work with 4.3 without a problem. I'm stumped haha
Click to expand...
Click to collapse
You need to install it before decompiling.
I suggest you to use "Android Multitool" (Do not confuse with APK Multitool).
It has nice GUI insterface.
Try with it.
There is menu to install framework.
hnkotnis said:
You need to install it before decompiling.
I suggest you to use "Android Multitool" (Do not confuse with APK Multitool).
It has nice GUI insterface.
Try with it.
There is menu to install framework.
Click to expand...
Click to collapse
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathNotExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java:244)
at brut.androlib.Androlib.build(Androlib.java:268)
at brut.androlib.Androlib.build(Androlib.java:258)
at brut.apktool.Main.cmdBuild(Main.java:236)
at brut.apktool.Main.main(Main.java:88)
Caused by: brut.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:103)
at brut.androlib.Androlib.readMetaFile(Androlib.java:240)
... 4 more
The system cannot find the file specified.
The system cannot find the file specified.
TheStart101 said:
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathNotExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java:244)
at brut.androlib.Androlib.build(Androlib.java:268)
at brut.androlib.Androlib.build(Androlib.java:258)
at brut.apktool.Main.cmdBuild(Main.java:236)
at brut.apktool.Main.main(Main.java:88)
Caused by: brut.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:103)
at brut.androlib.Androlib.readMetaFile(Androlib.java:240)
... 4 more
The system cannot find the file specified.
The system cannot find the file specified.
Click to expand...
Click to collapse
See these are why tools like APKMulitool are not that friendly.. My suggestion to you is Google "apktool" find the Google developers site, download it.. Place all files in folder on C:\ and name it apktool..open cmd prompt at that destination..so it would be C:\apktool, then type in cmd prompt:
Code:
apktool if framework-res.apk
this installs the framework..
To decompile apk..place that apk in that folder then type in cmd prompt
Code:
apktool d settings.apk
to recompile..
Code:
apktool b settings
:thumbup:
Sent from my SCH-I605 using xda app-developers app
lacoursiere18 said:
See these are why tools like APKMulitool are not that friendly.. My suggestion to you is Google "apktool" find the Google developers site, download it.. Place all files in folder on C:\ and name it apktool..open cmd prompt at that destination..so it would be C:\apktool, then type in cmd prompt:
Code:
apktool if framework-res.apk
this installs the framework..
To decompile apk..place that apk in that folder then type in cmd prompt
Code:
apktool d settings.apk
to recompile..
Code:
apktool b settings
:thumbup:
Sent from my SCH-I605 using xda app-developers app
Click to expand...
Click to collapse
Sia, I have tried that to my friend. I wonder despite as badly as i wqant to learn if i should just surrender, and go back to useing cheat engine on facebook games :/
TheStart101 said:
Sia, I have tried that to my friend. I wonder despite as badly as i wqant to learn if i should just surrender, and go back to useing cheat engine on facebook games :/
Click to expand...
Click to collapse
Post a screen shot of you installing framework.. What ROM are you decompiling this from?
The problem I think is resulting from framework not installing properly..
Sent from my SCH-I605 using xda app-developers app
I have uploaded framework and setting apk, Maybe one of you can try to decompile it and if it works tell me what kind of environment you have have set up?
TheStart101 said:
I have uploaded framework and setting apk, Maybe one of you can try to decompile it and if it works tell me what kind of environment you have have set up?
Click to expand...
Click to collapse
That won't do you any good lol.. Then how will you recompile BC u won't be able too..just post the screenshot of your framework installing
lacoursiere18 said:
That won't do you any good lol.. Then how will you recompile BC u won't be able too..just post the screenshot of your framework installing
Click to expand...
Click to collapse
Your right, but I'm curious if maybe i messed something up, i am far from dev lol. Any ways it was 1mb over the threshold lol
danm captcha ha
lacoursiere18 said:
That won't do you any good lol.. Then how will you recompile BC u won't be able too..just post the screenshot of your framework installing
Click to expand...
Click to collapse
Your right, but i am very far from dev. I wonder if maybe somethings outdated or wrong although i've been at this for days and nights trying to make a breakthrew, It works for jb 4.3 i just havent tested the recompiled app yet. Anyhow heres your screenshot...
TheStart101 said:
Your right, but i am very far from dev. I wonder if maybe somethings outdated or wrong although i've been at this for days and nights trying to make a breakthrew, It works for jb 4.3 i just havent tested the recompiled app yet. Anyhow heres your screenshot...
Click to expand...
Click to collapse
Thanks..OK its the framework..whatever ROM u got that from is not going to work.. So I suggest using a cm11 framework res or another of your choice.. I have seen this problem on nightly builds..
Sent from my SCH-I605 using xda app-developers app
lacoursiere18 said:
Thanks..OK its the framework..whatever ROM u got that from is not going to work.. So I suggest using a cm11 framework res or another of your choice.. I have seen this problem on nightly builds..
Sent from my SCH-I605 using xda app-developers app
Click to expand...
Click to collapse
Thank you very much, though I'm kind of sad now haha. The slimkat is the best rom I've come across and there is very little I want to mod. Any how looks like I'm off to download CM I appericate the help so much!!! I've been up for two day trying to figure this out lol
TheStart101 said:
Thank you very much, though I'm kind of sad now haha. The slimkat is the best rom I've come across and there is very little I want to mod. Any how looks like I'm off to download CM I appericate the help so much!!! I've been up for two day trying to figure this out lol
Click to expand...
Click to collapse
See that's even funnier.. I ran across this guy that had the same issue as you and it was the same EXACT rom..slimkat.. Don't know what the issue with is.. Maybe he doesn't want you modding his framework lol..I would post in that thread and ask
Sent from my SCH-I605 using xda app-developers app
lacoursiere18 said:
See that's even funnier.. I ran across this guy that had the same issue as you and it was the same EXACT rom..slimkat.. Don't know what the issue with is.. Maybe he doesn't want you modding his framework lol..I would post in that thread and ask
Sent from my SCH-I605 using xda app-developers app
Click to expand...
Click to collapse
I don't know it says it's open source and gives you the link to all the code on github ;o who knows, but for now I want to try again and hope i get somewhere this time Maybe the next rom you install will be one I made Again I thank you very much
Hi there,
sorry for warming up this thread. I don't find the Settings.apk:
C:\Program Files\_Android\SDK\platform-tools>adb devices
List of devices attached
59973133 device
C:\Program Files\_Android\SDK\platform-tools>adb pull /system/app/Settings.apk
remote object '/system/app/Settings.apk' does not exist​
So the device (Kyocera KC-S701 unrooted) seems to be connected, but no Settings.apk. Also not when using "adb shell" with "cd system/app" + ls.
A bunch of files but no Settings.apk.
Any ideas?

Categories

Resources