hi, im using xperia sola...... i have to correct the framework-res.apk file as per this thread..... after doing so,
when compiling the framework-res.apk filr gives me this error
PHP:
C:\Apktool>java -jar apktool.jar if framework-res.apk
I: Framework installed to: C:\Users\Pulak\apktool\framework\1.apk
C:\Apktool>java -jar apktool.jar if systemui.apk
I: Framework installed to: C:\Users\Pulak\apktool\framework\127.apk
C:\Apktool>java -jar apktool.jar d framework-res.apk frameres
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Loading resource table from file: C:\Users\Pulak\apktool\framework\2.apk
I: Loaded.
I: Done.
I: Copying assets and libs...
C:\Apktool>java -jar apktool.jar b frameres NEWframework-res.apk
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
aapt: warning: string 'BaMmi' has no default translation in C:\Apktool\frameres\
res; found: ar bg ca cs da de el en_GB es es_US et fa fi fr hi hr hu in it iw ko
lt lv ms nb nl pl pt pt_PT ro ru sk sl sr sv th tl tr uk vi zh_CN zh_TW
I: Building apk file...
C:\Apktool>java -jar apktool.jar b frameres NEWframework-res.apk
W: Could not find sources
I: Checking whether resources has changed...
I: Building apk file...
C:\Apktool>
whats with the : cannot find source and aapt warning???? i thought i will not get any error at all..
and i have to use another apk as using the framework res.apk only will give me error.... i used SemcGenericUxpRes.apk... is it the right one?? or i need the systemui.apk???
please help and point me to the right direction...
Related
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).
Hi,
I have Xperia ARC with 4.0.2.A.0.62 Firmware
I have decompile SystemUI.apk with apktool. No problem.
Code:
C:\Xperia\apktool>apktool d SystemUI.apk
I: Baksmaling...
testI: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\hadramos\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
I have recompile apk with apktool without changing the source.
Just one test (decompile, recompile, push).
No problem.
Code:
C:\Xperia\apktool>apktool b -f SystemUI unsignedSystemUI.apk
I: Smaling...
I: Building resources...
I: Building apk file...
And i have sign unsignedSystemUI.apk width apkmanager. No problem.
I have push the file with ADB (Rename unsignedSystemUI.apk to SystemUI.apk).
Code:
C:\Xperia\Root>adb push SystemUI.apk /system/app/SystemUI.apk
1897 KB/s (244881 bytes in 0.126s)
And i reboot the phone.
Code:
C:\Xperia\Root>adb reboot
My phone rebooting but i don't have the status bar
You know why ?
Thank you in advance for your help
Thats my problem, too.
I don't no why?
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??
Hello my friends.
I installed frameworkres and tw framework resources files. I decompiled SystemUI.apk and changed drawables.xml and status bar smali.
But I can't compile SystemUI.apk Error.
Log is here :
Code:
java version "1.7.0_05"
Java(TM) SE Runtime Environment (build 1.7.0_05-b05)
Java HotSpot(TM) 64-Bit Server VM (build 23.1-b03, mixed mode)
C:\Windows\SysWOW64\Apk Manager\place-apk-here-for-modding\../place-apk-here-for-modding/signedSystemUI.apk BulunamadĀ
C:\Windows\SysWOW64\Apk Manager\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedSystemUI.apk BulunamadĀ
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\HP\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...
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.java:345)
at org.antlr.runtime.tree.CommonTreeNodeStream.getSourceName(CommonTreeNodeStream.java:106)
at org.antlr.runtime.tree.TreeP****r.getSourceName(TreeP****r.java:78)
at org.jf.smali.smaliTreeWalker.getErrorHeader(smaliTreeWalker.java:372)
at org.antlr.runtime.BaseRecognizer.displayRecognitionError(BaseRecognizer.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:243)
at brut.androlib.Androlib.buildSources(Androlib.java:200)
at brut.androlib.Androlib.build(Androlib.java:191)
at brut.androlib.Androlib.build(Androlib.java:174)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
hi there
trying to decompile Doogee DG800 SystemUI.apk but it gives a error
Code:
--------------------------------------------------------------------------
|23-08-2014 -- 9:57:51,55|
--------------------------------------------------------------------------
java version "1.7.0_67"
Java(TM) SE Runtime Environment (build 1.7.0_67-b01)
Java HotSpot(TM) Client VM (build 24.65-b04, mixed mode, sharing)
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\lloco\apktool\framework\1.apk
I: Loaded.
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Loading resource table from file: C:\Users\lloco\apktool\framework\2.apk
Exception in thread "main" brut.androlib.AndrolibException: Expected pkg of id: 2, got: 1
at brut.androlib.res.AndrolibResources.loadFrameworkPkg(AndrolibResources.java:118)
at brut.androlib.res.data.ResTable.getPackage(ResTable.java:75)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:58)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:54)
at brut.androlib.res.data.value.ResReferenceValue.getReferent(ResReferenceValue.java:62)
at brut.androlib.res.data.value.ResStyleValue.serializeToResValuesXml(ResStyleValue.java:51)
at brut.androlib.res.AndrolibResources.generateValuesFile(AndrolibResources.java:440)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:243)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:115)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:114)
at brut.apktool.Main.cmdDecode(Main.java:146)
at brut.apktool.Main.main(Main.java:77)
it says it neede id: 2 framework but can't find it
Can anyone help?
lloco73 said:
hi there
trying to decompile Doogee DG800 SystemUI.apk but it gives a error
Code:
--------------------------------------------------------------------------
|23-08-2014 -- 9:57:51,55|
--------------------------------------------------------------------------
java version "1.7.0_67"
Java(TM) SE Runtime Environment (build 1.7.0_67-b01)
Java HotSpot(TM) Client VM (build 24.65-b04, mixed mode, sharing)
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\lloco\apktool\framework\1.apk
I: Loaded.
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Loading resource table from file: C:\Users\lloco\apktool\framework\2.apk
Exception in thread "main" brut.androlib.AndrolibException: Expected pkg of id: 2, got: 1
at brut.androlib.res.AndrolibResources.loadFrameworkPkg(AndrolibResources.java:118)
at brut.androlib.res.data.ResTable.getPackage(ResTable.java:75)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:58)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:54)
at brut.androlib.res.data.value.ResReferenceValue.getReferent(ResReferenceValue.java:62)
at brut.androlib.res.data.value.ResStyleValue.serializeToResValuesXml(ResStyleValue.java:51)
at brut.androlib.res.AndrolibResources.generateValuesFile(AndrolibResources.java:440)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:243)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:115)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:114)
at brut.apktool.Main.cmdDecode(Main.java:146)
at brut.apktool.Main.main(Main.java:77)
it says it neede id: 2 framework but can't find it
Can anyone help?
Click to expand...
Click to collapse
resolved
just added to C:\Users\yourname\apktool\framework mediatek-res.apk renaming it to 2.apk and after he decodes ok