Build framework-res.apk? - Galaxy S I9000 Q&A, Help & Troubleshooting

I have already dexcode the framework-res.apk, the tool which I used is named "apktool".
And I have done it like this,
apktool if framework-res.apk;
apktool if twframework-res.apk;
apktool d framework-res.apk;
There is no any warnings or errors alarm, and out for framework-res directory and resources.
After I modify some part of *.xml, I type
apktool b reamework-res
it got some errors.
Please help me, why that happend?
----------------------------------------
log:
G:\Android\Tools\apk>apktool b framework-res
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
aapt: warning: string 'RestrictedOnSms' has no default translation in G:\Android
\Tools\apk\framework-res\res; found: zh_CN zh_TW
aapt: warning: string 'RestrictedOnVoiceData' has no default translation in G:\A
ndroid\Tools\apk\framework-res\res; found: zh_CN zh_TW
.......................
aapt: warning: string 'zzz_screen_captured_succeed' has no default translation i
n G:\Android\Tools\apk\framework-res\res; found: zh_CN
I: Building apk file...
---------------------
After I repack the framework-res.apk and update the update.zip, the device was stuck at the booting time. How to make the framework-res.apk to get the right way to boot the device?

mapleshadow said:
I have already dexcode the framework-res.apk, the tool which I used is named "apktool".
And I have done it like this,
apktool if framework-res.apk;
apktool if twframework-res.apk;
apktool d framework-res.apk;
There is no any warnings or errors alarm, and out for framework-res directory and resources.
After I modify some part of *.xml, I type
apktool b reamework-res
it got some errors.
Please help me, why that happend?
----------------------------------------
log:
G:\Android\Tools\apk>apktool b framework-res
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
aapt: warning: string 'RestrictedOnSms' has no default translation in G:\Android
\Tools\apk\framework-res\res; found: zh_CN zh_TW
aapt: warning: string 'RestrictedOnVoiceData' has no default translation in G:\A
ndroid\Tools\apk\framework-res\res; found: zh_CN zh_TW
.......................
aapt: warning: string 'zzz_screen_captured_succeed' has no default translation i
n G:\Android\Tools\apk\framework-res\res; found: zh_CN
I: Building apk file...
---------------------
After I repack the framework-res.apk and update the update.zip, the device was stuck at the booting time. How to make the framework-res.apk to get the right way to boot the device?
Click to expand...
Click to collapse
do a search and check out daneshm90's apk manager, not in this forum but i think it should be in another forum. the latest apk manager 4.9 beta final allows you to modify both pngs, and xmls. just follow his instructions there.
very easy to use. hope this helps.

At the beginning, thank you for your help. I have used the application, that's amazing. But the same thing happend, when I used this application to make the one framework-res.apk(of course I modified the *.xml) and update it to the device. That's so strange.
My step is as below:
Option 10, certainly I unpack the twframework-res.apk without any errors. And then........
Option 11, I coded and repack the framework-res.apk, then type yes with enter twice.
If I do it in the wrong way? Or what's your schedule?

mapleshadow said:
At the beginning, thank you for your help. I have used the application, that's amazing. But the same thing happend, when I used this application to make the one framework-res.apk(of course I modified the *.xml) and update it to the device. That's so strange.
My step is as below:
Option 10, certainly I unpack the twframework-res.apk without any errors. And then........
Option 11, I coded and repack the framework-res.apk, then type yes with enter twice.
If I do it in the wrong way? Or what's your schedule?
Click to expand...
Click to collapse
OP, you have problem with twframwork-res.apk OR with framework-res.apk? Both are different...
Did you delete all those files that you have modified in the keep folder? Maybe you can try increasing the heap size to 512 instead of default 64mb.

STK,So I'll try

Related

[Q] Need help with inverting colours on htcdialer buttons - Solved it myself...

