Recompile error of Brut.alll - Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A

Im using cyanogen 7.2 on my ray..
I'm tying to decompile the apk make the changes and recompile it again...
However the phone.apk dosent recompile.. It gives all those brut.alll errors..
Here's the log:
c:\apkt>java -jar apktool.jar b -f c:\apkt\phon c:\apkt\Phonez.apk
I: Smaling...
I: Building resources...
c:\apkt\phon\res\values-da\strings.xml:200: error: Multiple substitutions specif
ied in non-positional format; did you mean to add the formatted="false" attribut
e?
c:\apkt\phon\res\values-da\strings.xml:201: error: Unexpected end tag string
c:\apkt\phon\res\values-es\strings.xml:203: error: Multiple substitutions specif
ied in non-positional format; did you mean to add the formatted="false" attribut
e?
c:\apkt\phon\res\values-es\strings.xml:204: error: Unexpected end tag string
c:\apkt\phon\res\values-fi\strings.xml:200: error: Multiple substitutions specif
ied in non-positional format; did you mean to add the formatted="false" attribut
e?
c:\apkt\phon\res\values-fi\strings.xml:201: error: Unexpected end tag string
c:\apkt\phon\res\values-it\strings.xml:203: error: Multiple substitutions specif
ied in non-positional format; did you mean to add the formatted="false" attribut
e?
c:\apkt\phon\res\values-it\strings.xml:204: error: Unexpected end tag string
c:\apkt\phon\res\values-lv\strings.xml:205: error: Multiple substitutions specif
ied in non-positional format; did you mean to add the formatted="false" attribut
e?
c:\apkt\phon\res\values-lv\strings.xml:206: error: Unexpected end tag string
c:\apkt\phon\res\values-nb\strings.xml:200: error: Multiple substitutions specif
ied in non-positional format; did you mean to add the formatted="false" attribut
e?
c:\apkt\phon\res\values-nb\strings.xml:201: error: Unexpected end tag string
c:\apkt\phon\res\values-ru\strings.xml:208: error: Multiple substitutions specif
ied in non-positional format; did you mean to add the formatted="false" attribut
e?
c:\apkt\phon\res\values-ru\strings.xml:209: error: Unexpected end tag string
c:\apkt\phon\res\values-sv\strings.xml:203: error: Multiple substitutions specif
ied in non-positional format; did you mean to add the formatted="false" attribut
e?
c:\apkt\phon\res\values-sv\strings.xml:204: error: Unexpected end tag string
c:\apkt\phon\res\values-zh-rTW\strings.xml:205: error: Multiple substitutions sp
ecified in non-positional format; did you mean to add the formatted="false" attr
ibute?
c:\apkt\phon\res\values-zh-rTW\strings.xml:205: error: Unexpected end tag string
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\Tanuj\AppData\Local\Temp\A
PKTOOL4820468380985856256.tmp, -I, C:\Users\Tanuj\apktool\framework\1.apk, -S, c
:\apkt\phon\res, -M, c:\apkt\phon\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\U
sers\Tanuj\AppData\Local\Temp\APKTOOL4820468380985856256.tmp, -I, C:\Users\Tanuj
\apktool\framework\1.apk, -S, c:\apkt\phon\res, -M, c:\apkt\phon\AndroidManifest
.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more
I searched all places.. They say, use the latest aapt.exe...
I am using the latest one and apktool 1.4.3..
Still cant recompile...
Pleasssssse help... I'm working on this since two days now...

If there are double % in one sentence inside any xml (e.g. %d to %d) you must add % to that (%d to %%d)
Sent from my ST18i using XDA

Do you mean only the %d to %d type or any kind of sentences where % is used twice..
Eg:
string name="throttle_status_subtext">"%1$s (%2$d٪) of %3$s period maximum
how should this be changed?

Actually i'm still confused about that, but AFAIK, the original is like (%s (%d) of %s period maximum) so you should try to use
%s (%%d) of %%s
Let me know if it worked.

hansip, you should write a Guide for Decompiling apks from Sony Rom and recompiling.. No need to mention Mods.. coz even I cant compile it either.. Let us know how u did those apk edits...
I am planning tomake Sony defualt dialer look just like ICS dialer but limited by decompling error...

jjdoctor said:
hansip, you should write a Guide for Decompiling apks from Sony Rom and recompiling.. No need to mention Mods.. coz even I cant compile it either.. Let us know how u did those apk edits...
I am planning tomake Sony defualt dialer look just like ICS dialer but limited by decompling error...
Click to expand...
Click to collapse
What's your problem jj? I have no problem so far when i follow this
http://forum.xda-developers.com/showthread.php?t=1511730
Only when i tried to recompile framework-res that i got error. but the above method fixes that.

hansip87 said:
What's your problem jj? I have no problem so far when i follow this
http://forum.xda-developers.com/showthread.php?t=151173
Only when i tried to recompile framework-res that i got error. but the above method fixes that.
Click to expand...
Click to collapse
Link is wrong....

jjdoctor said:
Link is wrong....
Click to expand...
Click to collapse
oops sorry, minus 0 http://forum.xda-developers.com/showthread.php?t=1511730

Auto apk does not work either
Thanks hansip87 and jjdoctor, but this auto apktool isnt working either..
Still the same errors..
I know i'm doing something wrong.. and its just a tiny bit...
Can you post a guide or link to the tools that are to be used...
Is there a problem with windows 7?
Run as administrator? anything?

Here, I'm posting the phone.apk that i'm trying to recompile again..
Its a cyanogenmod 7.2 apk...
Please try to decompile n recompile it again... Tell me if it works..
It dosent recommpile even if i make no changes at all..
If it works for you please tell me the steps...
Thanks a lot again..

Tan9890 said:
Here, I'm posting the phone.apk that i'm trying to recompile again..
Its a cyanogenmod 7.2 apk...
Please try to decompile n recompile it again... Tell me if it works..
It dosent recommpile even if i make no changes at all..
If it works for you please tell me the steps...
Thanks a lot again..
Click to expand...
Click to collapse
Well as u can see in the log, can you post just the line of 200,201,203, and 204 of any of the mentioned strings.xml?
Sent from my ST18i using XDA

Here you go..
line 200 and 201 from values-da:
<string name="throttle_status_subtext">"%1$s (%2$d %) af %3$s periodens maksimum
Næste periode om %4$d dage (%5$s)"</string>
203 204 from values-es
<string name="throttle_status_subtext">"%1$s (%2$d%) de período máximo de %3$s.
Próx período en %4$d días (%5$s)"</string>

