Hello everyone...
First thing.. sorry for my Bad English..
Many times it happens that we want to install app from another rom which may be odexed...or we don't have PC/laptop to deodex app...
But now using only Android phone it is possible to deodex app ...
What you need is..
[1] Rooted android phone.
[2] any advance file manager installed.
[3] apktool installed on your phone :
Steps to install apktool on android:
1) Download apktool 4.1.1 apk from link:
http://code.google.com/p/apktool/downloads/detail?name=Apktool4.1.1.apk&can=2&q=
2) download apktool4.1_armel.zip from link: http://code.google.com/p/apktool/downloads/detail?name=apktool4.1_armel.zip&can=2&q=
3) extract above zip file ...you will get apktool folder.
Place apktool folder in root of SD card..
4) now install apktool apk and give it root permission...
5) now go to /system/framework/
And click on framework_Res.apk and list will come..now select import as framework...
Now select twframework.apk(if present) and again import it as framework....
6) Now you are ready to use apktool....
Steps to deodex apps:
[1] Make a folder on sdcard.and place the file you want to deodex and their respective odex file..
[2] now click on appname.apk file and select decompile all and wait till complete.
After completion you will see new folder namely appname_src.
Similarly click on appname.dex and select decompile all...after completion you will see folder appname_odex..
[3] Now go to any file manager.And open appname_src folder ...and create new folder having name "smali" (without quotes).
[4] Now go to folder apkname_odex and copy / move all files inside that folder to apkname_src/smali/here...
[5] now go to apktool apk and click on folder apkname_src and select recompile all....
After recompile process complete ..
There will be new apk in folder named appname_src.apk...
[7] now you have to sign that apk file..you can sign it by either zip signer apk or by clicking that apk and then selecting sign apk option ....
NOW INSTALL APK AND ENJOY......
If you have any problem please post here..
And You can press thanks....
Sent from my GT-S5360 using xda app
Haven't tried yet bt this was what i was searching for.....will report soon
Sent from my GT-S5360 using Tapatalk 2
This Works Quite Well...
LetJect said:
Hello everyone...
First thing.. sorry for my Bad English..
Many times it happens that we want to install app from another rom which may be odexed...or we don't have PC/laptop to deodex app...
But now using only Android phone it is possible to deodex app ...
What you need is..
[1] Rooted android phone.
[2] any advance file manager installed.
[3] apktool installed on your phone :
Steps to install apktool on android:
1) Download apktool 4.1.1 apk from link:
http://code.google.com/p/apktool/downloads/detail?name=Apktool4.1.1.apk&can=2&q=
2) download apktool4.1_armel.zip from link: http://code.google.com/p/apktool/downloads/detail?name=apktool4.1_armel.zip&can=2&q=
3) extract above zip file ...you will get apktool folder.
Place apktool folder in root of SD card..
4) now install apktool apk and give it root permission...
5) now go to /system/framework/
And click on framework_Res.apk and list will come..now select import as framework...
Now select twframework.apk(if present) and again import it as framework....
6) Now you are ready to use apktool....
Steps to deodex apps:
[1] Make a folder on sdcard.and place the file you want to deodex and their respective odex file..
[2] now click on appname.apk file and select decompile all and wait till complete.
After completion you will see new folder namely appname_src.
Similarly click on appname.dex and select decompile all...after completion you will see folder appname_odex..
[3] Now go to any file manager.And open appname_src folder ...and create new folder having name "smali" (without quotes).
[4] Now go to folder apkname_odex and copy / move all files inside that folder to apkname_src/smali/here...
[5] now go to apktool apk and click on folder apkname_src and select recompile all....
After recompile process complete ..
There will be new apk in folder named appname_src.apk...
[7] now you have to sign that apk file..you can sign it by either zip signer apk or by clicking that apk and then selecting sign apk option ....
NOW INSTALL APK AND ENJOY......
If you have any problem please post here..
And You can press thanks....
Sent from my GT-S5360 using xda app
Click to expand...
Click to collapse
Your instructions are clear and precise. Thank you for this wonderful tool, it works quite well.
I do have a few questions:
Do the framework-res files (TouchWiz and regular) need to be imported each time one decompiles/recompiles an odexed apk, or is once enough?
Also, where does the app leave its folders while it does its work? I noticed that while running the app, it appeared to pull the framework files into subfolders. Are these files left on the phone's internal storage, root of the phone, or removed after a session? These questions, of course, are related, but the bottom line is I am trying to understand the application's impact on resources and memory.
Thanks for your help!
micmars said:
Your instructions are clear and precise. Thank you for this wonderful tool, it works quite well.
I do have a few questions:
Do the framework-res files (TouchWiz and regular) need to be imported each time one decompiles/recompiles an odexed apk, or is once enough?
Also, where does the app leave its folders while it does its work? I noticed that while running the app, it appeared to pull the framework files into subfolders. Are these files left on the phone's internal storage, root of the phone, or removed after a session? These questions, of course, are related, but the bottom line is I am trying to understand the application's impact on resources and memory.
Thanks for your help!
Click to expand...
Click to collapse
1) no need to import framework files each time..just import it once.
If you changed the rom then you have to import new framework files of that rom..
2) app creates the files for each app in storage.
After editing, odexing or deodexing app just delete the folders like appname_src....
Sent from my GT-S5360 using xda app...
LetJect said:
1) no need to import framework files each time..just import it once.
If you changed the rom then you have to import new framework files of that rom..
2) app creates the files for each app in storage.
After editing, odexing or deodexing app just delete the folders like appname_src....
Sent from my GT-S5360 using xda app...
Click to expand...
Click to collapse
Thank you sir. The app works well, has some minor error messages with the phone and contacts apps, but this may be unrelated to your app. Overall this is an outstanding resource.
Thank you very much.
Sent from my SM-N900P using Xparent BlueTapatalk 2
nice guide!!!!!!!!
Quick question, how long does it usually take to decompile?
hippiesky said:
Quick question, how long does it usually take to decompile?
Click to expand...
Click to collapse
Actually it depends upon app size usually 1 min..
Sent from my GT-S5360
Thanks but this is all that's popping up
/data/data/per.pqy.apktool/mydata/apktool.sh: /data/data/per.pqy.apktool/lix/jvm/java-7-openjdk-armhf/jre/bin/java: not found
hippiesky said:
Thanks but this is all that's popping up
/data/data/per.pqy.apktool/mydata/apktool.sh: /data/data/per.pqy.apktool/lix/jvm/java-7-openjdk-armhf/jre/bin/java: not found
Click to expand...
Click to collapse
Sorry dude ...
But I never have such problem...
You follow whole procedure correctly?
Sent from my GT-S5360
LetJect said:
Sorry dude ...
But I never have such problem...
You follow whole procedure correctly?
Sent from my GT-S5360
Click to expand...
Click to collapse
Yup oh well thanks
So I got it to work but I can't install. Any ideas?
hippiesky said:
So I got it to work but I can't install. Any ideas?
Click to expand...
Click to collapse
What error it says??
Sent from my GT-S5360
App not installed.
hippiesky said:
App not installed.
Click to expand...
Click to collapse
Just sign app..
Sent from my GT-S5360
I did
I: Smaling...
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [/data/data/per.pqy.apktool/lix/aapt, p, --min-sdk-version, 18, --target-sdk-version, 18, -F, /data/data/per.pqy.apktool/APKTOOL3106680010622472678.tmp, -I, ?/apktool/framework/1.apk, -S, /sdcard/deodex apk/SecLauncher4_src/res, -M, /sdcard/deodex apk/SecLauncher4_src/AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)
at brut.androlib.Androlib.buildResources(Androlib.java:283)
at brut.androlib.Androlib.build(Androlib.java:206)
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.androlib.AndrolibException: brut.common.BrutException: could not exec command: [/data/data/per.pqy.apktool/lix/aapt, p, --min-sdk-version, 18, --target-sdk-version, 18, -F, /data/data/per.pqy.apktool/APKTOOL3106680010622472678.tmp, -I, ?/apktool/framework/1.apk, -S, /sdcard/deodex apk/SecLauncher4_src/res, -M, /sdcard/deodex apk/SecLauncher4_src/AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [/data/data/per.pqy.apktool/lix/aapt, p, --min-sdk-version, 18, --target-sdk-version, 18, -F, /data/data/per.pqy.apktool/APKTOOL3106680010622472678.tmp, -I, ?/apktool/framework/1.apk, -S, /sdcard/deodex apk/SecLauncher4_src/res, -M, /sdcard/deodex apk/SecLauncher4_src/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:93)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)
... 6 more
Caused by: java.io.IOException: Cannot run program "/data/data/per.pqy.apktool/lix/aapt": error=13, Permission denied
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1042)
at java.lang.Runtime.exec(Runtime.java:615)
at java.lang.Runtime.exec(Runtime.java:483)
at brut.util.OS.exec(OS.java:84)
... 7 more
Caused by: java.io.IOException: error=13, Permission denied
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.<init>(UNIXProcess.java:135)
at java.lang.ProcessImpl.start(ProcessImpl.java:130)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1023)
... 10 more
This is what errors i got trying this on my note 2 deodexing SecLauncher4_src. Any help would be great. Thanks
JeramyEggs said:
I: Smaling...
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [/data/data/per.pqy.apktool/lix/aapt, p, --min-sdk-version, 18, --target-sdk-version, 18, -F, /data/data/per.pqy.apktool/APKTOOL3106680010622472678.tmp, -I, ?/apktool/framework/1.apk, -S, /sdcard/deodex apk/SecLauncher4_src/res, -M, /sdcard/deodex apk/SecLauncher4_src/AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)
at brut.androlib.Androlib.buildResources(Androlib.java:283)
at brut.androlib.Androlib.build(Androlib.java:206)
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.androlib.AndrolibException: brut.common.BrutException: could not exec command: [/data/data/per.pqy.apktool/lix/aapt, p, --min-sdk-version, 18, --target-sdk-version, 18, -F, /data/data/per.pqy.apktool/APKTOOL3106680010622472678.tmp, -I, ?/apktool/framework/1.apk, -S, /sdcard/deodex apk/SecLauncher4_src/res, -M, /sdcard/deodex apk/SecLauncher4_src/AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [/data/data/per.pqy.apktool/lix/aapt, p, --min-sdk-version, 18, --target-sdk-version, 18, -F, /data/data/per.pqy.apktool/APKTOOL3106680010622472678.tmp, -I, ?/apktool/framework/1.apk, -S, /sdcard/deodex apk/SecLauncher4_src/res, -M, /sdcard/deodex apk/SecLauncher4_src/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:93)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)
... 6 more
Caused by: java.io.IOException: Cannot run program "/data/data/per.pqy.apktool/lix/aapt": error=13, Permission denied
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1042)
at java.lang.Runtime.exec(Runtime.java:615)
at java.lang.Runtime.exec(Runtime.java:483)
at brut.util.OS.exec(OS.java:84)
... 7 more
Caused by: java.io.IOException: error=13, Permission denied
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.<init>(UNIXProcess.java:135)
at java.lang.ProcessImpl.start(ProcessImpl.java:130)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1023)
... 10 more
This is what errors i got trying this on my note 2 deodexing SecLauncher4_src. Any help would be great. Thanks
Click to expand...
Click to collapse
Truly speaking bro..
I don't know why this happens...
Plz can u ask to some expert ....
Sorry ...
Sent from my GT-S5360 using xda app
Ok so I tried Modding my settings and everything worked, pushed it to system and it opened. I reboot my phone and it's gone. Like it uninstalled itself. Any ideas would be greatly appreciated
Sent from my LG-P999 using Tapatalk 2
hippiesky said:
Ok so I tried Modding my settings and everything worked, pushed it to system and it opened. I reboot my phone and it's gone. Like it uninstalled itself. Any ideas would be greatly appreciated
Sent from my LG-P999 using Tapatalk 2
Click to expand...
Click to collapse
Try to reinstall it...
Sent from my GT-S5360 using xda app
Related
Hello! Hello! I can not change Home.apk. I want to make three desktops and 4x5 apptray. If I build .apk I get the error:
Code:
C:\apk\Tools\..\Place_Files_Here\Home\res\values\styles.xml:4: error: Error retrieving parent for item: No resource found that matches the given name 'Layout'.
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Admin\AppData\Local\Temp\APKTOOL792829079333190684.tmp, -I, C:\Users\Admin\apktool\framework\1.apk, -I, C:\Users\Admin\apktool\framework\2.apk, -S, C:\apk\Tools\..\Place_Files_Here\Home\res, -M, C:\apk\Tools\..\Place_Files_Here\Home\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\Admin\AppData\Local\Temp\APKTOOL792829079333190684.tmp, -I, C:\Users\Admin\apktool\framework\1.apk, -I, C:\Users\Admin\apktool\framework\2.apk, -S, C:\apk\Tools\..\Place_Files_Here\Home\res, -M, C:\apk\Tools\..\Place_Files_Here\Home\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
Home.apk from .431
Thanks!
Try this - http://forum.xda-developers.com/showthread.php?t=1759573
Grab aapt.exe from android sdk folder and place inside apktool. Apktool 1.4.3 has recompilation issues.
Sent from my LT18i using xda app-developers app
XperienceD said:
Try this - http://forum.xda-developers.com/showthread.php?t=1759573
Click to expand...
Click to collapse
Thank you, but after compiling (without changes or with changes) and installation (copy to system/app with rw-r-r-) phone doesn't start, stop on the logo Xperia.
7xGhost said:
Thank you, but after compiling (without changes or with changes) and installation (copy to system/app with rw-r-r-) phone doesn't start, stop on the logo Xperia.
Click to expand...
Click to collapse
After you're done compiling go to the builds folder copy the res folder & the arsc file, open the unmodded home.apk with a zip viewer like 7zip or winrar, delete the old res folder & arsc & replace it with the one on the build folder on where you compiled your modded home and that's it
Riyal said:
After you're done compiling go to the builds folder copy the res folder & the arsc file, open the unmodded home.apk with a zip viewer like 7zip or winrar, delete the old res folder & arsc & replace it with the one on the build folder on where you compiled your modded home and that's it
Click to expand...
Click to collapse
Thanks!! It's work!:laugh:
I have modded my status bar in cm9 so its transparent but when i try to make it have center clock i get this
|24/07/2012 -- 15:09:39.00|
--------------------------------------------------------------------------
java version "1.7.0"
Java(TM) SE Runtime Environment (build 1.7.0-b147)
Java HotSpot(TM) 64-Bit Server VM (build 21.0-b17, mixed mode)
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
C:\APKTOOL\other\..\projects\SystemUI.apk\res\layout\status_bar.xml:20: error: Error parsing XML: not well-formed (invalid token)
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\toms\AppData\Local\Temp\APKTOOL2239799123584665020.tmp, -I, C:\Users\toms\apktool\framework\1.apk, -S, C:\APKTOOL\other\..\projects\SystemUI.apk\res, -M, C:\APKTOOL\other\..\projects\SystemUI.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:302)
at brut.androlib.Androlib.buildResources(Androlib.java:249)
at brut.androlib.Androlib.build(Androlib.java:172)
at brut.androlib.Androlib.build(Androlib.java:155)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\toms\AppData\Local\Temp\APKTOOL2239799123584665020.tmp, -I, C:\Users\toms\apktool\framework\1.apk, -S, C:\APKTOOL\other\..\projects\SystemUI.apk\res, -M, C:\APKTOOL\other\..\projects\SystemUI.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
when im trying to compile the apk any ideas :/
Guide is here http://forum.xda-developers.com/showthread.php?t=1773930
Download the latest version of smali 1.3.3 from here and compile it manually.
C:\APKTOOL\other\..\projects\SystemUI.apk\res\layo ut\status_bar.xml:20 ... could you show us the line 20 in this xml?
I thanked both and i fixed my errors in line 20 but now ive got this
C:\APKTOOL\other\..\projects\SystemUI.apk\res\layout\status_bar.xml:29: error: Error parsing XML: mismatched tag
Which i have no idea about ?
+ .txt file is in .zip because i cant upload it ;/ + just realised i changed extension so its supposed to be .xml
try this: View attachment status_bar.zip
cyberking said:
try this: View attachment 1219507
Click to expand...
Click to collapse
Thanks + I did it and got transparent mod and center clock working after a bit but now there is no status bar and i cannot get it to come up anyone got any ideas ? it came up once :/ Really want to get it to work quite a few people want this
Managed to do it thanks to everyone who helped I thanked everyone :')
nice, so where was problem, i'm just curios
cyberking said:
nice, so where was problem, i'm just curios
Click to expand...
Click to collapse
Had one extra line in the status_bar.xml file + to get it to appear i had to reflash cm9 after full wipe then install the cm9 zip again just with different SystemUI.apk in it
dudeman1996 said:
Download the latest version of smali 1.3.3 from here and compile it manually.
Click to expand...
Click to collapse
Dude,
Is there any way to lock my mobile again....???
devilsdude said:
Dude,
Is there any way to lock my mobile again....???
Click to expand...
Click to collapse
What do you mean lock?
Sent from my HTC Wildfire S A510e using xda premium
I had been looking before for the same thread I created, but I hadn't found so I created this one. I want to mod some apps for my Jelly Sandwich. Decompiling goes well, but recompiling - error!
This what I exactly do:
apktool if framework-res.apk (success)
apktool d SystemUI.apk (success)
apktool b SystemUI.apk (error)
This is what I get after recompiling command:
Code:
I: Checking whether sources has changed...
I: Smaling...
Exception in thread "main" brut.androlib.AndrolibException: Could not write dex
to file: SystemUI\build\apk\classes.dex
at brut.androlib.src.DexFileBuilder.writeTo(DexFileBuilder.java:61)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:50)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:35)
at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:222)
at brut.androlib.Androlib.buildSources(Androlib.java:179)
at brut.androlib.Androlib.build(Androlib.java:170)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: java.io.FileNotFoundException: SystemUI\build\apk\classes.dex (Odmowa
dostŕpu)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(Unknown Source)
at java.io.FileOutputStream.<init>(Unknown Source)
at brut.androlib.src.DexFileBuilder.writeTo(DexFileBuilder.java:57)
... 8 more
Even without changing anything, apktool doesn't recompile my apk.
I have tried to recompile on two PCs - both of them have latest Java software installed.
I could post it in General Android section, but I think it can be related with Xperia only.
-----------------EDIT------------------------
I got something like that once also:
Code:
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: C:\Users\JA\Desktop\apktool\SystemUI\res/drawab
le-sw600dp-hdpi
invalid resource directory name: C:\Users\JA\Desktop\apktool\SystemUI\res/layout
-sw600dp
invalid resource directory name: C:\Users\JA\Desktop\apktool\SystemUI\res/values
-sw600dp
invalid resource directory name: C:\Users\JA\Desktop\apktool\SystemUI\res/values
-sw600dp-port
invalid resource directory name: C:\Users\JA\Desktop\apktool\SystemUI\res/values
-sw720dp
invalid resource directory name: C:\Users\JA\Desktop\apktool\SystemUI\res/values
-sw720dp-port
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\JA\AppData\Local\Temp\APKT
OOL5816768975862364769.tmp, -I, C:\Users\JA\apktool\framework\1.apk, -S, C:\User
s\JA\Desktop\apktool\SystemUI\res, -M, C:\Users\JA\Desktop\apktool\SystemUI\Andr
oidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\U
sers\JA\AppData\Local\Temp\APKTOOL5816768975862364769.tmp, -I, C:\Users\JA\apkto
ol\framework\1.apk, -S, C:\Users\JA\Desktop\apktool\SystemUI\res, -M, C:\Users\J
A\Desktop\apktool\SystemUI\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more
I had this problem before too
Are you sure the apk you decompiled hasnt been modified my anyone before ?
Are you using the latest aapt and apktool ? Apktool 1.5 kinda fix all those problems, althought most problems come from apk..
In the second log of your apktool, all you need to do is edit the xml files where the error is coming from.
Anyway, heres the apktool thread
http://forum.xda-developers.com/showthread.php?t=1755243
Sent from my WT19i
kokzhanjia said:
I had this problem before too
Are you sure the apk you decompiled hasnt been modified my anyone before ?
Are you using the latest aapt and apktool ? Apktool 1.5 kinda fix all those problems, althought most problems come from apk..
In the second log of your apktool, all you need to do is edit the xml files where the error is coming from.
Anyway, heres the apktool thread
http://forum.xda-developers.com/showthread.php?t=1755243
Sent from my WT19i
Click to expand...
Click to collapse
This 1.5 is strange... What is the comand for decompiling, compilng and installing frameworks? Damn...
Sent from my HTC One X using xda premium
Install frameworks first :apktool if framework-res.apk
Decompile : apktool d <name of apk> <folder created>
Recompile : apktool b <name of folder> <name of new apk>
Sent from my WT19i
Well, those methods work on 1.4.3 downloaded from Google project site only. And recompiling doesn't work also.
So I cannot recompile modded before apks by other people?
Sent from the best phone in the world - HTC One X with ARHD and Bricked Kernel 1,6 GHz
maxio1998 said:
Well, those methods work on 1.4.3 downloaded from Google project site only. And recompiling doesn't work also.
So I cannot recompile modded before apks by other people?
Sent from the best phone in the world - HTC One X with ARHD and Bricked Kernel 1,6 GHz
Click to expand...
Click to collapse
You can,but thr error you stated may happen again,maybe if you could send that apk and i have a look ? If its okay to you
Sent from my WT19i
I would learn to use apktool before making a ROM
Well, I had this problem a few month ago, and i solved it by reinstalling / downloading it and putting stock. 587 framework-res.apk...
Try it, hope it helps
Sent from my LT18i using xda app-developers app
jader13254 said:
I would learn to use apktool before making a ROM
Well, I had this problem a few month ago, and i solved it by reinstalling / downloading it and putting stock. 587 framework-res.apk...
Try it, hope it helps
Sent from my LT18i using xda app-developers app
Click to expand...
Click to collapse
I just cannot solve it, I installed 587 framework and infact I cannot recompile anything
Try
Put an Folder where is just apktool.jar and aapt.exe
Open command
Type java -jar apktool.jar if framework-res.apk
Then type java -jar apktool.jar if SemcGenericUxpRes.apk
Then type java -jar apktool.jar d SystemUI.apk
Then java -jar apktool.jar b SystemUI
Gesendet von meinem LT18i mit Tapatalk 2
papayayoghurt said:
Try
Put an Folder where is just apktool.jar and aapt.exe
Open command
Type java -jar apktool.jar if framework-res.apk
Then type java -jar apktool.jar if SemcGenericUxpRes.apk
Then type java -jar apktool.jar d SystemUI.apk
Then java -jar apktool.jar b SystemUI
Gesendet von meinem LT18i mit Tapatalk 2
Click to expand...
Click to collapse
Danke schön! I will try later, Freund!
Sent from the best phone in the world - HTC One X with ARHD and Bricked Kernel 1,6 GHz
maxio1998 said:
Danke schön! I will try later, Freund!
Sent from the best phone in the world - HTC One X with ARHD and Bricked Kernel 1,6 GHz
Click to expand...
Click to collapse
Danke schön, ich werde es später probieren mein Freund
Sent from my LT18i using xda app-developers app
jader13254 said:
Danke schön, ich werde es später probieren mein Freund
Sent from my LT18i using xda app-developers app
Click to expand...
Click to collapse
Ja, papayayoghurt ist Österreicher
Aber, wir mussen English sprechen - das ist xda
Sent from the best phone in the world - HTC One X with ARHD and Bricked Kernel 1,6 GHz
papayayoghurt said:
Try
Put an Folder where is just apktool.jar and aapt.exe
Open command
Type java -jar apktool.jar if framework-res.apk
Then type java -jar apktool.jar if SemcGenericUxpRes.apk
Then type java -jar apktool.jar d SystemUI.apk
Then java -jar apktool.jar b SystemUI
Gesendet von meinem LT18i mit Tapatalk 2
Click to expand...
Click to collapse
Code:
C:\Users\JA\Desktop\apktool>java -jar apktool.jar b lol
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
C:\Users\JA\Desktop\apktool\lol\res\values\arrays.xml:27: error: Found tag refer
ence-array where item is expected
C:\Users\JA\Desktop\apktool\lol\res\values\public.xml:888: error: Public symbol
array/shutdown_reboot_actions declared here is not defined.
C:\Users\JA\Desktop\apktool\lol\res\values\public.xml:887: error: Public symbol
array/shutdown_reboot_options declared here is not defined.
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, --min-sdk-version, 15, --target-sdk-ver
sion, 15, -F, C:\Users\JA\AppData\Local\Temp\APKTOOL3563551836292598120.tmp, -I,
C:\Users\JA\apktool\framework\1.apk, -S, C:\Users\JA\Desktop\apktool\lol\res, -
M, C:\Users\JA\Desktop\apktool\lol\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, 15, --target-sdk-version, 15, -F, C:\Users\JA\AppData\Local\Temp\APKT
OOL3563551836292598120.tmp, -I, C:\Users\JA\apktool\framework\1.apk, -S, C:\User
s\JA\Desktop\apktool\lol\res, -M, C:\Users\JA\Desktop\apktool\lol\AndroidManifes
t.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:253)
... 6 more
I placed folder with apktool on desktop, btw.
jader13254 said:
Danke schön, ich werde es später probieren mein Freund
Sent from my LT18i using xda app-developers app
Click to expand...
Click to collapse
Yeah, I know, I just wanted to put some English to German LOL
Hi
Ok, please try to decompile using this tool:
http://wanamlite.com/forums/showthread.php?tid=30
LG
papayayoghurt said:
Hi
Ok, please try to decompile using this tool:
http://wanamlite.com/forums/showthread.php?tid=30
LG
Click to expand...
Click to collapse
Will try tomorrow.
Ok, now I can recompile apks but only some. I get error while recompiling Phonebook, Mesaages or Phone. What is that?
Sent from the best phone in the world - HTC One X with ARHD and Bricked Kernel 1,6 GHz
I'm having the same issue. I cannot recompile some apk even without changes, on the other hand some others work well. The mentioned link doesn't work.
vavalexus said:
I'm having the same issue. I cannot recompile some apk even without changes, on the other hand some others work well. The mentioned link doesn't work.
Click to expand...
Click to collapse
Use the latest apktool, I have no problems with it. If you're on an older version, replace aapt.exe from the latest Android SDK.
僕のLT18iから送られてきた
popthosegaskets said:
Use the latest apktool, I have no problems with it. If you're on an older version, replace aapt.exe from the latest Android SDK.
僕のLT18iから送られてきた
Click to expand...
Click to collapse
I tried both old an latest (2.0 beta) apktools, same issue. Please try re-compile "skype.apk" (I do not attach it since it is quite heavy but I believe you will be able to download it somewhere).
Thank you!
vavalexus said:
I tried both old an latest (2.0 beta) apktools, same issue. Please try re-compile "skype.apk" (I do not attach it since it is quite heavy but I believe you will be able to download it somewhere).
Thank you!
Click to expand...
Click to collapse
You can send me the link which you downloaded it from, along with what you want to change. I can do it for you.
僕のLT18iから送られてきた
Has anybody manage to recompile apks with apktool on 4.4? If so can you provide the link? Thanks in advance
Anybody?
F4M0U569 said:
Anybody?
Click to expand...
Click to collapse
Here is a thought maybe you should ask to have this moved to the Q&A section so it will get the proper views and in the right section for help... Jus Sayin'
F4M0U569 said:
Has anybody manage to recompile apks with apktool on 4.4? If so can you provide the link? Thanks in advance
Click to expand...
Click to collapse
Apktool working fine for me, android 4.4 decompiling and recompiling.
I'm not one for interpreting errors but if you post the log here then maybe someone can help you
Sent from my Nexus 4 using XDA Premium 4 mobile app
22sl22 said:
Apktool working fine for me, android 4.4 decompiling and recompiling.
I'm not one for interpreting errors but if you post the log here then maybe someone can help you
Sent from my Nexus 4 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Could you share your apktool setup? Here is the log. I don't know which xml I screwed up
Code:
C:\Users\Dell\Desktop\JB 4.2>cmd
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\Dell\Desktop\JB 4.2>apktool b Mms
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: C:\Users\Dell\Desktop\JB 4.2\Mms\res/xml-mcc450
-mnc-1
invalid resource directory name: C:\Users\Dell\Desktop\JB 4.2\Mms\res/xml-mcc604
-mnc-1
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, --min-sdk-version, 19, --target-sdk-ver
sion, 19, -F, C:\Users\Dell\AppData\Local\Temp\APKTOOL5539348833520971387.tmp, -
I, C:\Users\Dell\apktool\framework\1.apk, -S, C:\Users\Dell\Desktop\JB 4.2\Mms\r
es, -M, C:\Users\Dell\Desktop\JB 4.2\Mms\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:255)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:337)
at brut.androlib.Androlib.buildResources(Androlib.java:284)
at brut.androlib.Androlib.build(Androlib.java:207)
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.common.BrutException: could not exec command: [aapt, p, --min-sd
k-version, 19, --target-sdk-version, 19, -F, C:\Users\Dell\AppData\Local\Temp\AP
KTOOL5539348833520971387.tmp, -I, C:\Users\Dell\apktool\framework\1.apk, -S, C:\
Users\Dell\Desktop\JB 4.2\Mms\res, -M, C:\Users\Dell\Desktop\JB 4.2\Mms\AndroidM
anifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:253)
... 6 more
C:\Users\Dell\Desktop\JB 4.2>]
F4M0U569 said:
Could you share your apktool setup? Here is the log. I don't know which xml I screwed up
Code:
C:\Users\Dell\Desktop\JB 4.2>cmd
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\Dell\Desktop\JB 4.2>apktool b Mms
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: C:\Users\Dell\Desktop\JB 4.2\Mms\res/xml-mcc450
-mnc-1
invalid resource directory name: C:\Users\Dell\Desktop\JB 4.2\Mms\res/xml-mcc604
-mnc-1
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, --min-sdk-version, 19, --target-sdk-ver
sion, 19, -F, C:\Users\Dell\AppData\Local\Temp\APKTOOL5539348833520971387.tmp, -
I, C:\Users\Dell\apktool\framework\1.apk, -S, C:\Users\Dell\Desktop\JB 4.2\Mms\r
es, -M, C:\Users\Dell\Desktop\JB 4.2\Mms\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:255)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:337)
at brut.androlib.Androlib.buildResources(Androlib.java:284)
at brut.androlib.Androlib.build(Androlib.java:207)
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.common.BrutException: could not exec command: [aapt, p, --min-sd
k-version, 19, --target-sdk-version, 19, -F, C:\Users\Dell\AppData\Local\Temp\AP
KTOOL5539348833520971387.tmp, -I, C:\Users\Dell\apktool\framework\1.apk, -S, C:\
Users\Dell\Desktop\JB 4.2\Mms\res, -M, C:\Users\Dell\Desktop\JB 4.2\Mms\AndroidM
anifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:253)
... 6 more
C:\Users\Dell\Desktop\JB 4.2>]
Click to expand...
Click to collapse
Here's the one I use: http://forum.xda-developers.com/showthread.php?t=1989533
But it looks like its not a problem with apk tool but rather the mod you are trying to do. Were you trying to mod mms or something ?
Sent from my Nexus 4 using XDA Premium 4 mobile app
22sl22 said:
Here's the one I use: http://forum.xda-developers.com/showthread.php?t=1989533
But it looks like its not a problem with apk tool but rather the mod you are trying to do. Were you trying to mod mms or something ?
Sent from my Nexus 4 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Still won't recompile with yours. Yes I'm editing some xmls and I can't think of anything that I did wrong
Hi
F4M0U569 said:
Could you share your apktool setup? Here is the log. I don't know which xml I screwed up
Code:
C:\Users\Dell\Desktop\JB 4.2>cmd
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\Dell\Desktop\JB 4.2>apktool b Mms
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: C:\Users\Dell\Desktop\JB 4.2\Mms\res/xml-mcc450
-mnc-1
invalid resource directory name: C:\Users\Dell\Desktop\JB 4.2\Mms\res/xml-mcc604
-mnc-1
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, --min-sdk-version, 19, --target-sdk-ver
sion, 19, -F, C:\Users\Dell\AppData\Local\Temp\APKTOOL5539348833520971387.tmp, -
I, C:\Users\Dell\apktool\framework\1.apk, -S, C:\Users\Dell\Desktop\JB 4.2\Mms\r
es, -M, C:\Users\Dell\Desktop\JB 4.2\Mms\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:255)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:337)
at brut.androlib.Androlib.buildResources(Androlib.java:284)
at brut.androlib.Androlib.build(Androlib.java:207)
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.common.BrutException: could not exec command: [aapt, p, --min-sd
k-version, 19, --target-sdk-version, 19, -F, C:\Users\Dell\AppData\Local\Temp\AP
KTOOL5539348833520971387.tmp, -I, C:\Users\Dell\apktool\framework\1.apk, -S, C:\
Users\Dell\Desktop\JB 4.2\Mms\res, -M, C:\Users\Dell\Desktop\JB 4.2\Mms\AndroidM
anifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:253)
... 6 more
C:\Users\Dell\Desktop\JB 4.2>]
Click to expand...
Click to collapse
Same problem here, resolved by:
Renaming the folders in the res as shown in the error from
xml-mcc450-mnc-1 to xml-mcc450-mnc1
xml-mcc604-mnc-1 to xml-mcc604-mnc1
Basically the last dash needs to be removed as when compiling doesn't like the 'dash' then number. I'm not sure what effect this may have but so far I've no issues at all after doing this for the framework-res.apk which has the same issue.
Regards
Phil
PhilipL said:
Hi
Same problem here, resolved by:
Renaming the folders in the res as shown in the error from
xml-mcc450-mnc-1 to xml-mcc450-mnc1
xml-mcc604-mnc-1 to xml-mcc604-mnc1
Basically the last dash needs to be removed as when compiling doesn't like the 'dash' then number. I'm not sure what effect this may have but so far I've no issues at all after doing this for the framework-res.apk which has the same issue.
Regards
Phil
Click to expand...
Click to collapse
Thanks it works! :good:
How to get Google Assistant (OK Google) to make voice activated calls from your Android head unit via your phone and for your head unit to read you text messages to you.
Use a Windows computer to do the following:-
1. Create a folder C:\android. This will be the working folder. Place all of the downloads in this folder.
2. Download Tablet Talk apk from here: https://www.apkhere.com/down/com.apdroid.tabtalk_1.9.9.3_paid
Rename it as tabtalk.apk.
3. Download Java JRE and install if not already installed on the PC.
4. Download Java SDK from here: http://www.oracle.com/technetwork/java/javase/downloads/index.html
5. Download and extract Android SDK from here: http://developer.android.com/sdk/index.html
6. Download and extract the APKTool.zip from here: https://docs.google.com/open?id=0BzOID2EFybpAbFh3bW55MGFmQ1E
7. Navigate to the APKTool folder. Right click and open a command prompt or powershell.
8. Type the following commands:
.\ apktool if tabtalk.apk
.\ apktool d tabtalk.apk
This will decompile the apk to a folder called “tabtalk”.
9. Open the folder and open the AndroidManifest.xml for editing.
10. Scroll down to around line 80, the line that reads <action android:name="android.intent.action.DIAL"/> and instert <action android:name="android.intent.action.CALL"/> below it.
11. Scroll down to around line 90, the line that reads <action android:name="android.intent.action.VIEW"/> and instert <action android:name="android.intent.action.CALL"/> below it.
12. Save and close the modified xml file.
13. Recompile the apk by typing the following in the command prompt or powershell:
.\ apktool b tabtalk
This will create a new, modified tabtalk.apk inside the tabtalk folder.
14. Download and extract sign-apk.rar from here: https://forum.xda-developers.com/attachment.php?attachmentid=1846095&d=1364661948
15. Move the modified tabtalk.apk into the sign-apk folder.
16. Right click and open a command prompt or powershell.
17. Type the following command:
java -jar signapk.jar certificate.pem key.pk8 tabtalk.apk tabtalk-signed.apk
This will create a signed version of the modified apk.
18. Copy to the head unit and install. In Settings/Setup, set it as “Tablet”
19. Install Tablet Talk on your phone as well. In Settings/Setup, set it as phone.
20. In Tablet Talk, set both devices to connect by wi-fi (instead of bluetooth) and enable “hotspot” option.
21. Sync your Google contacts to the head unit. You might have to install Google Contacts Sync 4.4.4.
22. Start Google assistant and say “Call (one of your contacts).
23. Press the 3 dots beside the blue phone symbol and select Tablet Talk.
24. To make the head unit read your SMS text messages, use MacroDroid or Tasker and create a macro to read your notifications.
This looks more complicated than it is and it works really well. Thanks to senior members gustden and A_U for the original information which I have adapted for this purpose.
Please don't ask me to provide a copy of the modified apk. It is not my creation and it would not be ethical to do so.
thank you for the post.
nja4k said:
No longer needed.
Click to expand...
Click to collapse
Does that mean your post was no longer needed, or the method detailed by the OP is no longer needed?
Question for OP, is there a reason why wifi connection is required and bluetooth doesn't work?
onesun43 said:
Question for OP, is there a reason why wifi connection is required and bluetooth doesn't work?
Click to expand...
Click to collapse
I couldn't get it to work over Bluetooth. Some of these units seem to have an issue using Bluetooth with anything other than the built in phone and music apps. You might have better luck.
Can't you just upload your moded apk so I can download it and install directly from stage 14 or every head unit need different mod apk
samordoch said:
Can't you just upload your moded apk so I can download it and install directly from stage 14 or every head unit need different mod apk
Click to expand...
Click to collapse
It is not my apk!
On line 17 I can't continue, i receive the following error
C:\android>apktool b tabtalk
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
aapt: warning: string 'BT_setup' has no default translation in C:\android\tabtalk\res; found: fr
C:\android\tabtalk\res\layout\banner_sms_promo.xml:4: error: No resource identifier found for attribute 'importantForAccessibility' in package 'android'
C:\android\tabtalk\res\xml-v11\widget_inbox.xml:2: error: No resource identifier found for attribute 'widgetCategory' in package 'android'
C:\android\tabtalk\res\xml\widget_info.xml:2: error: No resource identifier found for attribute 'widgetCategory' in package 'android'
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 19, --target-sdk-version, 19, -F, C:\Users\Jonatan\AppData\Local\Temp\APKTOOL4306486111343766928.tmp, -I, C:\Users\Jonatan\apktool\framework\1.apk, -S, C:\android\tabtalk\res, -M, C:\android\tabtalk\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)
at brut.androlib.Androlib.buildResources(Androlib.java:283)
at brut.androlib.Androlib.build(Androlib.java:206)
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.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 19, --target-sdk-version, 19, -F, C:\Users\Jonatan\AppData\Local\Temp\APKTOOL4306486111343766928.tmp, -I, C:\Users\Jonatan\apktool\framework\1.apk, -S, C:\android\tabtalk\res, -M, C:\android\tabtalk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 19, --target-sdk-version, 19, -F, C:\Users\Jonatan\AppData\Local\Temp\APKTOOL4306486111343766928.tmp, -I, C:\Users\Jonatan\apktool\framework\1.apk, -S, C:\andro
Code:
id\tabtalk\res, -M, C:\android\tabtalk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)
... 6 more
can you help me?? thx