Guys - this is driving me nuts. After exploring stock Android inside out with the Milestone, there is a new and great learning curve with Sense, which is fine. In any case after investigating it is pretty clear what to do, if I want to change htcdialer to a black background and in this case certainly white (or another bright) font colour for the dialer buttons. After decompiling and checking the layout folders everything directly aims to style.xml - so I edited the corresponding values:
<style name="text_style_dialer_button_number">
<item name="android:textSize">27.0sp</item>
<item name="android:textColor">#ffffffff</item>
<item name="android:layout_gravity">center_horizontal</item>
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:shadowColor">@color/color_255_255_255</item>
<item name="android:shadowDx">2.0</item>
<item name="android:shadowDy">2.0</item>
<item name="android:shadowRadius">1.0</item>
</style>
<style name="text_style_dialer_button_alphabet">
<item name="android:textSize">14.0sp</item>
<item name="android:textColor">#ff777777</item>
<item name="android:layout_gravity">center_horizontal</item>
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:layout_marginTop">42.0px</item>
</style>
<style name="text_style_dialer_button_zero_number">
<item name="android:textSize">27.0sp</item>
<item name="android:textColor">#ffffffff</item>
<item name="android:layout_gravity">center</item>
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:shadowColor">@color/color_255_255_255</item>
<item name="android:shadowDx">2.0</item>
<item name="android:shadowDy">2.0</item>
<item name="android:shadowRadius">1.0</item>
Unforunately no success - I also tried several layout xml despite knowing it will not work, just to double check. I also looked into EVO threads (since there was nothing here) and found out, that this style.xml and my values are right (certainly knowing that HTC changed something for DHD).
I also checked htcframework - besides a few pngs which I certainly found and edited no corresponding xml. So the answer seems to be in the smali code.
Anyone else tried this and succeeded? Any help would be greatly appreciated - Thx
solved it myself - see Revolution theme thread
he_stheone64 said:
solved it myself - see Revolution theme thread
Click to expand...
Click to collapse
Would you mind sharing how you did it? I spent over an hour editing each PNG one by one to find out it doesnt work! Now that got me a bit pissed grrrrr
That is certainly not png related, you need to decompile the apk first and then need to edity styles.xml in values-hdpi folder.I was so used to AOSP (had a Milestone before, never had values-hdpi), that I started editing everything in values folder and with all the language value folders was not looking at the obvious...
Thanks. Last question, how would I go about making the buttons plain black, instead of having a sort of gradient around it/button around it? I'm trying to match my keyboard.
1. Use my themed htcdialer from Revolution Theme (which is already compiled for inverted use - credit is always nice, if you release it)
2. Make htc_pin_asset_rest.png in htcdialer 100% transparent
3. You should at least have a little glow or whatever effect for htc_pin_asset_pressed.png in order to have feedback for input
4. Make phone_keypad_background.png in com.htcresources.apk as dark as you like it
whaaa!!! almost a week looking at those files.... and indeed never looked between those language folders....H
Much appreciated and I will make sure to credit you if I release
can you install the dialer as an apk file? if you could please pass it over it would would go well with my screen setup at the moment
You only need to download the Revolution Theme and flash only the htcdialer (delete anything in the update.zip, which you don`t need -certainly not the Meta-INF...)
I`m having a very strange Problem - all system/apps and framework-res compile fine (why shouldn`t they...) - only with com.htc.resources.apk I have the same issue after trying it 20 times with different approaches - directly in apktool, apkmanager 4.9, transfering compiled resources to original htc framework, compiling with apkmanager 4.9, transfering Manifest and Meta-Inf to the compiled htc resources, basically all the bells and whistles...
The system boots and works fine, but after compiling I loose access to settings. Even if I decompile in a test run and CHANGE NOTHING and compile, same result.
Following warning comes from apktool, but build finishes and boots as mentioned:
aapt: warning: string 'htc_day' has no default translation in C:\apktool\com.htc
.resources-decoded\res; found: zh_HK
aapt: warning: string 'htc_hour' has no default translation in C:\apktool\com.ht
c.resources-decoded\res; found: zh_HK
aapt: warning: string 'htc_minute' has no default translation in C:\apktool\com.
htc.resources-decoded\res; found: zh_HK
aapt: warning: string 'htc_month' has no default translation in C:\apktool\com.h
tc.resources-decoded\res; found: zh_HK
aapt: warning: string 'htc_year' has no default translation in C:\apktool\com.ht
c.resources-decoded\res; found: zh_HK
I: Building apk file...
Usually if something`s wrong you get errors (no warnings) or system does not boot, but this here is really unique. It is clear that apktool is loosing some entries somewhere, which are necessary for settings to load, subsequently settings init fails due to these missing entries.
I even added the missing translations to strings.xml and it compiled again fine, same result. I don`t expect a solution here, since I reported that issue to brut, but I only need to know whether that`s an isolated problem on my PC or whether you guys are experiencing the same problem with the latest 2.2.1 com.htc.resources.apk
I'll try and compile the file tomorrow and see what I get, at the moment I've just decompiled the whole theme to take a look at its guts
Sent using my two thumbs.
It`s really a pity, since I added some cool new look to com.htc.resources and it looks great on the DHD, but not really nice with this settings bug...
Hmmm, still can't get the menu text to white or green...
changed it to
Code:
<style name="TextAppearance.Widget.IconMenu.Item" parent="@style/TextAppearance.Small">
<item name="textColor">?textColorPrimary</item>
and even to
Code:
<style name="TextAppearance.Widget.IconMenu.Item" parent="@style/TextAppearance.Small">
<item name="textColor">#ffffffff</item>
and to
Code:
<style name="TextAppearance.Widget.IconMenu.Item" parent="@style/TextAppearance.Small">
<item name="textColor">#ff777777</item>
Still no luck, and yes i have even modded it in values and values-hdpi
How's your progress on this he_stheone64???
he_stheone64 said:
It`s really a pity, since I added some cool new look to com.htc.resources and it looks great on the DHD, but not really nice with this settings bug...
Click to expand...
Click to collapse
which version of apktool r u using? 1.3.1 or 1.3.2?
kurniawan77 said:
which version of apktool r u using? 1.3.1 or 1.3.2?
Click to expand...
Click to collapse
Both - 1.31 AND 1.32.
kurniawan77 said:
Hmmm, still can't get the menu text to white or green...
changed it to
Code:
<style name="TextAppearance.Widget.IconMenu.Item" parent="@style/TextAppearance.Small">
<item name="textColor">?textColorPrimary</item>
and even to
Code:
<style name="TextAppearance.Widget.IconMenu.Item" parent="@style/TextAppearance.Small">
<item name="textColor">#ffffffff</item>
and to
Code:
<style name="TextAppearance.Widget.IconMenu.Item" parent="@style/TextAppearance.Small">
<item name="textColor">#ff777777</item>
Still no luck, and yes i have even modded it in values and values-hdpi
How's your progress on this he_stheone64???
Click to expand...
Click to collapse
No problem - I managed to invert menu AND all popups plus color in notification bar. I used the popups and menu from Gingerbread for the tests and even black menu for bright and medium popup`s. That gives a little DarkEdge feeling... The problem here is, that it looks great but due to described issues I`m loosing access to settings, a behaviour I never experienced and I compiled thousands of apk`s...
Coming from AOSP or CM6 ROM`s like me, you initially are editing the wrong framework... these changes for menu, popup and even the simple statusbar have all to be done in values folder of com.htc.resources - BUT due to compilation issues I can`t release the outcome. There might still be other approaches, but com.htc.resources OVERWRITES all style edits in framework-res you`ve tried before. It is like some png`s like popup, where the changes have to be done in com.htc.resources and not in framework-res.
So my question still remains the same - if you decompile and compile com.htc.resources and push it back and boot - do you also have the same issues, that settings don`t start anymore (no FC`s - they just don`t init)? Just try this without changing ANYTHING, only decompile, compile and push back. This helps me to understand, whether I have an isolated problem or whether this is a general apktool issue with the latest htc resources on DHD (maybe also on Z).I tried it with apktool 1.31 and 1.32, both directly and with apkmanager 4.9.
he_stheone64 said:
No problem - I managed to invert menu AND all popups plus color in notification bar. I used the popups and menu from Gingerbread for the tests and even black menu for bright and medium popup`s. That gives a little DarkEdge feeling... The problem here is, that it looks great but due to described issues I`m loosing access to settings, a behaviour I never experienced and I compiled thousands of apk`s...
Coming from AOSP or CM6 ROM`s like me, you initially are editing the wrong framework... these changes for menu, popup and even the simple statusbar have all to be done in values folder of com.htc.resources - BUT due to compilation issues I can`t release the outcome. There might still be other approaches, but com.htc.resources OVERWRITES all style edits in framework-res you`ve tried before. It is like some png`s like popup, where the changes have to be done in com.htc.resources and not in framework-res.
So my question still remains the same - if you decompile and compile com.htc.resources and push it back and boot - do you also have the same issues, that settings don`t start anymore (no FC`s - they just don`t init)? Just try this without changing ANYTHING, only decompile, compile and push back. This helps me to understand, whether I have an isolated problem or whether this is a general apktool issue with the latest htc resources on DHD (maybe also on Z).I tried it with apktool 1.31 and 1.32, both directly and with apkmanager 4.9.
Click to expand...
Click to collapse
I'll give it a try to de- and compile com.htc.resources... sometimes it helps to run as administrator... don't know if it helps u.
nope getting same warnings
Code:
I: Building resources...
aapt: warning: string 'htc_day' has no default translation in C:\Users\HP DV7-4030ed\Desktop\Irwan\apk_manager_4.9\other\..\projects\com.htc.resources.apk\res; found: zh_HK
aapt: warning: string 'htc_hour' has no default translation in C:\Users\HP DV7-4030ed\Desktop\Irwan\apk_manager_4.9\other\..\projects\com.htc.resources.apk\res; found: zh_HK
aapt: warning: string 'htc_minute' has no default translation in C:\Users\HP DV7-4030ed\Desktop\Irwan\apk_manager_4.9\other\..\projects\com.htc.resources.apk\res; found: zh_HK
aapt: warning: string 'htc_month' has no default translation in C:\Users\HP DV7-4030ed\Desktop\Irwan\apk_manager_4.9\other\..\projects\com.htc.resources.apk\res; found: zh_HK
aapt: warning: string 'htc_year' has no default translation in C:\Users\HP DV7-4030ed\Desktop\Irwan\apk_manager_4.9\other\..\projects\com.htc.resources.apk\res; found: zh_HK
I: Building apk file...
i'll try renaming it to comhtcresources.apk.... don't know if it helps but we'll see tonight... i'm off to work now...

[GT-P6800][3g]Power Menu Mod - adds recovery, reboot options

HI,
Please find a Power menu mod for GT-P6800 De-odexed System folders/ Apks. Working on KSLA2 firmware.
(I have posted deodexed files in an earlier thread, links updated )
It adds:
1) reboot normally
2) reboot into recovery
To the normal power menu
(have not changed the pop-up dailogue that follows each option but works fine for me)
New Download Link:
http://www.mediafire.com/download.php?a1ywr19dblx0cd8
As usual make backup if you have not got one already. Or at least the files in /system/framework/ it replaces.
Flash in cwm recovery. First boot will take a few minutes as it rebuilds cache,etc.
Update - Edited most of the pngs for battery icons so shoud be ok for my black /grey theming. Updated the cwm script to wipe cache / dalvik automatically. Updated the original link.
(Unfortunately, not sure when I can get the mod for stock theme going. I will have some time at the weekend maybe.)
Please test and report problems.
Ususal disclaimer applies
ezynow
Will try once you make adjustments
Sent from my SGH-T959 using XDA App
ifollow the prosedure not successful 'no delay in rebooting, the power menue the same in change
redflim said:
ifollow the prosedure not successful 'no delay in rebooting, the power menue the same in change
Click to expand...
Click to collapse
you are running a deodexed system?
if yes - than try wiping cache / dalvik cache in recovery and try again.
thanks
Would this also work on a deodexed 6810 wifi only?
crunchie-uk said:
Would this also work on a deodexed 6810 wifi only?
Click to expand...
Click to collapse
more than likely boot loop. it depends on how closely the frameworks are related.
even working on my own files, ive had boot loops, and its a real pain to change dex stuff.
the only way is to try it.
Im due to receive a wifi in the next few days.
Im not a dev but if i can help somehow with porting mods im willing!
Sent from my GT-I9100 using Tapatalk
crunchie-uk said:
Im due to receive a wifi in the next few days.
Im not a dev but if i can help somehow with porting mods im willing!
Sent from my GT-I9100 using Tapatalk
Click to expand...
Click to collapse
no probs - hopefully it should be quite straightforward to get changes for the 6810 going
there's no option for REBOOT INTO DOWNLOAD MODE....
it's useless.... imho because reboot/reboot into recovery can solve with switchpro widget...
please add reboot into download mode that can make it useful
The wifi icon is wrong when the wifi signal is 100% in status bar
tamerh said:
The wifi icon is wrong when the wifi signal is 100% in status bar
Click to expand...
Click to collapse
will update this later today.
cheers for the feedback
hi ezynow,
I'm working a Custom ROM for my 6810 and i'm using the HK ZSLA original firmware as my base.
I was wondering if you can help me out. i'm trying to do the power menu mod but after decompiling the framework-res.apk and making the changes, i'm not able to recompile it using APK Multi Tool.
What program are you using to decompile/compile?
snobrdinrtiste said:
hi ezynow,
I'm working a Custom ROM for my 6810 and i'm using the HK ZSLA original firmware as my base.
I was wondering if you can help me out. i'm trying to do the power menu mod but after decompiling the framework-res.apk and making the changes, i'm not able to recompile it using APK Multi Tool.
What program are you using to decompile/compile?
Click to expand...
Click to collapse
I had some problems with apk multitool on linux. Could decompile but not recompile.
Tried it on windows it recompiled ok
ezynow said:
I had some problems with apk multitool on linux. Could decompile but not recompile.
Tried it on windows it recompiled ok
Click to expand...
Click to collapse
Damn... its happening to me on both linux and windows... can decompile but can't recompile
What errors are you getting, perhaps post a log. Will try to help.
chrisrotolo said:
What errors are you getting, perhaps post a log. Will try to help.
Click to expand...
Click to collapse
here's the error from APK Multi Tool 1.02
Code:
java version "1.6.0_22"
Java(TM) SE Runtime Environment (build 1.6.0_22-b04)
Java HotSpot(TM) Client VM (build 17.1-b03, mixed mode, sharing)
'""platform-tools"\adb.exe"' is not recognized as an internal or external command,
operable program or batch file.
The system cannot find the path specified.
The system cannot find the path specified.
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\12157\Downloads\ApkMultiTool\projects\framework-res.apk\res\values\plurals.xml:79: error: Multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute?
C:\Users\12157\Downloads\ApkMultiTool\projects\framework-res.apk\res\values\plurals.xml:79: error: Found tag </item> where </plurals> is expected
aapt: warning: string 'dont_show_dialog' has no default translation in C:\Users\12157\Downloads\ApkMultiTool\projects\framework-res.apk\res; found: es ko vi zh_CN
aapt: warning: string 'mid_month_day_mid_wday_no_year' has no default translation in C:\Users\12157\Downloads\ApkMultiTool\projects\framework-res.apk\res; found: is_IS kk_KZ
aapt: warning: string 'never_turn_on_wifi' has no default translation in C:\Users\12157\Downloads\ApkMultiTool\projects\framework-res.apk\res; found: es ko vi zh_CN
aapt: warning: string 'permdesc_accessUsb' has no default translation in C:\Users\12157\Downloads\ApkMultiTool\projects\framework-res.apk\res; found: pt rm
aapt: warning: string 'permdesc_mdmScreenCapture' has no default translation in C:\Users\12157\Downloads\ApkMultiTool\projects\framework-res.apk\res; found: bg ca cs da de el es es_US et fi fr hr hu in is it ja kk ko lt lv nb nl pl pt pt_BR pt_PT ro ru sk sl sr sv th tr uk vi zh_CN zh_HK zh_TW
aapt: warning: string 'permdesc_mdmTethering' has no default translation in C:\Users\12157\Downloads\ApkMultiTool\projects\framework-res.apk\res; found: bg ca cs da de el es es_US et fi fr hr hu in is it ja kk ko lt lv nb nl pl pt pt_BR pt_PT ro ru sk sl sr sv th tr uk vi zh_CN zh_HK zh_TW
aapt: warning: string 'permdesc_mdmUsbDebugging' has no default translation in C:\Users\12157\Downloads\ApkMultiTool\projects\framework-res.apk\res; found: bg ca cs da de el es es_US et fi fr hr hu in is it ja kk ko lt lv nb nl pl pt pt_BR pt_PT ro ru sk sl sr sv th tr uk vi zh_CN zh_HK zh_TW
aapt: warning: string 'permgrouplab_storage' has no default translation in C:\Users\12157\Downloads\ApkMultiTool\projects\framework-res.apk\res; found: et pt_BR
aapt: warning: string 'permlab_accessUsb' has no default translation in C:\Users\12157\Downloads\ApkMultiTool\projects\framework-res.apk\res; found: pt rm
aapt: warning: string 'permlab_mdmScreenCapture' has no default translation in C:\Users\12157\Downloads\ApkMultiTool\projects\framework-res.apk\res; found: bg ca cs da de el es es_US et fi fr hr hu in is it ja kk ko lt lv nb nl pl pt pt_BR pt_PT ro ru sk sl sr sv th tr uk vi zh_CN zh_HK zh_TW
aapt: warning: string 'permlab_mdmTethering' has no default translation in C:\Users\12157\Downloads\ApkMultiTool\projects\framework-res.apk\res; found: bg ca cs da de el es es_US et fi fr hr hu in is it ja kk ko lt lv nb nl pl pt pt_BR pt_PT ro ru sk sl sr sv th tr uk vi zh_CN zh_HK zh_TW
aapt: warning: string 'permlab_mdmUsbDebugging' has no default translation in C:\Users\12157\Downloads\ApkMultiTool\projects\framework-res.apk\res; found: bg ca cs da de el es es_US et fi fr hr hu in is it ja kk ko lt lv nb nl pl pt pt_BR pt_PT ro ru sk sl sr sv th tr uk vi zh_CN zh_HK zh_TW
aapt: warning: string 'wifi_settings_dialog_title' has no default translation in C:\Users\12157\Downloads\ApkMultiTool\projects\framework-res.apk\res; found: bg ca cs da de el es es_US et fi fr hr hu in is it ja kk ko lt lv nb nl pl pt_BR pt_PT ro ru sk sl sr sv th tr uk vi zh_CN zh_TW
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\12157\AppData\Local\Temp\APKTOOL3780187520792099542.tmp, -x, -S, C:\Users\12157\Downloads\ApkMultiTool\projects\framework-res.apk\res, -M, C:\Users\12157\Downloads\ApkMultiTool\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\12157\AppData\Local\Temp\APKTOOL3780187520792099542.tmp, -x, -S, C:\Users\12157\Downloads\ApkMultiTool\projects\framework-res.apk\res, -M, C:\Users\12157\Downloads\ApkMultiTool\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
Edit: btw, i attached the darn framework-res.apk file so if anyone gets its to decompile and recompile without any errors, please let me know how you got it to work. Thx!
Edit Again: got it working!!!! finally...
hmm. usually no default translation is not a big problem and usually builds.
for example one of my stock .apks either systemui or framework-res.apk pulled right from a ODIN .tar, and decompiled without changing anything I get the missing translation erro but builds and flashes fine. just so you know.
trnaslations obviously shouldnt cause any problems. what Im wondering is what you did to correct it?
ALSO: I would love this mod for my 7+ 3G.. hint hint ezynow. no rush
chrisrotolo said:
hmm. usually no default translation is not a big problem and usually builds.
for example one of my stock .apks either systemui or framework-res.apk pulled right from a ODIN .tar, and decompiled without changing anything I get the missing translation erro but builds and flashes fine. just so you know.
trnaslations obviously shouldnt cause any problems. what Im wondering is what you did to correct it?
ALSO: I would love this mod for my 7+ 3G.. hint hint ezynow. no rush
Click to expand...
Click to collapse
I believe that there was just one line in the plurals.xml file that it didn't like (which i never changed at all)... there were two "%" signs in an <item> tag... something like <item quantity="other">%d %m</item>
BUT my problem now resides in the fact that once i recompile the framework-res.apk and i push it back to the tab or even put that in my kitchen and sign the rom... it gets stuck on the boot screen after flashing... every darn time
I even tried doing the "extracting", "zipping" and adb pushing it back up... same problem
my rom (zipaligned, deodexed, init.d, removed bloatware, etc) flashes fine and works great but when i go in and mod the framework-res.apk or systemui.apk, thats when it gets stuck on the boot screen and i can't get a logcat at all.
ezy, how did you repackage your version of the framework-res.apk? cuz i'm running out of ideas...
EDIT:
Ok it seems like whenever i post my problems, i happen to find the problem right after! lol
The problem is with APKMultiTool (not sure which version... beta or 1.02) but when it recompiles or zips up the apk... the structure looks like this: "projects">"framework-res.apk">(then original contents like Meta-inf, androidmanifest.xml, etc)
I went back to using ApkManager 4.9 and it zips the file correctly. I open the apk in 7-zip and right away i see the meta-inf, androidmanifest.xml, res folder, etc. (this is only for themeing... will need to test the recompiling part or maybe just edit the apk's structure in 7-zip)
I hope u can find a time to fix wifi icon .. Thank you
I have tried to install it 3 times and nothing and have also wiped dalvik cache and still noting. The only change was to my status bar, i was running the ics blue them and now int changed it to a wite thime and the wife ice is screwed up, see the pic attached:
Sent from my GT-P6800 using xda premium

[MOD][15 Toggles] How to mod Lidroid framework for JellyBean Roms

This is an update of this guide to get it working on Jelly Bean Roms, all we need is a 3 empty frameworks to rebuild Lidroid one (Thanks to LegendK95 for the idea), i built 3 fake frameworks: wanam3.apk, wanam4.apk, wanam5.apk.
Get them from attachments and push them with Apktool ( i recommend this Apktool update, thank to iBotPeaches):
Code:
apktool.bat if path_to/framework-res.apk
apktool.bat if path_to/twframework-res.apk
apktool.bat if path_to/wanam3.apk
apktool.bat if path_to/wanam4.apk
apktool.bat if path_to/wanam5.apk
Now you can decompile "lidroid-res.apk" (Available here), open "apktool.yml", you will find this :
Code:
isFrameworkApk: true
usesFramework:
ids:
- 1
sdkInfo:
minSdkVersion: '16'
targetSdkVersion: '16'
Add the 3 frameworks (2,3 and 4):
Code:
isFrameworkApk: true
usesFramework:
ids:
- 1
- 2
- 3
- 4
sdkInfo:
minSdkVersion: '16'
targetSdkVersion: '16'
Done, make your changes and re-compile.
Woohoo! many thanks mate, now I can make AndroidGX-MOD S3 fully compatible with Jelly Bean roms
We have chance to get you into this board! :good:
... I return working on it!
Ok, just tried your tutorial, but seems like there is a problem : I can't decompile properly without errors.
I'm still using Wanam APK ICS Manager but replaced with latest files from apktool thread that you provided (same for aapt.exe).
I decompiled lidroid-res.apk as dependencies with wanam3-5.apk ==> OK, but recompiling is not, here is my log.txt :
Code:
--------------------------------------------------------------------------
|25/09/2012 -- 13:16:02,68|
--------------------------------------------------------------------------
java version "1.7.0_07"
Java(TM) SE Runtime Environment (build 1.7.0_07-b10)
Java HotSpot(TM) Client VM (build 23.3-b01, mixed mode, sharing)
Exception in thread "main" brut.androlib.AndrolibException: java.io.FileNotFoundException: X:\Android common\APK Manager JB (by Wanam)\place-apk-here-for-modding\wanam3.apk"X:\Android common\APK Manager JB (by Wanam)\place-apk-here-for-modding\wanam4.apk"X:\Android common\APK Manager JB (by Wanam)\place-apk-here-for-modding\wanam5.apk (La syntaxe du nom de fichier, de répertoire ou de volume est incorrecte)
at brut.androlib.res.AndrolibResources.installFramework(AndrolibResources.java:481)
at brut.androlib.Androlib.installFramework(Androlib.java:447)
at brut.apktool.Main.cmdInstallFramework(Main.java:199)
at brut.apktool.Main.main(Main.java:72)
Caused by: java.io.FileNotFoundException: X:\Android common\APK Manager JB (by Wanam)\place-apk-here-for-modding\wanam3.apk"X:\Android common\APK Manager JB (by Wanam)\place-apk-here-for-modding\wanam4.apk"X:\Android common\APK Manager JB (by Wanam)\place-apk-here-for-modding\wanam5.apk (La syntaxe du nom de fichier, de répertoire ou de volume est incorrecte)
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.zip.ZipFile.<init>(Unknown Source)
at brut.androlib.res.AndrolibResources.installFramework(AndrolibResources.java:449)
... 3 more
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\sub\apktool\framework\1.apk
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...
Exception in thread "main" brut.androlib.err.CantFindFrameworkResException
at brut.androlib.res.AndrolibResources.getFrameworkApk(AndrolibResources.java:441)
at brut.androlib.Androlib.parseUsesFramework(Androlib.java:482)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:324)
at brut.androlib.Androlib.buildResources(Androlib.java:269)
at brut.androlib.Androlib.build(Androlib.java:192)
at brut.androlib.Androlib.build(Androlib.java:174)
at brut.apktool.Main.cmdBuild(Main.java:188)
at brut.apktool.Main.main(Main.java:70)
I tried to recompile without doing the modification of apktool.yml, and recompiling is OK this time, but I guess it's not the right way.
Any idea please ?
AndroidGX said:
Ok, just tried your tutorial, but seems like there is a problem : I can't decompile properly without errors.
I'm still using Wanam APK ICS Manager but replaced with latest files from apktool thread that you provided (same for aapt.exe).
I decompiled lidroid-res.apk as dependencies with wanam3-5.apk ==> OK, but recompiling is not, here is my log.txt :
Code:
--------------------------------------------------------------------------
|25/09/2012 -- 13:16:02,68|
--------------------------------------------------------------------------
java version "1.7.0_07"
Java(TM) SE Runtime Environment (build 1.7.0_07-b10)
Java HotSpot(TM) Client VM (build 23.3-b01, mixed mode, sharing)
Exception in thread "main" brut.androlib.AndrolibException: java.io.FileNotFoundException: X:\Android common\APK Manager JB (by Wanam)\place-apk-here-for-modding\wanam3.apk"X:\Android common\APK Manager JB (by Wanam)\place-apk-here-for-modding\wanam4.apk"X:\Android common\APK Manager JB (by Wanam)\place-apk-here-for-modding\wanam5.apk (La syntaxe du nom de fichier, de répertoire ou de volume est incorrecte)
at brut.androlib.res.AndrolibResources.installFramework(AndrolibResources.java:481)
at brut.androlib.Androlib.installFramework(Androlib.java:447)
at brut.apktool.Main.cmdInstallFramework(Main.java:199)
at brut.apktool.Main.main(Main.java:72)
Caused by: java.io.FileNotFoundException: X:\Android common\APK Manager JB (by Wanam)\place-apk-here-for-modding\wanam3.apk"X:\Android common\APK Manager JB (by Wanam)\place-apk-here-for-modding\wanam4.apk"X:\Android common\APK Manager JB (by Wanam)\place-apk-here-for-modding\wanam5.apk (La syntaxe du nom de fichier, de répertoire ou de volume est incorrecte)
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.zip.ZipFile.<init>(Unknown Source)
at brut.androlib.res.AndrolibResources.installFramework(AndrolibResources.java:449)
... 3 more
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\sub\apktool\framework\1.apk
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...
Exception in thread "main" brut.androlib.err.CantFindFrameworkResException
at brut.androlib.res.AndrolibResources.getFrameworkApk(AndrolibResources.java:441)
at brut.androlib.Androlib.parseUsesFramework(Androlib.java:482)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:324)
at brut.androlib.Androlib.buildResources(Androlib.java:269)
at brut.androlib.Androlib.build(Androlib.java:192)
at brut.androlib.Androlib.build(Androlib.java:174)
at brut.apktool.Main.cmdBuild(Main.java:188)
at brut.apktool.Main.main(Main.java:70)
I tried to recompile without doing the modification of apktool.yml, and recompiling is OK this time, but I guess it's not the right way.
Any idea please ?
Click to expand...
Click to collapse
Did you push the 3 frameworks? if so, you don't need to decompile with dependencies.
wanam said:
Did you push the 3 frameworks? if so, you don't need to decompile with dependencies.
Click to expand...
Click to collapse
Thanks! it worked like a charm :good:
I never knew that just pushing while no selectionning the concerned lidroid-res will be working, but it is
Very interesting.
Thanks again mate.
AndroidGX said:
Thanks! it worked like a charm :good:
I never knew that just pushing while no selectionning the concerned lidroid-res will be working, but it is
Very interesting.
Thanks again mate.
Click to expand...
Click to collapse
My pleasure
@Wanam or
Someone can explain me the first part, the apktool.bat stuffs. How can i push the wanam files?
I try those commands but i have several errors
I'm able to de-compile lidroid-res.apk without the push parts.
In re-compiling (apktool b lidroid-res lidroid-res-new.apk) the first line after hit enter is: "Could not find sources" but the rest of process goes ok.
In the end i have a new apk with a few less mbs than the original.
Any help will be very appreciated.
Thanks... Working great...
Thanks my friend wanam!
works like a charm!
thanks for all help!
regards
adesirello
Thanks for this mod .
can you explain how i can put 8toogle or 6 or 5 if i want in portrait mode ?
i have note 2 and i have 5 toggle , but i prefere 8 toggle it is mod in lidroid-res.apk or in systemui.apk
can you tell what xml i wan modified please
i have this pb but i have put 5 ressources
Microsoft Windows [version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. Tous droits réservés.
C:\APK_JB_MANAGER-By-BroLee\other>apktool.bat if path_to/framework-res.apk
Exception in thread "main" brut.androlib.AndrolibException: java.io.FileNotFound
Exception: path_to\framework-res.apk (Le chemin dÆaccÞs spÚcifiÚ est introuvable
)
at brut.androlib.res.AndrolibResources.installFramework(AndrolibResource
s.java:477)
at brut.androlib.Androlib.installFramework(Androlib.java:448)
at brut.apktool.Main.cmdInstallFramework(Main.java:193)
at brut.apktool.Main.main(Main.java:69)
Caused by: java.io.FileNotFoundException: path_to\framework-res.apk (Le chemin d
ÆaccÞs spÚcifiÚ est introuvable)
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.zip.ZipFile.<init>(Unknown Source)
at brut.androlib.res.AndrolibResources.installFramework(AndrolibResource
s.java:445)
... 3 more
C:\APK_JB_MANAGER-By-BroLee\other>apktool.bat if C:\APK_JB_MANAGER-By-BroLee\oth
er\framework-res.apk
I: Framework installed to: C:\Users\Lopes Carla\apktool\framework\1.apk
C:\APK_JB_MANAGER-By-BroLee\other>apktool.bat if C:\APK_JB_MANAGER-By-BroLee\oth
er\twframework-res.apk
I: Framework installed to: C:\Users\Lopes Carla\apktool\framework\2.apk
C:\APK_JB_MANAGER-By-BroLee\other>apktool.bat if C:\APK_JB_MANAGER-By-BroLee\oth
er\wanam3.apk
I: Framework installed to: C:\Users\Lopes Carla\apktool\framework\3.apk
C:\APK_JB_MANAGER-By-BroLee\other>apktool.bat if C:\APK_JB_MANAGER-By-BroLee\oth
er\wanam4.apk
I: Framework installed to: C:\Users\Lopes Carla\apktool\framework\4.apk
C:\APK_JB_MANAGER-By-BroLee\other>apktool.bat if C:\APK_JB_MANAGER-By-BroLee\oth
er\wanam5.apk
I: Framework installed to: C:\Users\Lopes Carla\apktool\framework\5.apk
C:\APK_JB_MANAGER-By-BroLee\other>apktool d lidroid-res.apk C:\APK_JB_MANAGER-By
-BroLee\other\lidroid
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\Lopes Carla\apktool\framework\1.ap
k
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
C:\APK_JB_MANAGER-By-BroLee\other>apktool b C:\APK_JB_MANAGER-By-BroLee\other\li
droid
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
Warning: AndroidManifest.xml already defines minSdkVersion (in http://schemas.an
droid.com/apk/res/android); using existing value in manifest.
Warning: AndroidManifest.xml already defines targetSdkVersion (in http://schemas
.android.com/apk/res/android); using existing value in manifest.
I: Building apk file...
C:\APK_JB_MANAGER-By-BroLee\other>
Click to expand...
Click to collapse
Help please
hi
i want to change some stuff into lidroid-res.apk
Step:
installed dependencies no error occured
decompiled lidroid-res.apk no error
edited apktool.yml no error
done my changes
recompile lidroid-res no error
signed lidroid-res.apk
push in system/framework
fix permissions to rw-r-r
reboot
SystemUI CRASH!!!!!!!!
What's my bad?
Thanks in advance
i'm on LS2 for gt-n7000
i attached my modded
lidroid-res.apk
Anyone can help me?
Please
Ofeliax said:
hi
i want to change some stuff into lidroid-res.apk
Step:
installed dependencies no error occured
decompiled lidroid-res.apk no error
edited apktool.yml no error
done my changes
recompile lidroid-res no error
signed lidroid-res.apk
push in system/framework
fix permissions to rw-r-r
reboot
SystemUI CRASH!!!!!!!!
What's my bad?
Thanks in advance
i'm on LS2 for gt-n7000
i attached my modded
lidroid-res.apk
Click to expand...
Click to collapse
Why do you sign it?
Hi wanam
You mean that i just push in system/framework the lidroid-res.apk from /dist folder , right?
But at apktool.yml i must add until to -4 or -5?
Thanks for support!!!!!!
Ofeliax said:
Hi wanam
You mean that i just push in system/framework the lidroid-res.apk from /dist folder , right?
But at apktool.yml i must add until to -4 or -5?
Thanks for support!!!!!!
Click to expand...
Click to collapse
No need to sign it, just add 2-3-4 resources and compile.
wanam said:
No need to sign it, just add 2-3-4 resources and compile.
Click to expand...
Click to collapse
Ok
I'll try so and I'll give you feedback
Thanks
It work perfectly
man i using apktool the lastest one. and im am using a note 2 and trying to color the toggle mod and its not sticking nothing is showing up as far as my color changes. any idea? thing compile just find and enter the steps installed the 3 .apks and still nothing

[TOOL]CM Theme to XThemeEngine Converter / Porter

You can stop F5-ing.
What's that all about? Didn't that exist already?
This tool converts an CM10 / AOKP / ... theme to an XThemeEngine (showthread.php?t=2240180 , I'm still "too new to add links" I guess).
The second post of that thread is just an instruction post. It tells you how to port the theme manually. I've made the script on base of that tutorial and then ported it to Java code so it's cross-platform.
The MAIN PROS:
- Easier with graphical user interface!
- Generates the missing redirections.xml for you!
- Doesn't need the SampleTheme.apk and doesn't need any IDE like Eclipse!
One-Time Set-Up:
1. Download apktool with signapk and testkeys in the same folder.
2. Download the .jar
I've removed the instructions for the shell script - the .sh itself is still inside the upload.zip.
Everytime you run it:
Select all the needed files. The GUI will help you.
Also, if aapt isn't inside of your $PATH, use the optional file chooser for that.
The folder containing aapt is usually platform-tools in the SDK folder.
WARNING: Any damage to your device is NOT MY FAULT. Any damage to any of the apks is NOT MY FAULT. Any damage to the Linux, NT or GNU Kernel is NOT MY FAULT. Any usage of Chuck Norris in this post is NOT MY FAU~~~~UU~~ IT'S MY FAULT!
WARNING: The output is A RAW PORT (except the generated redirections if missing) that may not work on some devices. Please port the .apk manually if needed.
When you encounter any problems, please reply with device, Android version and input theme (link to thread and APK if possible). Thanks!
Known problems (legend: p- problem c-- cause w--- workaround f--- fix) :
p- Applying theme failed.
c-- It's not my fault if the themers use separate xml files and / or forgett redirections.xml .
w--- Create one on your own and modify the code inside the .sh file (you can't overlook it...). It's easier than it sounds. Just replace ./tmpst/res/xml/redirections.xml with the path to your own one.
f--- Update to 2.0+
c-- The theme needs a device-specifiic redirections.xml due to Samsungs / Sonys / ... package and resource stuff.
w--- Port the theme on your own. That's really sad - that's why I've added it to my TODO list.
Changelog:
1.0: Initial release
1.1: Added missing zipalign
1.2: Added code snippet that copy-pastes the sampletheme apk's redirections.xml if there is no one. Unfournately it only has an entry for SystemUI so the code should be modified by the user easily to load a custom redirections.xml instead.
2.0: Ported to Java (.jar) for cross-platform support; removed zipalign for some time; added auto-generation of redirections.xml
ToDo: (* = focused, + = added)
+ Autogenerate redirections.xml if missing (aka Fix failed applying theme).
+ Fix failed applying theme. Some debug options in XThemeEngine would be helpfull... :/ (Edit: See the problem "Applying theme failed.")
+ Make more efficient
+ Add missing zipalign (if requested by too many users) (Edit: Just. Do. It.)
+ Make thread "first post" more user-friendly
+ Port it to a commandline .jar or GUI .jar (Edit: I prefer GUI .jar)
* Find device-specifiic redirections.xml and implement an option to choose from them. Yes, I mean you, Samsung and Sony!
- Add images to the first post
- Re-addd the zipaligning
AngelDE98 said:
I am verry sorry if this post is in the wrong place. I tought it would fit the "Themes" subforum because it's a theme converter and I've seen some ideas for it here, too. I'm just another dumb user, I know so just correct me. :/
What's that all about? Didn't that exist already?
This tool converts an CM10 / AOKP / ... theme to an XThemeEngine (showthread.php?t=2240180 , I'm still "too new to add links" I guess).
The second post of that thread is just an instruction post. It tells you how to port the theme manually. I've made the script on base of that.
One-Time Set-Up (notice that file / folder names are caps-sensitive on Linux!):
1. Download the convert.sh and make it runnable (I won't tell you how to do it because it's basic )
2. Make a new folder named "apktool" next to the .sh
3. Download apktool + signapk .jars (I won't tell you because I've seen some removed links from mods here and there ). Put apktool + signapk .jars into the apktool folder.
4. Download the sampletheme.apk and NAME IT "sampletheme.apk".. wow. Place it next to the .sh and apktool folder.
Now:
1. (Re)Place your input.apk (must be named so, if I've got time or help for making it load from arguments I'll implemt that) next to the .sh
2. Run the .sh script in Terminal
3. ....?
4. Profit. A new file named output.apk appeared. You may want to install it as normal app.
WARNING: Any damage to your device is NOT MY FAULT. Any damage to any of the apks is NOT MY FAULT. Any damage to the Linux Kernel is NOT MY FAULT. Any usage of Chuck Norris in this post is NOT MY FAU~~~~UU~~ IT'S MY FAULT!
WARNING: The output.apk is A RAW PORT that may not work on some devices. Please port the .apk manually if needed.
When you encounter any problems, please reply with device, Android version and input theme (link to thread and APK if possible). Thanks!
Known problems (legend: p- problem c-- cause w--- workaround f--- fix) :
p- Applying theme failed.
c-- It's not my fault if the themers use separate xml files and / or forgett redirections.xml .
w--- Create one on your own and modify the code inside the .sh file (you can't overlook it...). It's easier than it sounds. Just replace ./tmpst/res/xml/redirections.xml with the path to your own one.
Changelog:
1.0: Initial release
1.1: Added missing zipalign
1.2: Added code snippet that copy-pastes the sampletheme apk's redirections.xml if there is no one. Unfournately it only has an entry for SystemUI so the code should be modified by the user easily to load a custom redirections.xml instead.
ToDo: (* = focused, + = added)
- Autogenerate redirections.xml if missing (aka Fix failed applying theme).
+ Fix failed applying theme. Some debug options in XThemeEngine would be helpfull... :/ (Edit: See the problem "Applying theme failed.")
- Make more efficient
+ Add missing zipalign (if requested by too many users) (Edit: Just. Do. It.)
- Make thread "first post" more user-friendly
- If possible and apktool and signapk do exist for Android (otherwise decompile and port to Android), create "mobile version" of this tool (possibly without rooting needed)
* Port it to a commandline .jar or GUI .jar (Edit: I prefer GUI .jar)
Click to expand...
Click to collapse
Thnks but maybe u need add some images
to see how to use this (much people cant understood all on this post) and if u add some screens are more friendly
cheers
TeamMex said:
Thnks but maybe u need add some images
to see how to use this (much people cant understood all on this post) and if u add some screens are more friendly
cheers
Click to expand...
Click to collapse
I will add images after I've released the .jar file which is cross-platform. Yesterday some testing went wrong (aapt not found, mysterious .xml after package name in code-made redirections.xml). I hope I'll be able to upload the .jar today.
AngelDE98 said:
I will add images after I've released the .jar file which is cross-platform. Yesterday some testing went wrong (aapt not found, mysterious .xml after package name in code-made redirections.xml). I hope I'll be able to upload the .jar today.
Click to expand...
Click to collapse
F5...F5...F5... :fingers-crossed:
BoilerDroid said:
F5...F5...F5... :fingers-crossed:
Click to expand...
Click to collapse
Stop F5-ing.
AngelDE98 said:
Stop F5-ing.
Click to expand...
Click to collapse
Radiance_Gold by @IND190
Converted, installed, but won't apply theme...
I'm trying to convert: http://forum.xda-developers.com/showthread.php?t=2057131
d2vzw running Jelly Bean's 15
-------------------------
-------------------------
Version 2.0 by AngelDE98
-------------------------
[FILE:INAPK] C:\Users\_\Desktop\SGS3\Apktool JB 4.2.2_Signed_By Rizal Lovins Sundanesse\com.ind190.theme.radiance_gold.apk
[FILEUTAPK] C:\Users\_\Desktop\SGS3\Apktool JB 4.2.2_Signed_By Rizal Lovins Sundanesse\GoldTheme-2.apk
[FILE:APKTOOL] C:\Users\_\Desktop\SGS3\Apktool JB 4.2.2_Signed_By Rizal Lovins Sundanesse
[FILE:TMPDIR] C:\Users\_~1\AppData\Local\Temp\CMTXTE
[OS:ID] WINDOWS
[OS:SHELL] cmd
-------------------------
Beginning conversion...
Clearing tmpdir
Decompiling inapk into tmpdir
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\_\apktool\framework\1.apk
I: Loaded.
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...
Removing the public.xml
redirections.xml exists: NO
Creating new redirections.xml
Adding permission into AndroidManifest.xml
Recompiling / bulding new apk
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
Warning: AndroidManifest.xml already defines minSdkVersion (in http://schemas.android.com/apk/res/android); using existing value in manifest.
Warning: AndroidManifest.xml already defines targetSdkVersion (in http://schemas.android.com/apk/res/android); using existing value in manifest.
I: Building apk file...
Signing new apk
Done!
BoilerDroid said:
Radiance_Gold by @IND190
Converted, installed, but won't apply theme...
I'm trying to convert: http://forum.xda-developers.com/showthread.php?t=2057131
d2vzw running Jelly Bean's 15
Click to expand...
Click to collapse
Can you please give me your logcat log and device? Maybe you have got one of the Sony or Samsung devices that need special device-dependent redirections :/
I was able to apply the theme. On ICS.
There are no errors in the conversion log.
-------------------------
-------------------------
Version 2.0 by AngelDE98
-------------------------
[FILE:INAPK] C:\Users\klozz\Desktop\Themes speciales para stock roms\ChromeOS.V.2.1.apk
[FILEUTAPK] C:\Users\klozz\Desktop\Themes speciales para stock roms\themes\Chromeosported
[FILE:APKTOOL] C:\Users\klozz\Desktop\Themes speciales para stock roms\apktool\Apk_Manager_UOT\other
[FILE:TMPDIR] C:\Users\klozz\AppData\Local\Temp\CMTXTE
[OS:ID] WINDOWS
[OS:SHELL] cmd
-------------------------
Beginning conversion...
Clearing tmpdir
Decompiling inapk into tmpdir
I: Loading resource table...
Exception in thread "main" brut.androlib.AndrolibException: Multiple resources: spec=0x02020000 drawable/com_android_browser_geolocation_permissions_prompt_background, config=-xhdpi-v13
at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:65)
at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:58)
at brut.androlib.res.decoder.ARSCDecoder.readEntry(ARSCDecoder.java:196)
at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:165)
at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:130)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:105)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:82)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:48)
at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibResources.java:315)
at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.java:50)
at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.java:43)
at brut.androlib.Androlib.getResTable(Androlib.java:44)
at brut.androlib.ApkDecoder.getResTable(ApkDecoder.java:148)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:98)
at brut.apktool.Main.cmdDecode(Main.java:120)
at brut.apktool.Main.main(Main.java:57)
Removing the public.xml
redirections.xml exists: NO
Creating new redirections.xml
Something went wrong - look at STDOUT
D:
U can give me how to add manualy dependent directions on Sony device?
Aww... the ToDo list already contains that. I'll work on that today I guess...
Thanks for the log. Two resources and 1 id? How that?
Sent from my FWS710EU using xda app-developers app
BoilerDroid said:
Radiance_Gold by @IND190
Converted, installed, but won't apply theme...
I'm trying to convert: http://forum.xda-developers.com/showthread.php?t=2057131
d2vzw running Jelly Bean's 15
-------------------------
-------------------------
Version 2.0 by AngelDE98
-------------------------
[FILE:INAPK] C:\Users\_\Desktop\SGS3\Apktool JB 4.2.2_Signed_By Rizal Lovins Sundanesse\com.ind190.theme.radiance_gold.apk
[FILEUTAPK] C:\Users\_\Desktop\SGS3\Apktool JB 4.2.2_Signed_By Rizal Lovins Sundanesse\GoldTheme-2.apk
[FILE:APKTOOL] C:\Users\_\Desktop\SGS3\Apktool JB 4.2.2_Signed_By Rizal Lovins Sundanesse
[FILE:TMPDIR] C:\Users\_~1\AppData\Local\Temp\CMTXTE
[OS:ID] WINDOWS
[OS:SHELL] cmd
-------------------------
Beginning conversion...
Clearing tmpdir
Decompiling inapk into tmpdir
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\_\apktool\framework\1.apk
I: Loaded.
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...
Removing the public.xml
redirections.xml exists: NO
Creating new redirections.xml
Adding permission into AndroidManifest.xml
Recompiling / bulding new apk
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
Warning: AndroidManifest.xml already defines minSdkVersion (in http://schemas.android.com/apk/res/android); using existing value in manifest.
Warning: AndroidManifest.xml already defines targetSdkVersion (in http://schemas.android.com/apk/res/android); using existing value in manifest.
I: Building apk file...
Signing new apk
Done!
Click to expand...
Click to collapse
I'm getting this error too! when it gets towards the end you can see the apk in the folder and by the time its done it simply disappears. any ideas why that is? Im sure this tool just needs some more work and in time everything will work out but as it sits right now its a total dud. But Ill keep watch on this. Oh yeah by the way Im running an sgs4 with stock 4.2.2
thatsupnow said:
I'm getting this error too! when it gets towards the end you can see the apk in the folder and by the time its done it simply disappears. any ideas why that is? Im sure this tool just needs some more work and in time everything will work out but as it sits right now its a total dud. But Ill keep watch on this. Oh yeah by the way Im running an sgs4 with stock 4.2.2
Click to expand...
Click to collapse
Maybe it's a problem with the signing... The temporary apk you see gets signed and replaced. Have you got the signer and test keys in the apktool folder? Maybe I'll include the signer and test keys.
Sent from my Nexus 7 using xda app-developers app
AngelDE98 said:
Maybe it's a problem with the signing... The temporary apk you see gets signed and replaced. Have you got the signer and test keys in the apktool folder? Maybe I'll include the signer and test keys.
Sent from my Nexus 7 using xda app-developers app
Click to expand...
Click to collapse
Yeah I made sure to grab everything that was needed
Sent from my SGH-I337M using xda premium
Here's my log:
-------------------------
-------------------------
Version 2.0 by AngelDE98
-------------------------
[FILE:INAPK] D:\hololight.apk
[FILEUTAPK] d:\holoconverted.apk
[FILE:APKTOOL] D:\apktool
[FILE:TMPDIR] C:\Users\Admin\AppData\Local\Temp\CMTXTE
[OS:ID] WINDOWS
[OS:SHELL] cmd
-------------------------
Beginning conversion...
Clearing tmpdir
Decompiling inapk into tmpdir
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Admin\apktool\framework\1.apk
I: Loaded.
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x0a03007c
at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:61)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:58)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:54)
at brut.androlib.res.data.value.ResReferenceValue.getReferent(ResReferenceValue.java:62)
at brut.androlib.res.data.value.ResReferenceValue.encodeAsResXml(ResReferenceValue.java:46)
at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlAttr(ResScalarValue.java:44)
at brut.androlib.res.data.value.ResStyleValue.serializeToResValuesXml(ResStyleValue.java:48)
at brut.androlib.res.data.value.ResBagValue.serializeToResValuesXml(ResBagValue.java:40)
at brut.androlib.res.AndrolibResources.generateValuesFile(AndrolibResources.java:418)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:241)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:115)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:99)
at brut.apktool.Main.cmdDecode(Main.java:141)
at brut.apktool.Main.main(Main.java:72)
Removing the public.xml
redirections.xml exists: YES
Adding permission into AndroidManifest.xml
Recompiling / bulding new apk
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathNotExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java:164)
at brut.androlib.Androlib.build(Androlib.java:181)
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.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:103)
at brut.androlib.Androlib.readMetaFile(Androlib.java:160)
... 4 more
Signing new apk
java.io.FileNotFoundException: d:\holoconverted.apk (O sistema n ̄o pode encontrar o arquivo especificado)
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.jar.JarFile.<init>(Unknown Source)
at java.util.jar.JarFile.<init>(Unknown Source)
at com.android.signapk.SignApk.main(SignApk.java:437)
Done!
this tools is awesome
i hope the dev can get many help to get this tools works perfect
i got some problem here, when im start converting and the log said:
Code:
Version 2.0 by AngelDE98
-------------------------
[FILE:INAPK] D:\Kev\Application\Android\maxc\Sense5.apk
[FILE:eek:UTAPK] D:\Kev\Application\Android\maxc\Apktool JB 4.2.2_Signed_By Rizal Lovins Sundanesse\kam.apk
[FILE:APKTOOL] D:\Kev\Application\Android\maxc\Apktool JB 4.2.2_Signed_By Rizal Lovins Sundanesse
[FILE:TMPDIR] C:\Users\RYFK\AppData\Local\Temp\CMTXTE
[OS:ID] WINDOWS
[OS:SHELL] cmd
-------------------------
Beginning conversion...
Clearing tmpdir
Decompiling inapk into tmpdir
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\RYFK\apktool\framework\1.apk
I: Loaded.
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...
Removing the public.xml
redirections.xml exists: NO
Creating new redirections.xml
Adding permission into AndroidManifest.xml
Recompiling / bulding new apk
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 9, --target-sdk-version, 15, -F, C:\Users\RYFK\AppData\Local\Temp\APKTOOL8117237803851350007.tmp, -x, -I, C:\Users\RYFK\apktool\framework\1.apk, -S, C:\Users\RYFK\AppData\Local\Temp\CMTXTE\res, -M, C:\Users\RYFK\AppData\Local\Temp\CMTXTE\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, 9, --target-sdk-version, 15, -F, C:\Users\RYFK\AppData\Local\Temp\APKTOOL8117237803851350007.tmp, -x, -I, C:\Users\RYFK\apktool\framework\1.apk, -S, C:\Users\RYFK\AppData\Local\Temp\CMTXTE\res, -M, C:\Users\RYFK\AppData\Local\Temp\CMTXTE\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:335)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:333)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 9, --target-sdk-version, 15, -F, C:\Users\RYFK\AppData\Local\Temp\APKTOOL8117237803851350007.tmp, -x, -I, C:\Users\RYFK\apktool\framework\1.apk, -S, C:\Users\RYFK\AppData\Local\Temp\CMTXTE\res, -M, C:\Users\RYFK\AppData\Local\Temp\CMTXTE\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:93)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:333)
... 6 more
Caused by: java.io.IOException: Cannot run program "aapt": CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessBuilder.start(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at brut.util.OS.exec(OS.java:84)
... 7 more
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
... 11 more
Signing new apk
java.io.FileNotFoundException: D:\Kev\Application\Android\maxc\Apktool JB 4.2.2_Signed_By Rizal Lovins Sundanesse\kam.apk (The system cannot find the file specified)
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.jar.JarFile.<init>(Unknown Source)
at java.util.jar.JarFile.<init>(Unknown Source)
at com.android.signapk.SignApk.main(SignApk.java:437)
Done!
What the hell i must do ?
ApkTool has got problems running. Guessing it doesn't even work when running in cmd / terminal:
ApkTool needs the Android SDK tools installed to function properly (actually only aapt but it's still wiser to install the whole toolset).
And with installed I mean installed and inside the $PATH.
There should be tutorials about installing the Android SDK tools (or just aapt).
Another thing I would try (guessing it WORKS in cmd / terminal): Just place the aapt binary next to the ApkTool.jar / converting tool .jar as Java's exec default path should check for files in the working directory (where you run the .jars from), too.
When these don't work, just tell me.
Sent from my Nexus 7 using xda app-developers app
so it's necessary to install Android SDK ??
Unfortunately, yes. You should've been noticed about that when downloading ApkTool as it's not my fault but ApkTool's fault.
Sent from my Nexus 7 using xda app-developers app
Is this still active?
Are you able to create a stand alone jar where you can just drop package xmls into a folder, run the jar and it creates a redirections.xml from the package xmls in the folder ?
Yeah, I could do it when I find some more free time. I've been busy with another project.
Also, I'll try to make the project open-source by putting it on GitHub. Maybe other people would want to help me.
Sent from my Nexus 7 using xda app-developers app

[Q] Default Translation when compiling own ROM

I tried to build a rom on my PC but every time it exits after warnings like:
aapt: warning: string 'mediaSize_na_legal' has no default translation in frameworks/base/core/res/res; found: az az_AZ et hy ka km lo mn ms ne ne_NP si si_LK
There are lots of these warnings with just different sting-names. I downloadet die Omnirom source, just as it is written in the official thread. I also tried out some other roms like Cyanogenmod and ChameleonOS (both for Tate and m7ul - same warning - same stop) but they all stop compiling after these warnings.
Now my question: How can I add a default translation? Which file(s) do I have to edit?
Thanks for your help.

Categories

Resources