[Q][HELP][ICS]Trouble Decompiling SystemUI.apk - AT&T Samsung Galaxy S II SGH-I777

Running Serendipity 9.
Usually I have no problem decompiling apks and using ADB or whatever. But recently I tried to upload my SystemUI.apk file to UOT Kitchen in hopes of doing a few mods but I kept getting errors. I have no problems at all decompiling framework-res.apk. So, I tried to use ADB and came up with errors. Here is my log below.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
So after that failed, I did research and found out that:
"Samsung changed some Hex value in the compiled dex code.
It has nothing to do with resources apks or anthing.
If you want to decompile those apks you have to do the follwing:
Using 7zip extract the classes.dex file from the apk and save it somewhere.\
Delete the classes.dex file from the apk."
So I followed the instructions found here for "[HOW TO] Compile/Decompile ICS Apk easily|100% working" and it still didn't work. So here is my log for that.
Code:
[*] "C:\Users\Tony Noel\Downloads\AutoAPKTool2.0.0\AutoAPKTool2.0.0\_INPUT_APK\SystemUI.apk"
decompiling "C:\Users\Tony Noel\Downloads\AutoAPKTool2.0.0\AutoAPKTool2.0.0\_INPUT_APK\SystemUI.apk"...
I: Loading resource table...
Exception in thread "main" brut.androlib.AndrolibException: Multiple resources: spec=0x7f0a000e dimen/status_bar_icon_drawing_size, config=-v13
at brut.androlib.res.data.ResConfig.addResource(Unknown Source)
at brut.androlib.res.data.ResConfig.addResource(Unknown Source)
at brut.androlib.res.decoder.ARSCDecoder.readEntry(Unknown Source)
at brut.androlib.res.decoder.ARSCDecoder.readConfig(Unknown Source)
at brut.androlib.res.decoder.ARSCDecoder.readType(Unknown Source)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(Unknown Source)
at brut.androlib.res.decoder.ARSCDecoder.readTable(Unknown Source)
at brut.androlib.res.decoder.ARSCDecoder.decode(Unknown Source)
at brut.androlib.res.AndrolibResources.getResPackagesFromApk(Unknown Source)
at brut.androlib.res.AndrolibResources.loadMainPkg(Unknown Source)
at brut.androlib.res.AndrolibResources.getResTable(Unknown Source)
at brut.androlib.Androlib.getResTable(Unknown Source)
at brut.androlib.ApkDecoder.getResTable(Unknown Source)
at brut.androlib.ApkDecoder.decode(Unknown Source)
at brut.apktool.Main.cmdDecode(Unknown Source)
at brut.apktool.Main.main(Unknown Source)
Here is also my error log from UOT Kitchen.
Code:
Error log: UOT-07-12-20-24-1-SHTF.txt
Decompiling framework-res.apk UOT-07-12-20-24-1
I: Loading resource table...
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
Decompiling SystemUI.apk UOT-07-12-20-24-1
I: Framework installed to: /root/apktool/framework/1.apk
I: Baksmaling...
Exception in thread "main" java.lang.RuntimeException: bad magic value: 64 65 78 0a 30 33 36 00
at org.jf.dexlib.DexFile.(DexFile.java:377)
at org.jf.dexlib.DexFile.(DexFile.java:274)
at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:48)
at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:33)
at brut.androlib.Androlib.decodeSourcesSmali(Androlib.java:68)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:85)
at brut.apktool.Main.cmdDecode(Main.java:128)
at brut.apktool.Main.main(Main.java:65)
Compiling framework-res.apk UOT-07-12-20-24-1
W: Could not find sources
I: Building resources...
aapt: warning: string 'abbrev_wday_abbrev_month_day_no_year' has no default translation in /home/uot/port5/data/working_dir/UOT-07-12-20-24-1/fw_dec/res; found: sr
aapt: warning: string 'abbrev_wday_day_abbrev_month_no_year' has no default translation in /home/uot/port5/data/working_dir/UOT-07-12-20-24-1/fw_dec/res; found: sr
aapt: warning: string 'policydesc_allow_htmlemail' has no default translation in /home/uot/port5/data/working_dir/UOT-07-12-20-24-1/fw_dec/res; found: en_US
aapt: warning: string 'policylab_allow_htmlemail' has no default translation in /home/uot/port5/data/working_dir/UOT-07-12-20-24-1/fw_dec/res; found: en_US
aapt: warning: string 'wifi_p2p_pbc_go_negotiation_request_message' has no default translation in /home/uot/port5/data/working_dir/UOT-07-12-20-24-1/fw_dec/res; found: en_GB es pt
aapt: warning: string 'wifi_p2p_pin_display_message' has no default translation in /home/uot/port5/data/working_dir/UOT-07-12-20-24-1/fw_dec/res; found: en_GB es pt
aapt: warning: string 'wifi_p2p_pin_go_negotiation_request_message' has no default translation in /home/uot/port5/data/working_dir/UOT-07-12-20-24-1/fw_dec/res; found: en_GB es pt
I: Building apk file...
Compiling SystemUI.apk UOT-07-12-20-24-1
I: Framework installed to: /home/uot/apktool/framework/1.apk
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathNotExist: 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
I have no idea what to do. So please, any help would be greatly appreciated!

What I use for ics apks:
Download apktool 1.4.2 and apktool 1.4.3. Download the apktool dependencies. Also get the latest aapt from the android sdk (I replace the aapt that came with apktool with this one).
Use 1.4.2 for decompiling. Use 1.4.3 for recompiling. Some apks I'll have to remove the classes.dex. And on some I don't. I always try with it in place first.
Keep in mind I only use Linux based distros (Mint 12 at the moment), so I can't say for sure if this works on Windows.
As far as the UOT errors, is the systemui.apk a stock unmodified?

Related

[Q][FIXED] Problem decompiling settings.apk