Also, i tried doing the same with Contacts.apk using the autoapk tool..
Now this one did recompile..
however, there's a problem with the signing i guess..
I tried signing the app, but that didnt work..
I replaced the original Meta-inf folder.. That that didnt work either,...
n now, even if i put back the original contacts.apk, when i go into call logs, it force closes saying some com.android.acore has crashed..
I think i'll have to flash my rom again now.. Cant receive any calls..

Plz reply....

Tan9890 said:
line 200 and 201 from values-da:
<string name="throttle_status_subtext">"%1$s (%2$d %) af %3$s periodens maksimum
Næste periode om %4$d dage (%5$s)"</string>
203 204 from values-es
<string name="throttle_status_subtext">"%1$s (%2$d%) de período máximo de %3$s.
Próx período en %4$d días (%5$s)"</string>
Click to expand...
Click to collapse
try to fix it into this:
<string name="throttle_status_subtext">"%s (%d %%) af %s periodens maksimum
Næste periode om %d dage (%s)"</string>
<string name="throttle_status_subtext">"%s (%d %%) de período máximo de %s.
Próx período en %d días (%s)"</string>

Why are you using smali and baksmali for CM apk ? You can easily grab the real sourcecode and recompile it in a proper way ......
Regards

Found the solution
Hi..
it seems a file named mgwz.dll was missing..
I downloaded the file from google and it worked fine..
Also, the error of the system not accepting the new recompiled apk has been solved..
The original certificates need to be present in the modified apk as well..
however, you shouldnt replace the META-INF folder..
Instead, extract the file you edited from the recompiled apk, and add and replace it in the original apk..
There was a problem with the checksum of the certificates. Thats why the apk wasnt getting identified..

Related

[Q] Need help to recompile apk with apktool

