I can not decompile - Honor 6, 6 Plus Original Android Development

Hi guys. I'm trying to decompile the framework-res.apk and always gives me error. Well the truth is that the first error gives me trying to assign the framework with:
Code:
java -jar apktool.jar if framework-res.apk
I get this error:
Code:
Exception in thread "main" brut.androlib.AndrolibException: Multiple resources: spec=0x01040308 string/lockscreen_carrier_default, config=[DEFAULT]
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:193)
at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:162)
at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:128)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:103)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:81)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:49)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:40)
at brut.androlib.res.AndrolibResources.installFramework(AndrolibResources.java:678)
at brut.androlib.Androlib.installFramework(Androlib.java:645)
at brut.apktool.Main.cmdInstallFramework(Main.java:252)
at brut.apktool.Main.main(Main.java:91)
I tried with all apktool I've seen and always the same error.
Any idea how to fix it?
Thanks.

Related

[Q] De-Compile Won't Work

Can't de-compile apk's in APK Manager. I have installed the proprietary files in apktool, the frameworks, and when I try to de-compile framework-res.apk or Settings.apk it gives an error and it doesn't de-compile.
Code:
LOG
java version "1.7.0_01"
Java(TM) SE Runtime Environment (build 1.7.0_01-b08)
Java HotSpot(TM) 64-Bit Server VM (build 21.1-b02, mixed mode)
'adb' is not recognized as an internal or external command,
operable program or batch file.
Could Not Find C:\Users\alphasquad32\Desktop\APK Manager\place-apk-here-for-modding\../place-apk-here-for-modding/signedframework-res.apk
Could Not Find C:\Users\alphasquad32\Desktop\APK Manager\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedframework-res.apk
I: Loading resource table...
I: Loaded.
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathNotExist: AndroidManifest.xml
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:106)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:114)
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)
Caused by: brut.directory.PathNotExist: AndroidManifest.xml
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:103)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:98)
... 5 more

[Q] [REQ]APK TOOL for XXLJS

Hy.
I always got any little problem witc compile/decompile XXLJS systemui.apk.
I have tried apkmanager 5.02., and apk multy tool with:
apktool 1.4.0,
apktool 1.4.1,
apktool 1.4.2,
apktool 1.4.3,
apktool 1.4.4,
apktool 1.4.5,
apktool 1.4.10,
apktool 1.5.0,
apktool 1.5.1,
.......and no succes. What do I wrong???
Please help me to make more modded apk-s to xxljs roms.
/ I use windows 8/
Thanx.
bezke said:
Hy.
I always got any little problem witc compile/decompile XXLJS systemui.apk.
I have tried apkmanager 5.02., and apk multy tool with:
apktool 1.4.0,
apktool 1.4.1,
apktool 1.4.2,
apktool 1.4.3,
apktool 1.4.4,
apktool 1.4.5,
apktool 1.4.10,
apktool 1.5.0,
apktool 1.5.1,
.......and no succes. What do I wrong???
Please help me to make more modded apk-s to xxljs roms.
/ I use windows 8/
Thanx.
Click to expand...
Click to collapse
i also have warnings when compiling. the trick is to copy the files from the modded SystemUI.apk into the original SystemUI.apk
- geroxx -
bezke said:
Hy.
I always got any little problem witc compile/decompile XXLJS systemui.apk.
I have tried apkmanager 5.02., and apk multy tool with:
apktool 1.4.0,
apktool 1.4.1,
apktool 1.4.2,
apktool 1.4.3,
apktool 1.4.4,
apktool 1.4.5,
apktool 1.4.10,
apktool 1.5.0,
apktool 1.5.1,
.......and no succes. What do I wrong???
Please help me to make more modded apk-s to xxljs roms.
/ I use windows 8/
Thanx.
Click to expand...
Click to collapse
I've just checked decompiling / compiling the SystemUI.apk (from the XXLSJ) and everything works well, with just a "standalone" apktool (1.5.0.5), on Windows 7.
Have you installed the frameworks?
Installing frameworks:
Command:
Code:
apktool if XXLSJ\framework-res.apk
Result:
Code:
I: Framework installed to: C:\Users\Gyebro\apktool\framework\1.apk
Command:
Code:
apktool if XXLSJ\twframework-res.apk
Result:
Code:
I: Framework installed to: C:\Users\Gyebro\apktool\framework\2.apk
Then testing decompile:
Command:
Code:
apktool d SystemUI.apk SystemUI_XXLSJ
Result:
Code:
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Gyebro\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...
Finally test-recompile also finishes without errors:
Command:
Code:
apktool b SystemUI_XXLSJ SystemUI_custom.apk
Result:
Code:
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
aapt: warning: string 'abbrev_wday_abbrev_month_day_no_year' has no default translation ...
... [I]some aapt:warnings that translations are missing[/I] ...
I: Building apk file...
If you want to use APKMultiTool, then you either install frameworks first with running the apktool from command line, or install the frameworks by choosing the "decompile apk with dependencies" option. (But I recommend using the apktool if command)
You only need to install frameworks once. (They are stored in C:\Users\username\apktool\1.apk and 2.apk)
Search for Apk manager for ICS.
Don't remember where I founded but works!
EDIT: Wanam apk manager ICS.
I'm not home now but I remember this apk manager is made by Wanam...search in his HP mate! If you want when I arrive at home I can upload for you and send Google docs link.
Good lucky
Sent from my GT-I9100 using xda app-developers app
i get some zip error
Try Apk Changer. It works with windows 8.
http://forum.xda-developers.com/showthread.php?t=1189971