Hi,
Im trying to decompile settings.apk (from kj1) using option 10 (dependencies) using framework-res.apk, but everytime I do I get this error:
Code:
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)
I: Framework installed to: C:\Users\Nuja\apktool\framework\1.apk
I: Baksmaling...
I: Loading resource table...
W: Skipping "android" package group
I: Loaded.
I: Loading resource table from file: C:\Users\Nuja\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Loading resource table from file: C:\Users\Nuja\apktool\framework\2.apk
I: Loaded.
I: Decoding values*/* XMLs...
Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: 3
at java.lang.String.charAt(Unknown Source)
at brut.androlib.res.xml.ResXmlEncoders.findNonPositionalSubstitutions(ResXmlEncoders.java:165)
at brut.androlib.res.xml.ResXmlEncoders.enumerateNonPositionalSubstitutions(ResXmlEncoders.java:142)
at brut.androlib.res.data.value.ResStringValue.encodeAsResXmlValue(ResStringValue.java:45)
at brut.androlib.res.data.value.ResArrayValue.serializeToResValuesXml(ResArrayValue.java:55)
at brut.androlib.res.AndrolibResources.generateValuesFile(AndrolibResources.java:264)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:137)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:93)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:98)
at brut.apktool.Main.cmdDecode(Main.java:120)
at brut.apktool.Main.main(Main.java:57)
Any idea whats preventing me from decompiling settings.apk ?
thx
edit: THE FIX: apktool.jar (last version cant decompile the settings.apk, I dont know why, but I was successfull by using and old version of apktool.jar, the 1.3.1 version).

[Q] Decompiling/Compiling LPQ (4.0.3) ICS apk Error

Hey guys, I need some help here.
I can decompile apks fine, got past the bad magic value error, ICS APKs decompile with no problems at all.
When I make changes... better yet, even when I don't change a thing and go to compile the project, I get an error like this:
Code:
--------------------------------------------------------------------------
|03/15/2012 Thu -- 16:10:40.42|
--------------------------------------------------------------------------
java version "1.7.0_03"
Java(TM) SE Runtime Environment (build 1.7.0_03-b05)
Java HotSpot(TM) 64-Bit Server VM (build 22.1-b02, mixed mode)
Could Not Find D:\Android\APKMod\place-apk-here-for-modding\../place-apk-here-for-modding/signedPhone.apk
Could Not Find D:\Android\APKMod\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedPhone.apk
I: Baksmaling...
I: Loading resource table...
W: Skipping "android" package group
I: Loaded.
I: Loading resource table from file: C:\Users\YG007\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Loading resource table from file: C:\Users\YG007\apktool\framework\2.apk
I: Loaded.
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
I: Framework installed to: C:\Users\YG007\apktool\framework\2.apk
I: Baksmaling...
I: Loading resource table...
W: Skipping "android" package group
I: Loaded.
I: Loading resource table from file: C:\Users\YG007\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Loading resource table from file: C:\Users\YG007\apktool\framework\2.apk
I: Loaded.
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
D:\Android\APKMod\other\..\projects\Phone.apk\res\layout\pref_dialog_editpin.xml:2: error: Error: Resource is not public. (at 'id' with value '@android:id/edittext_container').
aapt: warning: string 'contactsFavoritesLabel' has no default translation in D:\Android\APKMod\other\..\projects\Phone.apk\res; found: bg cs da de el en_US es es_ES et fi fr ga hr hu is it kk ko lt lv mk nb nl pl pt ro ru sk sl sr sv tr uk
aapt: warning: string 'contactsIconLabel' has no default translation in D:\Android\APKMod\other\..\projects\Phone.apk\res; found: bg cs da de el en_US es es_ES et fi fr ga hr hu is it kk ko lt lv mk nb nl pl pt ro ru sk sl sr sv tr uk
aapt: warning: string 'dialerIconLabel' has no default translation in D:\Android\APKMod\other\..\projects\Phone.apk\res; found: bg cs da de el en_US es es_ES et fi fr ga hr hu is it kk ko lt lv mk nb nl pl pt ro ru sk sl sr sv tr uk
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\YG007\AppData\Local\Temp\APKTOOL4181477595211452909.tmp, -I, C:\Users\YG007\apktool\framework\1.apk, -I, C:\Users\YG007\apktool\framework\2.apk, -S, D:\Android\APKMod\other\..\projects\Phone.apk\res, -M, D:\Android\APKMod\other\..\projects\Phone.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\YG007\AppData\Local\Temp\APKTOOL4181477595211452909.tmp, -I, C:\Users\YG007\apktool\framework\1.apk, -I, C:\Users\YG007\apktool\framework\2.apk, -S, D:\Android\APKMod\other\..\projects\Phone.apk\res, -M, D:\Android\APKMod\other\..\projects\Phone.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
I'm using the LPQ rom, stock, deodexed.
1.apk was pulled from framework-res.apk from the LPQ ROM.
2.apk was pulled from twframework-res.apk from the LPQ ROM.
I've used the search function to find a solution, but I couldn't so I'm posting here.
Anyone know whats going on? Any solutions??

[Q] Theme chooser APK Recompile Error

I've been trying for many days to get this to work, it's driving me nuts!!
I can decompile and recompile framework-res.apk and other apps successfully, but every time I decompile a theme chooser *.apk I get errors trying to recompile.
Is there a trick to this? I am running Reaper 3.0(CyanogenMod 7) installed the framework via installation options(that's all), have paths to platform-tools, tools etc.. The latest Android SDK installed (and all the others..)
Once again I'n only getting these errors Recompiling TC Themes.
Here is an Excerpt of my APKMULTITOOL.LOG, the start middle and end.
(full log is also attached)
|
Code:
Thu 06/21/2012 -- 22:05:11.28|
--------------------------------------------------------------------------
java version "1.7.0_05"
Java(TM) SE Runtime Environment (build 1.7.0_05-b05)
Java HotSpot(TM) Client VM (build 23.1-b03, mixed mode, sharing)
Could Not Find C:\android-sdk\place-apk-here-for-modding\../place-apk-here-for-modding/signedcom.araviel.theme.aerish.apk
Could Not Find C:\android-sdk\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedcom.araviel.theme.aerish.apk
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Documents and Settings\twIIce\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
W/ResourceType( 3988): Bad string block: string #14 extends to 1847, past end at 60
W/ResourceType( 3988): Bad string block: string #13 extends to 1842, past end at 60
W/ResourceType( 3988): Bad string block: string #12 extends to 1075, past end at 60
W/ResourceType( 3988): Bad string block: string #11 extends to 815, past end at 60
W/ResourceType( 3988): Bad string block: string #10 extends to 812, past end at 60
W/ResourceType( 3988): Bad string block: string #9 extends to 1061, past end at 60
W/ResourceType( 3988): Bad string block: string #8 extends to 1575, past end at 60
W/ResourceType( 3988): Bad string block: string #7 extends to 2075, past end at 60..................
res\xml\com_melodis_midomiMusicIdentifier.xml: Invalid file name: must contain only [a-z0-9_.]
res\xml\com_melodis_midomiMusicIdentifier.xml: Invalid file name: must contain only [a-z0-9_.]
C:\android-sdk\platform-tools\..\projects\com.araviel.theme.aerish.apk\res\values\styles.xml:3: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Theme'.
C:\android-sdk\platform-tools\..\projects\com.araviel.theme.aerish.apk\res\values\styles.xml:4: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Theme'.
C:\android-sdk\platform-tools\..\projects\com.araviel.theme.aerish.apk\res\values\styles.xml:9: error: Error: No resource found that matches the given name: attr 'android:shadowColor'.
C:\android-sdk\platform-tools\..\projects\com.araviel.theme.aerish.apk\res\values\styles.xml:10: error: Error: No resource found that matches the given name: attr 'android:shadowDx'.
C:\android-sdk\platform-tools\..\projects\com.araviel.theme.aerish.apk\res\values\styles.xml:11: error: Error: No resource found that matches the given name: attr 'android:shadowDy'..............................................................................................................................................................................................
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\DOCUME~1\twIIce\LOCALS~1\Temp\APKTOOL7854039488745011416.tmp, -x, -I, C:\Documents and Settings\twIIce\apktool\framework\1.apk, -S, C:\android-sdk\platform-tools\..\projects\com.araviel.theme.aerish.apk\res, -M, C:\android-sdk\platform-tools\..\projects\com.araviel.theme.aerish.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:302)
at brut.androlib.Androlib.buildResources(Androlib.java:249)
at brut.androlib.Androlib.build(Androlib.java:172)
at brut.androlib.Androlib.build(Androlib.java:155)
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:\DOCUME~1\twIIce\LOCALS~1\Temp\APKTOOL7854039488745011416.tmp, -x, -I, C:\Documents and Settings\twIIce\apktool\framework\1.apk, -S, C:\android-sdk\platform-tools\..\projects\com.araviel.theme.aerish.apk\res, -M, C:\android-sdk\platform-tools\..\projects\com.araviel.theme.aerish.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
I would GREATLY appreciate it if anyone could shed some light on this for me, I've been googling for days, but sadly (at the moment) I've no programming skills whatsoever and sorting through technical posts is confusing at best.
Bump!
twiice said:
Bump!
Click to expand...
Click to collapse
Did you found a solution ?
Ive been trying for days too ... no sucess

[Q] Help re decompiling/recompiling

Will someone please help me to figure this out
i have jdk6, android sdk installed, my path is set up correctly and im using wanams apk manager
im running all this from root of c drive
I want to Set Logs type to "View by All Call Logs" - Hide SMS from Call Logs
i have decompiled, made the changes and it recompiles perfect
i drop it into my rom, perform a wipe and flash - my contacts then fc's on me...i just cant figure out why...
i have attached my modded file if someone could take a look
Click to expand...
Click to collapse
And for enabling call recording, i get this:
Code:
--------------------------------------------------------------------------
|23/07/2012 -- 10:58:15.51|
--------------------------------------------------------------------------
java version "1.6.0_33"
Java(TM) SE Runtime Environment (build 1.6.0_33-b03)
Java HotSpot(TM) 64-Bit Server VM (build 20.8-b03, mixed mode)
Could Not Find C:\Apk_Manager_ICS\place-apk-here-for-modding\../place-apk-here-f
or-modding/signedSecPhone.apk
Could Not Find C:\Apk_Manager_ICS\place-apk-here-for-modding\../place-apk-here-f
or-modding/unsignedSecPhone.apk
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\****\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
S: Could not decode file, replacing by FALSE value: drawable-mcc450-mnc6-xhdpi/c
all_video_call_icon_dim.png
S: Could not decode file, replacing by FALSE value: drawable-mcc450-mnc5-xhdpi/c
all_video_call_icon_dim.png
S: Could not decode file, replacing by FALSE value: drawable-mcc450-mnc6-land-xh
dpi/call_video_call_icon_dim.png
S: Could not decode file, replacing by FALSE value: drawable-mcc450-mnc5-land-xh
dpi/call_video_call_icon_dim.png
S: Could not decode file, replacing by FALSE value: drawable-mcc450-mnc6-land-xh
dpi/call_video_call_icon.png
S: Could not decode file, replacing by FALSE value: drawable-mcc450-mnc5-xhdpi/c
all_video_call_icon.png
S: Could not decode file, replacing by FALSE value: drawable-mcc450-mnc6-xhdpi/c
all_video_call_icon.png
S: Could not decode file, replacing by FALSE value: drawable-mcc450-mnc5-land-xh
dpi/call_video_call_icon.png
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
I: Checking whether sources has changed...
I: Smaling...
Exception in thread "main" brut.androlib.AndrolibException: Could not smali file
: [email protected]
at brut.androlib.src.DexFileBuilder.addSmaliFile(DexFileBuilder.java:45)
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)
The system cannot find the file specified.
Press any key to continue . . .
EDIT
I then decompiled and recompiled without making changes and got this different set of errors
Code:
--------------------------------------------------------------------------
|23/07/2012 -- 11:13:01.23|
--------------------------------------------------------------------------
java version "1.6.0_33"
Java(TM) SE Runtime Environment (build 1.6.0_33-b03)
Java HotSpot(TM) 64-Bit Server VM (build 20.8-b03, mixed mode)
Could Not Find C:\Apk_Manager_ICS\place-apk-here-for-modding\../place-apk-here-f
or-modding/signedSecPhone.apk
Could Not Find C:\Apk_Manager_ICS\place-apk-here-for-modding\../place-apk-here-f
or-modding/unsignedSecPhone.apk
I: Baksmaling...
I: Loading resource table...
W: Skipping "android" package group
I: Loaded.
I: Loading resource table from file: C:\Users\****\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
aapt: warning: string 'auto_dialing_guide' has no default translation in C:\Apk_
Manager_ICS\other\..\projects\SecPhone.apk\res; found: ko
aapt: warning: string 'autodialing_enable_1' has no default translation in C:\Ap
k_Manager_ICS\other\..\projects\SecPhone.apk\res; found: ko
aapt: warning: string 'autodialing_enable_2' has no default translation in C:\Ap
k_Manager_ICS\other\..\projects\SecPhone.apk\res; found: ko
aapt: warning: string 'autodialing_enable_3' has no default translation in C:\Ap
k_Manager_ICS\other\..\projects\SecPhone.apk\res; found: ko
aapt: warning: string 'autodialing_enable_disable' has no default translation in
C:\Apk_Manager_ICS\other\..\projects\SecPhone.apk\res; found: ko
aapt: warning: string 'autodialing_guide_1' has no default translation in C:\Apk
_Manager_ICS\other\..\projects\SecPhone.apk\res; found: ko
aapt: warning: string 'autodialing_guide_2' has no default translation in C:\Apk
_Manager_ICS\other\..\projects\SecPhone.apk\res; found: ko
aapt: warning: string 'callFailed_timeout_408_487' has no default translation in
C:\Apk_Manager_ICS\other\..\projects\SecPhone.apk\res; found: pt
aapt: warning: string 'country_setting_1' has no default translation in C:\Apk_M
anager_ICS\other\..\projects\SecPhone.apk\res; found: ko
aapt: warning: string 'country_setting_2' has no default translation in C:\Apk_M
anager_ICS\other\..\projects\SecPhone.apk\res; found: ko
aapt: warning: string 'country_setting_3' has no default translation in C:\Apk_M
anager_ICS\other\..\projects\SecPhone.apk\res; found: ko
aapt: warning: string 'reject_cause_location_reg_fail' has no default translatio
n in C:\Apk_Manager_ICS\other\..\projects\SecPhone.apk\res; found: pt
aapt: warning: string 'reject_cause_location_registering' has no default transla
tion in C:\Apk_Manager_ICS\other\..\projects\SecPhone.apk\res; found: iw pt
aapt: warning: string 'reject_cause_skt_registering' has no default translation
in C:\Apk_Manager_ICS\other\..\projects\SecPhone.apk\res; found: iw pt
aapt: warning: string 'target_country_setting' has no default translation in C:\
Apk_Manager_ICS\other\..\projects\SecPhone.apk\res; found: ko
aapt: warning: string 'what_is_autodialing' has no default translation in C:\Apk
_Manager_ICS\other\..\projects\SecPhone.apk\res; found: ko
C:\Apk_Manager_ICS\other\..\projects\SecPhone.apk\res\values-es\strings.xml:195:
error: Multiple substitutions specified in non-positional format; did you mean
to add the formatted="false" attribute?
C:\Apk_Manager_ICS\other\..\projects\SecPhone.apk\res\values-es\strings.xml:196:
error: Unexpected end tag string
C:\Apk_Manager_ICS\other\..\projects\SecPhone.apk\res\values-es-rUS\strings.xml:
200: error: Multiple substitutions specified in non-positional format; did you m
ean to add the formatted="false" attribute?
C:\Apk_Manager_ICS\other\..\projects\SecPhone.apk\res\values-es-rUS\strings.xml:
201: error: Unexpected end tag string
C:\Apk_Manager_ICS\other\..\projects\SecPhone.apk\res\values-it\strings.xml:197:
error: Multiple substitutions specified in non-positional format; did you mean
to add the formatted="false" attribute?
C:\Apk_Manager_ICS\other\..\projects\SecPhone.apk\res\values-it\strings.xml:198:
error: Unexpected end tag string
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\****\AppData\Local\Temp\APK
TOOL6557143836137260780.tmp, -I, C:\Users\****\apktool\framework\1.apk, -S, C:\Ap
k_Manager_ICS\other\..\projects\SecPhone.apk\res, -M, C:\Apk_Manager_ICS\other\.
.\projects\SecPhone.apk\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\****\AppData\Local\Temp\APKTOOL6557143836137260780.tmp, -I, C:\Users\****\apk
tool\framework\1.apk, -S, C:\Apk_Manager_ICS\other\..\projects\SecPhone.apk\res,
-M, C:\Apk_Manager_ICS\other\..\projects\SecPhone.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more
The system cannot find the file specified.
Press any key to continue . . .
C:\Apk_Manager_ICS>
i tried doing this with apktool only and got this:
Code:
icrosoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\****>apktool d "E:\Phone\Android\Galaxy SIII\XXBLG1 **\system\app\SecContacts.apk"
I: Baksmaling...
I: Loading resource table...
W: Skipping "android" package group
I: Loaded.
I: Loading resource table from file: C:\Users\****\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
C:\Users\****>apktool b C:\Users\****\SecContacts
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\****\AppData\Local\Temp\APK
TOOL289705730655537096.tmp, -I, C:\Users\****\apktool\framework\1.apk, -S, C:\Use
rs\****\SecContacts\res, -M, C:\Users\****\SecContacts\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\****\AppData\Local\Temp\APKTOOL289705730655537096.tmp, -I, C:\Users\****\apkt
ool\framework\1.apk, -S, C:\Users\****\SecContacts\res, -M, C:\Users\****\SecConta
cts\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:87)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more
Caused by: java.io.IOException: Cannot run program "aapt": CreateProcess error=2
, The system cannot find the file specified
at java.lang.ProcessBuilder.start(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at brut.util.OS.exec(OS.java:78)
... 7 more
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find th
e file specified
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
... 11 more
Click to expand...
Click to collapse
i just want to make my own mods instead of using someone elses files....
still cant get it fixed...does anyone want to help? I thought this was a developer forum...
framework-res.apk wont compile properly after decompiling an making NO changes
Code:
|23/07/2012 -- 14:38:03.56|
--------------------------------------------------------------------------
java version "1.6.0_33"
Java(TM) SE Runtime Environment (build 1.6.0_33-b03)
Java HotSpot(TM) 64-Bit Server VM (build 20.8-b03, mixed mode)
Could Not Find C:\Apk_Manager_ICS\place-apk-here-for-modding\../place-apk-here-f
or-modding/signedframework-res.apk
Could Not Find C:\Apk_Manager_ICS\place-apk-here-for-modding\../place-apk-here-f
or-modding/unsignedframework-res.apk
I: Loading resource table...
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
aapt: warning: string 'feature_stock_edaily_closed' has no default translation i
n C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\res; found: es_US iw ja
ko pt_BR zh_CN zh_HK zh_TW
aapt: warning: string 'feature_stock_edaily_delayed' has no default translation
in C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\res; found: es_US iw j
a ko pt_BR zh_CN zh_HK zh_TW
aapt: warning: string 'permdesc_fm_receiver' has no default translation in C:\Ap
k_Manager_ICS\other\..\projects\framework-res.apk\res; found: en_US
aapt: warning: string 'permlab_fm_receiver' has no default translation in C:\Apk
_Manager_ICS\other\..\projects\framework-res.apk\res; found: en_US
aapt: warning: string 'policydesc_allowAttachments' has no default translation i
n C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\res; found: en_US
aapt: warning: string 'policydesc_allow_htmlemail' has no default translation in
C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\res; found: en_US
aapt: warning: string 'policydesc_allow_smimeencryptionalgonegotiation' has no d
efault translation in C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\res
; found: en_US
aapt: warning: string 'policydesc_allow_smimesoftcerts' has no default translati
on in C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\res; found: en_US
aapt: warning: string 'policydesc_limitAttachments' has no default translation i
n C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\res; found: en_US
aapt: warning: string 'policydesc_max_calendarage' has no default translation in
C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\res; found: en_US
aapt: warning: string 'policydesc_max_emailage' has no default translation in C:
\Apk_Manager_ICS\other\..\projects\framework-res.apk\res; found: en_US
aapt: warning: string 'policydesc_max_emailbodytruncsize' has no default transla
tion in C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\res; found: en_US
aapt: warning: string 'policydesc_max_htmlemailbodytruncsize' has no default tra
nslation in C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\res; found: e
n_US
aapt: warning: string 'policydesc_require_encryptedsmimemessages' has no default
translation in C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\res; foun
d: en_US
aapt: warning: string 'policydesc_require_encryptionsmimealgorithm' has no defau
lt translation in C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\res; fo
und: en_US
aapt: warning: string 'policydesc_require_manualsyncroaming' has no default tran
slation in C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\res; found: en
_US
aapt: warning: string 'policydesc_require_signedsmimealgorithm' has no default t
ranslation in C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\res; found:
en_US
aapt: warning: string 'policydesc_require_signedsmimemessages' has no default tr
anslation in C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\res; found:
en_US
aapt: warning: string 'policylab_allowAttachments' has no default translation in
C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\res; found: en_US
aapt: warning: string 'policylab_allow_htmlemail' has no default translation in
C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\res; found: en_US
aapt: warning: string 'policylab_allow_smimeencryptionalgonegotiation' has no de
fault translation in C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\res;
found: en_US
aapt: warning: string 'policylab_allow_smimesoftcerts' has no default translatio
n in C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\res; found: en_US
aapt: warning: string 'policylab_limitAttachments' has no default translation in
C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\res; found: en_US
aapt: warning: string 'policylab_max_calendarage' has no default translation in
C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\res; found: en_US
aapt: warning: string 'policylab_max_emailage' has no default translation in C:\
Apk_Manager_ICS\other\..\projects\framework-res.apk\res; found: en_US
aapt: warning: string 'policylab_max_emailbodytruncsize' has no default translat
ion in C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\res; found: en_US
aapt: warning: string 'policylab_max_htmlemailbodytruncsize' has no default tran
slation in C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\res; found: en
_US
aapt: warning: string 'policylab_require_encryptedsmimemessages' has no default
translation in C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\res; found
: en_US
aapt: warning: string 'policylab_require_encryptionsmimealgorithm' has no defaul
t translation in C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\res; fou
nd: en_US
aapt: warning: string 'policylab_require_manualsyncroaming' has no default trans
lation in C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\res; found: en_
US
aapt: warning: string 'policylab_require_signedsmimealgorithm' has no default tr
anslation in C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\res; found:
en_US
aapt: warning: string 'policylab_require_signedsmimemessages' has no default tra
nslation in C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\res; found: e
n_US
aapt: warning: string 'wifi_p2p_pbc_go_negotiation_request_message' has no defau
lt translation in C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\res; fo
und: en_GB en_US es pt
aapt: warning: string 'wifi_p2p_pin_display_message' has no default translation
in C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\res; found: en_GB en_U
S es pt
aapt: warning: string 'wifi_p2p_pin_go_negotiation_request_message' has no defau
lt translation in C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\res; fo
und: en_GB en_US es pt
C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\res\values\plurals.xml:79
: error: Multiple substitutions specified in non-positional format; did you mean
to add the formatted="false" attribute?
C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\res\values\plurals.xml:79
: error: Found tag </item> where </plurals> is expected
C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\res\values-en-rGB\plurals
.xml:79: error: Multiple substitutions specified in non-positional format; did y
ou mean to add the formatted="false" attribute?
C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\res\values-en-rGB\plurals
.xml:79: error: Found tag </item> where </plurals> is expected
C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\res\values-en-rUS\plurals
.xml:79: error: Multiple substitutions specified in non-positional format; did y
ou mean to add the formatted="false" attribute?
C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\res\values-en-rUS\plurals
.xml:79: error: Found tag </item> where </plurals> is expected
C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\res\values-es\plurals.xml
:79: error: Multiple substitutions specified in non-positional format; did you m
ean to add the formatted="false" attribute?
C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\res\values-es\plurals.xml
:79: error: Found tag </item> where </plurals> is expected
C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\res\values-pt\plurals.xml
:79: error: Multiple substitutions specified in non-positional format; did you m
ean to add the formatted="false" attribute?
C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\res\values-pt\plurals.xml
:79: error: Found tag </item> where </plurals> is expected
C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\res\values-mcc310-mnc260-
en-rUS\plurals.xml:79: error: Multiple substitutions specified in non-positional
format; did you mean to add the formatted="false" attribute?
C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\res\values-mcc310-mnc260-
en-rUS\plurals.xml:79: error: Found tag </item> where </plurals> is expected
C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\res\values-mcc310-mnc410-
en-rUS\plurals.xml:79: error: Multiple substitutions specified in non-positional
format; did you mean to add the formatted="false" attribute?
C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\res\values-mcc310-mnc410-
en-rUS\plurals.xml:79: error: Found tag </item> where </plurals> is expected
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\DSA\AppData\Local\Temp\APK
TOOL3382395325731499172.tmp, -x, -S, C:\Apk_Manager_ICS\other\..\projects\framew
ork-res.apk\res, -M, C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\Andr
oidManifest.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\****\AppData\Local\Temp\APKTOOL3382395325731499172.tmp, -x, -S, C:\Apk_Manag
er_ICS\other\..\projects\framework-res.apk\res, -M, C:\Apk_Manager_ICS\other\..\
projects\framework-res.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more
The system cannot find the file specified.
Press any key to continue . . .
Try taking a look at this thread in Android development http://forum.xda-developers.com/showthread.php?t=1752201
Sent from my GT-I9300 using Tapatalk 2
_neutron_ said:
still cant get it fixed...does anyone want to help? I thought this was a developer forum...
Click to expand...
Click to collapse
It is but expecting a developer to be at your instant service is stupid .
A developer who knows the answer has to see your post first they don't sit here waiting but are in their hidey holes developing .
jje
I've had this exact same issue decompiling and recompiling.
I'm going to try my Linux box next if I don't get any joy
JJEgan said:
It is but expecting a developer to be at your instant service is stupid .
A developer who knows the answer has to see your post first they don't sit here waiting but are in their hidey holes developing .
jje
Click to expand...
Click to collapse
Thanks for the name calling the first time you speak to me...from behind a pc on the web no less....very manly of you JJ
_neutron_ said:
Thanks for the name calling the first time you speak to me...from behind a pc on the web no less....very manly of you JJ
Click to expand...
Click to collapse
If it helps you, you can install S Voice and disable the double click from the settings of the app. That just decreased my home button time significantly.
_neutron_ said:
Thanks for the name calling the first time you speak to me...from behind a pc on the web no less....very manly of you JJ
Click to expand...
Click to collapse
I have a feeling no developer will help you when you have that kind of attitude.
I was going to post here earlier until I saw the smart comment you made in your second post.
Sent from my GT-I9300 using xda premium
Kryten2k35 said:
If it helps you, you can install S Voice and disable the double click from the settings of the app. That just decreased my home button time significantly.
Click to expand...
Click to collapse
Thanks but thats not what im after
im building a rom - i can mod/decompile/recompile .jar files perfect, i know how to set a rom up blah blah blah - i just cant decompile ANY apks without an error or the relevant app fc'ing on me when flashed
The only things i have on my pc are the android sdk, the jdk, a firmware, some mods and multiple apk editing software - i have re-flashed windows and everything else around 20 times. i have followed 19 different tutorials, downloaded 13 different packages that people say will allow me to do what i want but they dont
i know i have the relevant programs installed correctly, and i know my path is correct (otherwise apk manager wouldnt pick java up and wont work)
I just wanted to know what all the people on this forum are using as they are bringing ou mods and roms every day...not everyone uses linux
i have some background knowledge in android and know how to read smali/xml files, i know how to make the mods and where the mods needs to go....i just cannot get the decompiling/recompiling sorted at all....this has taken me months to get this sorted
nodstuff said:
I have a feeling no developer will help you when you have that kind of attitude.
I was going to post here earlier until I saw the smart comment you made in your second post.
Sent from my GT-I9300 using xda premium
Click to expand...
Click to collapse
i suppose im meant to feel like im missing out on your expertise now?
my second post in this thread was THAT BAD it caused you to not want to help AND to make a derogatory comment? i think you need to get out more
and JJ calling me stupid is ok because he has a lot of posts and thanks? hypocrite much?
I didn't make any derogatory comment, I was merely stating facts.
You won't get far here when you behave like that.
You are very angry and there is no need for it.
Sent from my GT-I9300 using xda premium
nodstuff said:
I didn't make any derogatory comment, I was merely stating facts.
You won't get far here when you behave like that.
You are very angry and there is no need for it.
Sent from my GT-I9300 using xda premium
Click to expand...
Click to collapse
lol, and your opinion counts for....? i thought so
im not angry (i love being called angry by a person on the web based on the content of one post - baseless drivel), frustrated yes...theres a difference 'o great one'
_neutron_ said:
Thanks but thats not what im after
im building a rom - i can mod/decompile/recompile .jar files perfect, i know how to set a rom up blah blah blah - i just cant decompile ANY apks without an error or the relevant app fc'ing on me when flashed
The only things i have on my pc are the android sdk, the jdk, a firmware, some mods and multiple apk editing software - i have re-flashed windows and everything else around 20 times. i have followed 19 different tutorials, downloaded 13 different packages that people say will allow me to do what i want but they dont
i know i have the relevant programs installed correctly, and i know my path is correct (otherwise apk manager wouldnt pick java up and wont work)
I just wanted to know what all the people on this forum are using as they are bringing ou mods and roms every day...not everyone uses linux
i have some background knowledge in android and know how to read smali/xml files, i know how to make the mods and where the mods needs to go....i just cannot get the decompiling/recompiling sorted at all....this has taken me months to get this sorted
Click to expand...
Click to collapse
I'm in the same position. I have JD for Eclipse installed and such, but I can't get APK's to recompile at all. I get the exact same errors.
Nobody around here is going to hold your hand and help you out with an attitude like that.
Sent from my GT-I9300 using Tapatalk 2
1. Use APKTool directly instead of wrappers. You learn more this way, I promise.
2. You need a newer aapt.exe in your PATH. Grab the Windows platform-tools from here: http://www.hariadi.org/android/manually-download-of-android-sdk-tools-and-sdk-platform-tools/, take the aapt.exe and place it in a folder that's in your %PATH% (or install the Android SDK)
3. APKTool ships with an older framework-res. Grab /system/framework/framework-res.apk (and optionally twframework-res.apk) and run "apktool if framework-res.apk"
(I haven't read your post fully so there may be something I missed, but the above should get you started)
qwerty12 said:
1. Use APKTool directly instead of wrappers. You learn more this way, I promise.
2. You need a newer aapt.exe in your PATH. Grab the Windows platform-tools from here: http://www.hariadi.org/android/manually-download-of-android-sdk-tools-and-sdk-platform-tools/, take the aapt.exe and place it in a folder that's in your %PATH% (or install the Android SDK)
3. APKTool ships with an older framework-res. Grab /system/framework/framework-res.apk (and optionally twframework-res.apk) and run "apktool if framework-res.apk"
(I haven't read your post fully so there may be something I missed, but the above should get you started)
Click to expand...
Click to collapse
Thanks fella
Ive got all that sorted, using apktool returns errors also...so im not sure
As i mentioned i can de/recompile .jar files no problem...and some 'normal' system apks work fine...its only the important ones that i want to mod that are causing issues
_neutron_ said:
using apktool returns errors also...so im not sure
Click to expand...
Click to collapse
Could you give me a log of what happens when you use APKTool directly, please? To decompile android.policy.jar I have to use this version (I don't recommend using it for everything as it doesn't format the resources' XML correctly - but it's fine for making edits with) or I get a "bad magic value" error
Will do, im not at home right now
edit:
complete log of using apktool
As you can see, it loads and decompiles fine, but wont recompile an unmodified framework
Code:
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\****>apktool
Apktool v1.4.5 - a tool for reengineering Android apk files
Copyright 2010 Ryszard Wi?niewski <[email protected]>
Apache License 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
Usage: apktool [-q|--quiet OR -v|--verbose] COMMAND [...]
COMMANDs are:
d[ecode] [OPTS] <file.apk> [<dir>]
Decode <file.apk> to <dir>.
OPTS:
-s, --no-src
Do not decode sources.
-r, --no-res
Do not decode resources.
-d, --debug
Decode in debug mode. Check project page for more info.
-f, --force
Force delete destination directory.
-t <tag>, --frame-tag <tag>
Try to use framework files tagged by <tag>.
--keep-broken-res
Use if there was an error and some resources were dropped, e.g.:
"Invalid config flags detected. Dropping resources", but you
want to decode them anyway, even with errors. You will have to
fix them manually before building.
b[uild] [OPTS] [<app_path>] [<out_file>]
Build an apk from already decoded application located in <app_path>.
It will automatically detect, whether files was changed and perform
needed steps only.
If you omit <app_path> then current directory will be used.
If you omit <out_file> then <app_path>/dist/<name_of_original.apk>
will be used.
OPTS:
-f, --force-all
Skip changes detection and build all files.
-d, --debug
Build in debug mode. Check project page for more info.
if|install-framework <framework.apk> [<tag>]
Install framework file to your system.
For additional info, see: http://code.google.com/p/android-apktool/
C:\Users\****>apktool d C:\framework-res.apk
I: Loading resource table...
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
C:\Users\****>apktool b C:\Users\****\framework-res
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\****\AppData\Local\Temp\APK
TOOL1954503919927585308.tmp, -x, -S, C:\Users\****\framework-res\res, -M, C:\User
s\****\framework-res\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\****\AppData\Local\Temp\APKTOOL1954503919927585308.tmp, -x, -S, C:\Users\****
\framework-res\res, -M, C:\Users\****\framework-res\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:87)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more
Caused by: java.io.IOException: Cannot run program "aapt": CreateProcess error=2
, The system cannot find the file specified
at java.lang.ProcessBuilder.start(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at brut.util.OS.exec(OS.java:78)
... 7 more
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find th
e file specified
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
... 11 more
C:\Users\****>
_neutron_ said:
Will do, im not at home right now
edit:
Click to expand...
Click to collapse
ption: could not exec command: [aapt, p, -F, C:\Users\****\AppData\Local\Temp\APK
Click to expand...
Click to collapse
Like I said in my previous post, you need to have aapt.exe in a folder that's in your path

[HELP] Decompiling SystemUI.apk

Hi,
I have problem with decompiling "SystemUI.apk". I tried this guide. framework-res.apk I decompiled succesfully, but when I tried decompile systemui.apk, I give this error. I installed JAVA and APKmanager... Need I still install something?
Code:
|st 14. 11. 2012 -- 17:09:35,37|
--------------------------------------------------------------------------
java version "1.7.0_09"
Java(TM) SE Runtime Environment (build 1.7.0_09-b05)
Java HotSpot(TM) Client VM (build 23.5-b02, mixed mode, sharing)
Could Not Find C:\Users\Martin\Downloads\Apk_Manager_5.0.2\place-apk-here-for-modding\../place-apk-here-for-modding/signedSystemUI.apk
Could Not Find C:\Users\Martin\Downloads\Apk_Manager_5.0.2\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedSystemUI.apk
I: Baksmaling...
I: Loading resource table...
Exception in thread "main" brut.androlib.AndrolibException: Multiple resources: spec=0x7f0a000e dimen/status_bar_icon_drawing_size, config=-v13
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:196)
at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:165)
at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:130)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:105)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:82)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:48)
at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibResources.java:315)
at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.java:50)
at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.java:43)
at brut.androlib.Androlib.getResTable(Androlib.java:44)
at brut.androlib.ApkDecoder.getResTable(ApkDecoder.java:148)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:98)
at brut.apktool.Main.cmdDecode(Main.java:120)
at brut.apktool.Main.main(Main.java:57)
Could Not Find C:\Users\Martin\Downloads\Apk_Manager_5.0.2\place-apk-here-for-modding\../place-apk-here-for-modding/signedSystemUI.apk
Could Not Find C:\Users\Martin\Downloads\Apk_Manager_5.0.2\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedSystemUI.apk
I: Baksmaling...
I: Loading resource table...
Exception in thread "main" brut.androlib.AndrolibException: Multiple resources: spec=0x7f0a000e dimen/status_bar_icon_drawing_size, config=-v13
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:196)
at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:165)
at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:130)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:105)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:82)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:48)
at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibResources.java:315)
at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.java:50)
at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.java:43)
at brut.androlib.Androlib.getResTable(Androlib.java:44)
at brut.androlib.ApkDecoder.getResTable(ApkDecoder.java:148)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:98)
at brut.apktool.Main.cmdDecode(Main.java:120)
at brut.apktool.Main.main(Main.java:57)
Please, I need advise.
Thanks
Mlopik said:
Hi,
I have problem with decompiling "SystemUI.apk". I tried this guide. framework-res.apk I decompiled succesfully, but when I tried decompile systemui.apk, I give this error. I installed JAVA and APKmanager... Need I still install something?
Code:
|st 14. 11. 2012 -- 17:09:35,37|
--------------------------------------------------------------------------
java version "1.7.0_09"
Java(TM) SE Runtime Environment (build 1.7.0_09-b05)
Java HotSpot(TM) Client VM (build 23.5-b02, mixed mode, sharing)
Could Not Find C:\Users\Martin\Downloads\Apk_Manager_5.0.2\place-apk-here-for-modding\../place-apk-here-for-modding/signedSystemUI.apk
Could Not Find C:\Users\Martin\Downloads\Apk_Manager_5.0.2\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedSystemUI.apk
I: Baksmaling...
I: Loading resource table...
Exception in thread "main" brut.androlib.AndrolibException: Multiple resources: spec=0x7f0a000e dimen/status_bar_icon_drawing_size, config=-v13
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:196)
at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:165)
at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:130)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:105)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:82)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:48)
at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibResources.java:315)
at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.java:50)
at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.java:43)
at brut.androlib.Androlib.getResTable(Androlib.java:44)
at brut.androlib.ApkDecoder.getResTable(ApkDecoder.java:148)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:98)
at brut.apktool.Main.cmdDecode(Main.java:120)
at brut.apktool.Main.main(Main.java:57)
Could Not Find C:\Users\Martin\Downloads\Apk_Manager_5.0.2\place-apk-here-for-modding\../place-apk-here-for-modding/signedSystemUI.apk
Could Not Find C:\Users\Martin\Downloads\Apk_Manager_5.0.2\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedSystemUI.apk
I: Baksmaling...
I: Loading resource table...
Exception in thread "main" brut.androlib.AndrolibException: Multiple resources: spec=0x7f0a000e dimen/status_bar_icon_drawing_size, config=-v13
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:196)
at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:165)
at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:130)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:105)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:82)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:48)
at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibResources.java:315)
at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.java:50)
at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.java:43)
at brut.androlib.Androlib.getResTable(Androlib.java:44)
at brut.androlib.ApkDecoder.getResTable(ApkDecoder.java:148)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:98)
at brut.apktool.Main.cmdDecode(Main.java:120)
at brut.apktool.Main.main(Main.java:57)
Please, I need advise.
Thanks
Click to expand...
Click to collapse
Try to put Apk Manager on root hard drive "C:\" "D:\"
Enviado desde mi X10i
Are you using latest apktool 1.5.0 ?
xSkArx said:
Try to put Apk Manager on root hard drive "C:\" "D:\"
Enviado desde mi X10i
Click to expand...
Click to collapse
Thanks it is working... :highfive:
Some help please.I have the APK Manager in C:\ and still getting an error when i trying to decompile systemui.apk. What I'm I doing wrong? Heres the screen shot:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
ink718 said:
Some help please.I have the APK Manager in C:\ and still getting an error when i trying to decompile systemui.apk. What I'm I doing wrong? Heres the screen shot:
Click to expand...
Click to collapse
Use latest apktool 1.5.1
varun.chitre15 said:
Use latest apktool 1.5.1
Click to expand...
Click to collapse
Also make sure there are no spaces in your path. Example:
C:\Foldername\ (correct)
C:\Folder name\ (not correct)
Inviato dal mio GT-I9100 con Tapatalk 2
I succesfuly decompiled .apk with this simple guide!
You can try it. Thanks to him.

Categories

Resources