recompile sony ICS apk's with APKTOOL - Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A

i tried recompiling the Home.apk, in the same condition i decompiled it, but it gives an error,
i installed
SemcGenericUxpRes.apk and framework-res.apk and it succesfully decompiled.
also: i tried an older version of apktool , 1.4.1 which was succesfull with some samsung phones in other threads but no success with that either
i also tried copying the latest aapt from the sdk to the apktool installation, nothing.
so if anyone has had success recompiling sony ICS apks, then help..

gandhar said:
i tried recompiling the Home.apk, in the same condition i decompiled it, but it gives an error,
i installed
SemcGenericUxpRes.apk and framework-res.apk and it succesfully decompiled.
also: i tried an older version of apktool , 1.4.1 which was succesfull with some samsung phones in other threads but no success with that either
i also tried copying the latest aapt from the sdk to the apktool installation, nothing.
so if anyone has had success recompiling sony ICS apks, then help..
Click to expand...
Click to collapse
You should ask question in general section anyway...
Sent from my WT19i using XDA

What error you get?
Also, wrong section.

Someguyfromhell said:
What error you get?
Also, wrong section.
Click to expand...
Click to collapse
oh sorry for the wrong section, but i do not think someone in the general section would have answered this one..
this is exactly the error
C:\Users\gandhar\apktool>apktool d Home.apk Home
Destination directory (C:\Users\gandhar\apktool\Home) already exists. Use -f swi
tch if you want to overwrite it.
C:\Users\gandhar\apktool>apktool d Home.apk Home
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\gandhar\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Loading resource table from file: C:\Users\gandhar\apktool\framework\2.apk
I: Loaded.
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
C:\Users\gandhar\apktool>apktool b Home Home1.apk
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
C:\Users\gandhar\apktool\Home\res\values\styles.xml:4: error: Error retrieving p
arent for item: No resource found that matches the given name 'Layout'.
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\gandhar\AppData\Local\Temp
\APKTOOL762609809719293048.tmp, -I, C:\Users\gandhar\apktool\framework\1.apk, -I
, C:\Users\gandhar\apktool\framework\2.apk, -S, C:\Users\gandhar\apktool\Home\re
s, -M, C:\Users\gandhar\apktool\Home\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\gandhar\AppData\Local\Temp\APKTOOL762609809719293048.tmp, -I, C:\Users\gand
har\apktool\framework\1.apk, -I, C:\Users\gandhar\apktool\framework\2.apk, -S, C
:\Users\gandhar\apktool\Home\res, -M, C:\Users\gandhar\apktool\Home\AndroidManif
est.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more
C:\Users\gandhar\apktool>
i have the latest version of java

danist727 said:
You should ask question in general section anyway...
Sent from my WT19i using XDA
Click to expand...
Click to collapse
i thought ROM modders would have come across this error before, so, here..
edit:
@sumguyfromhell,
i have latest aapt from sdk, java jdk, jre

Seems like you have made a mistake while editing a .xml file, as it is unable to compile the file(xml files are compiled to a bit different language).

Someguyfromhell said:
Seems like you have made a mistake while editing a .xml file, as it is unable to compile the file(xml files are compiled to a bit different language).
Click to expand...
Click to collapse
i just did that, no editing done, i directly recompiled after the decompiling..
edit:
say i just want to change the values.xml, so is there a workaround maybe?
edit: i mean integers.xml

Hurray!!! i found something,
Just decompile apk, replace the string <style name="Layout.ButtonContainer" for <style name="Layout.ButtonContainer" parent="@android:style/Theme.Wallpaper.NoTitleBar"> at \res\values\styles.xml and compile...
it's from this thread,
http://forum.xda-developers.com/showthread.php?t=1276332
just recompiled, thank you guys
can someone close this thread?

gandhar said:
Hurray!!! i found something,
Just decompile apk, replace the string <style name="Layout.ButtonContainer" for <style name="Layout.ButtonContainer" parent="@android:style/Theme.Wallpaper.NoTitleBar"> at \res\values\styles.xml and compile...
it's from this thread,
http://forum.xda-developers.com/showthread.php?t=1276332
just recompiled, thank you guys
can someone close this thread?
Click to expand...
Click to collapse
i get dis error while recompiling.....
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\LaLa\AppData\Local\Temp\APKTOOL61323.tmp, -I, C:\Users\LaLa\apktool\framework\1.apk, -S, C:\Users\LaLa\plaho\Android\flash.driverz\Apk_Manager_5.0.2\other\..\projects\TTPod_Android_release.apk\res, -M, C:\Users\LaLa\plaho\Android\flash.driverz\Apk_Manager_5.0.2\other\..\projects\TTPod_Android_release.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:174)
at brut.apktool.Main.main(Main.java:59)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\LaLa\AppData\Local\Temp\APKTOOL61323.tmp, -I, C:\Users\LaLa\apktool\framework\1.apk, -S, C:\Users\LaLa\plaho\Android\flash.driverz\Apk_Manager_5.0.2\other\..\projects\TTPod_Android_release.apk\res, -M, C:\Users\LaLa\plaho\Android\flash.driverz\Apk_Manager_5.0.2\other\..\projects\TTPod_Android_release.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
but i cant find layout in styles.xml!!!! Help..

