Problems decompiling/compiling settings.apk in KitKat mediatek mt6592 - Android Q&A, Help & Troubleshooting

Hi all!
I was trying to make some changes in Settings.apk from my Elephone P8, a mt6592 device with kitkat (4.4.2), when I had a problem: it's impossible to decompile/recompile this apk!!
Here, you can see a log of simple decompile-compile action, with no changes in any file
Code:
[[email protected] ~]$ cd apktool/
[[email protected] apktool]$ ./apktool if framework-res.apk
I: Framework installed to: /home/javi/apktool/framework/1.apk
[[email protected] apktool]$ ./apktool if SystemUI.apk
I: Framework installed to: /home/javi/apktool/framework/127.apk
[[email protected] apktool]$ ./apktool d Settings.apk
I: Using Apktool 2.0.0-RC2 on Settings.apk
I: Loading resource table...
W: Skipping "android" package group
I: Loading resource table...
W: Skipping "android" package group
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: /home/javi/apktool/framework/1.apk
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Baksmaling classes.dex...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
[[email protected] apktool]$ ./apktool b Settings.apk
I: Using Apktool 2.0.0-RC2 on Settings.apk
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathNotExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java:247)
at brut.androlib.Androlib.build(Androlib.java:266)
at brut.androlib.Androlib.build(Androlib.java:258)
at brut.apktool.Main.cmdBuild(Main.java:240)
at brut.apktool.Main.main(Main.java:89)
Caused by: brut.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:103)
at brut.androlib.Androlib.readMetaFile(Androlib.java:243)
... 4 more
[[email protected] apktool]$
What i've tried:
- Installing dependencies from: mediatek-res.apk, Systemui.apk, Settings.apk, ext.jar, etc... nothing worked ;/
- Using another tools as apk multitool, advanced apk tool, etc... not working also
- Copying original resources.asrc and classes.dex from original Settings.apk to Settings folder after decompiled. This compile Settings apk, but no encoded, so it's unuseful
- Ussing differente enviroments: BBQ linux, Ubuntu, Windows 8.1... Not working in any of them
I'v tried to do the same with another mt6952 device, the BQ Aquaris E5 FHD with similar results... so it's a mediatek kitkat common problem.
Can you help me, guys????? Any idea what can I try next??

johnnybra said:
Hi all!
I was trying to make some changes in Settings.apk from my Elephone P8, a mt6592 device with kitkat (4.4.2), when I had a problem: it's impossible to decompile/recompile this apk!!
Here, you can see a log of simple decompile-compile action, with no changes in any file
Code:
[[email protected] ~]$ cd apktool/
[[email protected] apktool]$ ./apktool if framework-res.apk
I: Framework installed to: /home/javi/apktool/framework/1.apk
[[email protected] apktool]$ ./apktool if SystemUI.apk
I: Framework installed to: /home/javi/apktool/framework/127.apk
[[email protected] apktool]$ ./apktool d Settings.apk
I: Using Apktool 2.0.0-RC2 on Settings.apk
I: Loading resource table...
W: Skipping "android" package group
I: Loading resource table...
W: Skipping "android" package group
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: /home/javi/apktool/framework/1.apk
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Baksmaling classes.dex...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
[[email protected] apktool]$ ./apktool b Settings.apk
I: Using Apktool 2.0.0-RC2 on Settings.apk
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathNotExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java:247)
at brut.androlib.Androlib.build(Androlib.java:266)
at brut.androlib.Androlib.build(Androlib.java:258)
at brut.apktool.Main.cmdBuild(Main.java:240)
at brut.apktool.Main.main(Main.java:89)
Caused by: brut.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:103)
at brut.androlib.Androlib.readMetaFile(Androlib.java:243)
... 4 more
[[email protected] apktool]$
What i've tried:
- Installing dependencies from: mediatek-res.apk, Systemui.apk, Settings.apk, ext.jar, etc... nothing worked ;/
- Using another tools as apk multitool, advanced apk tool, etc... not working also
- Copying original resources.asrc and classes.dex from original Settings.apk to Settings folder after decompiled. This compile Settings apk, but no encoded, so it's unuseful
- Ussing differente enviroments: BBQ linux, Ubuntu, Windows 8.1... Not working in any of them
I'v tried to do the same with another mt6952 device, the BQ Aquaris E5 FHD with similar results... so it's a mediatek kitkat common problem.
Can you help me, guys????? Any idea what can I try next??
Click to expand...
Click to collapse
Well see that's the issue. As they seldom use official software. You will have to make sure to only use the framework from you device. Make sure to install them all. Also make sure the rom is deodex or you won't be able to decompile anything.