Compiling SecSettingsProvider

I am currently working on creating a new rom for the Note 2 (XXDLL4 - 4.1.2) and I was trying to edit SecSettingsProvider.apk. While I could decompile it, apktool kept bringing up errors while compiling even when not even modifying the apk. On other system files it worked correctly so I'm wondering if there's a different process to use with this file ?
This is the error :
Code:
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathN
otExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java:168)
at brut.androlib.Androlib.build(Androlib.java:185)
at brut.androlib.Androlib.build(Androlib.java:180)
at brut.apktool.Main.cmdBuild(Main.java:209)
at brut.apktool.Main.main(Main.java:72)
Caused by: brut.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:
103)
at brut.androlib.Androlib.readMetaFile(Androlib.java:164)
... 4 more
Thanks

[Q] Super Power Menu

I tried to implement Super Power Menu (Link) to stock 4.2.2.
I've done following to start:
Code:
java -jar apktool.jar if framework-res.apk
I: Framework installed to: C:\Users\xxx\apktool\framework\1.apk
Now I try to decompile and recompile framework-res.apk without changes. It fails:
Code:
C:\Users\xxx\Downloads\apktool1.5.2.tar>java -jar apktool.jar d framework-res.apk
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...
C:\Users\xxx\Downloads\apktool1.5.2.tar>java -jar apktool.jar b framework-res.apk
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathNotExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java:164)
at brut.androlib.Androlib.build(Androlib.java:183)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:103)
at brut.androlib.Androlib.readMetaFile(Androlib.java:160)
... 4 more
What's wrong?
Could someone help me?
Looks like a problem with apktool.yml. Is it located in the path the prompt is looking for it in?
063_XOBX said:
Looks like a problem with apktool.yml. Is it located in the path the prompt is looking for it in?
Click to expand...
Click to collapse
I changed directory and used full path to targetfile and it worked. Thanks to your suggestion!
So I changed back to apktool folder and specified sourcepath now:
Code:
java -jar apktool.jar b framework-res framework-res_new.apk
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
I: Building apk file...
That worked now. Perfect!
Then I "signed" the apk by replacing/inserting "AndroidManifest.xml" and folder "META-INF" to "framework-res_new.apk".
I will do nandroid, replace (unchanged) file and report very soon.
Greetings
Glad it worked. Reading command prompts is like a native tongue once you get the hang of it.
063_XOBX said:
Glad it worked. Reading command prompts is like a native tongue once you get the hang of it.
Click to expand...
Click to collapse
Modified "framework-res.apk" worked. I only had to recreate Google account.
But modifying android.policy.odex resulted in bootloop.
I made following:
Deodex:
Code:
java -jar baksmali-1.4.2.jar -c core.jar:core-junit.jar:bouncycastle.jar:ext.jar:framework.jar:telephony-common.jar:mms-common.jar:android.policy.jar:services.jar:apache-xml.jar -x android.policy.odex
Made changes. (See attachment.)
Create dex:
Code:
dexopt-wrapper system/framework/android.policy.jar system/framework/patched_android.policy.odex $BOOTCLASSPATH
Restore signature:
Code:
busybox dd if=/system/framework/android.policy.odex of=/system/framework/patched_android.policy.odex bs=1 count=20 skip=52 seek=52 conv=notrunc
Replaced android.policy.odex
Result: Bootloop
Any suggestions? I got no errors.
Greetings
I'm with my question in this thread at all right?

