[FIX] systemUI, framework-res, SecPhone compile error - AT&T Samsung Galaxy S 4 Android Development

This is for those having compiling issues with systemUI.apk and framework-res.apk and the error is a layout error. Here is what I did to fix it.
For example the error in framework-res that pops up: "@layout/keyguard_transport_control" which is in keyguard_screen_unlock_portrait.xml
Just change the line to "[email protected]/keyguard_transport_control"
I did this for all my systemUI and framework-res recompile errors and all is well. Much easier fix and less time consuming then other ways I've seen mentioned.
Errors recompiling SecPhone.apk
Example is this error:
Code:
C:\Users\shoman94\Desktop\ROMS\SHOstock-SGS4\SHOstock\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SecPhone\res\values-es\strings.xml:197: error: Multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute?
C:\Users\shoman94\Desktop\ROMS\SHOstock-SGS4\SHOstock\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SecPhone\res\values-es\strings.xml:198: error: Unexpected end tag string
To fix this error go to (SecPhone\res\values-es\strings.xml)
Go to line 197
This is the line with the error: Just remove what is highlighted red.
Code:
<string name="throttle_time_frame_subtext">"%1$d[COLOR="Red"]%[/COLOR] del ciclo transcurrido.
Próx período en %2$d días (%3$s)"</string>
I had 3 string.xml's that had this error
Hopes this helps anyone.

Thanks for posting this!
I rated the thread 5 stars!
Good info!

Nice job man, had to figure this out 2 nights ago. This would have saved me a headache
Sent from my SAMSUNG-SGH-I337 using Tapatalk 2

shoman94 said:
This is for those having compiling issues with systemUI.apk and framework-res.apk and the error is a layout error. Here is what I did to fix it.
For example the error in framework-res that pops up: "@layout/keyguard_transport_control" which is in keyguard_screen_unlock_portrait.xml
Just change the line to "[email protected]/keyguard_transport_control"
I did this for all my systemUI and framework-res recompile errors and all is well. Much easier fix and less time consuming then other ways I've seen mentioned.
Hopes this helps anyone.
Click to expand...
Click to collapse
Holy crap its show-nuff!!!!!!!!!!!!!!!!!!!!!

ktoonsez said:
Holy crap its show-nuff!!!!!!!!!!!!!!!!!!!!!
Click to expand...
Click to collapse
Easy tiger.... eeeeaaaasy....

ktoonsez said:
Holy crap its show-nuff!!!!!!!!!!!!!!!!!!!!!
Click to expand...
Click to collapse
Please keep this thread on topic.....
Lol...what's up man? You get yourself an s4?
Sent from my SAMSUNG-SGH-I337 using Tapatalk 2

ktoonsez said:
Holy crap its show-nuff!!!!!!!!!!!!!!!!!!!!!
Click to expand...
Click to collapse
Lol.... you're back!

shoman94 said:
Please keep this thread on topic.....
Lol...what's up man? You get yourself an s4?
Sent from my SAMSUNG-SGH-I337 using Tapatalk 2
Click to expand...
Click to collapse
Couldn't resist with the off topic . Yes, I just got it yesterday and can't wait to dive in whenever the bootloader gets unlocked :good: :highfive:. Good to see you over here.

Wow, you people look familiar
SGS4

This is like a who's who of all my favorite devs... this is gonna be an awesome phone

Best dev thread yet
Sent from my SAMSUNG-SGH-I337 using xda app-developers app

More offtopic, anyone manage to decompile SecTelephonyProvider.apk?

DocRambone said:
More offtopic, anyone manage to decompile SecTelephonyProvider.apk?
Click to expand...
Click to collapse
I'll check it out tonight.... I'll be posting what to fix on recompiling SecPhone.apk also.
Edit: I could only baksmali/smali SecTelephonyProvider.apk.
Sent from my SAMSUNG-SGH-I337 using Tapatalk 2