Thank you.
All files are from the same device (elephone p8), extracted and deodexed by me and working well in a ROM.
UPDATE: I succesfullly recompiled settings.apk!!! I installed mediatek-res.apk, but apktool.yml did not use it, so I edited the file including it and ... voilá!
Thank you, friend, without your words it couldn't be possible

johnnybra said:
Thank you.
All files are from the same device (elephone p8), extracted and deodexed by me and working well in a ROM.
UPDATE: I succesfullly recompiled settings.apk!!! I installed mediatek-res.apk, but apktool.yml did not use it, so I edited the file including it and ... voilá!
Thank you, friend, without your words it couldn't be possible
Click to expand...
Click to collapse
Explain exactly how you did it?

marsapa said:
Explain exactly how you did it?
Click to expand...
Click to collapse
Hi, friend. Glad to see you here Your Roms are awesome.
You must decompile settings.apk installing framework-res.apk and mediatek-res.apk first.
Then, before recompiling, you must open apktool.yml and you'll see a line that point to used dependences. Something like "- 1". Simply add after this one a new line with "- 2" if you installed dependences using default mode. Then save the changes and compile in normal way.

johnnybra said:
Hi, friend. Glad to see you here Your Roms are awesome.
You must decompile settings.apk installing framework-res.apk and mediatek-res.apk first.
Then, before recompiling, you must open apktool.yml and you'll see a line that point to used dependences. Something like "- 1". Simply add after this one a new line with "- 2" if you installed dependences using default mode. Then save the changes and compile in normal way.
Click to expand...
Click to collapse
I'm sorry I did not understand, unfortunately I'm arguing with the framework-res.apk of 6595, I published the change that you made so I try the new soc?

marsapa said:
I'm sorry I did not understand, unfortunately I'm arguing with the framework-res.apk of 6595, I published the change that you made so I try the new soc?
Click to expand...
Click to collapse
I'm sorry, I'm with Tapatalk. This afternoon I'll post some screenshots of what I'm saying, OK?

marsapa said:
I'm sorry I did not understand, unfortunately I'm arguing with the framework-res.apk of 6595, I published the change that you made so I try the new soc?
Click to expand...
Click to collapse
ok i have solve, thaks

marsapa said:
ok i have solve, thaks
Click to expand...
Click to collapse
With the soc mediatek 6595 I have a problem installing, decompile and compile the framework-res.apk with apktool v2.0.0RC3 I can not even decompile the framework and have this error: Log For : framework-res.apk
Log Type : Decompiling
Log Recorded At : 09 2014-12- 10:03:34,86
Log Recorded By : Advanced ApkTool v4.1.0 By BDFreak
------------------------------------------------------
Exception in thread "main" brut.androlib.AndrolibException: Multiple resources: spec=0x010e0045 integer/config_mobile_mtu, config=-mcc460
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:186)
at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:157)
at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:125)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:100)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:78)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:47)
at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibResources.java:606)
at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.java:75)
at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.java:67)
at brut.androlib.Androlib.getResTable(Androlib.java:61)
at brut.androlib.ApkDecoder.setTargetSdkVersion(ApkDecoder.java:206)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:92)
at brut.apktool.Main.cmdDecode(Main.java:165)
at brut.apktool.Main.main(Main.java:81)
while with earlier versions it, but still not what recompile is the log: .
For the rest mediatek.res.apk installing and making the change to apktool.ylm decompilo and recompile all files including settings.apk
Tips?

