I've successfully (or so I think) decompiled the S4 framework-res using apk-tool but for the life of me cant get it to recompile. Anyone had any success? I'm trying on the windows platform but don't have an issue using linux if that'll work.
Thanks.
Related
Hi,
I kno I've posted this in Q&A but maybe there is one super developer who can help the community getting there 4 lockscreens?!
Currently there only exist two types of lockscreen for the sgs i9000. AOSP or samsung glass.
For the Vibrant on the other hand, some people (untermensch ) have managed to get 4 lockscreen types:
AOSP lockscreen
Glass lockscreen
Puzzle lockscreen
Epic lockscreen
More info in this topic: http://forum.xda-developers.com/showthread.php?t=838260
It must definitly be possible to port this to a froyo rom on our SGS but it has taken me a lot of time allready and have not progressed one bit.
Frustrating indeed.
I managed to decompile the android.policy.jar using the command: java -jar baksmali.jar -x android.policy.jar -o android.policy
I added the epic classes from the source zip file in the earlier mentioned post.
I recompiled ((java -jar smali.jar android.policy -o classes.dex) it again and at least no errors at this stage.
Next I tried to decompile the framework-res.apk.
Got errors from apktool, saying that it can't decompile a nine patch image. The nine patch image does not contain a nine patch chunk (so not really a nine patch but png with .0.png extension?)
Tried a lot of things, options, google, this forum but failed to find a solution.
The same thing with the Settings.apk, same kind of error, no solution.
I must be doing something wrong here and have come to a point that I cant figure it out anymore.
I believe that a lot of people would be interested in this kind of thing and this is something achievable.
If somebody could take a shot at this modification please, it would be so awesome to have this for Darkys rom or Docrom v9.
ps.i do remember that some id's of resources need to change cause there are some duplicates somewhere but don't remember which one where.
The source codes that untenmensch provided contain all the information. Though haven't tried it, but it is comprehensive enough.
Try using apk manager to decompile the framework-res.apk, and you use baksmali and smali for the settings apk.
Use stock apk, instead of modded ones.
Sent from my GT-I9000 using Tapatalk
laboratik said:
Next I tried to decompile the framework-res.apk.
Got errors from apktool, saying that it can't decompile a nine patch image. The nine patch image does not contain a nine patch chunk (so not really a nine patch but png with .0.png extension?)
Click to expand...
Click to collapse
to decompile framework-res use this: http://forum.xda-developers.com/showthread.php?t=745189
I use it for my personal rom and works better.
apktool or apkmanager don't work better with samsung framework-res,because Samsung don't respect the standard image and there are a lot of errors that can you correct using draw9patch from SDK,but in this way must edit all pngs...and they are a lot.
texture said:
to decompile framework-res use this: http://forum.xda-developers.com/showthread.php?t=745189
I use it for my personal rom and works better.
apktool or apkmanager don't work better with samsung framework-res,because Samsung don't respect the standard image and there are a lot of errors that can you correct using draw9patch from SDK,but in this way must edit all pngs...and they are a lot.
Click to expand...
Click to collapse
doesnt really help as it still uses apktool. I tried to build the lockscreen mod for my ROM with it
just delete them.nothing will be happened
We all at least most of us edit and play with apk's and jar files...so i found the past days a great and i mean GREAT way to edit those files..the app you can used called Virtuous Ten Studio and is developed by Diamondback this app is a great editor for apk's...i just play with it right now to just for curiocity add the navigation bars like the thread by Rittik said...i just open the framework-res.apk to this application it decompiled it i edit what i have with the easy of a explorer...compiled it without any problems by itself and poof...ready to use...great app you who edit apk's should really look at it...the link to the app is here
[IDE] Virtuous Ten Studio - The next level of reverse engineering apps | 2.2.11.8210
Run on Windows only :crying:
Totally perfect i am uaing aince release. Plus if on windows 7 you can reopn kernels and edit some stuffs like boot logo and some scripts without installing the long procedure of Dxdia+cygwin..so its a win win software pretty nice for begginers who are having a problem decompiling and recompiling apk
Just a notice. Please dont try recompiling SystemUI with this..it doesnt recompile the smali correctly which makes the apk corrupt so for that please use apktool
-Rik[Rittik]
Hello people,
i need to decompile framework-res.apk of i9505. I have done it without problems but...recompile is a problem!! I have a lot of errors!
I have tried to simply decompile and rebuild without making changes and...yes...problem again!
I'm using latest omega rom
Help me!
Try to use the latest apktool version.If it doesn't help paste the log here you'll get more help.
Sent from my GT-I9500 using Tapatalk 4
Heya everyone
I am having trouble decompile the gravitybox apk file
I get the error that cant decompile arsc file
I dont want to do major edits I just wanna edit the apk to hide it from launcher which is editing the manifest of app
Please help me
Thanks
You haven't loaded the correct framework into apktool
Make sure you have at least jellybean framework-res.apk and load it into apktool using
If framework-res.apk
Here is cm10 framework
http://d-h.st/zAg
marcussmith2626 said:
You haven't loaded the correct framework into apktool
Make sure you have at least jellybean framework-res.apk and load it into apktool using
If framework-res.apk
Here is cm10 framework
http://d-h.st/zAg
Click to expand...
Click to collapse
Sir I have loaded the framework from my xperia c which runs on 4.2.2
I have used this a'll to decompile other apps but it give this error with apktool only
abhishekr700 said:
Sir I have loaded the framework from my xperia c which runs on 4.2.2
I have used this a'll to decompile other apps but it give this error with apktool only
Click to expand...
Click to collapse
Try using a different apktool version - I would use 1.5.2 unless decompiling kitkat/lollipop apks
Apktool 1.5.2
https://code.google.com/p/android-apktool/downloads/list
Apktool rc4
https://bitbucket.org/iBotPeaches/apktool/downloads
marcussmith2626 said:
Try using a different apktool version - I would use 1.5.2 unless decompiling kitkat/lollipop apks
Apktool 1.5.2
https://code.google.com/p/android-apktool/downloads/list
Apktool rc4
https://bitbucket.org/iBotPeaches/apktool/downloads
Click to expand...
Click to collapse
Sir I'm already using 1.5.2 version
I will give a try to rc4
But what does the error mean?
So, i'm new to this entire thing, i'm hoiping im in the correct section. Redirect me if im not. I appreciate any help I can get.
I must be half retarded or full retarded cause I cannot figure out what i'm doing wrong.
I'm trying apk studio, apk tool, like everything. All I want to do is change a package name of my apk, but I cannot decompile it.
I'm not fully understanding the framework-res.apk I guess. I found one online and tried using it but I keep getting errors while trying to install the framework, and I can't find any framework files via google. Where am I supposed to get the Framework???
THis is the error i'm getting trying to install the framework. Am I using wrong framework? All I want to do is decompile dang apk rename package and recompile, this is killing me. Here is the error i'm getting.
Code:
C:\android\apktool>apktool if framework-res.apk
Exception in thread "main" brut.androlib.AndrolibException: Could not decode ars
c file
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:52)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:39)
at brut.androlib.res.AndrolibResources.installFramework(AndrolibResource
s.java:685)
at brut.androlib.res.AndrolibResources.installFramework(AndrolibResource
s.java:667)
at brut.androlib.Androlib.installFramework(Androlib.java:642)
at brut.apktool.Main.cmdInstallFramework(Main.java:240)
at brut.apktool.Main.main(Main.java:87)
Caused by: java.io.IOException: Expected: 0x00000008, got: 0x00000000
at brut.util.ExtDataInput.skipCheckShort(ExtDataInput.java:56)
at brut.androlib.res.decoder.ARSCDecoder.readValue(ARSCDecoder.java:238)
at brut.androlib.res.decoder.ARSCDecoder.readEntry(ARSCDecoder.java:201)
at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:189
)
at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:157)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:11
4)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:78)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:47)
... 6 more
There are a lot more talented people than me but I'll try my best to help you.
1. Make sure your have updated your apktool.jar to the latest version if using apk studio
2. You need to install the correct framework res for the app your trying to decompile. If it is a Google app then you are best using the latest cm framework res.apk so grab it from any cm rom that is the latest release
3. If it is a vendor app like Samsung then you will need the tw framework res.apk and the framework res.apk from the rom the app is from.
If you can tell me the app you want to decompile and the rom it's from I should be able to tell you which frameworks to install
Sent from my SM-N910F using Tapatalk
Well its a custom made app from my buddy, he went away on vacation and my whole goal is to just change the package name so I can run 2 instances. He told me to go ahead, than left on holiday,
He is on stock lollipop, not custom rom.
Syntax323 said:
Well its a custom made app from my buddy, he went away on vacation and my whole goal is to just change the package name so I can run 2 instances. He told me to go ahead, than left on holiday,
He is on stock lollipop, not custom rom.
Click to expand...
Click to collapse
OK then you probably just need the frameworkres.apk from cm 12 to be honest
Sent from my SM-N910F using Tapatalk
Do you have a link to it? Id really appreciate it. I can't find that, maybe i'm looking in wrong place?