shoman94 said:
I'll check it out tonight.... I'll be posting what to fix on recompiling SecPhone.apk also.
Edit: I could only baksmali/smali SecTelephonyProvider.apk.
Sent from my SAMSUNG-SGH-I337 using Tapatalk 2
Click to expand...
Click to collapse
Yes, i getting same results:
Output from apk tools:
Code:
|2013-05-19 -- 5:06:13,38|
--------------------------------------------------------------------------
java version "1.7.0_21"
Java(TM) SE Runtime Environment (build 1.7.0_21-b11)
Java HotSpot(TM) 64-Bit Server VM (build 23.21-b01, mixed mode)
Could Not Find C:\Users\Admin\Desktop\S4_Tools\Apk Manager\place-apk-here-for-modding\../place-apk-here-for-modding/signedSecTelephonyProvider.apk
Could Not Find C:\Users\Admin\Desktop\S4_Tools\Apk Manager\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedSecTelephonyProvider.apk
I: Baksmaling...
I: Loading resource table...
Exception in thread "main" java.lang.NullPointerException
at brut.androlib.res.decoder.ARSCDecoder.addMissingResSpecs(ARSCDecoder.java:326)
at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:138)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:110)
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:491)
at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.java:74)
at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.java:66)
at brut.androlib.Androlib.getResTable(Androlib.java:50)
at brut.androlib.ApkDecoder.getResTable(ApkDecoder.java:189)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:114)
at brut.apktool.Main.cmdDecode(Main.java:146)
at brut.apktool.Main.main(Main.java:77)

shoman94 said:
This is for those having compiling issues with systemUI.apk and framework-res.apk and the error is a layout error. Here is what I did to fix it.
For example the error in framework-res that pops up: "@layout/keyguard_transport_control" which is in keyguard_screen_unlock_portrait.xml
Just change the line to "[email protected]/keyguard_transport_control"
I did this for all my systemUI and framework-res recompile errors and all is well. Much easier fix and less time consuming then other ways I've seen mentioned.
Errors recompiling SecPhone.apk
Example is this error:
Code:
C:\Users\shoman94\Desktop\ROMS\SHOstock-SGS4\SHOstock\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SecPhone\res\values-es\strings.xml:197: error: Multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute?
C:\Users\shoman94\Desktop\ROMS\SHOstock-SGS4\SHOstock\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SecPhone\res\values-es\strings.xml:198: error: Unexpected end tag string
To fix this error go to (SecPhone\res\values-es\strings.xml)
Go to line 197
This is the line with the error: Just remove what is highlighted red.
Code:
<string name="throttle_time_frame_subtext">"%1$d[COLOR="Red"]%[/COLOR] del ciclo transcurrido.
Próx período en %2$d días (%3$s)"</string>
I had 3 string.xml's that had this error
Hopes this helps anyone.
Click to expand...
Click to collapse
Nice but how do you edit "[email protected]/keyguard_transport_control" i use apktool that uses commands like d for decompiling and b for compiling but i cant edit the line :/

S.a.M.e.R_d said:
Nice but how do you edit "[email protected]/keyguard_transport_control" i use apktool that uses commands like d for decompiling and b for compiling but i cant edit the line :/
Click to expand...
Click to collapse
Text editor like notepad++. You should research some before asking these questions in a dev section.
Sent from my SAMSUNG-SGH-I337 using Tapatalk 2

shoman94 said:
Text editor like notepad++. You should research some before asking these questions in a dev section.
Sent from my SAMSUNG-SGH-I337 using Tapatalk 2
Click to expand...
Click to collapse
sorry mate but what should i edit ?
i mean where should i edit the file ?
i know that its with note pad ++ but where ?
just tell me what to open
sorry about the nobby stuff
thanks

S.a.M.e.R_d said:
sorry mate but what should i edit ?
i mean where should i edit the file ?
i know that its with note pad ++ but where ?
just tell me what to open
sorry about the nobby stuff
thanks
Click to expand...
Click to collapse
The compiling log points to the location.
Sent from my SAMSUNG-SGH-I337 using Tapatalk 2

okay i downloaded apk manager and decompiled then compiled i opend apk multy tool log with note pad ++ added the +signs to @layout .................
now when i save it says log opened in another programm i close apk manager .... and save it then open up the manager and still cant recompile just
Can you please tell me a detailed how to ?
Thanks

SHO! I had to recheck if I accidentally clicked the s2 i777 forums with the familiar people. Glad to see you in the forums

Related

Decompile/Compile in Eclipse

