[Q] Can´t decompile SystemUI deodexed - Android Q&A, Help & Troubleshooting

Hi. Im trying to decompile SystemUI.apk of JB stock rom with apktool, I deodexed the ROM first. When I load the framework with the command "apktool if framework-res.apk" I get this :
" Exception in thread "main" brut.androlib.AndrolibException: Multiple re
spec=0x01080292 drawable/ic_ab_back_holo_dark, config=-mdpi
at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:
at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:
at brut.androlib.res.decoder.ARSCDecoder.readEntry(ARSCDecoder.
at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder
)
at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.j
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecode
6)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.jav
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.jav
at brut.androlib.res.AndrolibResources.installFramework(Androli
s.java:459)
at brut.androlib.Androlib.installFramework(Androlib.java:447)
at brut.apktool.Main.cmdInstallFramework(Main.java:199)
at brut.apktool.Main.main(Main.java:72)"
Click to expand...
Click to collapse
I flashed the deodexed ROM and it works fine, so that's not the problem.

Related

[Q] [ICS] How to modify ICS apks?

Can someone tell me how to modify Sony ICS apps?
Which apktool I need to use?
I have errors when decompiling/compiling apks - framework problems (frameworks are installed!) .
I want to change some mismatches in Official ICS port, but i can't.
Can anyone give me an instructions?
reaper61616 said:
Can someone tell me how to modify Sony ICS apps?
Which apktool I need to use?
I have errors when decompiling/compiling apks - framework problems (frameworks are installed!) .
I want to change some mismatches in Official ICS port, but i can't.
Can anyone give me an instructions?
Click to expand...
Click to collapse
whats the error exaclty?
do you have all these things?
1.install both the frameworks(framework-res.apk and SemcGenericUxpRes.apk)?
2.update your sdk and copy aapt.exe from platform-tools to your apktool directory then reinstall frameworks and try again
3.get latest version of apktool
So:
Both frameworks are installed.
SDK is up to data and I copy aapt form platform-tools to apktool directory (size mismatch: platform-tools: 805kb - apktool original: 5.19 mb -> is not wrong to copy aapt form sdk to apktool folder )
Apktool version: 1.4.3 (http://code.google.com/p/android-apktool/downloads/list)
Errors:
< See image >
I don't know what I'm doing wrong.
I'm on windows XP.
reaper61616 said:
So:
Both frameworks are installed.
SDK is up to data and I copy aapt form platform-tools to apktool directory (size mismatch: platform-tools: 805kb - apktool original: 5.19 mb -> is not wrong to copy aapt form sdk to apktool folder )
Apktool version: 1.4.3 (http://code.google.com/p/android-apktool/downloads/list)
Errors:
< See image >
I don't know what I'm doing wrong.
I'm on windows XP.
Click to expand...
Click to collapse
i am using 806 kb aapt, it's compiling correctly. so no problem with that..
Can you upload your aapt?
What you thing about errors?
reaper61616 said:
Can you upload your aapt?
What you thing about errors?
Click to expand...
Click to collapse
mostly aapt error, many people on apktool bugtracker solved by replacing aapt,
i'm uploading aapt
here:
http://dl.dropbox.com/u/63607856/aapt.zip
Thanks for aapt.
You ever try to decompile and compile (even without changes) phonebook.apk?
reaper61616 said:
Thanks for aapt.
You ever try to decompile and compile (even without changes) phonebook.apk?
Click to expand...
Click to collapse
i've done home.apk succesfully
let me try phonebook
1.succesfully decompiled...
I can upload apk that I want to 'make'.
There is one thing I need to do: change some values in one xml file.
I can upload moded file too.
Framework-res.apk
You must install framework-res.apk with this command:
Code:
apktool if framework.res.apk
reaper61616 said:
I can upload apk that I want to 'make'.
There is one thing I need to do: change some values in one xml file.
I can upload moded file too.
Click to expand...
Click to collapse
for the ICS port, i have it, i have a recompilation error, just a minute...
have to replace
<style name="Layout.ButtonContainer"> with <style name="Layout.ButtonContainer" parent="@android:style/Theme.Wallpaper.NoTitleBar">
in all error files
Kobzar666 said:
You must install framework-res.apk with this command:
Code:
apktool if framework.res.apk
Click to expand...
Click to collapse
I do this. I ICS Xperia there is two files to be done with 'if' atribute.
you can tell me what to edit, i'll try..
In several minutes check your PM.
Sent.
I edit SemcMusic.apk and... when I replace original with modded apk there is no diferent.
I delete original apk in system/app and music still working! what is going on?
Try rebooting phone
Sent from my Smultron using XDA
singh_dd93 said:
Try rebooting phone
Sent from my Smultron using XDA
Click to expand...
Click to collapse
Sorry, I just want to click quote. I try this but it do nothing...
I update SemcMusic.apk with app from another rom and update was showing in menu.
reaper61616 said:
So:
Both frameworks are installed.
SDK is up to data and I copy aapt form platform-tools to apktool directory (size mismatch: platform-tools: 805kb - apktool original: 5.19 mb -> is not wrong to copy aapt form sdk to apktool folder )
Apktool version: 1.4.3 (http://code.google.com/p/android-apktool/downloads/list)
Errors:
< See image >
I don't know what I'm doing wrong.
I'm on windows XP.
Click to expand...
Click to collapse
How did you rectify this problem. i am getting same error.
I have replaced the aapt.exe
I am on Win7 x64
please help
---------- Post added at 04:22 PM ---------- Previous post was at 04:18 PM ----------
gandhar said:
for the ICS port, i have it, i have a recompilation error, just a minute...
have to replace
<style name="Layout.ButtonContainer"> with <style name="Layout.ButtonContainer" parent="@android:style/Theme.Wallpaper.NoTitleBar">
in all error files
Click to expand...
Click to collapse
How to do this
unable to understand
singh_dd93 said:
How did you rectify this problem. i am getting same error.
I have replaced the aapt.exe
I am on Win7 x64
please help
---------- Post added at 04:22 PM ---------- Previous post was at 04:18 PM ----------
How to do this
unable to understand
Click to expand...
Click to collapse
copy aapt.exe from the link i gave to apktool directory, INSTALL FRAMEWORKS AGAIN and try normally
Phonebook.apk is hard to edit. You need to change some others 'strings' in many files in decompiled apk and probably it's not all... SemcMusic.apk is easier to edit.
I edit my SemcMusic.apk, but in phone I can't run it.
For now I'm on stock so I do not test and make changes in any apps.
FEEL FREE TO POSTING ANY IDEAS It can be helpful for some people in future.

[Q] Can not decompile SystemUI.apk

I want to decompile SystemUI.apk for editing, but the problem is that it is already themed and decompliling throws many errors at me. Any idea how can I edit that "already edited" SystemUI.apk. It has been taken from Custom Rom (JB 4.1). Thanks

[app] [guide] APKTOOL.apk

Hey all im here to share a tool its apktool.apk
Im not the creator of this app im just share it here all creddits belongs to the developer of this app and google
Ok how its works?
This tool are similiar with apktool on windows
U can decompile an apk recompile it and u can edit all the resources inside it
How to install?
Download the tool from here
http://code.google.com/p/apktool/
Im suggested u are downloading all arm version
Estract the package and put apktool folder on sdcard/here
And navigate to sdcard/apktool/install apktool.apk
Install and run
NOTE:THIS APP REQUIRED ROOT ACCESS
DISCLAIMER: THIS IS FREE OPEN SOURCES TOOL U CAN USE IT BUT USE WITH YOUR OWN RISK
NOTE2: IF U FACING ANY PROBLEM DUE DECOMPILING PROCESS OR RECOMPILING PROCESS PLEASE INSTALL UR FRAMEWORK U CAN FIND IT ON SDCARD/APKTOOL/FRAMEWORK/HERE CHANGE 1.APK WITH YOUR FRAMEWORK
How to install framework?
gB: copy frameworkres.apk and tw frameworkres.apk to sdcard(any folder but remmember the path)
Open apktool app navigate to framework and tw framework long press on it then choose import as enjoy
Ics/jb
Copy frameworkres.apk and navigate apktool app longpress on it then choose import as
CREDDIT:
DEVELOPER OF THIS APP(i dunno who its him)
Google
Atep sujana
Ogy
Regards
Evanlocked
​
Source: http://forum.xda-developers.com/showthread.php?t=2388135
Njoyy!!
crazysuraj said:
Hey all im here...​
Click to expand...
Click to collapse
Plz Change the name of the thread to "Guide" thread..coz its already shared....all r confused by this type.​
Already a thread for this here >>> http://forum.xda-developers.com/showthread.php?t=2488694
Thread closed.

help in recompiling

Hey guys plz help me
I used advanced apktool 4.2.0 with apktool 2.0.3 by bdfreak to decompile apks
I decompiled my systemui successfully without and error But when recompiled it i got "syntax of the command is incorrect" (i didnt touched any file)although it said success and there is no log inside 1-BDFreak folder but when i moved my apk to priv-apps it didnt worked
I gave right permissions,deodexed rom,installed framework and java
My android ver is 4.4.2

Error compile TW SystemUI

Hey everyone !
Every time I try to compile a 5.0.1 TW SystemUI I've got this error : "[Fatal Error] AndroidManifest.xml:1:1: Content is not allowed in prolog"
With all other SystemUI it's fine.. Anyone know how to fix this ?
I resolved the problem myself by extract META-INF and androidmanifest.xml from original apk and not from the "original" folder.

Categories

Resources