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から送られてきた
Related
I am having trouble compiling Home.apk on stock .42 firmware using apkmanager. It decompiles ok but when i try to compile after making a few small changes i get an error and the new Home.apk appears to be incomplete i.e 600kb instead of 800kb. When i place the new apk in the correct folder with correct permissions it doesnt work.
Any suggestions appriciated. Cheers
Sent from my ST18i using XDA App
if you try just decompile and compile it
what happenned?
jimbobcox said:
I am having trouble compiling Home.apk on stock .42 firmware using apkmanager. It decompiles ok but when i try to compile after making a few small changes i get an error and the new Home.apk appears to be incomplete i.e 600kb instead of 800kb. When i place the new apk in the correct folder with correct permissions it doesnt work.
Any suggestions appriciated. Cheers
Sent from my ST18i using XDA App
Click to expand...
Click to collapse
Please post the log from your compiler.
pvy.
Will do when i get back on my laptop.
I will attemp decompile and compile without changes also.
Sent from my ST18i using XDA App
I have just decompiled the apk, i didn't make any changes and tried recompiling i got an error. Log as follows
---
|13/01/2012 -- 16:52:37.88|
--------------------------------------------------------------------------
java version "1.7.0_02"
Java(TM) SE Runtime Environment (build 1.7.0_02-b13)
Java HotSpot(TM) 64-Bit Server VM (build 22.0-b10, mixed mode)
Could Not Find C:\Android\apk_manager_4.9\place-apk-here-for-modding\../place-apk-here-for-modding/signedHome.apk
Could Not Find C:\Android\apk_manager_4.9\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedHome.apk
I: Baksmaling...
I: Loading resource table...
I: Decoding resources...
I: Loading resource table from file: C:\Users\JimBob\apktool\framework\1.apk
I: Copying assets and libs...
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
C:\Android\apk_manager_4.9\other\..\projects\Home.apk\res\values\styles.xml:16: 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\JimBob\AppData\Local\Temp\APKTOOL5814441021199410965.tmp, -I, C:\Users\JimBob\apktool\framework\1.apk, -S, C:\Android\apk_manager_4.9\other\..\projects\Home.apk\res, -M, C:\Android\apk_manager_4.9\other\..\projects\Home.apk\AndroidManifest.xml]
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:\Users\JimBob\AppData\Local\Temp\APKTOOL5814441021199410965.tmp, -I, C:\Users\JimBob\apktool\framework\1.apk, -S, C:\Android\apk_manager_4.9\other\..\projects\Home.apk\res, -M, C:\Android\apk_manager_4.9\other\..\projects\Home.apk\AndroidManifest.xml]
at brut.util.OS.exec(Unknown Source)
... 7 more
The system cannot find the file specified.
Thanks in advance for any help!
SOLVED!
found solution here
http://forum.xda-developers.com/showthread.php?t=1276332
Sent from my ST18i using XDA App
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
Hey guys,
Need some help recompiling MMS.apk.
Got the files needed for the procedure and have decomp'd successfully but now trying to recompile, no go... I get framework-res errors. Am I missing something? I just decomp'd MMS.apk then made a maxfilesize and maxline change and ran command-
apktool b mms
It tries but I get...
I: Building resources...
c:\abc\mms\AndroidManifest.xml:80: error: No resource identifier found for attri
bute 'parentActivityName' in package 'android'
aapt: warning: string 'template_edit_title' has no default translation in c:\abc
\mms\res; found: de
aapt: warning: string 'template_insert_ctx_menu_title' has no default translatio
n in c:\abc\mms\res; found: de
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\DOCUME~1\*****\LOCALS~1\Temp\
APKTOOL1230142302152542334.tmp, -I, C:\Documents and Settings\******\apktool\f
ramework\1.apk, -S, c:\abc\mms\res, -M, c:\abc\mms\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:251)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:325)
at brut.androlib.Androlib.buildResources(Androlib.java:270)
at brut.androlib.Androlib.build(Androlib.java:193)
at brut.androlib.Androlib.build(Androlib.java:175)
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:\D
OCUME~1\*******\LOCALS~1\Temp\APKTOOL1230142302152542334.tmp, -I, C:\Documents
and Settings\*******\apktool\framework\1.apk, -S, c:\abc\mms\res, -M, c:\abc\mm
s\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:249)
... 6 more
Can someone please help?? Why is it trying to get something from my docs and setting folder?? What does that have to do with any of this???
I think I'm missing a step here...I haven't done anything with framework-res or anything so, that could be the issue... Sorry, I'm just starting to get into this...
Thanks in advance guys.
Running 1.4.9. The latest...for JB...
You didn't pull your ROMs framework and run
Code:
apktool if framework-res.apk
.
Sent From My Toro+ via Tapatalk
ÜBER™ said:
You didn't pull your ROMs framework and run
Code:
apktool if framework-res.apk
.
Sent From My Toro+ via Tapatalk
Click to expand...
Click to collapse
Oh ok thanks man.
Yeah, that seemed to enable me to get it recompiled now. If I decomp'd it without that, does that make a difference? Do I "have" to sign it also?
I'm re flashing it and its not sticking...no MMS app anywhere... I usually can just dump it in the System/app folder and do permissions and reboot using ES File Explorer... Didnt work... Am I doing something else wrong? Haha...
Thanks man.
Lambetts said:
Oh ok thanks man.
Yeah, that seemed to enable me to get it recompiled now. If I decomp'd it without that, does that make a difference? Do I "have" to sign it also?
I'm re flashing it and its not sticking...no MMS app anywhere... I usually can just dump it in the System/app folder and do permissions and reboot using ES File Explorer... Didnt work... Am I doing something else wrong? Haha...
Thanks man.
Click to expand...
Click to collapse
No you dont have to sign it. If its not working the there is something wrong and you may need to redo it. Make sure your flashing this in a flash able. And not just dropping in its proper place
Sent From My Toro+ via Tapatalk
ÜBER™ said:
No you dont have to sign it. If its not working the there is something wrong and you may need to redo it. Make sure your flashing this in a flash able. And not just dropping in its proper place
Sent From My Toro+ via Tapatalk
Click to expand...
Click to collapse
Thanks man.
Yeah, I didnt have the framework installed when I decompiled.
Its giving me this...anything to worry about?
I: Building resources...
aapt: warning: string 'template_edit_title' has no default translation in C:\abc
\mms\res; found: de
aapt: warning: string 'template_insert_ctx_menu_title' has no default translatio
n in C:\abc\mms\res; found: de
I: Building apk file...
I'll try and reflash this one...
Thanks again.
Lambetts said:
Thanks man.
Yeah, I didnt have the framework installed when I decompiled.
Its giving me this...anything to worry about?
I: Building resources...
aapt: warning: string 'template_edit_title' has no default translation in C:\abc
\mms\res; found: de
aapt: warning: string 'template_insert_ctx_menu_title' has no default translatio
n in C:\abc\mms\res; found: de
I: Building apk file...
I'll try and reflash this one...
Thanks again.
Click to expand...
Click to collapse
You may have issues with it crashing when searching looks like your getting the aapt error did you update the aapt to the latest?.
Sent From My Toro+ via Tapatalk
ÜBER™ said:
You may have issues with it crashing when searching looks like your getting the aapt error did you update the aapt to the latest?.
Sent From My Toro+ via Tapatalk
Click to expand...
Click to collapse
Yeah, the 1.4.9?? Is that the latest?
It flashed. But I "had" to flash it over the other one... Usually I can drop it in. Or rename the old one to mms.apkbak and flash, just in case I want revert.
Spose I can just flash back if I want.
No errors just yet. My additions stuck. Do you know what "maxsize" value I would use for like 450kb?
I put 0500000, and thought that was 500kb. but its going as low as 239kb. I want to make it prob 300kb, to be safe for other carriers.
Thanks mate. You've really helped me understand some stuff here...might even get into themeing a little...one step at a time though...haha
Cheers.
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