So how can i decompile framework-res in to eclipse to edit it. i tried importing and it didnt show values folder or anything like that.
Eclipse is for coding or editing an open source project... decompile with apk multi-tool them edit files with notepad++
Sent from my SPH-D700 using Tapatalk
ok now i do that. and i recompile with absolutely no errros. i just get two warnings can this be the problem? i get a warning that says cannot find resources. under it says checking if resources has changed.
aapt:warning: string 'permdesc_accessUsb' has no default translation in C:\Program Files (x86)\RandomROM Development\RandomKing's Kitchen\Apk Manager 5.0.2\projects\framework-res.apk\res ; found: es_US
what does this mean?
Use apk multi-tool and not the kitchen. You can try ignoring the error and see if it works.
Sent from my SPH-D700 using Tapatalk
marcusant said:
Use apk multi-tool and not the kitchen. You can try ignoring the error and see if it works.
Sent from my SPH-D700 using Tapatalk
Click to expand...
Click to collapse
Holy ****e I am behind...Now I have to learn the multi-tool.
i use the tool and not the kitchen and now i get a jave:83 error

Unable to recompile SystemUI.apk using apktool

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

Need help from expert(themer) XML Error

Hello there
Trying to make some modifications to SystemUI.apk.
When trying to recompile the SystemUI.apk I got some error, which is this:
http://pastebin.com/qLBsLdDB
"D:\Apk_Manager_ICS\other\..\projects\SystemUI.apk\res\layout\status_bar.xml:30: error: Error parsing XML: mismatched tag"
Thats the first error line I read, and that's where I made changes, So I figured there must be something wrong in the code.. so I edit status_bar.xml and check it for xml errors and this is what comes up:
"XML parsing error at line 30:
Premature end of data tag
com.android.systemui.statusbar.phone.PhoneStatusBarView line2"
So I guess that means there's something wrong at line 30, But I can't seem the find out what's wrong.
So I'm asking, any theming expert can see whats wrong here:
http://pastebin.com/bWDhSsSz
Hope anyone can help me figure out what's wrong here
Thanks in advance!
Its either the fact that you're editing the XML in Notepad or your apktool.jar doesn't compile the latest ICS systemUI's. I've had this issue with decompiling before and I had to find an old apktool.jar that I themed back in the SGS2 days and it worked with 0 issues.
Also, have you just tried straight decompiling and compiling to confirm its an issue with the apktool.jar? If you do get the error without making changes, theres your issues.
If you don't, download Notepad++ and try again.
Nitroz said:
Its either the fact that you're editing the XML in Notepad or your apktool.jar doesn't compile the latest ICS systemUI's. I've had this issue with decompiling before and I had to find an old apktool.jar that I themed back in the SGS2 days and it worked with 0 issues.
Also, have you just tried straight decompiling and compiling to confirm its an issue with the apktool.jar? If you do get the error without making changes, theres your issues.
If you don't, download Notepad++ and try again.
Click to expand...
Click to collapse
Alright, thanks for your reply, ill try it when I get home in a few hours. What about the XML error I'm getting? I am using Notepad++ and when I check for XML errors there, it gives me the error @ line 30. Any idea?
nerotix said:
Alright, thanks for your reply, ill try it when I get home in a few hours. What about the XML error I'm getting? I am using Notepad++ and when I check for XML errors there, it gives me the error @ line 30. Any idea?
Click to expand...
Click to collapse
It depends what you're doing. If you've changed a line of code that you shouldn't then it will error like theres no tomorrow. We need to decipher if this is the issue yet, it might not be.
Nitroz said:
It depends what you're doing. If you've changed a line of code that you shouldn't then it will error like theres no tomorrow. We need to decipher if this is the issue yet, it might not be.
Click to expand...
Click to collapse
Alright, ill let u know =)
P.S Could u perhaps give me ur tools? APKManager and/or Apktools etc, the things u use.
Ok, I did it remotely from college, I decompiled the SystemUI.apk and compiled directly again, worked fine. So I guess next is the XML?
Thanks for helping!
Yep, just decompile once more, edit a simple XML like the status_bar.xml and change a hex code, like an ICS Blue hex code or something like that
Nitroz said:
Yep, just decompile once more, edit a simple XML like the status_bar.xml and change a hex code, like an ICS Blue hex code or something like that
Click to expand...
Click to collapse
I changed a hex for res\values\colors.xml and compiled it, worked fine.
nerotix said:
Hello there
Trying to make some modifications to SystemUI.apk.
When trying to recompile the SystemUI.apk I got some error, which is this:
http://pastebin.com/qLBsLdDB
"D:\Apk_Manager_ICS\other\..\projects\SystemUI.apk\res\layout\status_bar.xml:30: error: Error parsing XML: mismatched tag"
Thats the first error line I read, and that's where I made changes, So I figured there must be something wrong in the code.. so I edit status_bar.xml and check it for xml errors and this is what comes up:
"XML parsing error at line 30:
Premature end of data tag
com.android.systemui.statusbar.phone.PhoneStatusBarView line2"
So I guess that means there's something wrong at line 30, But I can't seem the find out what's wrong.
So I'm asking, any theming expert can see whats wrong here:
http://pastebin.com/bWDhSsSz
Hope anyone can help me figure out what's wrong here
Thanks in advance!
Click to expand...
Click to collapse
Hi
a closing tag is missing in your file a "</LinearLayout>" is missing ,
add </LinearLayout> at line 30
el_liberator said:
Hi
a closing tag is missing in your file a "</LinearLayout>" is missing ,
add </LinearLayout> at line 30
Click to expand...
Click to collapse
Added, rechecked with N+++ for errors and there's none! Thanks a ton! gonna try to compile right away!
el_liberator said:
Hi
a closing tag is missing in your file a "</LinearLayout>" is missing ,
add </LinearLayout> at line 30
Click to expand...
Click to collapse
Does it matter where I put that closing tag? I mean if I place it @ line 30, wouldnt it matter if its suppose to be closed earlier one?

