Unable to recompile SystemUI.apk using apktool - Samsung Galaxy Nexus

I have been using apktool 1.4.3 to decompile and recompile framework-res.apk without any problem.
However while I can decompile SystemUI.apk without problem, I cannot recompile it. The error is shown below.
I have done searching in this forum but still can't find the solution.
Please kindly help thanks.
Code:
C:\apktool>apktool b systemui.apk
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathN
otExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java:142)
at brut.androlib.Androlib.build(Androlib.java:159)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:
103)
at brut.androlib.Androlib.readMetaFile(Androlib.java:138)
... 4 more
C:\apktool>

Sorry if I posted on wrong sub-forum

Have you tried recompiling with version 1.4.2?

who_mike_d said:
Have you tried recompiling with version 1.4.2?
Click to expand...
Click to collapse
The error still exists thanks

nighos said:
The error still exists thanks
Click to expand...
Click to collapse
Check if you set the right path for java
Its sometimes in program files or programs x86
Check the portal news. There was an article of an modded apktool version specially for ics
I had the same errors like you
Had these path settings wrong

Leave off the .apk. To compile the SystemUI folder type 'apktool b SystemUI'. Its also case sensitive
Sent from my Galaxy Nexus using xda premium

nbeebe24 said:
Leave off the .apk. To compile the SystemUI folder type 'apktool b SystemUI'. Its also case sensitive
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
You are right! Such a stupid mistake
Thanks

nbeebe24 said:
Leave off the .apk. To compile the SystemUI folder type 'apktool b SystemUI'. Its also case sensitive
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
I didn't even notice he did that, that should fix the problem
Sent from my Galaxy Nexus using XDA

nighos said:
You are right! Such a stupid mistake
Thanks
Click to expand...
Click to collapse
No problem
Sent from my Galaxy Nexus using xda premium

i got the same error however i did not write ".apk" at the end of line.
Code:
C:\Users\x\Desktop\Apktool>apktool b SystemUI
I: Checking whether sources has changed...
I: Smaling...
Exception in thread "main" java.lang.NullPointerException
at org.jf.util.PathUtil.getRelativeFile(PathUtil.java:44)
at org.jf.smali.smaliFlexLexer.getSourceName(smaliFlexLexer.java:2922)
at org.antlr.runtime.CommonTokenStream.getSourceName(CommonTokenStream.j
ava:345)
at org.antlr.runtime.tree.CommonTreeNodeStream.getSourceName(CommonTreeN
odeStream.java:106)
at org.antlr.runtime.tree.TreeParser.getSourceName(TreeParser.java:78)
at org.jf.smali.smaliTreeWalker.getErrorHeader(smaliTreeWalker.java:372)
at org.antlr.runtime.BaseRecognizer.displayRecognitionError(BaseRecogniz
er.java:192)
at org.antlr.runtime.BaseRecognizer.reportError(BaseRecognizer.java:186)
at org.jf.smali.smaliTreeWalker.smali_file(smaliTreeWalker.java:451)
at brut.androlib.mod.SmaliMod.assembleSmaliFile(SmaliMod.java:85)
at brut.androlib.src.DexFileBuilder.addSmaliFile(DexFileBuilder.java:43)
at brut.androlib.src.DexFileBuilder.addSmaliFile(DexFileBuilder.java:33)
at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.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)
C:\Users\x\Desktop\Apktool>
just changed an icon inside drawable-hdpi

try using this set of apk tools. this works great for me with ICS & Jelly Bean. And also make sure your SDK's are up to date. extract the folder from the zip file and use normally.

jase33 said:
try using this set of apk tools. this works great for me with ICS & Jelly Bean. And also make sure your SDK's are up to date. extract the folder from the zip file and use normally.
Click to expand...
Click to collapse
same problem
i uploaded apk,
i decompile, change an icon from drawable, but cannot recompile.

Actually, You don't need to decompile/recompile to change the images, brother. Just change SystemUI.apk to SystemUI.zip. Extract it. Edit the images you want to change. Drag the edit images into the .zip and in compression level select store. It will replace the files in .zip. Change .zip back to .apk. Try it now, it should work.
PS: Selecting store means it doesn't compress the images, Dragging the edited images into the .zip, selecting store and stuff isn't necessary, but it helps sometimes is it makes mimimal changes to the apk.

