Hi... has anyone tried decompiling the framework-res.apk with success ?? I tried decompiling the apk and got the following error....
PHP:
I: Loading resource table...
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
Can't find framework resources for package of id: 2. You must install proper fra
mework files, see project website for more info.
One thing to note tho is i was able to successfully decompile a 2.3 GB framework-res.apk without any issues. Tried almost all apktool.jar files available on the forums.
Load semcgenericuxp.apk as the 2nd framework
Sent from my LT28h using xda premium
follow this thread
http://forum.xda-developers.com/showthread.php?t=1823223
You need to use SemcGenericUxpRes.apk also. But you will need to deodex it first as it has a odex file also. Infact you will need to deodex all the apks and frameworks if you want to use any mods.
Try using the latest ROM Kitchen to deodex the files. I had done the deodexing, but when I flashed the files into the phone I got a boot loop.
So if you find out any other method, let us all know.
Had installed the SemcGenericUxpRes.apk as well, but was still not working. Downloaded the latest apktool released y'day and was able to decompile the framework-res.apk.
Ganesh - As you said after installing the apk back in the phone i also get the boot loop. So no luck as of now. Will update in case i get anything thru.
Thanks.
Im new to this modifying apk files and whenever I try to decompile and recompile an apk (not a system apk) i was able to install it but when trying to use that apk I have a force close error. So those that happen normally or I am just doing something wrong?
deodexing ICS Ion Rom
Has any one successfully deodexed the ION Ics rom?
kapil4wm said:
Hi... has anyone tried decompiling the framework-res.apk with success ?? I tried decompiling the apk and got the following error....
PHP:
I: Loading resource table...
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
Can't find framework resources for package of id: 2. You must install proper fra
mework files, see project website for more info.
One thing to note tho is i was able to successfully decompile a 2.3 GB framework-res.apk without any issues. Tried almost all apktool.jar files available on the forums.
Click to expand...
Click to collapse
Just install all frameworks
Like
apktool if framework-res.apk
apktool if mediatek-res.apk
apktool if systemui.apk
anis_mulla said:
Just install all frameworks
Like
apktool if framework-res.apk
apktool if mediatek-res.apk
apktool if systemui.apk
Click to expand...
Click to collapse
You just bumped a 3 year old thread.
Related
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?
Guys i really got bored this apktool compile errors!
I tried a lot of apktool manager .jar aapt versions but result is same!
1.apk referred to my framework-res.apk on Xperia ARC!
I can decompile but can not compile..
Im searching xda and google for a result but theres not any chances..
JDK SDK(full from 4.1 to 1.5/6) JDR JAVA latest versions..
All I want to edit xml's from SystemUI.apk but with no changes cant compile too..
heres the log
I: Smaling...
Exception in thread "main" java.lang.NullPointerException
at org.jf.util.PathUtil.getRelativeFile(PathUtil.java :44)
at org.jf.smali.smaliFlexLexer.getSourceName(smaliFle xLexer.java:2569)
at org.antlr.runtime.CommonTokenStream.getSourceName( CommonTokenStream.java:345)
at org.antlr.runtime.tree.CommonTreeNodeStream.getSou rceName(CommonTreeNodeStream.java:106)
at org.antlr.runtime.tree.TreeParser.getSourceName(Tr eeParser.java:78)
at org.jf.smali.smaliTreeWalker.getErrorHeader(smaliT reeWalker.java:349)
at org.antlr.runtime.BaseRecognizer.displayRecognitio nError(BaseRecognizer.java:192)
at org.antlr.runtime.BaseRecognizer.reportError(BaseR ecognizer.java:186)
at org.jf.smali.smaliTreeWalker.smali_file(smaliTreeW alker.java:428)
at brut.androlib.mod.SmaliMod.assembleSmaliFile(Smali Mod.java:85)
at brut.androlib.src.DexFileBuilder.addSmaliFile(DexF ileBuilder.java:43)
at brut.androlib.src.DexFileBuilder.addSmaliFile(DexF ileBuilder.java:33)
at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuil der.java:64)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder. java:48)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder. java:35)
at brut.androlib.Androlib.buildSourcesSmali(Androlib. java:222)
at brut.androlib.Androlib.buildSources(Androlib.java: 179)
at brut.androlib.Androlib.build(Androlib.java:170)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
I tried decompilin with original apktool and compile back ICSapktool too. no success..
Im on GB but havng same errors on ICS too!
Update aapt.exe, grab it from your android sdk folder and place inside apktool dir, old aapt.exe has known bugs that prevent it from recompiling.
Sent from my LT18i using xda app-developers app
I have tried multiple guides and apktools with no luck....Please someone point me in the correct direction--->…I have been able to decompile, but no luck on recompile...
What errors are you getting? What OS do you have? Is this on a TW Stock based ROM or AOSP? Which apktool.jar/aapt.exe are you using?
Sent from my SPH-L710 using Tapatalk 2
Sry...windows 7....tw....systemUI.....upon recompile doesn't create new apk in apktool folder....caused by Java.io.File not found exception:....using the apktool found hereandroidforums.com/esteem-all-things...properly-decompile-recompile-aps-apktool.html
Use this apktool and aapt.exe
http://forum.xda-developers.com/showthread.php?t=1755243
Make sure you rename that jar to apktool.jar and place both the jar and exe in your apktool folder
Next, go to C:\User\Owner\apktool\framework and delete whatever resource apk's are in there
Next, get the framework-res.apk and twframework-res.apk from whatever ROM your working on and place them in your apktool folder
CD that apktool folder, after you cd type
apktool if framework-res.apk
apktool if twframework-res.apk
Decompile your SystemUI.apk again, make edits, recompile
Sent from my SPH-L710 using Tapatalk 2
Yes!!!!! :thumbup::thumbup::thumbup:
I am trying to take some images and suck from a CM10 ROM and transfer to my ROM (stock touchwiz). I can decompile just fine and edit the files. (drawable-xdpi). But when i re-compile it, i get this really long error.
I've tried the following:
*Installing Both Touchwiz Framework and Framework (From my ROM)
*using the command:
Code:
apktool b -s systemui systemui.apk
(It wont let me use that code)
*Reinstalling the framework multiple times
*I even tried recompiling a non-edited version. That doesnt even work.
Any Suggestions?
I am needing to edit this for my ROM. v7 update needs to be released soon...
Droid Premium said:
I am trying to take some images and suck from a CM10 ROM and transfer to my ROM (stock touchwiz). I can decompile just fine and edit the files. (drawable-xdpi). But when i re-compile it, i get this really long error.
I've tried the following:
*Installing Both Touchwiz Framework and Framework (From my ROM)
*using the command:
Code:
apktool b -s systemui systemui.apk
(It wont let me use that code)
*Reinstalling the framework multiple times
*I even tried recompiling a non-edited version. That doesnt even work.
Any Suggestions?
I am needing to edit this for my ROM. v7 update needs to be released soon...
Click to expand...
Click to collapse
Take out the "-s"
Sent from my SAMSUNG-SGH-I727 using Tapatalk 2
I got the problem like this can any one tell what is it?
:\Users\the'e_000\Deskto.\apktool>apktool b -f -d app-debu-unali_ned.apk
Ixception in thread "main" brut.androlib.AndrolibException: brut.directory.PathN
.t xist: ap too .ym
at brut.androlib.Androlib.readMetaFile(Androlib.jaua:164)
at brut.androlib.Androlib.build(Androlib.jaua:183)
at brut.androlib.Androlib.build(indrolib.jaua:176)
at brut.apktool.Main.cmdBuild(Main.jaua:228)
at brut.apktool.Main.main(Main.jaua:79)
aused by: brut.directory.PathNotExist: apktool.yml
at .rut..irectory...stractlirectory.get'i e nput '.stractPlrectory.java:
RaE
at brut.androlib.Androlib.readMetaFileandrolib.jaua:160>
4 more
Okay, so I am trying to get the navbar working on the Samsung Galaxy Note 3. Pretty much, I have a feeling that SystemUI is missing the icons for the navbar, which causes it to crash when the build.prop has the line "qemu.hw.mainkeys=0". The SystemUI has all the other files that were required for the S4 sysui mod, except for the icons. Being a noob at this, I went ahead and tried to add the icons, but my apk resulted in "System UI has stopped.".
So I decided maybe I am doing something wrong. So with Android Multitool for windows, I installed framework-res.apk, SystemUI.apk, and twframework-res.apk. Next I select the SystemUI.apk for decompiling, and decompile it. Then I simply select the decompiled directory (didn't modify anything!), and recompile it. I then open the new SystemUI.apk in 7z and add the META-INF and AndroidManifest.xml from the old SystemUI.apk. I then select the newly compiled SystemUI.apk for signing, then I sign it.
This is just decompiling, then building the same thing without modifications. SystemUI.apk before decompiling is 2.7 MB, the newly compiled one is only 2 MB! Something is missing out of the new one, but when I compare them in 7z, the only thing I can see that is different is the packed size; whereas the old one has files and folders that take up more space packed than the new one.
When I try doing this with just apktool and cmd, I get java errors like crazy, and the whole SystemUI.apk ends up only half decompiling.
Any idea what I am doing wrong?
Your best bet would be to copy the log to pastebin, and post it in the apktool support thread. Get more views there for sure. Which version of apktool are you using? Can you decompile and recompile anything? Also, if you want post your systemui up and i could see if I can get it to work, narrow it down to a problem on your end that way.
Sent from my SM-N900T using Xparent Skyblue Tapatalk 2
This is my first time doing this, so of course I make a noob mistake! I thought I had to sign ALL apks, but this is a SYSTEM app, and I don't sign it. All is well! Thanks for the reply. I also updated my apktool to 1.5.2, so that may have helped too.
all you have to do is add a + before the @ sign in the line that is giving you errors....umm depending if it is xml errors....
post the errors.....
gakio12 said:
This is my first time doing this, so of course I make a noob mistake! I thought I had to sign ALL apks, but this is a SYSTEM app, and I don't sign it. All is well! Thanks for the reply. I also updated my apktool to 1.5.2, so that may have helped too.
Click to expand...
Click to collapse
You don't need to sign it? I have also this problem. It gives me error that SystemUI has stopped.