[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

SlimKat settings.apk impossible to decompile?

ok so im having issues decompiling settings apk in slimkat 4.4.4. For the fact of the matter i cant even install there framework-res.apk
i get
Code:
Exception in thread "main" brut.androlib.AndrolibException: Multiple resources: spec=0x01080220 drawable/default_wallpaper, config=-sw600dp-nodpi
at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:63)
at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:56)
at brut.androlib.res.decoder.ARSCDecoder.readEntry(ARSCDecoder.java:199)
at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:168)
at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:134)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:109)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:81)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:49)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:40)
at brut.androlib.res.AndrolibResources.installFramework(AndrolibResources.java:687)
at brut.androlib.Androlib.installFramework(Androlib.java:640)
at brut.apktool.Main.cmdInstallFramework(Main.java:252)
at brut.apktool.Main.main(Main.java:91)
when i try to install, resulting in the inability to decompile the settings.apk
any pointers?
I think you need modified apktool because of The real dark slim feature
Notorious said:
I think you need modified apktool because of The real dark slim feature
Click to expand...
Click to collapse
doesn't advanced apktool come with beta 9 apktool?
xdarkmario said:
doesn't advanced apktool come with beta 9 apktool?
Click to expand...
Click to collapse
No idea
Yea slim releases their own apktool ever since they messed with the resources and broke normal apktool support on it
^found it @xdarkmario
https://github.com/SlimRoms/apktool/tree/kk-ver-2.x
Notorious said:
^found it @xdarkmario
https://github.com/SlimRoms/apktool/tree/kk-ver-2.x
Click to expand...
Click to collapse
is that for windows? looks a bit "linuxy"
xdarkmario said:
is that for windows? looks a bit "linuxy"
Click to expand...
Click to collapse
https://github.com/SlimRoms/apktool/tree/kk-ver-2.x/scripts/windows
https://github.com/SlimRoms/apktool/tree/kk-ver-2.x/release
https://github.com/SlimRoms/apktool...-lib/src/main/resources/prebuilt/aapt/windows
Notorious said:
https://github.com/SlimRoms/apktool/tree/kk-ver-2.x/scripts/windows
https://github.com/SlimRoms/apktool/tree/kk-ver-2.x/release
https://github.com/SlimRoms/apktool...-lib/src/main/resources/prebuilt/aapt/windows
Click to expand...
Click to collapse
cant launch these files, says apktool.jar is corrupted and another error with aapt
found one from there website
http://slimroms.net/index.php/downl...apktool-install-windows-1-5-3-kitkat-trds-3-0

Categories

Resources