marsapa said:
With the soc mediatek 6595 I have a problem installing, decompile and compile the framework-res.apk with apktool v2.0.0RC3 I can not even decompile the framework and have this error: Log For : framework-res.apk
Log Type : Decompiling
Log Recorded At : 09 2014-12- 10:03:34,86
Log Recorded By : Advanced ApkTool v4.1.0 By BDFreak
------------------------------------------------------
Exception in thread "main" brut.androlib.AndrolibException: Multiple resources: spec=0x010e0045 integer/config_mobile_mtu, config=-mcc460
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:186)
at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:157)
at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:125)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:100)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:78)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:47)
at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibResources.java:606)
at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.java:75)
at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.java:67)
at brut.androlib.Androlib.getResTable(Androlib.java:61)
at brut.androlib.ApkDecoder.setTargetSdkVersion(ApkDecoder.java:206)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:92)
at brut.apktool.Main.cmdDecode(Main.java:165)
at brut.apktool.Main.main(Main.java:81)
while with earlier versions it, but still not what recompile is the log: .
For the rest mediatek.res.apk installing and making the change to apktool.ylm decompilo and recompile all files including settings.apk
Tips?
Click to expand...
Click to collapse
Are you trying to decompiling for meizu mx4??? I'll tried it too, but I couldn't find the way to install framework as dependence. Same error as yours.

That's because they use files that differ from stock Android that apk tool is not set to use and the apktool dev already stated he will not add support for it.

Related

[HOW-TO] [TEAM XPOSED] Enable extra display features

Deprecated.
Screen Calibration
Deprecated
TV Out
Deprecated
I have tried every program I can to decompile my settings.apk but I can't seem to find the HtcDisplayFeatureFlags.smali file. All I get are an assets folder, an res folder, an AndroidManifest.xml file and an apktool.yml file. I have searched all over this site as well as google but cannot find out what I might possibly be doing wrong. Could someone please point me in the right direction as to how I'm supposed to decompile the settings.apk in order to get the smali files?
SSG27 said:
I have tried every program I can to decompile my settings.apk but I can't seem to find the HtcDisplayFeatureFlags.smali file. All I get are an assets folder, an res folder, an AndroidManifest.xml file and an apktool.yml file. I have searched all over this site as well as google but cannot find out what I might possibly be doing wrong. Could someone please point me in the right direction as to how I'm supposed to decompile the settings.apk in order to get the smali files?
Click to expand...
Click to collapse
are you decompiling or extracting the apk .
the full root to it is Settings.apk\smali\com\android\settings\framework\flag\feature
Ajthescot said:
are you decompiling or extracting the apk .
the full root to it is Settings.apk\smali\com\android\settings\framework\flag\feature
Click to expand...
Click to collapse
Tried both. When I decompile it, I've tried both apktool and multitool aka apk manager but the results are settings.apk/res and settings.apk/assets. When I use apktool, the following is shown on the screen when I run the apktool.bat file in command prompt:
I: Loading resource table...
W: Skipping "android" package group
I: Loaded.
I: Loading resource table from file: C:\Users\Bonnie\apktool\framework\1.apk
I: Loaded.
I: Loading resource table from file: C:\Users\Bonnie\apktool\framework\2.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
Afterwards, I check the output folder and only the assets and res folders are there along with AndroidManifest.xml and apktool.yml

[Q&A] [UTIL][Oct 5 2014] Apktool v2.0.0 RC2 - a tool for reverse engineering apk fil.