whalesplaho said:
i get dis error while recompiling.....
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\LaLa\AppData\Local\Temp\APKTOOL61323.tmp, -I, C:\Users\LaLa\apktool\framework\1.apk, -S, C:\Users\LaLa\plaho\Android\flash.driverz\Apk_Manager_5.0.2\other\..\projects\TTPod_Android_release.apk\res, -M, C:\Users\LaLa\plaho\Android\flash.driverz\Apk_Manager_5.0.2\other\..\projects\TTPod_Android_release.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:174)
at brut.apktool.Main.main(Main.java:59)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\LaLa\AppData\Local\Temp\APKTOOL61323.tmp, -I, C:\Users\LaLa\apktool\framework\1.apk, -S, C:\Users\LaLa\plaho\Android\flash.driverz\Apk_Manager_5.0.2\other\..\projects\TTPod_Android_release.apk\res, -M, C:\Users\LaLa\plaho\Android\flash.driverz\Apk_Manager_5.0.2\other\..\projects\TTPod_Android_release.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
but i cant find layout in styles.xml!!!! Help..
Click to expand...
Click to collapse
update your sdk to latest version, then copy aapt.exe from platform-tools to apktool directory, that was the fix i had found on the apktool bugtracker.
edit:you have to install frameworks again after replacing aapt

how about decompiling and recompiling framework-res.apk, settings.apk, systemui.apk, and other semc ics apks bro gandhar ??

iiandskater said:
how about decompiling and recompiling framework-res.apk, settings.apk, systemui.apk, and other semc ics apks bro gandhar ??
Click to expand...
Click to collapse
a lot of people including me are waiting for the next version of apktool just because of the errors that are met when recompiling ICS apks..
it does not accept some parts of a lot of xml files, so many need to be changed just to recompile the file, many files excluding the actual modifications we need to do..
well i am no expert at this, so i may be wrong, but my experience in trying to recompile leads me to conclude that i should wait for the next version

gandhar said:
a lot of people including me are waiting for the next version of apktool just because of the errors that are met when recompiling ICS apks..
it does not accept some parts of a lot of xml files, so many need to be changed just to recompile the file, many files excluding the actual modifications we need to do..
well i am no expert at this, so i may be wrong, but my experience in trying to recompile leads me to conclude that i should wait for the next version
Click to expand...
Click to collapse
i'm agree with you,
i've try many ways but its always end with no luck..
that's doesn't matter my bro,
i also hope for new version / way that will works perfectly,
thanks for ur answer..

Related

[Q] recompile framework-res.apk from cm9-20120404