[MOD][TUTORIAL] Customize NavigationBar height

Hello,
In this tutorial I´ll show you how to change the height of your NavBar.
This Tutorial works for any Rom!
Requirements
Text-Editor, e.g. Notepad++
WinRar/WinZip/Bandzip
Apktool (Download)
installed Java (Download)
JDK (Download)
root on your Nexus 4
a FileManager like ES File Explorer or Root Explorer
your framework-res.apk
some Cmd experience (just a little)
.. and some time/nerves
.. let´s go
Before getting started, make a Nandroid Backup (if you get Bootoop etc)!
The decompliling:
First you need to create a new folder like "C:\apktool". Download Apktool and extract the files to C:\apktool
copy your framework-res.apk to C:\apktool
open Cmd
navigate to your apktool (with "cd C:\apktool")
type in: java -jar apktool.jar if framework-res.apk [enter] (...installation of your framework)
type in: java -jar apktool.jar d framework-res.apk [enter]
finished!
Now you should have a new folder named framework-res. That´s your decompiled framework-res.apk.
The customizing of your NavBar height:
Navigate to /res/values
open dimens.xml in your Text-Editor
search the 3 lines which include navigation_bar_height, navigation_bar_height_landscape, und navigation_bar_width
type in your desired dpi number (for default it´s 48dpi)
CAUTION: At width, you should calculate the numeral proportion of the height to the width.
If you got that, save!
The (Re-)compiling:
Cmd (if you have not left it open, you must navigate again to C:\apktool
type in: java -jar apktool.jar b framework-res [enter]
The newly compiled framework-res.apk is located in C:\apktool\framework-res\dist
CAUTION: Copy the META-INF folder and the AndroidManifest.xml from your old framework-res.apk to your newly compiled one! Otherwise you´ll get Bootloop.
Now copy your framework-res.apk with a file manager to /system/framework. After that reboot immediately!
Finished! Have fun with your smaller/higher NavBar.
If there are some question, ask in this thread, I´ll help you as good as possible. Please don´t write me PM´s with support requests.
The "small-print":
Neither XDA-Developers.com, nor me are responible for any damages on your device!
I'm pretty sure this is the same for changing your Navigation Bar white or any color you want?
But instead I think its the navbar.xml that you need to edit correct?
Sent from my Nexus 4 using xda app-developers app
Right. But maybe it's in SysUI.apk, I don't know right now.
~ via Nexus
Flextrick said:
Hello,
In this tutorial I´ll show you how to change the height of your NavBar.
This Tutorial works for any Rom!
Requirements
Text-Editor, e.g. Notepad++
WinRar/WinZip/Bandzip
Apktool (Download)
installed Java (Download)
JDK (Download)
root on your Nexus 4
a FileManager like ES File Explorer or Root Explorer
your framework-res.apk
some Cmd experience (just a little)
.. and some time/nerves
.. let´s go
Before getting started, make a Nandroid Backup (if you get Bootoop etc)!
The decompliling:
First you need to create a new folder like "C:\apktool". Download Apktool and extract the files to C:\apktool
copy your framework-res.apk to C:\apktool
open Cmd
navigate to your apktool (with "cd C:\apktool")
type in: java -jar apktool.jar if framework-res.apk [enter] (...installation of your framework)
type in: java -jar apktool.jar d framework-res.apk [enter]
finished!
Now you should have a new folder named framework-res. That´s your decompiled framework-res.apk.
The customizing of your NavBar height:
Navigate to /res/values
open dimens.xml in your Text-Editor
search the 3 lines which include navigation_bar_height, navigation_bar_height_landscape, und navigation_bar_width
type in your desired dpi number (for default it´s 48dpi)
CAUTION: At width, you should calculate the numeral proportion of the height to the width.
If you got that, save!
The (Re-)compiling:
Cmd (if you have not left it open, you must navigate again to C:\apktool
type in: java -jar apktool.jar b framework-res [enter]
The newly compiled framework-res.apk is located in C:\apktool\framework-res\dist
CAUTION: Copy the META-INF folder and the AndroidManifest.xml from your old framework-res.apk to your newly compiled one! Otherwise you´ll get Bootloop.
Now copy your framework-res.apk with a file manager to /system/framework. After that reboot immediately!
Finished! Have fun with your smaller/higher NavBar.
If there are some question, ask in this thread, I´ll help you as good as possible. Please don´t write me PM´s with support requests.
The "small-print":
Neither XDA-Developers.com, nor me are responible for any damages on your device!
Click to expand...
Click to collapse
Thanks dude!
"CAUTION: At width, you should calculate the numeral proportion of the height to the width."
What's the scale? I set 36dpi both on height and landsape_hight, what's the width should I do? And I want the background of navigation to more smaller...
First of all, please delete fullquote Second: Proportion is like 48:42=36:x (x is width, just calculate). And third: Which background do you mean?
~ via Nexus
Hello,
if somebody is interested: I built a graphical Apktool for easier modding. Check it out: http://forum.xda-developers.com/showthread.php?t=2326604
~ via Nexus
I am attempting this but its not working.
I have apktool, java, and JDK installed.
When I run the commands I get this...
Code:
c:\apktool>java -jar apktool.jar if framework-res.apk
Exception in thread "main" brut.androlib.AndrolibException: Multiple resources:
spec=0x01080294 drawable/ic_ab_back_holo_dark, config=-xhdpi
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:10
5)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:82)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:48)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:39)
at brut.androlib.res.AndrolibResources.installFramework(AndrolibResource
s.java:384)
at brut.androlib.Androlib.installFramework(Androlib.java:365)
at brut.apktool.Main.cmdInstallFramework(Main.java:193)
at brut.apktool.Main.main(Main.java:69)
c:\apktool>java -jar apktool.jar d framework-res.apk
I: Loading resource table...
Exception in thread "main" brut.androlib.AndrolibException: Multiple resources:
spec=0x01080294 drawable/ic_ab_back_holo_dark, config=-xhdpi
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:10
5)
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(AndrolibRes
ources.java:315)
at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.jav
a:50)
at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.jav
a: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:128)
at brut.apktool.Main.main(Main.java:65)
c:\apktool>
Any help would be great.
Or if someone wants to set my dpi to 24 that would be great as well. 24/24/24
framework-res.apk
Hello, I see. Maybe you should try this one here: http://forum.xda-developers.com/showthread.php?t=1755243
I created an AndroidApktool, which makes it easier to mod your files: http://forum.xda-developers.com/showthread.php?t=2326604
It helps you in this Tutorial much, too.
How do you move the old META-INF folder and AndroidManifest.xml into the new apk after it's already compiled?
With WinRar or 7zip etc.
I followed every step and I end up with same as paperecho, empty framework-res folder.
Do you get the same error as he?
Is it possible to set the alignment of the softkeys to the left side (especially for the Nexus 7/10)?
Thanks in advance
Sent from my Nexus 4 using xda premium
It's possible for sure, but I don't know how. Ive got no experience with tablets, sorry.
I'm also finished with empty folder framework-res..
Maybe you guys should download the newest apktool version and replace it with the one in my folder. I think this should solve your problem
Does anyone know what values they use to make the softkeys stay vertical when the phone is in landscape mode? I'm trying to do that with my tablets. Thanks
Works Great Nexus 4 and Nexus 10 Kitkat
In Android L, it didn't work in type in "java -jar apktool.jar if framework-res.apk" & "java -jar apktool.jar d framework-res.apk"...

Categories

Resources