Hi all when i tried to recompile apk with the apktool with this line: apktool b <file>, it comes out with this error.
L:\Users\YJ\Downloads\apktool\MiuiMusic\res\values \strings.xml:199: error: Apost
rophe not preceded by \ (in There's a new version available, please update)
L:\Users\YJ\Downloads\apktool\MiuiMusic\res\values \public.xml:587: error: Public
symbol string/upgrade_detail declared here is not defined.
L:\Users\YJ\Downloads\apktool\MiuiMusic\res\values \public.xml:688: error: Public
entry identifier 0x7f090129 entry index is larger than available symbols (index
297, total symbols 297).
L:\Users\YJ\Downloads\apktool\MiuiMusic\res\values \public.xml:688: error: Public
symbol string/url_debug_update declared here is not defined.
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, L:\Users\YJ\AppData\Local\Temp\APKT
OOL1164060080391540263.tmp, -I, L:\Users\YJ\apktool\framework\1.apk, -S, L:\User
s\YJ\Downloads\apktool\MiuiMusic\res, -M, L:\Users\YJ\Downloads\apktool\MiuiMusi
c\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(An drolibResources.jav
a:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib .java:301)
at brut.androlib.Androlib.buildResources(Androlib.jav a:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:174)
at brut.apktool.Main.main(Main.java:59)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, L:\U
sers\YJ\AppData\Local\Temp\APKTOOL1164060080391540 263.tmp, -I, L:\Users\YJ\apkto
ol\framework\1.apk, -S, L:\Users\YJ\Downloads\apktool\MiuiMusic\res, -M, L:\User
s\YJ\Downloads\apktool\MiuiMusic\AndroidManifest.x ml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(An drolibResources.jav
a:191)
... 6 more
Anybody can give me help?
Using windows 7 to compile.
I am just assuming you didn't decompile using apktool, and using it only to recompile. And use latest apktool.
Sent from my LG-P500 using XDA Premium App
4silvertooth said:
I am just assuming you didn't decompile using apktool, and using it only to recompile. And use latest apktool.
Sent from my LG-P500 using XDA Premium App
Click to expand...
Click to collapse
omg thanks for replying. But the thing is that i'm using v1.4.1 of apktool. I did decompile. After decompiling, i edited the strings.xml file, and then recompiled
kongyujian said:
omg thanks for replying. But the thing is that i'm using v1.4.1 of apktool. I did decompile. After decompiling, i edited the strings.xml file, and then recompiled
Click to expand...
Click to collapse
You have not installed the apk tool correctly. Read the wiki on apktool site.
aapt path has to be set.
Sent from my LG-P500 using XDA Premium App
Oh i resolved it! =) Thanks for helping though!
The problem is that in the .xml file, i'm supposed to put a backslash before an apostrophe. E.g. Proxy's must be written as Proxy\'s
Thanks for helping! =) Hope to have helped others. =)
Ok nice.
Sent from my LG-P500 using XDA Premium App
kongyujian said:
Oh i resolved it! =) Thanks for helping though!
The problem is that in the .xml file, i'm supposed to put a backslash before an apostrophe. E.g. Proxy's must be written as Proxy\'s
Thanks for helping! =) Hope to have helped others. =)
Click to expand...
Click to collapse
So is the miui music app gonna be done soon?
Sent using LGE Xda Secret phone
Trying to learn how to sign the apk. =( no luck so far. Haha. probably tonight or tmr night. :\ i got an output apk file already. The only thing is it cannot install.
kongyujian said:
Trying to learn how to sign the apk. =( no luck so far. Haha. probably tonight or tmr night. :\ i got an output apk file already. The only thing is it cannot install.
Click to expand...
Click to collapse
Wad? I tht miui music u have to push system/app... It will not work by jus installing... Btw can u attach so i can test it...
Sent using LGE Xda Secret phone

[TUTORIAL FIX-/policy/impl ] XPERiA S iCS Lockscreen FOR YOUR FILES

XPERIA ICS LOCKSCREEN TUTORIAL ............. Aeon​
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
THIS IS ONLY FOR THEMERS AND MODERS​
If Someone needs to add xperia S lockscreen to your MODED files​
::::::::::::::::::::::::::::::::ANDROID.POLICY.JAR:::::::::::::::::::::::::::::::​
First:::: Download This ::::http://www.mediafire.com/download.php?g35chi82ex5wou9
Then
DECOMPILE your android.policy.jar (After Deodexing them if odexed ) --- Using x10modtool or any other tool
Then
Copy the files from the downloaded RAR (above) to the decompiled folder /policy/impl and RECOMPILE
Thats your android.policy.jar
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
No NEED TO.ADD.ANYTHING.ANYWHERE SORRY
help
please tell me how to deodex android.policy.jar (x10moddtool cant)...
dex87xda said:
please tell me how to deodex android.policy.jar (x10moddtool cant)...
Click to expand...
Click to collapse
Use xultimate
Thank You,
Aeon
I can't download the apktool.jar which has plurals error fix, can you upload the file here?
EDIT: i had try both my default apktool.jar and a new one gotten from the google seach but both ended up with error when building the apk still :|
simplyjustkids said:
I can't download the apktool.jar which has plurals error fix, can you upload the file here?
EDIT: i had try both my default apktool.jar and a new one gotten from the google seach but both ended up with error when building the apk still :|
Click to expand...
Click to collapse
Explain the error, give a screen shot
Thank You,
Aeon
I post the log here ones I reach home. It's not a problem to decompile but recompile is an issue. I think it's my apk manager.
EDIT: logs are here
--------------------------------------------------------------------------
|Mon 16/07/2012 -- 21:09:54.45|
--------------------------------------------------------------------------
java version "1.7.0_02"
Java(TM) SE Runtime Environment (build 1.7.0_02-b13)
Java HotSpot(TM) Client VM (build 22.0-b10, mixed mode, sharing)
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
C:\Users\yourdog\Desktop\Apk Manager\other\..\projects\framework-res.apk\res\values\public.xml:7249: error: Public entry identifier 0x104051c entry index is larger than available symbols (index 1308, total symbols 1308).
C:\Users\yourdog\Desktop\Apk Manager\other\..\projects\framework-res.apk\res\values\public.xml:7249: error: Public symbol string/permdesc_external_lockscreen declared here is not defined.
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\yourdog\AppData\Local\Temp\APKTOOL2279707019009041448.tmp, -x, -S, C:\Users\yourdog\Desktop\Apk Manager\other\..\projects\framework-res.apk\res, -M, C:\Users\yourdog\Desktop\Apk Manager\other\..\projects\framework-res.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\yourdog\AppData\Local\Temp\APKTOOL2279707019009041448.tmp, -x, -S, C:\Users\yourdog\Desktop\Apk Manager\other\..\projects\framework-res.apk\res, -M, C:\Users\yourdog\Desktop\Apk Manager\other\..\projects\framework-res.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
--------------------------------------------------------------------------
|Mon 16/07/2012 -- 21:11:04.77|
--------------------------------------------------------------------------
java version "1.7.0_02"
Java(TM) SE Runtime Environment (build 1.7.0_02-b13)
Java HotSpot(TM) Client VM (build 22.0-b10, mixed mode, sharing)
Could Not Find C:\Users\yourdog\Desktop\Apk Manager\place-apk-here-for-modding\../place-apk-here-for-modding/signedframework-res.apk
Could Not Find C:\Users\yourdog\Desktop\Apk Manager\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedframework-res.apk
I: Loading resource table...
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
C:\Users\yourdog\Desktop\Apk Manager\other\..\projects\framework-res.apk\res\values\public.xml:7249: error: Public entry identifier 0x104051c entry index is larger than available symbols (index 1308, total symbols 1308).
C:\Users\yourdog\Desktop\Apk Manager\other\..\projects\framework-res.apk\res\values\public.xml:7249: error: Public symbol string/permdesc_external_lockscreen declared here is not defined.
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\yourdog\AppData\Local\Temp\APKTOOL7622665506179392662.tmp, -x, -S, C:\Users\yourdog\Desktop\Apk Manager\other\..\projects\framework-res.apk\res, -M, C:\Users\yourdog\Desktop\Apk Manager\other\..\projects\framework-res.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\yourdog\AppData\Local\Temp\APKTOOL7622665506179392662.tmp, -x, -S, C:\Users\yourdog\Desktop\Apk Manager\other\..\projects\framework-res.apk\res, -M, C:\Users\yourdog\Desktop\Apk Manager\other\..\projects\framework-res.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
Sent From My Sony Xperia Arc S
Like the compiler said, you didn't add lines in strings.xml, and the hex code you added was over, write hex in a way in continuation to the respective part in public.xml
Thank You,
Aeon
Wait you mean i forgot to add any one line mention above? or... i don't get it =[
simplyjustkids said:
Wait you mean i forgot to add any one line mention above? or... i don't get it =[
Click to expand...
Click to collapse
1. You didn't add lines in strings.xml or manifest
2. You also set the hex codes wrong
3. You might have not installed framework files
Thank You,
Aeon
do you mean this part where i set the codes wrongly?
Add these to the end of string names in public.xml (/res/values/public.xml)
I did copy whatever that was posted above. =\
EDIT: I saw some post saying it only require the android policy jar to work as you don't really have to mod the framework apk file. True or?
simplyjustkids said:
do you mean this part where i set the codes wrongly?
Add these to the end of string names in public.xml (/res/values/public.xml)
I did copy whatever that was posted above. =\
EDIT: I saw some post saying it only require the android policy jar to work as you don't really have to mod the framework apk file. True or?
Click to expand...
Click to collapse
Update : thanks man I really forgot to check that ,I will update every post
Thank You,
Aeon
I had try what's mentioned above... but it's not working =|, could it be that the problem is that i'm running 4.0.3?
simplyjustkids said:
I had try what's mentioned above... but it's not working =|, could it be that the problem is that i'm running 4.0.3?
Click to expand...
Click to collapse
Yes i think mate
sent from my Xperia Neo V Supercharged ICS 4.0.4
simplyjustkids said:
I had try what's mentioned above... but it's not working =|, could it be that the problem is that i'm running 4.0.3?
Click to expand...
Click to collapse
May be, and can you try it with an aosp multiwave framework-res and check it out
Thank You,
Aeon
multiwave framework? Which?
Sent From My Sony Xperia Arc S
simplyjustkids said:
multiwave framework? Which?
Sent From My Sony Xperia Arc S
Click to expand...
Click to collapse
I meant an ASOP framework files, no need I tried with Slide stock ics UN modified framework still it works
Thank You,
Aeon
The android.policy.jar file that i posted is what i did using your tutorial, is there anything wrong i did in there that make it not work?
After trying your android.policy.jar mod I am getting the lockscreen settings but no lockscreen. And editing framework-res.apk gives bootloop, as you mentioned earlier it needs editing androidmanifest.xml, but afaik editing it changes the signature of the apk.
I am using a lot of mods (including hansip87's) and I want to incorporate this mod too.
And I dont want to flash the rom.
Any help will be appreciated
what about mod for GB
AeonWorld said:
XPERIA ICS LOCKSCREEN TUTORIAL ............. Aeon​
Click to expand...
Click to collapse
Please tutorial how to add lockscreen from SXS for 587 Xperia arc?

Theming and VillianRom Themer

Why can I got get this to work?
I was trying to get ICS Domination to work on my ROM the other day. It said it works fine on odexed ROM's, but the instructions didn't work. I figured it was because I was odexed. So, I downloaded and installed a deodexed ROM that was said to be compatible with ICS Domination.
I flashed. Nothing. Not a damn thing changed. I didn't even get force closes or anything to indicate something had gone wrong. Nothing changed.
I did everything right. Copied to internal storage. Flashed with CWM. Cleared Cache and Dalvik prior to flashing. It didn't work.
So, I resigned myself to give up and wait for an updated version in case that makes a difference.
Then I got pissed off and figured I'd make some changes of my own. I thought I'd start small, with the SecPhone.apk dialer. I found some .png's I wanted to change and changed them, then I downloaded the VillianROM Themer .zip and followed the instructions there.
I copied my files like this
[ROOT_OF_ZIP]/vrtheme/system/app/SecPhone.apk/drawable-hdpi/[FILES_HERE]
and flashed. Everything was said to have gone ok. I reboot. Nothing has changed AGAIN.
Ok, so then I rip apart a couple of other mods on the site to see how they've been put together. One seems to replace the .apk's themselves.
Ok, so off I go and download apktool and decompile some apk's and get editing (previously having just taken the files from an "unzipped" apk. I finish my changes and try to rebuild an apk. I get some stupid error that I can't copy from the Command Prompt directly or be bothered to type out since it's quite large. Needless to say, my frustration is at an all time high.
So, my suspicion is that something isn't going to work when Vertumus releases ICS Domination 1.2 (or 2.0, whatever) any day now that when I flash it it's not going to work either.
The LFB version of this: http://forum.xda-developers.com/showthread.php?t=1779170 works great. It just doesn't (and apparently never will) change the dialer or much of anything else.
I need one of two things from the community, or both to be great, but I need:
To know if I'm doing anything wrong at all or what could possible be wrong with my setup that won't accept VillianROM Theming (I'm using VillianROM's ROM as it happens also)
To know how the hell I make my own themes and customisations, because I'll get to work doing this and make a thread or two with some of my own mods in them. More modders = better.
EDIT:
My error when trying to build and apk was like this:
Code:
E:\android\Lab\SystemUI\res\values\public.xml:318: error: Public symbol drawable/tw_stat_sys_6_level_signal_3 declared h
erbrut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\DOCUME~1\edp\LOCA
LS~1\Temp\APKTOOL4562847521524937175.tmp, -I, C:\Documents and Settings\edp\apktool\framework\1.apk, -S, E:\android\Lab\
SystemUI\res, -M, E:\android\Lab\SystemUI\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:\DOCUME~1\edp\LOCALS~1\Temp\APKTOOL4562847
521524937175.tmp, -I, C:\Documents and Settings\edp\apktool\framework\1.apk, -S, E:\android\Lab\SystemUI\res, -M, E:\and
roid\Lab\SystemUI\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
e is not defined.
E:\android\Lab\SystemUI\res\values\public.xml:319: error: Public symbol drawable/tw_stat_sys_6_level_signal_3_fully decl
ared here is not defined.
E:\android\Lab\SystemUI\res\values\public.xml:320: error: Public symbol drawable/tw_stat_sys_6_level_signal_4 declared h
ere is not defined.
E:\android\Lab\SystemUI\res\values\public.xml:321: error: Public symbol drawable/tw_stat_sys_6_level_signal_4_fully decl
ared here is not defined.
E:\android\Lab\SystemUI\res\values\public.xml:322: error: Public symbol drawable/tw_stat_sys_6_level_signal_5 declared h
ere is not defined.
E:\android\Lab\SystemUI\res\values\public.xml:323: error: Public symbol drawable/tw_stat_sys_6_level_signal_5_fully decl
ared here is not defined.
E:\android\Lab\SystemUI\res\values\public.xml:324: error: Public symbol drawable/tw_stat_sys_6_level_signal_6 declared h
ere is not defined.
E:\android\Lab\SystemUI\res\values\public.xml:325: error: Public symbol drawable/tw_stat_sys_6_level_signal_6_fully decl
ared here is not defined.
E:\android\Lab\SystemUI\res\values\public.xml:99: error: Public symbol drawable/tw_stat_sys_battery_not_charge declared
here is not defined.
E:\android\Lab\SystemUI\res\values\public.xml:326: error: Public symbol drawable/tw_stat_sys_signal_null declared here i
s not defined.
E:\android\Lab\SystemUI\res\values\public.xml:327: error: Public symbol drawable/tw_status_bar_close_on declared here is
not defined.
E:\android\Lab\SystemUI\res\values\public.xml:101: error: Public symbol drawable/zzz_stat_vt_signal declared here is not
defined.
E:\android\Lab\SystemUI\res\values\public.xml:102: error: Public symbol drawable/zzz_stat_vt_signal_null declared here i
s not defined.
both in having the folder and apk destination the same. Once I read about having the apk made in a separate folder I tried again and got a similar result.
Maybe I am wrong but I think that your png needs to be in drawable-xhdpi and not in drawable-hdpi in order to work with S3
Mopral said:
Maybe I am wrong but I think that your png needs to be in drawable-xhdpi and not in drawable-hdpi in order to work with S3
Click to expand...
Click to collapse
Thanks!
I just tried that instead, though, and there were the exact same files (different names) in that folder. I edited those and did the same format. Nothing
I'm going to pull the SecPhone.apk from my phone now, though and see if they actually DID get changed cause if not I've got a problem.
EDIT:
Ahh, ha. Ok, so I don't have a problem with the VillainROM Themer as the file I just pulled DID have my changes. I guess I just need to see where exactly the files are and see if that works.
Kryten2k35 said:
[ROOT_OF_ZIP]/vrtheme/system/app/SecPhone.apk/drawable-hdpi/[FILES_HERE]
Click to expand...
Click to collapse
Here is your mistake!
It should be:
/vrtheme/system/app/SecPhone.apk/res/drawable-xhdpi/
Click to expand...
Click to collapse
Mopral said:
Here is your mistake!
It should be:
Click to expand...
Click to collapse
Opps, just typed it out incorrectly. It's in that folder, though Like I said I just managed to pull the apk and check the files were correctly copied by VRT - they were. So I guess I just need to hunt down the right/all location(s)!
Kryten2k35 said:
Opps, just typed it out incorrectly. It's in that folder, though Like I said I just managed to pull the apk and check the files were correctly copied by VRT - they were. So I guess I just need to hunt down the right/all location(s)!
Click to expand...
Click to collapse
just not forget that your new png should have the same name and the same size (96*96 for apk icon,...)
All I've been doing is opening them in PSP and then saving them, then copying them into the VRT zip.
I've looked through the whole folders sad changed all the files I can see that are of try dialer. I've pulled through apk from through phone and the changes are there... so where are the old files coming from? I've cleared the caches...
Sent from my GT-I9300 using xda premium
Bump
Sent from my GT-I9300 using xda premium
Might be easier if you upload your non working zip so we can take a look.
Sent from my GT-I9300 using Tapatalk 2
Hi Lenny,
Ill do that, though I think it's something I'm missing because as I said I've pulled the apks that were supposed to be changed by the zip and they have the changes in them. So I think the script is working as it should.
I'll get a copy uploaded when I get to my pc (about 5 mins lol)
Sent from my GT-I9300 using xda premium
There we go:
I've tried compiling the png's using the png9 tool in the Android SDK, too. No different.
There's a theme out there that themes the dialer... doesn't even touch SecPhone.apk and it's all in SystemUI.apk. Yet, I've ripped open his SystemUI.apk from his mod file and I can't even see the images that would relate to his mod?
This is... frustrating.
Does anyone have any GOOD theming guides? This is something I want to get into but there's this "nothing works for me" barrier to entry.

[Q] Recompile SystemUI.apk

Hello,
Today I've been trying to de/re-compile the SystemUI.apk from i9300's android 4.3 build, and after some time the decompiling part goes flawless,
however, when I try to recompile it, I get the following errors:
Code:
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
C:\Users\Dylan\Downloads\APKTool\APKTool\SystemUI\res\layout\system_bar_notifica
tion_panel_title.xml:14: error: Error: No resource found that matches the given
name (at 'style' with value '@style/SystemBarNotificationText').
C:\Users\Dylan\Downloads\APKTool\APKTool\SystemUI\res\layout\system_bar_notifica
tion_panel_title.xml:19: error: Error: No resource found that matches the given
name (at 'style' with value '@style/SystemBarNotificationText').
C:\Users\Dylan\Downloads\APKTool\APKTool\SystemUI\res\layout\system_bar_notifica
tion_panel_title.xml:21: error: Error: No resource found that matches the given
name (at 'style' with value '@style/SystemBarNotificationText').
C:\Users\Dylan\Downloads\APKTool\APKTool\SystemUI\res\layout\system_bar_settings
_view.xml:5: error: Error: No resource found that matches the given name (at 'st
yle' with value '@style/SystemBarPanelSettingsRow').
C:\Users\Dylan\Downloads\APKTool\APKTool\SystemUI\res\layout\system_bar_settings
_view.xml:6: error: Error: No resource found that matches the given name (at 'st
yle' with value '@style/SystemBarPanelSettingsIcon').
C:\Users\Dylan\Downloads\APKTool\APKTool\SystemUI\res\layout\system_bar_settings
_view.xml:7: error: Error: No resource found that matches the given name (at 'st
yle' with value '@style/SystemBarPanelSettingsContents').
C:\Users\Dylan\Downloads\APKTool\APKTool\SystemUI\res\layout\system_bar_settings
_view.xml:10: error: Error: No resource found that matches the given name (at 's
tyle' with value '@style/SystemBarPanelSettingsPanelSeparator').
C:\Users\Dylan\Downloads\APKTool\APKTool\SystemUI\res\layout\system_bar_settings
_view.xml:11: error: Error: No resource found that matches the given name (at 's
tyle' with value '@style/SystemBarPanelSettingsRow').
C:\Users\Dylan\Downloads\APKTool\APKTool\SystemUI\res\layout\system_bar_settings
_view.xml:12: error: Error: No resource found that matches the given name (at 's
tyle' with value '@style/SystemBarPanelSettingsIcon').
C:\Users\Dylan\Downloads\APKTool\APKTool\SystemUI\res\layout\system_bar_settings
_view.xml:13: error: Error: No resource found that matches the given name (at 's
tyle' with value '@style/SystemBarPanelSettingsContents').
C:\Users\Dylan\Downloads\APKTool\APKTool\SystemUI\res\layout\system_bar_settings
_view.xml:15: error: Error: No resource found that matches the given name (at 's
tyle' with value '@style/SystemBarPanelSettingsPanelSeparator').
C:\Users\Dylan\Downloads\APKTool\APKTool\SystemUI\res\layout\system_bar_settings
_view.xml:16: error: Error: No resource found that matches the given name (at 's
tyle' with value '@style/SystemBarPanelSettingsRow').
C:\Users\Dylan\Downloads\APKTool\APKTool\SystemUI\res\layout\system_bar_settings
_view.xml:17: error: Error: No resource found that matches the given name (at 's
tyle' with value '@style/SystemBarPanelSettingsIcon').
C:\Users\Dylan\Downloads\APKTool\APKTool\SystemUI\res\layout\system_bar_settings
_view.xml:18: error: Error: No resource found that matches the given name (at 's
tyle' with value '@style/SystemBarPanelSettingsContents').
C:\Users\Dylan\Downloads\APKTool\APKTool\SystemUI\res\layout\system_bar_settings
_view.xml:21: error: Error: No resource found that matches the given name (at 's
tyle' with value '@style/SystemBarPanelSettingsPanelSeparator').
C:\Users\Dylan\Downloads\APKTool\APKTool\SystemUI\res\layout\system_bar_settings
_view.xml:22: error: Error: No resource found that matches the given name (at 's
tyle' with value '@style/SystemBarPanelSettingsRow').
C:\Users\Dylan\Downloads\APKTool\APKTool\SystemUI\res\layout\system_bar_settings
_view.xml:23: error: Error: No resource found that matches the given name (at 's
tyle' with value '@style/SystemBarPanelSettingsIcon').
C:\Users\Dylan\Downloads\APKTool\APKTool\SystemUI\res\layout\system_bar_settings
_view.xml:26: error: Error: No resource found that matches the given name (at 's
tyle' with value '@style/SystemBarPanelSettingsPanelSeparator').
C:\Users\Dylan\Downloads\APKTool\APKTool\SystemUI\res\layout\system_bar_settings
_view.xml:27: error: Error: No resource found that matches the given name (at 's
tyle' with value '@style/SystemBarPanelSettingsRow').
C:\Users\Dylan\Downloads\APKTool\APKTool\SystemUI\res\layout\system_bar_settings
_view.xml:28: error: Error: No resource found that matches the given name (at 's
tyle' with value '@style/SystemBarPanelSettingsIcon').
C:\Users\Dylan\Downloads\APKTool\APKTool\SystemUI\res\layout\system_bar_settings
_view.xml:29: error: Error: No resource found that matches the given name (at 's
tyle' with value '@style/SystemBarPanelSettingsContents').
C:\Users\Dylan\Downloads\APKTool\APKTool\SystemUI\res\layout\system_bar_settings
_view.xml:32: error: Error: No resource found that matches the given name (at 's
tyle' with value '@style/SystemBarPanelSettingsPanelSeparator').
C:\Users\Dylan\Downloads\APKTool\APKTool\SystemUI\res\layout\system_bar_settings
_view.xml:33: error: Error: No resource found that matches the given name (at 's
tyle' with value '@style/SystemBarPanelSettingsRow').
C:\Users\Dylan\Downloads\APKTool\APKTool\SystemUI\res\layout\system_bar_settings
_view.xml:34: error: Error: No resource found that matches the given name (at 's
tyle' with value '@style/SystemBarPanelSettingsIcon').
C:\Users\Dylan\Downloads\APKTool\APKTool\SystemUI\res\layout\system_bar_settings
_view.xml:35: error: Error: No resource found that matches the given name (at 's
tyle' with value '@style/SystemBarPanelSettingsContents').
C:\Users\Dylan\Downloads\APKTool\APKTool\SystemUI\res\layout\system_bar_settings
_view.xml:37: error: Error: No resource found that matches the given name (at 's
tyle' with value '@style/SystemBarPanelSettingsPanelSeparator').
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-
sdk-version, 18, --target-sdk-version, 18, -F, C:\Users\Dylan\AppData\Local\Temp
\APKTOOL3727523403346755097.tmp, -I, C:\Users\Dylan\apktool\framework\1.apk, -S,
C:\Users\Dylan\Downloads\APKTool\APKTool\SystemUI\res, -M, C:\Users\Dylan\Downl
oads\APKTool\APKTool\SystemUI\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:355)
at brut.androlib.Androlib.buildResources(Androlib.java:280)
at brut.androlib.Androlib.build(Androlib.java:203)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:214)
at brut.apktool.Main.main(Main.java:74)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [aapt, p, --min-sdk-version, 18, --target-sdk-version, 18, -F, C:
\Users\Dylan\AppData\Local\Temp\APKTOOL3727523403346755097.tmp, -I, C:\Users\Dyl
an\apktool\framework\1.apk, -S, C:\Users\Dylan\Downloads\APKTool\APKTool\SystemU
I\res, -M, C:\Users\Dylan\Downloads\APKTool\APKTool\SystemUI\AndroidManifest.xml
]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:335)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:333)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd
k-version, 18, --target-sdk-version, 18, -F, C:\Users\Dylan\AppData\Local\Temp\A
PKTOOL3727523403346755097.tmp, -I, C:\Users\Dylan\apktool\framework\1.apk, -S, C
:\Users\Dylan\Downloads\APKTool\APKTool\SystemUI\res, -M, C:\Users\Dylan\Downloa
ds\APKTool\APKTool\SystemUI\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:333)
... 6 more
I understand that the styles are missing, but he, I'm recompiling it, so shouldn't they be there!?
I assume I'm missing an .apk file which I have to include, but I don't quite get which one, or wether it's caused by aapt or the apk's..
as this is my first apk editing, I'd thought I could ask for help around here.
Regards!
Make sure you're using both of the frameworks...
eg...
apktool if framework-res.apk
apktool if twframework-res.apk
and try again....
EDIT - Just realised you're trying to decompile & recompile AOSP/CM SystemUI. Ignore my comment above....
EDIT2 - Ive had a look into it and the styles that are showing as missing should be in SystemUI\res\values-sw720dp\styles.xml
Are you using the latest apktool/aapt from here - http://forum.xda-developers.com/showthread.php?t=1755243
I've just successfully decompiled/recompiled the SystemUI from Slim 4.3.
Hope this helps...
mikep99 said:
Make sure you're using both of the frameworks...
eg...
apktool if framework-res.apk
apktool if twframework-res.apk
and try again....
EDIT - Just realised you're trying to decompile & recompile AOSP/CM SystemUI. Ignore my comment above....
EDIT2 - Ive had a look into it and the styles that are showing as missing should be in SystemUI\res\values-sw720dp\styles.xml
Are you using the latest apktool/aapt from here - http://forum.xda-developers.com/showthread.php?t=1755243
I've just successfully decompiled/recompiled the SystemUI from Slim 4.3.
Hope this helps...
Click to expand...
Click to collapse
I'm recompiling the SystemUI.apk of sammy's original 4.3, and there is no values-sw720dp directory in /res as I can see..
I just updated apktool and aapt using the given links, but the problem still occurs.. ( the exact same )
Thanks for trying to help me out!
(
AAPT.exe crc32 = 0x3D99FA82
APKTOOL.jar crc32 = 0xF4E84FE0
)
EDIT:
I added them manually from the android sdk.. compiling fine now, but I still don't understand why it was missing
HalfDead93 said:
I'm recompiling the SystemUI.apk of sammy's original 4.3, and there is no values-sw720dp directory in /res as I can see..
I just updated apktool and aapt using the given links, but the problem still occurs.. ( the exact same )
Thanks for trying to help me out!
Click to expand...
Click to collapse
No problem.
Have a look at this post - http://forum.xda-developers.com/showpost.php?p=46773564&postcount=2124
It looks like the same problem you're having.
mikep99 said:
No problem.
Have a look at this post - http://forum.xda-developers.com/showpost.php?p=46773564&postcount=2124
It looks like the same problem you're having.
Click to expand...
Click to collapse
Yup, I did the exact same and it's working just fine :]
Thanks for helping out!
HalfDead93 said:
Yup, I did the exact same and it's working just fine :]
Thanks for helping out!
Click to expand...
Click to collapse
Out of interest, can you tell me how you found the styles in the SDK?
I've got the IDE/SDK installed but can't work it out
mikep99 said:
Out of interest, can you tell me how you found the styles in the SDK?
I've got the IDE/SDK installed but can't work it out
Click to expand...
Click to collapse
well, not the SDK, sorry, but the github of a sysui
( cant post links, so no link )
HalfDead93 said:
well, not the SDK, sorry, but the github of a sysui
( cant post links, so no link )
Click to expand...
Click to collapse
ah, right. Thanks for the info...

[Q&A] [Tool]Advanced ApkTool v3.0.0[Windows][02/09/2014]

Q&A for [Tool]Advanced ApkTool v3.0.0[Windows][02/09/2014]
Some developers prefer that questions remain separate from their main development thread to help keep things organized. Placing your question within this thread will increase its chances of being answered by a member of the community or by the developer. Thanks for understanding and for helping to keep XDA neat and tidy! :smile:
UNABLE TO DECOMPILE ([Tool]Advanced ApkTool v3.0.0[Windows][02/09/2014])
HI,
I encountered an error when trying to decompile an apk file. Please help. What's the reason why such this error occurs?
Thanks in advance.
Error message: "Windows cannot find '1-BDFreak\DecompileFile.exe'. Make sure you typed the name correctly, and then try again.
Sign The Apk
How can i put my custon apk signature? its a .keys or something like that in the Advanced apktool?
Not Decompile framework-res.apk sony Z android 4.4.4
Log For : framework-res.apk
Log Type : Decompiling
Log Recorded At : 28 2014-10- 15:00:47,57
Log Recorded By : Advanced ApkTool v3.0.0 By BDFreak
------------------------------------------------------
W: Could not decode attr value, using undecoded value instead: ns=somc, name=drawable, value=0x010805f9
W: Could not decode attr value, using undecoded value instead: ns=somc, name=color, value=0x02060003
W: Could not decode attr value, using undecoded value instead: ns=somc, name=drawable, value=0x01080720
W: Could not decode attr value, using undecoded value instead: ns=somc, name=color, value=0x02060002
W: Could not decode attr value, using undecoded value instead: ns=somc, name=drawable, value=0x010805fd
Click to expand...
Click to collapse
hello..
when i recompile an apk there is in the last two lines a message SYNTAXERROR... why?? the apk goes well after it but the message??thx
Thnks. Worked well for me.
Im getting this error when recompiling :
Code:
Log For : SystemUI.apk
Log Type : Recompiling
Log Recorded At : 01 2015-01- 7:16:30.12
Log Recorded By : Advanced ApkTool v4.1.0 By BDFreak
------------------------------------------------------
W: Could not find sources
D:\ANDROID_ROOT\apktool\AdvancedApkTool\3-Out\SystemUI.apk\res\values\styles.xml:35: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearance.StatusBar'.
D:\ANDROID_ROOT\apktool\AdvancedApkTool\3-Out\SystemUI.apk\res\values\styles.xml:36: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearance.StatusBar'.
D:\ANDROID_ROOT\apktool\AdvancedApkTool\3-Out\SystemUI.apk\res\values\styles.xml:41: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearance.StatusBar'.
D:\ANDROID_ROOT\apktool\AdvancedApkTool\3-Out\SystemUI.apk\res\values\styles.xml:51: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearance.StatusBar'.
D:\ANDROID_ROOT\apktool\AdvancedApkTool\3-Out\SystemUI.apk\res\values\styles.xml:151: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearance.StatusBar.Ticker'.
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [C:\Users\MatanUsr\AppData\Local\Temp\brut_util_Jar_7443338616867257935.tmp, p, --forced-package-id, 127, --min-sdk-version, 21, --target-sdk-version, 21, --version-code, 21, --version-name, 5.0.1-1602158, -F, C:\Users\MatanUsr\AppData\Local\Temp\APKTOOL7585641528169933212.tmp, -I, D:\ANDROID_ROOT\apktool\AdvancedApkTool\1-BDFreak\Frameworks\1.apk, -S, D:\ANDROID_ROOT\apktool\AdvancedApkTool\3-Out\SystemUI.apk\res, -M, D:\ANDROID_ROOT\apktool\AdvancedApkTool\3-Out\SystemUI.apk\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:437)
at brut.androlib.Androlib.buildResources(Androlib.java:374)
at brut.androlib.Androlib.build(Androlib.java:277)
at brut.androlib.Androlib.build(Androlib.java:250)
at brut.apktool.Main.cmdBuild(Main.java:225)
at brut.apktool.Main.main(Main.java:84)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [C:\Users\MatanUsr\AppData\Local\Temp\brut_util_Jar_7443338616867257935.tmp, p, --forced-package-id, 127, --min-sdk-version, 21, --target-sdk-version, 21, --version-code, 21, --version-name, 5.0.1-1602158, -F, C:\Users\MatanUsr\AppData\Local\Temp\APKTOOL7585641528169933212.tmp, -I, D:\ANDROID_ROOT\apktool\AdvancedApkTool\1-BDFreak\Frameworks\1.apk, -S, D:\ANDROID_ROOT\apktool\AdvancedApkTool\3-Out\SystemUI.apk\res, -M, D:\ANDROID_ROOT\apktool\AdvancedApkTool\3-Out\SystemUI.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:488)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:423)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [C:\Users\MatanUsr\AppData\Local\Temp\brut_util_Jar_7443338616867257935.tmp, p, --forced-package-id, 127, --min-sdk-version, 21, --target-sdk-version, 21, --version-code, 21, --version-name, 5.0.1-1602158, -F, C:\Users\MatanUsr\AppData\Local\Temp\APKTOOL7585641528169933212.tmp, -I, D:\ANDROID_ROOT\apktool\AdvancedApkTool\1-BDFreak\Frameworks\1.apk, -S, D:\ANDROID_ROOT\apktool\AdvancedApkTool\3-Out\SystemUI.apk\res, -M, D:\ANDROID_ROOT\apktool\AdvancedApkTool\3-Out\SystemUI.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:482)
... 6 more
I get this error even when Im recompiling straight after decompiling
hhhhhhhhhhelp
Recompiling : 1.apk
Started : 05-01-2015 23:52:27.19
I: Using Apktool 2.0.0-RC3 on 1.apk
I: Smaling smali folder into classes.de
I: Building resources...
Complete : Yes
Success : No
Ended : 05-01-2015 23:52:36.98
Syriamanal said:
How can i put my custon apk signature?
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=1231561
help
the system cannot find the file specified
Help please
whats wrong with mine?
dear friends
i try to decompile and recompile, when its on recompile stage its always say complete yes , succes : no
please help, what should i do?
thank you very much
Thank you so much
before I think I stupid because never succes recompile, but this tool is awesome, all apk succes recompile, sign, zipalign, and installed on my device.. thanks, good job ..
Why return to the compilation fails
Why return to the compilation fails???
Log For : KeyguardSPlannerWidget.apk
Log Type : Recompiling
Log Recorded At : 2015 11-02-周三 10:48:56.77
Log Recorded By : Advanced ApkTool v4.1.0 By BDFreak
------------------------------------------------------
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathNotExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java:245)
at brut.androlib.Androlib.build(Androlib.java:257)
at brut.androlib.Androlib.build(Androlib.java:250)
at brut.apktool.Main.cmdBuild(Main.java:225)
at brut.apktool.Main.main(Main.java:84)
Caused by: brut.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:103)
at brut.androlib.Androlib.readMetaFile(Androlib.java:240)
... 4 more
------------------------------------------------------
could you tell me how to solve this question?
when i was recompiling an apk file a got the following errors as attached, plz help
hi guys, this is the first time I decompile and recompile systeUI KitKat and I have a problem here.
I use this tool to decompile and recompile my systemUI I just replace one image and some value in the string but after I plug in my device I get my statusbar lost and my ScreenLock became black.
is there someone know a solution for this?
for information:
OS: KK 4.4.2
Thanks
i use v 4.1.0
had unsuccess decompiling systemui
here the log
[code}
Log For : SystemUI.apk
Log Type : Decompiling
Log Recorded At : Fri 15-05-2015 16:41:15.22
Log Recorded By : Advanced ApkTool v4.1.0 By BDFreak
------------------------------------------------------
Exception in thread "main" brut.androlib.AndrolibException: Could not decode arsc file
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:54)
at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibResources.java:604)
at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.java:74)
at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.java:66)
at brut.androlib.Androlib.getResTable(Androlib.java:49)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:93)
at brut.apktool.Main.cmdDecode(Main.java:169)
at brut.apktool.Main.main(Main.java:85)
Caused by: java.io.IOException: Expected: 0x001c0001, got: 0x00000000
at brut.util.ExtDataInput.skipCheckInt(ExtDataInput.java:48)
at brut.androlib.res.decoder.StringBlock.read(StringBlock.java:43)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:95)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:81)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:49)
... 7 more
------------------------------------------------------
[/code]
Xiami Music apk , translate from Chine to Spanish
Hi,
xiami-android-spark_701287.apk
The app work perfect in me find7, download music free
I translate string.xml from chine to spanish in app Xiami Music..
After decompile and modify the "string.xml" file that belongs to the "values" folder, compiled and signed application. I return to install, all ok, but links are not working.
If I do not make any modifications to the application, and perform the same operation, the same applies, links are not working.
I use framework of oppo find7.
The application is supplied for any android device, if so use that framework? Is necesary?
Thanks if you help me solve the problem.
I have movil lenguage in spanish-US.
Got an error when recompiling apk
well, i guess i need help here when using Advanced ApkTool v4.1.0.
everything runs well from installing framework-res.apk to decompiling an apk. But when i tried to recompile the apk, it didn't work.
here's the log :
Log For : test-1.apk
Log Type : Recompiling
Log Recorded At : Tue 16-06-2015 11:19:58.01
Log Recorded By : Advanced ApkTool v4.1.0 By BDFreak
------------------------------------------------------
..\3-Out\test-1.apk\smali\com\amazon\inapp\purchasing\ContentDownloadRequest$1.smali[28,0] mismatched input '' expecting END_METHOD_DIRECTIVE
Exception in thread "main" brut.androlib.AndrolibException: Could not smali file: com/amazon/inapp/purchasing/ContentDownloadRequest$1.smali
at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:71)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:55)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:41)
at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:371)
at brut.androlib.Androlib.buildSources(Androlib.java:298)
at brut.androlib.Androlib.build(Androlib.java:282)
at brut.androlib.Androlib.build(Androlib.java:256)
at brut.apktool.Main.cmdBuild(Main.java:225)
at brut.apktool.Main.main(Main.java:84)
------------------------------------------------------
Click to expand...
Click to collapse
FYI, i didn't do anything with files (modifying it). What i did just decompile and recompile. I just wanna try if this tool works.
can someone help me?
much appreciated..
Hi, thanks for the version Advanced ApkTool v4.1.0.
I am a newbie, I try to decompile Xperia Movie Creator 3.1.A.0.5 but getting error log (as attached).
Appreciate it if you can help me.
I am not able to attache attachment in this reply.
The log starts like this:
Log For : MovieCreator_3.1.A.0.5.apk
Log Type : Decompiling
Log Recorded At : 10 2015-08- 10:53:00.68
Log Recorded By : Advanced ApkTool v4.1.0 By BDFreak
------------------------------------------------------
W: Could not decode attr value, using undecoded value instead: ns=android, name=label, value=0x7f100134
and it ends like this
W: Could not decode attr value, using undecoded value instead: ns=android, name=value, value=0x7f0e0007
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x7f100134
at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:59)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:57)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:53)
at brut.androlib.res.data.value.ResReferenceValue.getReferent(ResReferenceValue.java:60)
at brut.androlib.res.data.value.ResReferenceValue.encodeAsResXml(ResReferenceValue.java:47)
at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlAttr(ResScalarValue.java:45)
at brut.androlib.res.decoder.ResAttrDecoder.decode(ResAttrDecoder.java:41)
at brut.androlib.res.decoder.AXmlResourceParser.getAttributeValue(AXmlResourceParser.java:369)
at org.xmlpull.v1.wrapper.classic.XmlPullParserDelegate.getAttributeValue(XmlPullParserDelegate.java:69)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartTag(StaticXmlSerializerWrapper.java:267)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(StaticXmlSerializerWrapper.java:211)
at brut.androlib.res.decoder.XmlPullStreamDecoder$1.event(XmlPullStreamDecoder.java:83)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDecoder.java:141)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decodeManifest(XmlPullStreamDecoder.java:153)
at brut.androlib.res.decoder.ResFileDecoder.decodeManifest(ResFileDecoder.java:134)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:296)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:131)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:101)
at brut.apktool.Main.cmdDecode(Main.java:165)
at brut.apktool.Main.main(Main.java:81)
------------------------------------------------------
Please help, thanks,
Marcus

Categories

Resources