Your also going to want to get the sources from your framework-res.apk, by this command.
apktool if framework-res.apk
This should/might clear up your recompiling errors.
Sent from my Galaxy Nexus using xda premium

Related

how do i compile a cm9 apk

i am having trouble compiling apk's from a cm9 rom. i can decompile just fine with apktool. can anyone point me in the right direction
Did you set the framework-res?
EDIT: apktool if framework-res.apk --I was kind of vague
yes i did setup the framework this is the errors im getting
c:\apktools>apktool b mms.apk
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathN
otExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java:142)
at brut.androlib.Androlib.build(Androlib.java:159)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:
103)
at brut.androlib.Androlib.readMetaFile(Androlib.java:138)
... 4 more
c:\apktools>
I remember with APKTool I always had to rename it.
By that I mean, apktool b MMS MMS2.apk
So apktool b FolderName NameOfAPK.apk
Try that. If not someone else will have to step in. A last resort would be to try APKManager or APK Multi-tool.
Update apktool and put it in the sdk platform tools folder then update the sdk with 4.0 stuff then run this command and keep an ics framework-res.apk in the same platform-tools folder.
apktool if framework-res.apk
Then proceed with
apktool d whateverapp.apk
This was the only way I could get it to work.
Sent from my SPH-D700 using Tapatalk
You might also want to try the version before the latest. I read that somewhere.
You can also try decompiling with the one version old one and compiling with the new one.
Sent from my SPH-D700 using Tapatalk
Did this work for you?
In Soviet Epic forum, clockworkmod root you!

[Q] Problems recompiling cm9 (themed) framework-res.apk

Attempting to toggle on the soft buttons in Nashdogg's CM9 b1 Blue Mist theme.
No problems decompiling and editing the appropriate xmls.
But I keep getting errors when I go to recompile the changes to the theme's framework.framework-res.apk. (apkmultitool and aapt).
Any suggestions?
Thx!
make sure you have the ics apktool.jar
Sent from a phone with kNOw CiQ k0nane...
Okay but that's not nashdoggs theme that's gooch's theme. Also try using apkmanager... let me get a link with my apk manager.
http://db.tt/EKvaxWIc
Once you unzip everything is in the folder in the other folder run the framework-if batch file then place the framework.apk in the place for modding. Open the script batch file choose the framework-res as your 0project [22] then decompile [9] edit it recompile [11] and it should work. Oh and the folder for editing appears in the project folder and the recompiled will appear in the modding folder name "unsignedFramework.apk". Oh and if it asks if its a system app hit n its not.
Sent from my SPH-D700 using xda premium
You can't recompile a themed framework. You need a clean framework
Sent from my Nexus S 4G using Tapatalk
GituSum said:
You can't recompile a themed framework. You need a clean framework
Sent from my Nexus S 4G using Tapatalk
Click to expand...
Click to collapse
you can compile themed frameworks with apktool, I didnt think so at first either.
Sent from a phone with kNOw CiQ k0nane...
Big Goron said:
Okay but that's not nashdoggs theme that's gooch's theme.
Sent from my SPH-D700 using xda premium
Click to expand...
Click to collapse
Totally meant gooch. Knew there was a g and an o in the name ;-)
Ton of fires today. Hope to test this out tomorrow.
Thanks alla yous for your suggestions!
sent from my fully armed and operational space phone
I can decompile/recompile the soft buttons modded apk, but get compile error (specified file is missing) when I decompile/recompile gooch's theme. (Not altering anything - just getting a control test)
Tomorrow, time permitting, ill take the apk from the rom and move each of the two modded apks' changes over.
Thanks for the download, Big G
sent from my fully armed and operational space phone
Is the error in red? What is the file its saying is missing? If its signedframework or unsignedframework.. ignore that its nothing.
Sent from my SPH-D700 using xda premium
Big Goron said:
Is the error in red? What is the file its saying is missing? If its signedframework or unsignedframework.. ignore that its nothing.
Sent from my SPH-D700 using xda premium
Click to expand...
Click to collapse
Heh -- wrote my message whilst walking the dog -- didn't want to misquote myself without specific examples.
But, yep -- all red
c:\android\apkmanager\other\..\projects\sb_framework-res.apk\res\values\public.xml:4536: error: Public symbol drawable/zoom_plate declared here is not defined.
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\ASCHIL~1\AppData\Local\Temp\APKTOOL8847823845691568917.tmp, -x, -S, c:\android\apkmanager\other\..\projects\sb_framework-res.apk\res, -M, c:\android\apkmanager\other\..\projects\sb_framework-res.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\ASCHIL~1\AppData\Local\Temp\APKTOOL8847823845691568917.tmp, -x, -S, c:\android\apkmanager\other\..\projects\sb_framework-res.apk\res, -M, c:\android\apkmanager\other\..\projects\sb_framework-res.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
Click to expand...
Click to collapse
Looks to be the pngs in the themed app. I ran #2 to optimize images, but that didn't do diddly.
Gonna look at Draw-9 patch later.