Is it possible to recompile the framework-res.apk from cm9-20120404??
tried apktool 1.4.1 & 1.4.2 with newest aapt.exe
and AutoAPKtool 2.0.3 still lots of error........
anyone can help?
Use the apk tool designed for ics . It didn't gave me errors on decompiling, not tried the version you mentioned though
#*posted on the move *#
bala_gamer said:
Use the apk tool designed for ics . It didn't gave me errors on decompiling, not tried the version you mentioned though
#*posted on the move *#
Click to expand...
Click to collapse
I tried this ICS apktool, but still got errors with 'plurals.xml'
http://forum.xda-developers.com/showthread.php?t=1558171
ron194 said:
I tried this ICS apktool, but still got errors with 'plurals.xml'
http://forum.xda-developers.com/showthread.php?t=1558171
Click to expand...
Click to collapse
use "AutoAPKTool2.0.0" and just tried decompiling the same and didnt got any errors. dont forget to install the framework b4 decompiling.
bala_gamer said:
use "AutoAPKTool2.0.0" and just tried decompiling the same and didnt got any errors. dont forget to install the framework b4 decompiling.
Click to expand...
Click to collapse
still not work......
Code:
[*] C:\AutoAPKTool2.0.0\_INPUT_APK\framework-res
recompiling C:\AutoAPKTool2.0.0\_INPUT_APK\framework-res...
W: Could not find sources
I: Building resources...
invalid resource directory name: C:\AutoAPKTool2.0.0\_INPUT_APK\framework-res\res/animator
invalid resource directory name: C:\AutoAPKTool2.0.0\_INPUT_APK\framework-res\res/interpolator
invalid resource directory name: C:\AutoAPKTool2.0.0\_INPUT_APK\framework-res\res/mipmap-hdpi
invalid resource directory name: C:\AutoAPKTool2.0.0\_INPUT_APK\framework-res\res/mipmap-ldpi
invalid resource directory name: C:\AutoAPKTool2.0.0\_INPUT_APK\framework-res\res/mipmap-mdpi
invalid resource directory name: C:\AutoAPKTool2.0.0\_INPUT_APK\framework-res\res/mipmap-xhdpi
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Ron\AppData\Local\Temp\APKTOOL8300429255981799689.tmp, -x, -S, C:\AutoAPKTool2.0.0\_INPUT_APK\framework-res\res, -M, C:\AutoAPKTool2.0.0\_INPUT_APK\framework-res\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:174)
at brut.apktool.Main.main(Main.java:59)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Ron\AppData\Local\Temp\APKTOOL8300429255981799689.tmp, -x, -S, C:\AutoAPKTool2.0.0\_INPUT_APK\framework-res\res, -M, C:\AutoAPKTool2.0.0\_INPUT_APK\framework-res\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
ron194 said:
still not work......
Click to expand...
Click to collapse
you are right, giving errors on recompiling. what mod are you doing anyway?
bala_gamer said:
you are right, giving errors on recompiling. what mod are you doing anyway?
Click to expand...
Click to collapse
thx for ur help! I hv just replaced the ICS "aapt.exe" to the AutoAPKTool 2.0.0, and it works now!
I just want to mod the navigation bar, but cant recompile the framework-res even without any mod before.......

[DEV QUESTION] Modify deskop number in Home.apk

