[GT-P6800][3g]Power Menu Mod - adds recovery, reboot options - Galaxy Tab 7.7 Android Development

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

Related

[LANG][PT-BR][Manila 2.5] Brazilian Portuguese Files | Miri's Rev 8.0 Tested [ONLINE]

when i had manila 2.0 or 2.1 installed in my blackstone, i had no problems using brazilian portuguese manila by changing a registry setting.
in these new releases (i don't know about the old ones 'cause i have been flashing manila 2.5 roms only recently), after doing the 'registry hack', all i get is an almost unusable user interface. ie, home screen shows no weather information; internet tab does not show add or remove favorite shortcut; and much more. all because some manila files are missing and/or incomplete.
i have quickly edited some pt-br files, so now i can have manila 2.5 in brazilian portuguese without having eye sore or headaches.
in no way these files are meant to be 100% error free. they are intended for those who want to use pt-br manila 2.5 at least decently before it's official launch with the official language files, which i hope to be happening soon. they were extracted from and tested with manila 2.5 from miri's rev 8.0. they may or may not work with other rom releases.
i cannot be held responsible for any damage caused by the files provided/mentioned here. use them at your own risk!
PROGRAMS NEEDED:
1. Total Commander (or any other decent file manager)
2. PHM Registry Editor (or any other decent registry editor)
INSTRUCTIONS:
1. Download the file provided below. Unzip it to your SD Card.
2. Using PHM Registry Editor, change the manila language code. go to HKEY Current User => MUI => CurLang. Change the hexadecimal value from 409 (en-us) to 416 (pt-br).
3. Using Total Commander, copy all the manila files from your SD card to the Windows folder.
4. Soft reset device or restart TouchFlo 3D.
Thank you so much!!!!
Finally someone remind us from South America, I relly appreciate your rooms are the best for me, I have no problems with english but is nice when we have something in our native language.
great !!!
JRRTPS
Sao Paulo-Brazil
Valeu, vou testar.
Tem para o 2.1 também?
para o 2.1 basta fazer a modificação no registro de 409 para 416 e reiniciar.
for manila 2.1 you just have to change the registry value from 409 to 416 e soft reset.
para o 2.1 basta fazer a modificação no registro de 409 para 416 e reiniciar.
for manila 2.1 you just have to change the registry value from 409 to 416 e soft reset.
Can you tell if it works in WM 6.5 23064 or higher, with the start there?
i'm on wm 6.5 21xxx, so i can't test this for you, but if it has manila 2.5 installed then it should work, because these files are exclusively manila related.
make a backup of the files to be replaced in the '\windows' folder and try it, if it does not work, just write backup files again and you'll be ok.
lang pt-pt
boas pessoal...
alguem consegue arranjar manila 2.5 pt-pt para code 816?????
I took the hint in the forum that I participate pdabr.com:
Sunao said:
I do not know if you tested, it made the change here HKCU -> MUI -> CurLang [/ b] to 1033 [/ b] to 1046 [/ b] and was in Portuguese of Brazil. I tested the v0.05 Maryon, Xannytech and some manila 2.1.
Values above decimal.
EDIT: soft-reset after the change. Use Total Commander (\ \ Plugins \ registry \ HKLM \ MUI \ CurLang) or Regedit.
Click to expand...
Click to collapse
In short: Changing the registry from 1033 to 1046 is ptbr! tested beauty here!
sorry for reactivating such an old post
but i am from brasil too
did the steps but no success
some differences:
1 - my phone didn'n have the CurLang DWORD. only on called SysLang. Added CurLan manually but nothing
2 - Using dusk manila 2.5, not default manila
any hints?
[]s
got it working
but only with default manila
found some bugs too
but with the correct files, it will be easy to solve
[]s
will_santana said:
sorry for reactivating such an old post
but i am from brasil too
did the steps but no success
some differences:
1 - my phone didn'n have the CurLang DWORD. only on called SysLang. Added CurLan manually but nothing
2 - Using dusk manila 2.5, not default manila
any hints?
[]s
Click to expand...
Click to collapse
Weird. Already tested in maryone, Miri and Energyrom and all worked perfectly!
If you had followed the previous procedure, it may be, the hint that I was the only side to register!
Try HardReset and then change the record and then reset!
for anyone looking for PT-PT or PT-BR translations
as read here in the forum, Manila 2.5 IS ALREADY multilanguage
installed the last Miri ROM 6.5 Manila 2.5 (build 1920) Rev 10.1
installed PHM Regedit
changed HKCU->MUI->CurLang from 1033 to 1046 (or 0x416)
soft reset
Manila 2.5 in PT-BR just as simple as that
some screens are missing (actually apps screens as Comm Manager)
I´ll try to translate or copy the right ones found in this post and make a new package for Manila 2.5
It may work for some other languages too
Hope it helps
[]s
tested and working on Xperia with some issues like weather (menu and update) and Twitter (All)
HolySorento said:
tested and working on Xperia with some issues like weather (menu and update) and Twitter (All)
Click to expand...
Click to collapse
check your manila build
had the same problems with 1919 build and they were solved in 1920
[]s
Aqui está tudo o que necessitas...
marcopintito said:
boas pessoal...
alguem consegue arranjar manila 2.5 pt-pt para code 816?????
Click to expand...
Click to collapse
Caro @marcopintito, deixo-te aqui umas ligações onde poderás aprender como alterar Manila para PT-PT (HKCU->MUI->CurLangcode 2070 e não o 816 ). No primeiro 'link' encontras um zip com todos os ficheiros para extraires para a directoria windows utilizando o Total Commander ou o Resco Explorer... depois um Soft-Reset.
1º http://forum.xda-developers.com/showpost.php?p=4554257&postcount=1574
2º sobre o código PT e todas as linguagens http://www.science.co.il/language/Locale-Codes.asp?s=hexadecimal
Cumps
Sorry Off Topic:
I can try other ROM in my Tytn II (Claro, original ROM). But never do this.
Where I can find some good ROM, with step by step to follow. What ROM is better to my Tynt II, 6.1 or 6.5?
Thanks in advance and best regards!
manila 2.5xxx ptg
marcopintito said:
boas pessoal...
alguem consegue arranjar manila 2.5 pt-pt para code 816?????
Click to expand...
Click to collapse
Use manila 2.5 ptg cab of DarkG rom
link: http://forum.xda-developers.com/showthread.php?t=706570
good luck

Build framework-res.apk?

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

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

[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

[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