[Q]] Apktool/manager etc problem! Really bored !

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

[Q] Transparent status bar

Is it possible to make the status bar transparent, but not the drop down menu?
I've been looking for that on google for two days now, but no good results. I only saw paranoid android rom has this option, but I use CM10.
I don't know how to edit .apk's, so I'm basically looking for a mod that can be flashed or an already made SystemUI.apk for this phone.
slim bean able.
Sent from my One V using xda app-developers app
Like MIUI?
I'm sure I can use edits found on XDA. I don't think they'll work to good. APKtool barely works for me anymore
Sent from my HTC One V using Tapatalk 2
thestory101 said:
slim bean able.
Sent from my One V using xda app-developers app
Click to expand...
Click to collapse
I almost just finished customizing the cm10 rom for myself, so I don't want to have to erase it and re-do it all over again :/
Curiousn00b said:
Like MIUI?
I'm sure I can use edits found on XDA. I don't think they'll work to good. APKtool barely works for me anymore
Sent from my HTC One V using Tapatalk 2
Click to expand...
Click to collapse
I think MIUI has this feature, but I'm not quite sure. I did try to install MIUI last week, but it kept crashing, so I'm staying away from it. I do hope you can find something useful on xda
miui crashed? u mostly didn't do full wipe that's why..
Sent from my One V
paarthdesai said:
miui crashed? u mostly didn't do full wipe that's why..
Sent from my One V
Click to expand...
Click to collapse
I did a full wipe 3 times :/
But I also restored my apps and contacts/messages with titanium backup. I guess that's why it started crashing, since cm10 and miui data's are different.
Also, MIUI is a really nice rom
I'm actually using it's white/orange theme on cm10, even though it's a bit buggy
Only the transparent status bar is missing
Changing the status bar color would also help, if it can't be made transparent. If anybody has any tips on that :cyclops:
To in system/app/systemUI.apk decompile and in the files find all the XML files. U will need a good code reader (windows..notepad++,Linux green fish I think could be wrong. On android the BEST I found is Axel and droidcode). Find the super_stat file and in there is background="************" change to "#00000000" android. That is transparent. There is I a guide here on xda search it and read cause u need to edit a few more.
Sent from my PK7630000 using xda app-developers app
sbkjuggalo said:
To in system/app/systemUI.apk decompile and in the files find all the XML files. U will need a good code reader (windows..notepad++,Linux green fish I think could be wrong. On android the BEST I found is Axel and droidcode). Find the super_stat file and in there is background="************" change to "#00000000" android. That is transparent. There is I a guide here on xda search it and read cause u need to edit a few more.
Sent from my PK7630000 using xda app-developers app
Click to expand...
Click to collapse
Thanks for the suggestion. I tried it, but failed :/
When I decompiled the systemUI.apk it only gave me the "smali" file and no "res" as this guide says. And with Axel it told me that it fails to read XML input, the file may be malformed. I have no experience with decompiling whatsoever, so I have no idea what I'm doing wrong.
View attachment SystemUI.apk
I uploaded my systemUI.apk if you can take a look at it, and tell me what's wrong
OK XML files r located at systemui.apk/res/drawable
Just use pa man...cm and pa almost alike
Sent from my One V using xda premium
sbkjuggalo said:
OK XML files r located at systemui.apk/res/drawable
Click to expand...
Click to collapse
I've tried using the apktool and console, but it won't recompile the apk. Even if I change nothing it gives this error:
Code:
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: C:\Users\Jaka\Downloads\apktool\SystemUI\res/dr
awable-sw600dp
invalid resource directory name: C:\Users\Jaka\Downloads\apktool\SystemUI\res/dr
awable-sw600dp-hdpi
invalid resource directory name: C:\Users\Jaka\Downloads\apktool\SystemUI\res/dr
awable-sw720dp-hdpi
invalid resource directory name: C:\Users\Jaka\Downloads\apktool\SystemUI\res/la
yout-sw600dp
invalid resource directory name: C:\Users\Jaka\Downloads\apktool\SystemUI\res/la
yout-sw720dp
invalid resource directory name: C:\Users\Jaka\Downloads\apktool\SystemUI\res/la
yout-sw720dp-land
invalid resource directory name: C:\Users\Jaka\Downloads\apktool\SystemUI\res/la
yout-sw720dp-port
invalid resource directory name: C:\Users\Jaka\Downloads\apktool\SystemUI\res/va
lues-sw600dp
invalid resource directory name: C:\Users\Jaka\Downloads\apktool\SystemUI\res/va
lues-sw600dp-land
invalid resource directory name: C:\Users\Jaka\Downloads\apktool\SystemUI\res/va
lues-sw600dp-port
invalid resource directory name: C:\Users\Jaka\Downloads\apktool\SystemUI\res/va
lues-sw720dp
invalid resource directory name: C:\Users\Jaka\Downloads\apktool\SystemUI\res/va
lues-sw720dp-port
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\Jaka\AppData\Local\Temp\AP
KTOOL408005964997419481.tmp, -I, C:\Users\Jaka\apktool\framework\1.apk, -S, C:\U
sers\Jaka\Downloads\apktool\SystemUI\res, -M, C:\Users\Jaka\Downloads\apktool\Sy
stemUI\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\U
sers\Jaka\AppData\Local\Temp\APKTOOL408005964997419481.tmp, -I, C:\Users\Jaka\ap
ktool\framework\1.apk, -S, C:\Users\Jaka\Downloads\apktool\SystemUI\res, -M, C:\
Users\Jaka\Downloads\apktool\SystemUI\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more