Hi, I want modify the number of deskop on my Ray ...
In the Home.apk, this line in the R$integer.smali file :
".field public static final number_of_desktop_panes:I = 0x7f09000a"
But I don't understand this integer format ? and How can I modify this ?? (and it's possible ?)
Or another way to modify the number of desktop ??
Thanks for your dev answers !
u have to unpack Home.apk via APK tool, then find in res/values/integers.xml.
there u will see Number of desktop panes=5 , Modify to whichever number u like...
Then repack, re-sign, zipalign apk..
jjdoctor said:
u have to unpack Home.apk via APK tool, then find in res/values/integers.xml.
there u will see Number of desktop panes=5 , Modify to whichever number u like...
Then repack, re-sign, zipalign apk..
Click to expand...
Click to collapse
Thanks for your reply but I already unpack Home.apk (ics final version) with apktool and I don't have integers.xml !!
In the values folder, Only 4 xml files : array, colors, ids, styles ...
EDIT : Sorry jjdoctor I think I have a problem with my framework-res , because now when I try to unpack I have some warn ... and if I retry I don't have same file and my unpack directory ... SORRY
Ok I re-pull my framework-res and my SemcGenericUxpRes and retry the unpack ...
All fine, I have now the integers.xml ! thanks jjdoctor
please modify 3 desktop for me...
i try to decompile home.apk but error
thx
Have you unpack with : apktool if SemcGenericUxpRes.apk ??
Before your home.apk
I can give you my 3 desktop home.apk but I use this mod : http://forum.xda-developers.com/showthread.php?t=1534903 (ICS final) ,and the framework-res is modded !!
Sent from my ST18i using XDA
mickfo said:
Have you unpack with : apktool if SemcGenericUxpRes.apk ??
Before your home.apk
I can give you my 3 desktop home.apk but I use this mod : http://forum.xda-developers.com/showthread.php?t=1534903 (ICS final) ,and the framework-res is modded !!
Sent from my ST18i using XDA
Click to expand...
Click to collapse
no problem
i use this mod from hansip too
can't wait your 3 desktop home
thx
Here my home.apk with only 3 deskop...
I don't do a CWM update.zip but you can replace in /system/app your home.apk with my home.apk via es explorer (right rw-r-r)
Empty all your deskop before replace... and you must use this mod : http://forum.xda-developers.com/show....php?t=1534903 (ICS final)
Thank you very much...
It works... I use ROICS V5_Rev1
Thx for your help
Sent from my ST18i using XDA
mickfo said:
Ok I re-pull my framework-res and my SemcGenericUxpRes and retry the unpack ...
All fine, I have now the integers.xml ! thanks jjdoctor
Click to expand...
Click to collapse
could you please explain how to do this? i got same error here
I pull my framework-res.apk and my SemcGenericUxpRes.apk in /system/framework and my Home.apk in /system/app
I unpack with :
apktool if framework-res.apk
apktool if SemcGenericUxpRes.apk
And :
apktool d Home.apk
Mod you want
mickfo said:
I pull my framework-res.apk and my SemcGenericUxpRes.apk in /system/framework and my Home.apk in /system/app
I unpack with :
apktool if framework-res.apk
apktool if SemcGenericUxpRes.apk
And :
apktool d Home.apk
Mod you want
Click to expand...
Click to collapse
what's the different between "apktool if" and "apktool d". are you using the tool from here http://apkmultitool.com ?
---------- Post added at 06:43 AM ---------- Previous post was at 06:26 AM ----------
hafatih27 said:
what's the different between "apktool if" and "apktool d". are you using the tool from here http://apkmultitool.com ?
Click to expand...
Click to collapse
ok i got the tool and already got it installed. but as newbie, i wanna ask where to place those apk files for decompiling?
---------- Post added at 06:56 AM ---------- Previous post was at 06:43 AM ----------
ok guys, finally i did it!
(just point the direction using cd command in cmd before apktool, am i right?)
i succeeded installing framework and semc, also succeeded decompile home.apk. but i failed compiling it. the terminal said there were errors but i dont recognize it. even if i compile directly after decompiling without editing any file. please help
Code:
H:\apps\android\apktool>apktool if framework-res.apk
I: Framework installed to: C:\Users\haf.001\apktool\framework\1.apk
H:\apps\android\apktool>apktool if SemcGenericUxpRes.apk
I: Framework installed to: C:\Users\haf.001\apktool\framework\2.apk
H:\apps\android\apktool>apktool d Home.apk
I: Baksmaling...
testI: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\haf.001\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Loading resource table from file: C:\Users\haf.001\apktool\framework\2.apk
I: Loaded.
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
H:\apps\android\apktool>cd Home
H:\apps\android\apktool\Home>apktool b
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
H:\apps\android\apktool\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.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\haf.001\AppData\Local\Temp
\APKTOOL3404838517631333886.tmp, -I, C:\Users\haf.001\apktool\framework\1.apk, -
I, C:\Users\haf.001\apktool\framework\2.apk, -S, H:\apps\android\apktool\Home\.\
res, -M, H:\apps\android\apktool\Home\.\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\haf.001\AppData\Local\Temp\APKTOOL3404838517631333886.tmp, -I, C:\Users\haf
.001\apktool\framework\1.apk, -I, C:\Users\haf.001\apktool\framework\2.apk, -S,
H:\apps\android\apktool\Home\.\res, -M, H:\apps\android\apktool\Home\.\AndroidMa
nifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more
The error is "BrutException: could not exec command: [aapt, p, ..."
Your PATH variable is correct?? have you add in your PATH : H:\apps\android\apktool\ ??
mickfo said:
The error is "BrutException: could not exec command: [aapt, p, ..."
Your PATH variable is correct?? have you add in your PATH : H:\apps\android\apktool\ ??
Click to expand...
Click to collapse
still the same...
Code:
C:\Users\haf.001\apktool>apktool if framework-res.apk
I: Framework installed to: C:\Users\haf.001\apktool\framework\1.apk
C:\Users\haf.001\apktool>apktool if SemcGenericUxpRes.apk
I: Framework installed to: C:\Users\haf.001\apktool\framework\2.apk
C:\Users\haf.001\apktool>apktool d Home.apk
I: Baksmaling...
testI: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\haf.001\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Loading resource table from file: C:\Users\haf.001\apktool\framework\2.apk
I: Loaded.
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
C:\Users\haf.001\apktool>apktool b C:\Users\haf.001\apktool\Home
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
C:\Users\haf.001\apktool\Home\res\values\styles.xml:4: error: Error retrieving p
arent for item: No resource found that matches the given name 'Layout'.
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\haf.001\AppData\Local\Temp
\APKTOOL4121807731103563189.tmp, -I, C:\Users\haf.001\apktool\framework\1.apk, -
I, C:\Users\haf.001\apktool\framework\2.apk, -S, C:\Users\haf.001\apktool\Home\r
es, -M, C:\Users\haf.001\apktool\Home\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\haf.001\AppData\Local\Temp\APKTOOL4121807731103563189.tmp, -I, C:\Users\haf
.001\apktool\framework\1.apk, -I, C:\Users\haf.001\apktool\framework\2.apk, -S,
C:\Users\haf.001\apktool\Home\res, -M, C:\Users\haf.001\apktool\Home\AndroidMani
fest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more
Under linux, I use the last version of apktools, and I've replaced the aapt binary (in the apktools dir) with the last aapt of android-sdk (in platforms-tools)
Sent from my ST18i using XDA
hafatih27 said:
i succeeded installing framework and semc, also succeeded decompile home.apk. but i failed compiling it. the terminal said there were errors but i dont recognize it. even if i compile directly after decompiling without editing any file. please help
Code:
H:\apps\android\apktool>apktool if framework-res.apk
I: Framework installed to: C:\Users\haf.001\apktool\framework\1.apk
H:\apps\android\apktool>apktool if SemcGenericUxpRes.apk
I: Framework installed to: C:\Users\haf.001\apktool\framework\2.apk
H:\apps\android\apktool>apktool d Home.apk
I: Baksmaling...
testI: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\haf.001\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Loading resource table from file: C:\Users\haf.001\apktool\framework\2.apk
I: Loaded.
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
H:\apps\android\apktool>cd Home
H:\apps\android\apktool\Home>apktool b
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
[B]H:\apps\android\apktool\Home\.\res\values\styles.xml:4: error: Error retrieving
parent for item: No resource found that matches the given name 'Layout'.[/B]
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\haf.001\AppData\Local\Temp
\APKTOOL3404838517631333886.tmp, -I, C:\Users\haf.001\apktool\framework\1.apk, -
I, C:\Users\haf.001\apktool\framework\2.apk, -S, H:\apps\android\apktool\Home\.\
res, -M, H:\apps\android\apktool\Home\.\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\haf.001\AppData\Local\Temp\APKTOOL3404838517631333886.tmp, -I, C:\Users\haf
.001\apktool\framework\1.apk, -I, C:\Users\haf.001\apktool\framework\2.apk, -S,
H:\apps\android\apktool\Home\.\res, -M, H:\apps\android\apktool\Home\.\AndroidMa
nifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more
Click to expand...
Click to collapse
It clearly states the error that when u open styles.xml there is something that u added or modified in 4th line(styles.xml:4: ) that has no resources added in public.xml and strings.xml..
Dont add new things or dont rename anything in xmls coz then u have to change it in public.xml and strings.xml and if its linked to more xmls..
For newbies, u should only change values like numbers in dimens.xml and integers.xml.. dont rename files..
H:\apps\android\apktool\Home\.\res\values\styles.xml:4: error: Error retrieving
parent for item: No resource found that matches the given name 'Layout'.
Click to expand...
Click to collapse
U just added a line in styles.xml but didnt add its value in strings.xml and public.xml...
mickfo said:
Under linux, I use the last version of apktools, and I've replaced the aapt binary (in the apktools dir) with the last aapt of android-sdk (in platforms-tools)
Sent from my ST18i using XDA
Click to expand...
Click to collapse
then i try the same (copying aapt.exe from platform-tools) in windows but still no effect. maybe i'll try using linux. could you attach the aapt for linux here? (i dont plan to install sdk on linux)
---------- Post added at 05:03 AM ---------- Previous post was at 04:51 AM ----------
jjdoctor said:
It clearly states the error that when u open styles.xml there is something that u added or modified in 4th line(styles.xml:4: ) that has no resources added in public.xml and strings.xml..
Dont add new things or dont rename anything in xmls coz then u have to change it in public.xml and strings.xml and if its linked to more xmls..
For newbies, u should only change values like numbers in dimens.xml and integers.xml.. dont rename files..
U just added a line in styles.xml but didnt add its value in strings.xml and public.xml...
Click to expand...
Click to collapse
sorry doctor, but i dont think so. i really just decompiled Home.apk (installing framework before ofcourse) and directly recompiled it again without even open Home folder to see integer.xml and friends.
i've tried in myfriend's pc (also windows) and the screen also told me the same error. but when i tried to modify another app, it just finished like a charm.
mickfo said:
Here my home.apk with only 3 deskop...
I don't do a CWM update.zip but you can replace in /system/app your home.apk with my home.apk via es explorer (right rw-r-r)
Empty all your deskop before replace... and you must use this mod : http://forum.xda-developers.com/show....php?t=1534903 (ICS final)
Click to expand...
Click to collapse
Great work... I have one simple request. There is litlle bug wit this mod because we can't add , for example photo/gallery widget because it is active on 4th desktop... 4th and 5th desktop are now hidden and you can swipe to them as they are active but hidden. Just suggestion to completeley remove them if it is possible of course

