Related
I am trying to edit framework-res from cyanogenmod . I use apktool 1.2 and I can decompile just fine but trying to rebuild I get all this errors. So it seems that I am missing something apktool if does not do anything.
C:\apktool>apktool b framework-res
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
C:\apktool\framework-res\res\values\public.xml:956: error: Public symbol id/fill
_parent declared here is not defined.
C:\apktool\framework-res\res\values\public.xml:1285: error: Public entry identif
ier 0x1020235 entry index is larger than available symbols (index 565, total sym
bols 565).
C:\apktool\framework-res\res\values\public.xml:1285: error: Public symbol id/mod
e_normal declared here is not defined.
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\ADMINI~1\AppData\Local\Tem
p\APKTOOL7608585969988241404.tmp, -x, -0, arsc, -S, C:\apktool\framework-res\res
, -M, C:\apktool\framework-res\AndroidManifest.xml, C:\apktool\framework-res\9pa
tch]
at brut.androlib.res.AndrolibResources.aaptPackage(Unknown Source)
at brut.androlib.Androlib.buildResourcesFull(Unknown Source)
at brut.androlib.Androlib.buildResources(Unknown Source)
at brut.androlib.Androlib.build(Unknown Source)
at brut.androlib.Androlib.build(Unknown Source)
at brut.apktool.Main.cmdBuild(Unknown Source)
at brut.apktool.Main.main(Unknown Source)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\U
sers\ADMINI~1\AppData\Local\Temp\APKTOOL7608585969988241404.tmp, -x, -0, arsc, -
S, C:\apktool\framework-res\res, -M, C:\apktool\framework-res\AndroidManifest.xm
l, C:\apktool\framework-res\9patch]
at brut.util.OS.exec(Unknown Source)
... 7 more
C:\apktool>
It is most likely a coding error. What are you trying to change?
I am not in any way capable of understanding the log you posted but I've edited a fair amount of APKs and only had compiling errors if I screwed up something in an xml or smali file.
If you post an unedited framework-res, the one you edited, and a quick explanation of what you are trying to change I'll take a look
tritron777 said:
I am trying to edit framework-res from cyanogenmod . I use apktool 1.2 and I can decompile just fine but trying to rebuild I get all this errors. So it seems that I am missing something apktool if does not do anything.
C:\apktool>apktool b framework-res
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
C:\apktool\framework-res\res\values\public.xml:956: error: Public symbol id/fill
_parent declared here is not defined.
C:\apktool\framework-res\res\values\public.xml:1285: error: Public entry identif
ier 0x1020235 entry index is larger than available symbols (index 565, total sym
bols 565).
C:\apktool\framework-res\res\values\public.xml:1285: error: Public symbol id/mod
e_normal declared here is not defined.
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\ADMINI~1\AppData\Local\Tem
p\APKTOOL7608585969988241404.tmp, -x, -0, arsc, -S, C:\apktool\framework-res\res
, -M, C:\apktool\framework-res\AndroidManifest.xml, C:\apktool\framework-res\9pa
tch]
at brut.androlib.res.AndrolibResources.aaptPackage(Unknown Source)
at brut.androlib.Androlib.buildResourcesFull(Unknown Source)
at brut.androlib.Androlib.buildResources(Unknown Source)
at brut.androlib.Androlib.build(Unknown Source)
at brut.androlib.Androlib.build(Unknown Source)
at brut.apktool.Main.cmdBuild(Unknown Source)
at brut.apktool.Main.main(Unknown Source)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\U
sers\ADMINI~1\AppData\Local\Temp\APKTOOL7608585969988241404.tmp, -x, -0, arsc, -
S, C:\apktool\framework-res\res, -M, C:\apktool\framework-res\AndroidManifest.xm
l, C:\apktool\framework-res\9patch]
at brut.util.OS.exec(Unknown Source)
... 7 more
C:\apktool>
Click to expand...
Click to collapse
I am not saying this is a fix by any means but try this download Total commander and winzip. Now with apk files or zips I can go directly into them thru windows commander make any change I want and back out and it will save or recompile the apk or zip file for me and I can then push it over to the phone.
I have made quite a few changes to rom zip files as in removing apk's I dont want or putting my own apk's onto a rom before I install it on my phone.
I also have taken out png files from apk's and place them in other apk files if I so choose. So I am not sure exactly what you are trying to do but give that setup a whirl... PM if you need any further assistance
Link Total Commander
Are you editing xml files our just changing png's?
Sent from your mom's phone.
First I just tried to see if I can rebuild it. I just downloaded it from rom and decompiled and then Oliver tried to rebuild without making any changes but I got all those errors. Too me it looks like I am missing library to rebuild it
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
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:
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
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