[Q&A] [UTIL][Oct 5 2014] Apktool v2.0.0 RC2 - a tool for reverse engineering apk fil.
Q&A for [UTIL][Oct 5 2014] Apktool v2.0.0 RC2 - a tool for reverse engineering apk files
Some developers prefer that questions remain separate from their main development thread to help keep things organized. Placing your question within this thread will increase its chances of being answered by a member of the community or by the developer.
Before posting, please use the forum search and read through the discussion thread for [UTIL][Oct 5 2014] Apktool v2.0.0 RC2 - a tool for reverse engineering apk files. If you can't find an answer, post it here, being sure to give as much information as possible (firmware version, steps to reproduce, logcat if available) so that you can get help.
Thanks for understanding and for helping to keep XDA neat and tidy!
Great! Thank alot! :good:
chung cư linh đàm
When use on MIUI 6
I got errors like:
invalid resource directory name: D:\Android\ApkIDE\Work\android\res/values-mcc9460-mnc9000
invalid resource directory name: D:\Android\ApkIDE\Work\android\res/values-mcc9998-mnc9999
can help me?
jazchen.tw said:
When use on MIUI 6
I got errors like:
invalid resource directory name: D:\Android\ApkIDE\Work\android\res/values-mcc9460-mnc9000
invalid resource directory name: D:\Android\ApkIDE\Work\android\res/values-mcc9998-mnc9999
can help me?
Click to expand...
Click to collapse
mnc max value is 999. Those are invalid values, not to mention you have backslashes mixed with forward slashes. You could either remove the folders or change them to mnc900 and mnc999.
iBotPeaches said:
mnc max value is 999. Those are invalid values, not to mention you have backslashes mixed with forward slashes. You could either remove the folders or change them to mnc900 and mnc999.
Click to expand...
Click to collapse
Those directories are miui official added.
Probably used to distinguish china edition or international edition (global edition).
I understand the part about the backslash, remove these directories can be done properly.
Can anyone take a look and let me know what i need to do? Thank you.
C:\>cd \apktool\apktool
C:\Apktool\Apktool>apktool d app.apk
Destination directory (C:\Apktool\Apktool\app) already exists. Use -f switch if
you want to overwrite it.
C:\Apktool\Apktool>apktool d app.apk
I: Using Apktool 2.0.0-RC2 on app.apk
I: Loading resource table...
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\David Weidman\apktool\framework\1.
apk
I: Regular manifest package...
I: Decoding file-resources...
W: Could not decode attr value, using undecoded value instead: ns=android, name=
touchscreenBlocksFocus, value=0xffffffff
I: Decoding values */* XMLs...
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec:
0x0101048f
at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:59)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:58)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:54)
at brut.androlib.res.decoder.ResAttrDecoder.decode(ResAttrDecoder.java:3
6)
at brut.androlib.res.decoder.AXmlResourceParser.getAttributeValue(AXmlRe
sourceParser.java:369)
at org.xmlpull.v1.wrapper.classic.XmlPullParserDelegate.getAttributeValu
e(XmlPullParserDelegate.java:69)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartT
ag(StaticXmlSerializerWrapper.java:267)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(Stati
cXmlSerializerWrapper.java:211)
at brut.androlib.res.decoder.XmlPullStreamDecoder$1.event(XmlPullStreamD
ecoder.java:83)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDe
coder.java:141)
at brut.androlib.res.decoder.ResStreamDecoderContainer.decode(ResStreamD
ecoderContainer.java:33)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:1
07)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:9
1)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:322
)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:123)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:102)
at brut.apktool.Main.cmdDecode(Main.java:170)
at brut.apktool.Main.main(Main.java:86)
C:\Apktool\Apktool>
Hello,
I'm modding APK's for a while but today, I got a problem with an APK. When I'm decompiling and recompiling the APK without making changes then signing, it just closes on Android (No FC error) It worked for months, but since today's update not. So how can I fix this? Is the APK protected? Please help!
dr_w said:
Can anyone take a look and let me know what i need to do? Thank you.
C:\>cd \apktool\apktool
C:\Apktool\Apktool>apktool d app.apk
Destination directory (C:\Apktool\Apktool\app) already exists. Use -f switch if
you want to overwrite it.
C:\Apktool\Apktool>apktool d app.apk
I: Using Apktool 2.0.0-RC2 on app.apk
I: Loading resource table...
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\David Weidman\apktool\framework\1.
apk
I: Regular manifest package...
I: Decoding file-resources...
W: Could not decode attr value, using undecoded value instead: ns=android, name=
touchscreenBlocksFocus, value=0xffffffff
I: Decoding values */* XMLs...
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec:
0x0101048f
at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:59)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:58)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:54)
at brut.androlib.res.decoder.ResAttrDecoder.decode(ResAttrDecoder.java:3
6)
at brut.androlib.res.decoder.AXmlResourceParser.getAttributeValue(AXmlRe
sourceParser.java:369)
at org.xmlpull.v1.wrapper.classic.XmlPullParserDelegate.getAttributeValu
e(XmlPullParserDelegate.java:69)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartT
ag(StaticXmlSerializerWrapper.java:267)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(Stati
cXmlSerializerWrapper.java:211)
at brut.androlib.res.decoder.XmlPullStreamDecoder$1.event(XmlPullStreamD
ecoder.java:83)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDe
coder.java:141)
at brut.androlib.res.decoder.ResStreamDecoderContainer.decode(ResStreamD
ecoderContainer.java:33)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:1
07)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:9
1)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:322
)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:123)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:102)
at brut.apktool.Main.cmdDecode(Main.java:170)
at brut.apktool.Main.main(Main.java:86)
C:\Apktool\Apktool>
Click to expand...
Click to collapse
Did you install all the resources?
Errors in the apktool are always in the very first section.
Yours states it couldn't decode something, so if you haven't I would try installing all the resources again
Sent from my SM-N900T using Tapatalk 2
你发布这个版本的apktool 无法在 Android 5.0 上面使用,egg pain
lil' problem
hello there!
im not a newbie in theming, but i just wanna ask..
why i always need to copy both META-INF and the AndroidManifest in order install the stock app (like Settings)..
i always need a custom rom where i can edit apks without copying those both files,...
it gives me the creeps.. i hate doing that since it consumes a time..
i cant make changes for some of my deodexed stock apps..
i still wondering how the devs make some changes for some apps..
i hope you got my point..
Apktool rc3
HI
can anyone help me?
i want to change the navbar size of my n4
i decompile framework-res.apk and change some of thinks. :
what i did ?
--
1 java -jar apktool.jar if framework-res.apk
2 java -jar apktool.jar d framework-res.apk
3 change the size in apktool/framework-res/res/value/dimens.xml
4 java -jar apktool.jar b framework-res
5 change framework-res.apk to .zip and move framework-res/build/apk/Androidmanifest.xml to framework-res.zip
6 change framework-res.zip to apk
is this ok or not ?
sorry for my bad english
Hi,
I'm trying to use apktool as a library inside another app, but it seems (at first glance at least) that a lot of the processing depends on setting files and the process working to take the compressed data in the apk, decode it, and write the output to a directory structure.
Is there already a sort of "simple" way to pass in an APK (or better yet, an InputStream or byte array) and have that return an XML document or even just a text stream of a resources file (values files or AndroidManifest.xml)? Or am I basically on my own to setup the objects/change the source to be able to access this sort of functionality?
Thank you!
GI0\/\NNI said:
Hello,
I'm modding APK's for a while but today, I got a problem with an APK. When I'm decompiling and recompiling the APK without making changes then signing, it just closes on Android (No FC error) It worked for months, but since today's update not. So how can I fix this? Is the APK protected? Please help!
Click to expand...
Click to collapse
try to disable signature verification,.. i think it would help..
i have the same prob,..
im not newbie in theming but when i start modding system app from my deodexed stock rom .. i got that prob..
an hour ago,.. i found a solution,.. (not yet tried) . from Pyler's post ..
ee this thread
http://forum.xda-developers.com/xposed/modules/xposed-disablesignaturecheck-t2783480
hope it helped you
My rockchip rk3066 ft970 tab not boot i think its bricked. I don't have backup. How to recover by rkbatchtool i successfully installed driver in rkbatchtool green box appears but when i flash cwm.img error that firmware is missing. So how i get firmware for my tab please help I'm new to xda and all
Thanks in advance
Can anyone help me decompiling this apk ?
Dropbox.com/s/05kj2x4zie734b9/com.asobimo.iruna_en-1.apk?dl=0
I can decompile with a Lot of errors and then many smali files have no .end method which makes recompiling impossible.
Decompiling errors for Multiple resources
Hello there
I've tried to decompiling and evectually install some framework-res.apk, miui6, mine lenovo A806 framework, on three different so, ubuntu 64bit, bbqlinux and, last, win7, with the same results:
Exception in thread "main" brut.androlib.AndrolibException: Multiple resources: spec=0x010e0047 integer/config_mobile_mtu, config=-mcc460
detail on:
pastebin.com/isMFnP0v
BBq and Ubuntu are 64bit with lib32 enabled.
apktool ver. 2.0.0 RC3
Other frameworks as mediatek-res works well
Any idea?
Thanks
S.
ultimacorsa said:
Hello there
I've tried to decompiling and evectually install some framework-res.apk, miui6, mine lenovo A806 framework, on three different so, ubuntu 64bit, bbqlinux and, last, win7, with the same results:
Exception in thread "main" brut.androlib.AndrolibException: Multiple resources: spec=0x010e0047 integer/config_mobile_mtu, config=-mcc460
detail on:
pastebin.com/isMFnP0v
BBq and Ubuntu are 64bit with lib32 enabled.
apktool ver. 2.0.0 RC3
Other frameworks as mediatek-res works well
Any idea?
Thanks
S.
Click to expand...
Click to collapse
Solved!
Thanks
S.
Uncompressed unknown files becomes compressed.
Issue:
https://code.google.com/p/android-apktool/issues/detail?id=769&thanks=769&ts=1424960582
I believe it prevents monodroid/xamarin apk from working.
ultimacorsa said:
Solved!
Thanks a lotv1 e v2
S.
Click to expand...
Click to collapse
Thanks a lotv1 e v2
---------- Post added at 06:52 PM ---------- Previous post was at 06:44 PM ----------
ultimacorsa said:
Thanks a lotv1 e v2
Click to expand...
Click to collapse
I need to reach 10 posts
---------- Post added at 07:41 PM ---------- Previous post was at 06:52 PM ----------
Hello, decompile with apktool rc4, via dos cmd line or linux shell
insert value-xx (xx=lang)
Recompile with some warning about the default strings
Insert in the new lenovosettings.apk META-INF and AndroidManifest.xml, substituite the file in the priv-app, restart the phone...But the settings return an error message: the application blocked anomaly mode, more o less.
The courios is that the USB message is translate as the new apk laguage.
Any suggestion?
Thanks a lot
S.
Hello. I have a problem with APK tool.
I`m making localization for my phone (Motorola Razr M) since last year.
I made couple builds and its was fine. But when i did last one, i found a bug in my mod: Google Now cant launch - it just hangs screen (need to turn screen on\off to make it work)
I found out that problem is in framework-res.apk. if decompile and recompile it back even without any changes - bug persist. My previous builds was ok, and i used same Java version and same apktool version. Framework compiles without any errors. Tried different pc, different java versions (different builds of 7 and 8 java), even tried different phone.
Tried to use non-modified (original) framework-res.apk as framework, tried localized version.
Even tried to change file modification date.
Nothing helps. Dunno where to look.
sorry for bad english

[Q] Error while decompiling framework-res.apk (Lenovo VIBE 2.5)

Hi,
I try to decompile the frameworks-res.apk of the VIBE 2.5 Rom (Lollipop 5.0) for the Elephone P6000.
The original Rom has now German language and I thought of trying to add it to the Rom.
I used the newest APKTool, but when I try to decompile it, it gives me the following error:
Code:
J:\basteln\apktool>apktool d framework-res.apk
I: Using Apktool 2.0.0 on framework-res.apk
I: Loading resource table...
I: Decoding Shared Library (lenovo), pkgId: 9
I: Decoding AndroidManifest.xml with resources...
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
Can't find framework resources for package of id: 9. You must install proper framework files, see project website for more info.
The framework for frameworks-res is installed via 'apktool if framework-res.apk'.
I know, he looks for another framework, but for which one and how to install it? I can't find anything on the homepage of APKTool about this.
Files are created in the output directory, but I am not able to rebuild the apk after editing the files. Same error occurs.
It seems to be a problem with the Lenovo VIBE Rom. When I decompile the framework-res.apk out of the stock rom for the phone it works without problems.
Any suggestions?? thanks!!
Quick reply to my self:
I finally found the error. I should have looked a little closer into the Rom to get the needed frameworks.
Seems I was just too blind. Have been looking for hours and some minutes after asking the question I find the answer by myself

[HELP] apktool compiling error

i kept getting this error while decompiling apk . i tried to reinstall JRE. i also reformat my windows (another purpose) and followed a guide step-by-step but still no luck. the process of installing framework is good and nothing error but when i tried to decompile apk, still getting this error
hope someone will help tq :crying:
Code:
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec:
0x01010479
at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:59)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:65)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:61)
at brut.androlib.res.data.value.ResReferenceValue.getReferent(ResReferen
ceValue.java:57)
at brut.androlib.res.data.value.ResReferenceValue.encodeAsResXml(ResRefe
renceValue.java:47)
at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlValue(ResSc
alarValue.java:58)
at brut.androlib.res.data.value.ResStyleValue.serializeToResValuesXml(Re
sStyleValue.java:71)
at brut.androlib.res.AndrolibResources.generateValuesFile(AndrolibResour
ces.java:502)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:252
)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:135)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:102)
at brut.apktool.Main.cmdDecode(Main.java:165)
at brut.apktool.Main.main(Main.java:81)
armageddonreaper said:
i kept getting this error while decompiling apk . i tried to reinstall JRE. i also reformat my windows (another purpose) and followed a guide step-by-step but still no luck. the process of installing framework is good and nothing error but when i tried to decompile apk, still getting this error
hope someone will help tq :crying:
Code:
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec:
0x01010479
at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:59)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:65)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:61)
at brut.androlib.res.data.value.ResReferenceValue.getReferent(ResReferen
ceValue.java:57)
at brut.androlib.res.data.value.ResReferenceValue.encodeAsResXml(ResRefe
renceValue.java:47)
at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlValue(ResSc
alarValue.java:58)
at brut.androlib.res.data.value.ResStyleValue.serializeToResValuesXml(Re
sStyleValue.java:71)
at brut.androlib.res.AndrolibResources.generateValuesFile(AndrolibResour
ces.java:502)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:252
)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:135)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:102)
at brut.apktool.Main.cmdDecode(Main.java:165)
at brut.apktool.Main.main(Main.java:81)
Click to expand...
Click to collapse
When you get this error, download the 2 files in the following link:
http://securityinone.com/storage/apktool-resouces/
Extract them and run below cmd:
apktool if framework-res.apk
and
apktool if SystemUI.apk
Now u try your problem should be solved , we have installed the framework required for lolypop

[PLEASE HELP] Compile Error [APKTool]

Hello there,
I've been trying desperately long to change an Android app, but it just does not work. :crying:
This app is SecSettings.apk and is of a Samsung Galaxy S5 Mini Deodexed ROM. Yesterday I still have them easily change decompile and then recompile can (without signing).
I can change the Launcher Icons and a few options successfully.
It has then everything works well on the device.
Then few minutes have passed and I still wanted to make a small change. I was able to successfully recompile the app again. I then got back to system / privapp / SecSettings moved, set the correct permissions, but after restarting the app will not be installed.
I then tried with signing, zipalign and both, but unsuccessfully.
I also have the app again Decompiles and then recompiled without signing again, without making a change, but then I do not know yet had a parsing error on the device, as previously with the app.
I also once again postponed the original app on the device and it works. I then Mr. downloaded ApkTool again, Java JDK and JRE again Mr. downloaded and reinstalled, but also the app and the necessary framework (Framework res.apk and twframework-res.apk) reinstalled. But all without success. Have it with another system app (Seccontacts.apk) tried, but without success.
Before I could even install everything successfully De / Compiling. :crying:
Now also appears from even a (error) when Decompiling on (he has still Successfully De / recompiled).:
Code:
I: Using Apktool 2.0.3 on SecSettings.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Gregor\apktool\framework\1.apk
I: Regular manifest package...
I: Decoding file-resources...
S: Could not decode file, replacing by FALSE value: drawable-xhdpi-v4/tw_ab_bottom_transparent_dark.holo.9.qmg
I: Decoding values */* XMLs...
I: Baksmaling classes.dex...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
I do this not for the first time and am already hierdrin know (if I may judge for yourself).
I inquired already on the internet, but found nothing useful about these error.
I can upload the apks, if they are needed.
If my English is not good, then I apologize herewith.
Now I hope someone can help me here.
Best regards,
sonnenklar
[please help]
Nice. Not an answer.
Please answer my Question.

Categories

Resources