apk editor studio windows problem - Android Q&A, Help & Troubleshooting

I also tried just opening the file and getting a return without changing anything, there is still an error, does anyone know what to do???
Notice the error, maybe you can help
I: Using Apktool 2.6.0
I: Copying C:\Users\Dell\Downloads\השני\APK Editor Studio v1.6.0\data\temp\apk\{d93e5e27-07ec-4265-9445-652ff8c32818} classes.dex file...
I: Building resources...
W: C:\Users\Dell\Downloads\השני\APK Editor Studio v1.6.0\data\temp\apk\{d93e5e27-07ec-4265-9445-652ff8c32818}\res: error: failed to open directory: The system cannot find the file specified. (2).
brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\Dell\AppData\Local\Temp\brut_util_Jar_157343248198856642849171772449824828501.tmp, compile, --dir, C:\Users\Dell\Downloads\����\APK Editor Studio v1.6.0\data\temp\apk\{d93e5e27-07ec-4265-9445-652ff8c32818}\res, --legacy, -o, C:\Users\Dell\Downloads\����\APK Editor Studio v1.6.0\data\temp\apk\{d93e5e27-07ec-4265-9445-652ff8c32818}\build\resources.zip]

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] Compile/Decompile using apktool or APK Multi Tool

Hi everyone,
I'm trying desperately to edit some files inside SystemUI.apk and framework-res.apk but I'm having some troubles...
I wanted to post in the specific thread of the program : http://forum.xda-developers.com/showthread.php?t=1310151 but I'm not allowed to, because it's my first post here.
First I used only apktool, I managed to decompile my 2 files with no problems, I replaced a few *.png files and tried to recompile it but I'm getting errors... (I only manage to recompile the files if I don't edit a thing)
Then I tried APK Multi Tool, I achieved to decompile my 2 files (with the option 9 in the program), but I can't recompile them after editing my files. So I decided to make a test, I tried to decompile and recompile (I hit 9 then 11 in the choice case) them WITHOUT changing a thing and I get errors anyway...
If I use the choice 1 (only extract the apk), do my editing and then zip the project (with the choice 3), directories are wrong inside the new *.apk, I get "projects\SystemUI.apk\(res or smali, etc...)" so the *.apk result is not usable
Here is the log file when I try to recompile WITHOUT changes :
Code:
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\David\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...
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\David\AppData\Local\Temp\APKTOOL8476784424403325139.tmp, -I, C:\Users\David\apktool\framework\1.apk, -S, C:\Users\David\Downloads\APK Multi Tool\projects\SystemUI.apk\res, -M, C:\Users\David\Downloads\APK Multi Tool\projects\SystemUI.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\David\AppData\Local\Temp\APKTOOL8476784424403325139.tmp, -I, C:\Users\David\apktool\framework\1.apk, -S, C:\Users\David\Downloads\APK Multi Tool\projects\SystemUI.apk\res, -M, C:\Users\David\Downloads\APK Multi Tool\projects\SystemUI.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:87)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
Caused by: java.io.IOException: Cannot run program "aapt": CreateProcess error=2, Le fichier spécifié est introuvable
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, Le fichier spécifié est introuvable
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
... 11 more
Thanks in advance if you can help me
I managed to recompile my edited files with apktool by placing classes.dex and resources.arsc in the folder oh the extracted archives.
I signed my SystemUI.apk and framework-res.apk with signapk.jar but my ROM still won't boot...
I'm getting the same error
I've emailed the dev. Will let you know if I get a response.
Can you try removing the spaces in the folder name ? "APK Multi Tool" ?
My Windows user name has spaces in it, I was just wondering if that could be an issue.
Just a hunch since spaces can sometimes cause problems.
Let me know if that works !
---------- Post added at 08:10 AM ---------- Previous post was at 07:46 AM ----------
Well ignore my previous post. I created a new user and tried to compile. Still getting the same error
Funny, i'm having the EXACT same thing happen to me.
I used to use linux and I know that when I was originally installing it(on linux) it wouldn't run without a file called "aapt". I had to download and insert the file with the others in a specific area.
Unfortunately I had to wipe linux and reinstall win7 for school purposes. So now here I am trying to test everything on windows, which is a blur to me since I haven't used it in so long.
In the error log we are getting, it's mentioning something about "aapt", and when I go searching for it in the APK-multi tool folders, it's nowhere to be found. This file may be what's causing the issue of de/recompiling.
EDIT: I figured it out, well kinda. I uninstalled version 1.0.2, and downloaded and installed version 1.0.0 of apk multi tool from his website. Tested again and this time everything went ok. there must be some sort of bug in the newest one.
Try this, it will work
Place apk in modding folder
Hit #1to extract apk
go to project folder and make your mods
now hit #3 to zip apk
then hit #1 to retain system signature for system files (system.ui, framework.res etc...)
go into modding folder and get the new unsigned apk and rename it to what it was before
place in sd card or use adb to push to where ever it needs to go
this works everytime for me, never had problems hope this helps
that works for editing images only...but I want to edit some .xml files, and when I extract I don't get them
thats where we need decompile/compile
Im getting this same issue..
I have the same issue every apk creates with a project/*.*.apk
Anyone fix it?
Ok so dropped back to version 1.0.1 and it works
when I hit option 3 in 1.0.1 I see
compressing res\
But in version 1.0.2 I see
compressing project\FILESNAME.apk\res\
Hope that helps
Test This
Do you Have instaled Android SDK Tools?
You Have Downloaded de Google Api 15 for Android SDK Tools or others Api for your version of Android?
Andersondj said:
Do you Have instaled Android SDK Tools?
You Have Downloaded de Google Api 15 for Android SDK Tools or others Api for your version of Android?
Click to expand...
Click to collapse
Andersondj, thanks for your reply.
Maybe it will solve my problem, coz i had installed API 14 (4.0) and now i`ll try install API 15.
Thanks bro, and see you on BrasilDroid.
Which version of Android are you on? Apktool doesn't work too well with ICS.
still no luck
Ticklefish said:
Which version of Android are you on? Apktool doesn't work too well with ICS.
Click to expand...
Click to collapse
i hv every method but still its not recompiling
Dygreg said:
Here is the log file when I try to recompile WITHOUT changes :
Code:
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\David\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...
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\David\AppData\Local\Temp\APKTOOL8476784424403325139.tmp, -I, C:\Users\David\apktool\framework\1.apk, -S, [B][COLOR="Red"]C:\Users\David\Downloads\APK Multi Tool\projects\SystemUI.apk\res[/COLOR], -M[/B], C:\Users\David\Downloads\APK Multi Tool\projects\SystemUI.apk\AndroidManifest.xml][/QUOTE]
See point 1, spaces in paths have given me issues before and spent ages trying everything before finally realizing it's how I'd named the folder. If that doesn't work, assuming you've installed all the necessary resource apks I'm not sure what to suggest. apktool never gave me issues [user=4315551]@Ticklefish[/user]?
[QUOTE="raziel23x, post: 18558251, member: 2968938"][B][COLOR=Red]Got problems ?[/COLOR][/B]
[B]1. [COLOR="Red"]Make sure your path has no spaces[/COLOR]
2. Your filename has no wierd characters
3. Java/adb are in your path
4. It's not a proprietary rom's apk (aka Sense,Motorola,Samsung) (If u are, then use option 11 and drag the required framework, eg com.htc.resources, twframework-res...etc)
5. It's not a themed apk (if it is, expect .9 png errors, use as close to stock as possible)
6. Look at the log to know whats happening
7. If all else fails, post as much info as possible and we will try to assist you.[/B]
[/QUOTE]
Click to expand...
Click to collapse
Guys, need your help!, while compiling an APK, what I get in the keep folder is the four files
1. Meta-inf
2. res
3. AndroidManifest
4. resources.arsc
what files do I need to remove before compiling?

[Q] Soft keys mod error when recompiling framework-res.apk

Hi there,
I have a major gripe with the S III, the menu and back keys being far to easy to knock, so I am trying to switch my CM9 Nightly to use Soft Keys.
I have managed to find and follow some information about decompling the framework-res.apk and editing the boolean.xml file to enable the soft keys. see http://forum.xda-developers.com/showthread.php?t=1364757 but when i go to recompile it get this:
Code:
D:\Downloads\package>apktool.bat d framework-res.apk
I: Loading resource table...
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
D:\Downloads\package>apktool.bat b framework-res
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: D:\Downloads\package\framework-res\res/drawable
-sw600dp-xhdpi
invalid resource directory name: D:\Downloads\package\framework-res\res/layout-s
w600dp
invalid resource directory name: D:\Downloads\package\framework-res\res/layout-w
600dp
invalid resource directory name: D:\Downloads\package\framework-res\res/values-h
720dp
invalid resource directory name: D:\Downloads\package\framework-res\res/values-s
w600dp
invalid resource directory name: D:\Downloads\package\framework-res\res/values-s
w600dp-land
invalid resource directory name: D:\Downloads\package\framework-res\res/values-s
w600dp-w1024dp
invalid resource directory name: D:\Downloads\package\framework-res\res/values-s
w600dp-w1280dp
invalid resource directory name: D:\Downloads\package\framework-res\res/values-w
360dp
invalid resource directory name: D:\Downloads\package\framework-res\res/values-w
480dp
invalid resource directory name: D:\Downloads\package\framework-res\res/values-w
500dp
invalid resource directory name: D:\Downloads\package\framework-res\res/values-w
600dp
invalid resource directory name: D:\Downloads\package\framework-res\res/values-w
720dp
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\Nicholas\AppData\Local\Tem
p\APKTOOL7110738926952661353.tmp, -x, -S, D:\Downloads\package\framework-res\res
, -M, D:\Downloads\package\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\Nicholas\AppData\Local\Temp\APKTOOL7110738926952661353.tmp, -x, -S, D:\Down
loads\package\framework-res\res, -M, D:\Downloads\package\framework-res\AndroidM
anifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more
D:\Downloads\package>
Does anyone know either how to fix this compile issue or enable the soft keys another way?
Thanks in advance
this actually took me several hours to figure out, but since you were so kind to post the guide to something I have wanted for a while I took the challenge.
You need to download the three files from step 1 in this post and copy them to a folder on your harddrive: http://forum.xda-developers.com/showthread.php?t=1427959
Next, rename apktool1.4.2.31e6dc5.jar to apktool.jar
Then copy your framework-res.apk to the same place as the three other files.
Then open up a command prompt and type apktool if framework-res.apk.
Then decompile using apktool d framework-res.apk.
Now, do your edits inside the framework-res folder.
Then download apktool1.4.3.tar.bz2 from the same post (under rebuild). Extract it and replace the apktool.jar you copied earlier.
Now in the command prompt type apktool b framework-res.
Now go to framework-res\dist and rename the framework-res.apk to framework-res1.apk-zip. Then copy your old framework-res.apk to the same folder and add .zip as the file extension.
Now open up both (i'm using winrar) and delete res and resources.arc. Then extrack res and resources from your newly compiled framework-res1.apk.zip to th e old one.
Now, reboot to recovery and push the framework-res.apk to /system/framework-res.apk. Then chown it using chmod 0:0 framework-res.apk and set permissions chmod 644 framework-res.apk.
Hope you understood at least a bit of what I wrote I'm assuming you know how to use adb etc.
@op you could also upload your framework-res.apk file here and I could do the compiling for you
Thank you soo much! I didn't need to chown or chmod the file, just pushed it live and rebooted. Deleted the mapping for my touch buttons also. Only funny thing I had was all my accounts were removed?
Thanks again!
Sent from my GT-I9300
You could have used the batch version in my signature. Its dead easy
Sent from my GT-I9300 using Tapatalk 2
Thanks for the heads up rootSU. Will save the link for further use.
@Pcmanrules don't forget to hit the thanks button if an answer helped you

Problems with de/compiling sysui apk - center clock wanted

hi,
I decompiled systemui.apk without any problem, edited the tw_status_bar.xml (for center clock) and compiled the file and the no translation files found problem appeared.
The compiled apk has about 500kb less than the original one. After signing the file, the new compiled file has 100kb more.. so it is 1400 (new) to 1800kb (original)..
Flashing the new file brought a blank black screen.
So I took the new compiled tw_status_bar.xml and replaced it with the one in the old original systemui.apk. Maybe this works fine. But: No, it did not. Also blank screen..
I have installed the framework-res.apk and the tw-framework-res.apk.
Could someone help me please?
We need this for a theme.
Best Regards
You must have done something wrong when compiling
What tool u are using
And what steps u did?
Sent from my GT-I9100 using xda app-developers app
I used apktool.
-> java -jar apktool.jar if framework-res.apk (and tw-framework)
-> java -jar apktool.jar d systemui.apk
-> edit
-> java -jar apktool.jar b SystemUI
Did it with the several apktool.jar files. (151, akptool-for-3.2, ... lot of files)
My SystemUI.apk was befor decompiling 1,92MB after 1,79MB. I work with wanam ics apk manager and everything works fine. I dont sing apk.
No need to sign system apks if you did so.
Try taking META-INF folder and AndroidManifest.xml from old (the working one) apk, and place it in your modified apk (use winrar or something, dont decompile).
Thank you guys,
we will give it a try now and hope that it does its job fine.
I use wanam now
Some ROMs have settings for that. There you can set the clock to center. Maybe I should look how they did this.. So we can give to the users the posibillity to change the clocks position.. Like PA did.. Or is this too much work? Deodex and editing the systemui.apk and compile it? Or are there any other files to edit for this? Maybe someone knows this?
Gesendet von meinem Galaxy Nexus mit Tapatalk 2
Hi,
I want to center the clock in my status bar on XXLSC JB (ThaiDai)
I decompile SystemUI.apk with apktool without problem.
I change the file tw_status_bar.xml.
I can not recompile SystemUI.
(I installed jre-7u2-windows-x64)
My procedure:
- apktool if framework-res.apk (and tw-framework)
- apktool d systemui.apk
- (edit xml file)
- apktool b SystemUI
But the compilation is full of errors:
Code:
C:\apktool1.5.0>[B]apktool if framework-res.apk[/B]
I: Framework installed to: C:\Users\Fred\apktool\framework\1.apk
C:\apktool1.5.0>[B]apktool d SystemUI.apk[/B]
I: Baksmaling...
testI: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Fred\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...
C:\apktool1.5.0>[B]apktool b SystemUI[/B]
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: C:\apktool1.5.0\SystemUI\res/drawable-sw360dp-hdpi
invalid resource directory name: C:\apktool1.5.0\SystemUI\res/drawable-sw360dp-xhdpi
invalid resource directory name: C:\apktool1.5.0\SystemUI\res/drawable-sw600dp
invalid resource directory name: C:\apktool1.5.0\SystemUI\res/drawable-sw600dp-xhdpi
invalid resource directory name: C:\apktool1.5.0\SystemUI\res/drawable-sw720dp-xhdpi
invalid resource directory name: C:\apktool1.5.0\SystemUI\res/drawable-sw800dp-xhdpi
invalid resource directory name: C:\apktool1.5.0\SystemUI\res/layout-sw600dp
invalid resource directory name: C:\apktool1.5.0\SystemUI\res/layout-sw720dp
invalid resource directory name: C:\apktool1.5.0\SystemUI\res/layout-sw800dp
invalid resource directory name: C:\apktool1.5.0\SystemUI\res/values-sw320dp
invalid resource directory name: C:\apktool1.5.0\SystemUI\res/values-sw360dp
invalid resource directory name: C:\apktool1.5.0\SystemUI\res/values-sw600dp
invalid resource directory name: C:\apktool1.5.0\SystemUI\res/values-sw600dp-land
invalid resource directory name: C:\apktool1.5.0\SystemUI\res/values-sw600dp-port
invalid resource directory name: C:\apktool1.5.0\SystemUI\res/values-sw720dp
invalid resource directory name: C:\apktool1.5.0\SystemUI\res/values-sw720dp-port
invalid resource directory name: C:\apktool1.5.0\SystemUI\res/values-sw800dp
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 16, --target-sdk-version, 16, -F, C:\Users\Fred\AppData\Local\Temp\APKTOOL981547692988867223.tmp, -I, C:\Users\Fred\apktool\framework\1.apk, -S, C:\apktool1.5.0\SystemUI\res, -M, C:\apktool1.5.0\SystemUI\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:255)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:324)
at brut.androlib.Androlib.buildResources(Androlib.java:269)
at brut.androlib.Androlib.build(Androlib.java:192)
at brut.androlib.Androlib.build(Androlib.java:174)
at brut.apktool.Main.cmdBuild(Main.java:188)
at brut.apktool.Main.main(Main.java:70)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd
k-version, 16, --target-sdk-version, 16, -F, C:\Users\Fred\AppData\Local\Temp\AP
KTOOL981547692988867223.tmp, -I, C:\Users\Fred\apktool\framework\1.apk, -S, C:\a
pktool1.5.0\SystemUI\res, -M, C:\apktool1.5.0\SystemUI\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:253)
... 6 more
I forgot something ? I'm lost...
What is the exact and complete procedure ?
Can you help me please ?
Hi,
I got help from user here.
I give you his tips now
You decompiled the sysui without any error, right? Then you edited your tw_status_bar xml and compiled all with the error apeared, as you wrote.
If you have luck, your tw_statusbar is correctly compiled now. Ignore the error.
So you have to transfer the compiled statusbar xml and the resources file to the ORIGINAL systemui.apk.
I dont have this brut error anymore but i hope this will help you.
We got the clock centered with this method.
I wish you a good result
Best regards
PS: please install also tw_framework-res with apktool like you did with framework-res.apk.. This could solve your problem.
Gesendet von meinem Galaxy Nexus mit Tapatalk 2
Thank you for the speed
I did not do twframework-res.apk, I try.
The result with the above error is only classes.dex, nothing else ...
EDIT : always the same error with framework-res.apk + twframework-res.apk
And the same result (classes.dex)
Then delete the classes.dex and try again? I read anywhere that this could work.
Gesendet von meinem Galaxy Nexus mit Tapatalk 2
Hi,
there is not in the file "classes.dex" in the file "SystemUI" Original
Up
Please try please help me, I would just center the clock in the status bar of the Rom ThaiDai LSC
AW: Problems with de/compiling sysui apk - center clock wanted
Download apktool 1.50 and install the framework-res.apk and the tw-framework-res.apk with it (using java -jar apktool.jar if framework-res.apk).
After doing this you are able now to decompile the framework apk and or the systemui.apk. I believe sysui was the file.
Then you can edit the tw_status_bar.xml. Search a correct layout (other centerclock projects) and copy / paste the lines you need.
So I did it.. Compiled the new files with apktool again and copied the new files from build directory into the old apk (the systemui.apk from phone).
Reboot and be happy..
Gesendet von meinem Galaxy Nexus mit Tapatalk 2

Problems decompiling/compiling settings.apk in KitKat mediatek mt6592

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.

Categories

Resources