[Q] Able to de and re compile framework-res.apk?

I was just wondering if anyone with the UAMDL software has been able to decompile and recompile the framework on here yet.
I have tried with the APK multi tool and the decompile works fine but when I try to recompile it errors our right away.
Anyone have any luck with this?
If so what tool did you use?
Yes I have.
Sent from my SGH-M919 using Tapatalk 2
I'd like to know this as well, and how people have been successful. I haven't had any luck installing framework-res.apk or recompiling a modified app. From my understanding, it's an issue with apktool and aapt that needs to be updated.
TheArtiszan said:
I was just wondering if anyone with the UAMDL software has been able to decompile and recompile the framework on here yet.
I have tried with the APK multi tool and the decompile works fine but when I try to recompile it errors our right away.
Anyone have any luck with this?
If so what tool did you use?
Click to expand...
Click to collapse
That and SystemUI.apk are both missing files needed for them to decompile and recompile right
evil..............out
elesbb said:
Yes I have.
Sent from my SGH-M919 using Tapatalk 2
Click to expand...
Click to collapse
Can you elaborate on what tools you used and how to set it up please?
I have been stuck trying to get this to work for over a week now.
Sent using xda premium.
evil1art said:
That and SystemUI.apk are both missing files needed for them to decompile and recompile right
evil..............out
Click to expand...
Click to collapse
There are ways for making it work though
TheArtiszan said:
Can you elaborate on what tools you used and how to set it up please?
I have been stuck trying to get this to work for over a week now.
Sent using xda premium.
Click to expand...
Click to collapse
I used the tool in my signature and you have to remove some layout paramaters in the xml files then recompile and copy the originals over to the newly compiled apk.
elesbb said:
There are ways for making it work though
I used the tool in my signature and you have to remove some layout paramaters in the xml files then recompile and copy the originals over to the newly compiled apk.
Click to expand...
Click to collapse
Im the one who figured out the missing style for the systemui
evil..............out
evil1art said:
Im the one who figured out the missing style for the systemui
evil..............out
Click to expand...
Click to collapse
Yeah so did I lol. Ive ran into that issue before and thats all you have to do to get around it.
elesbb said:
There are ways for making it work though
I used the tool in my signature and you have to remove some layout paramaters in the xml files then recompile and copy the originals over to the newly compiled apk.
Click to expand...
Click to collapse
We have our own modified apk manger works good
evil..............out
evil1art said:
We have our own modified apk manger works good
evil..............out
Click to expand...
Click to collapse
Ahhh. That makes life a lot easier lol. How did you modify it? Build it from source or edit the jar file?
elesbb said:
Ahhh. That makes life a lot easier lol. How did you modify it? Build it from source or edit the jar file?
Click to expand...
Click to collapse
Modified the original files and changed memory heap etc
evil..............out
Oh okay that makes sense.
I am editing the framework res apk
Making changes only to the arrays.xml file in the values folder.
Which styles should I be commenting out and then which file should I copy to the original?
I tried putting a + in front of a few lines based on the errors I was getting but that seemed to make it worse.
Sent using xda premium.
I think the arrays and other values xml get compiled into the resources file no?
Sent using xda premium.
TheArtiszan said:
I think the arrays and other values xml get compiled into the resources file no?
Sent using xda premium.
Click to expand...
Click to collapse
Everything in the values directory is found in your resources.arsc file in the apk.
Sent from my SGH-M919 using Tapatalk 2
Ah that makes sense.
The changes made for layouts, does that go into the same area though?
Just wondering if that might cause a problem since that is what I would want to move over.
Sent from my HTC VLE_U using xda premium
That is odd.
I can get this to decompile in apk multi tool but not Elesbb's GUI
I get the following error:
Tue 06/25/2013
0:46:56.39
Decompiling.. "C:\Users\Bill\APK GUI\framework-res.apk"
I: Loading resource table...
Exception in thread "main" brut.androlib.AndrolibException: Multiple resources: spec=0x010802f4 drawable/ic_ab_back_holo_dark, config=-hdpi
at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:65)
at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:58)
at brut.androlib.res.decoder.ARSCDecoder.readEntry(ARSCDecoder.java:197)
at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:166)
at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:131)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:106)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:83)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:49)
at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibResources.java:390)
at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.java:56)
at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.java:48)
at brut.androlib.Androlib.getResTable(Androlib.java:48)
at brut.androlib.ApkDecoder.getResTable(ApkDecoder.java:166)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:99)
at brut.apktool.Main.cmdDecode(Main.java:131)
at brut.apktool.Main.main(Main.java:68)
-----------------------------------------------------------------
Did I miss something.
Made some progress and decompiling ok now on a different computer.
If I add the + before the layouts would that cause operation issues?
I would like to know too.
Still having trouble.
What did you do too decompile?
Okay I can now get it to recompile adding the +layout to the xml files that were erroring in the compile log and only other change was made was to the arrays.xml file to enable bluetooth tethering like on the GS3 did.
however when I push it to the phone and chmod and try it I get a boot loop.
Did I do something wrong?
Am I supposed to copy out the resource.asrc from the file I compiled like a zip then add it to the original that I pulled using 7zip or something?
Any input would be greatly appreciated.
TheArtiszan said:
Okay I can now get it to recompile adding the +layout to the xml files that were erroring in the compile log and only other change was made was to the arrays.xml file to enable bluetooth tethering like on the GS3 did.
however when I push it to the phone and chmod and try it I get a boot loop.
Did I do something wrong?
Am I supposed to copy out the resource.asrc from the file I compiled like a zip then add it to the original that I pulled using 7zip or something?
Any input would be greatly appreciated.
Click to expand...
Click to collapse
Move the AndroidManifest.xml and Meta-INF folder from the original apk to the modified one.
Sent from my SGH-M919 using xda premium

Categories

Resources