[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?

Phone.apk compile error, don't ignore me please

Hey, please don't ignore this problem. Every project I started is stopped by this error, I can't fix many of my roms because of it. I can't continue my work so please help me. Don't think I am another one person who has no idea what he is doing, I have some experience in porting but no one wants help me.
I have done many ports for my LG Swift and now I started developement for Xperia J.
But I'm struggling with error that doesn't allow me to fix the worse bugs in my ports.
The situation:
I have succesfull decompiled, patched and compiled framework.jar for my MIUI5 port, same with LiGux, MIUI4 and many others.
But when I try to fix Phone.apk ( values/bools.xml ) then it gives me this error when smailing (no matter which rom I'm poring):
Code:
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-
sdk-version, 16, --target-sdk-version, 16, -F, H:\DOCUME~1\ks\USTAWI~1\Temp\APKT
OOL1846198324772815581.tmp, -0, arsc, -I, H:\Documents and Settings\ks\apktool\f
ramework\1.apk, -S, C:\apktools2\LiGux\Phone\res, -M, C:\apktools2\LiGux\Phone\A
ndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)
at brut.androlib.Androlib.buildResources(Androlib.java:283)
at brut.androlib.Androlib.build(Androlib.java:206)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [aapt, p, --min-sdk-version, 16, --target-sdk-version, 16, -F, H:
\DOCUME~1\ks\USTAWI~1\Temp\APKTOOL1846198324772815581.tmp, -0, arsc, -I, H:\Docu
ments and Settings\ks\apktool\framework\1.apk, -S, C:\apktools2\LiGux\Phone\res,
-M, C:\apktools2\LiGux\Phone\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd
k-version, 16, --target-sdk-version, 16, -F, H:\DOCUME~1\ks\USTAWI~1\Temp\APKTOO
L1846198324772815581.tmp, -0, arsc, -I, H:\Documents and Settings\ks\apktool\fra
mework\1.apk, -S, C:\apktools2\LiGux\Phone\res, -M, C:\apktools2\LiGux\Phone\And
roidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:355)
... 6 more
This error appears with MIUI, Lewa, LiGux, every rom I try to port.
YES! I remember about if framework-res.apk and if ANY_ADDIITONAL_FRAMEWORK_HERE.apk
I tried to recompile those Phone.apk's on Ubuntu too but still the same error.
I have tried many versions of apktool, I have tried various tools for recompiling, I have tried to do it manually too.
I never works, always the same error.
Please help me with this, I can't finish most of my ports beacuse of it : (
lozohcum said:
*snip*
Click to expand...
Click to collapse
What aapt did u used?
1.5.2 and older
lozohcum said:
1.5.2 and older
Click to expand...
Click to collapse
not the apktool i meant the AAPT
The same, the newest version from this site: http://code.google.com/p/android-apktool/
The phone apk has been a problem for awhile now. It can't be recompiled by any means at the moment and needs to be built from source.
Wayne Tech Nexus
So how can I build it from source? For MIUI5, LiGux ?
lozohcum said:
So how can I build it from source? For MIUI5, LiGux ?
Click to expand...
Click to collapse
For MIUI you cant. and if the other one doesnt provide source then you cant from them either.
Great,,, so there is no ability to fix not working micro in my LiGux port and Unlock Sim Code in Xperia MIUI port :/
Use miui's apktool: https://github.com/MiCode/patchrom_tools/blob/jellybean/aapt.exe and https://github.com/MiCode/patchrom_tools/blob/jellybean/apktool.jar
apktool d -t miui -f Phone.apk
apktool b -f Phone unsigned-Phone.apk
java -jar signapk.jar platform.x509.pem platform.pk8 unsigned-Phone.apk signed-Phone.apk
zipalign -v -f 4 signed-Phone.apk Phone.apk
Click to expand...
Click to collapse
Thanks, will try
Phone.apk
For Phone.apk, you will encounter a lot of errors on the recompile thanks to bad XML files in a few languages. The key here is to read the errors and correct them. Essentially there are the following problems with strings:
Strings that were broken onto multiple lines. Make them on one line.
For the above lines, remove the extra double quotes that are on the inside of the ><.
Look for apostrophes and put a \ in front of them.
Lastly there will be a bunch of lines with variable replacement codes in them like %1$d. These are all just text strings for some kind of error messages. Seems to be problems with all the stuff surrounding throttling. I simply removed the codes as I don't really care about such messages. Wish I understood the variables better but again, these were very limited messages and I don't see this as a major issue.
There is a lot to clean up, but don't let anyone tell you that this cannot be done because it most certainly can.

[help] APKTool recompile issues

I am looking for help with APKTool. I have tried using the current stable version, as well as the 2.x beta. Both with same result. I am even using the dependancies on the official google code site. My android sdk is fully updated, and both JRE and JDK are installed (both installations done about 2 weeks ago, with no prompt to update since)
Code:
C:\Development\android>apktool.bat b framework-res framework-res-new.apk
I: Using Apktool 2.0.0-Beta7 on framework-res
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: C:\Development\android\framework-res\res/values
-mcc454-mnc-1
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [C:\Users\Shanno
n\AppData\Local\Temp\brut_util_Jar_147258541274646456.tmp, p, --min-sdk-version,
17, --target-sdk-version, 17, -F, C:\Users\Shannon\AppData\Local\Temp\APKTOOL12
39664133003724430.tmp, -x, -0, arsc, -S, C:\Development\android\framework-res\re
s, -M, C:\Development\android\framework-res\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:434)
at brut.androlib.Androlib.buildResources(Androlib.java:362)
at brut.androlib.Androlib.build(Androlib.java:285)
at brut.androlib.Androlib.build(Androlib.java:258)
at brut.apktool.Main.cmdBuild(Main.java:233)
at brut.apktool.Main.main(Main.java:88)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [C:\Users\Shannon\AppData\Local\Temp\brut_util_Jar_14725854127464
6456.tmp, p, --min-sdk-version, 17, --target-sdk-version, 17, -F, C:\Users\Shann
on\AppData\Local\Temp\APKTOOL1239664133003724430.tmp, -x, -0, arsc, -S, C:\Devel
opment\android\framework-res\res, -M, C:\Development\android\framework-res\Andro
idManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:481)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:415)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [C:\Users\Shannon\
AppData\Local\Temp\brut_util_Jar_147258541274646456.tmp, p, --min-sdk-version, 1
7, --target-sdk-version, 17, -F, C:\Users\Shannon\AppData\Local\Temp\APKTOOL1239
664133003724430.tmp, -x, -0, arsc, -S, C:\Development\android\framework-res\res,
-M, C:\Development\android\framework-res\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:475)
... 6 more
Skaeren said:
I am looking for help with APKTool. I have tried using the current stable version, as well as the 2.x beta. Both with same result. I am even using the dependancies on the official google code site. My android sdk is fully updated, and both JRE and JDK are installed (both installations done about 2 weeks ago, with no prompt to update since)
Click to expand...
Click to collapse
Error log says could not find resources. It means you have not installed framework-res.apk (in case of Samsung Touchwiz phones install twframework also).
Solution :-
Pull framwork-red.apk and for Samsung TW phones pull twframawork-res.apk and put it where you keep files in apktool.
If you are using APK Multitool with GUI, then first button is for installing framework.
If you are using command line apktool, type
Code:
apktool if framework-res.apk
to install framework.
Then decompile and recompile.
Press Thanks if helped
Sent from my GT-S5360 Gadget of Mass Destruction using xda-app
Using CWM........Busybox Commands........No I use my hands
hnkotnis said:
Error log says could not find resources. It means you have not installed framework-res.apk (in case of Samsung Touchwiz phones install twframework also).
Solution :-
Pull framwork-red.apk and for Samsung TW phones pull twframawork-res.apk and put it where you keep files in apktool.
If you are using APK Multitool with GUI, then first button is for installing framework.
If you are using command line apktool, type
Code:
apktool if framework-res.apk
to install framework.
Then decompile and recompile.
Press Thanks if helped
Sent from my GT-S5360 Gadget of Mass Destruction using xda-app
Using CWM........Busybox Commands........No I use my hands
Click to expand...
Click to collapse
This did not help
Code:
C:\Development\android>apktool.bat if framework-res.apk
I: Framework installed to: C:\Users\Shannon\apktool\framework\1.apk
Code:
C:\Development\android>apktool.bat d framework-res.apk
I: Using Apktool 2.0.0-Beta7 on framework-res.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Loading resource table...
I: Copying assets and libs...
I: Copying unknown files/dir...
I: Copying original files...
Code:
C:\Development\android>apktool.bat b framework-res framework-res-new.apk
I: Using Apktool 2.0.0-Beta7 on framework-res
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: C:\Development\android\framework-res\res/values
-mcc454-mnc-1
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [C:\Users\Shanno
n\AppData\Local\Temp\brut_util_Jar_3655706423395563843.tmp, p, --forced-package-
id, 1, --min-sdk-version, 17, --target-sdk-version, 17, --version-code, 17, --ve
rsion-name, 4.2.1-WW_epad-10.6.2.10-20130918, -F, C:\Users\Shannon\AppData\Local
\Temp\APKTOOL5651618845894214526.tmp, -x, -0, arsc, -S, C:\Development\android\f
ramework-res\res, -M, C:\Development\android\framework-res\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:434)
at brut.androlib.Androlib.buildResources(Androlib.java:362)
at brut.androlib.Androlib.build(Androlib.java:285)
at brut.androlib.Androlib.build(Androlib.java:258)
at brut.apktool.Main.cmdBuild(Main.java:233)
at brut.apktool.Main.main(Main.java:88)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [C:\Users\Shannon\AppData\Local\Temp\brut_util_Jar_36557064233955
63843.tmp, p, --forced-package-id, 1, --min-sdk-version, 17, --target-sdk-versio
n, 17, --version-code, 17, --version-name, 4.2.1-WW_epad-10.6.2.10-20130918, -F,
C:\Users\Shannon\AppData\Local\Temp\APKTOOL5651618845894214526.tmp, -x, -0, ars
c, -S, C:\Development\android\framework-res\res, -M, C:\Development\android\fram
ework-res\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:481)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:415)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [C:\Users\Shannon\
AppData\Local\Temp\brut_util_Jar_3655706423395563843.tmp, p, --forced-package-id
, 1, --min-sdk-version, 17, --target-sdk-version, 17, --version-code, 17, --vers
ion-name, 4.2.1-WW_epad-10.6.2.10-20130918, -F, C:\Users\Shannon\AppData\Local\T
emp\APKTOOL5651618845894214526.tmp, -x, -0, arsc, -S, C:\Development\android\fra
mework-res\res, -M, C:\Development\android\framework-res\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:475)
... 6 more
C:\Development\android>
Skaeren said:
This did not help
Code:
C:\Development\android>apktool.bat if framework-res.apk
I: Framework installed to: C:\Users\Shannon\apktool\framework\1.apk
................................................................
Try with Android Multitool.
If it does not work give me that apk and framework. I will try to decompile it.
Wait........ Is it a 3rd party app? (I mean not a system app?)
Then it might be possible that developer is using some other resources, different than in your framework.
Click to expand...
Click to collapse
hnkotnis said:
Skaeren said:
This did not help
Code:
C:\Development\android>apktool.bat if framework-res.apk
I: Framework installed to: C:\Users\Shannon\apktool\framework\1.apk
................................................................
Try with Android Multitool.
If it does not work give me that apk and framework. I will try to decompile it.
Wait........ Is it a 3rd party app? (I mean not a system app?)
Then it might be possible that developer is using some other resources, different than in your framework.
Click to expand...
Click to collapse
Thanks, but it didn't help. I will keep the tool, ask my girlfriend to look over the log when there is time, but so far, still an error. I have not been able to recompile.
It is a system app. I modified one file to enable calls on my TF300TG. I have included 7zip files of the apk, and of the values folder. The values folder goes inside the res folder of the decompiled apk, before recompiling. If you could recompile for me, I will give you all the cookies!
Click to expand...
Click to collapse
Skaeren said:
hnkotnis said:
Thanks, but it didn't help. I will keep the tool, ask my girlfriend to look over the log when there is time, but so far, still an error. I have not been able to recompile.
It is a system app. I modified one file to enable calls on my TF300TG. I have included 7zip files of the apk, and of the values folder. The values folder goes inside the res folder of the decompiled apk, before recompiling. If you could recompile for me, I will give you all the cookies!
Click to expand...
Click to collapse
You did not tell me you had JellyBean. I found it when I took a look at framework-res.apk manifest.
There is some problem with decompiling and recompiling JB Framework. (No problem for other apks)
So I did a bit searching and I found this
monstaX said:
Grab an ICS framework-res apk. Replace manifest resources.arsc and res from the ICS apk with the one from jb apk. Then dexompile with apktool142.jar and then edit. Then recompile with apktoll144.jar. then open the apk that recompiled and take out manifest resources.arsc and res and place back in jb framework sorry if its to confusing. But just a quick write up
Sent from my SPH-L710 using XDA App
Click to expand...
Click to collapse
Added at 28/01/2014 04:00 PM IST
I also found this thread
This contains JB Decompiling tool and there are some guides of framework-res modifications.
Click to expand...
Click to collapse
hnkotnis said:
Skaeren said:
I will try to do it.
Click to expand...
Click to collapse
thanks
Click to expand...
Click to collapse
@Skaeren
Please read my updated post above.
hnkotnis said:
@Skaeren
Please read my updated post above.
Click to expand...
Click to collapse
I thank you for your assistance. I will take a look at the link when I get home. I know it might be asking a lot, but would it be possible for you to make the required resources.arsc for me? Basically, I only need two variabls in bools.xml changed. I have attached my bools.xml file.
If you are able to, I greatly appreciate the help. Hell, I greatly appreciate the help anyway. This stuff is a little beyond my current knowledge pool though.
is this proble solved? you want recompiled system file like systemui.apk?
try to delete folder "values-mcc9989-mnc999" in your decopile folder /res/here
press thanks button if i helped you
Problem while decompiling SystemUI.apk
I can decompile framework-res.apk but i cant able to decompile SystemUI.apk 4.2.2.
Any Solution???
thanks in advance

Categories

Resources