Hey guys, I need some assistance of those who know please. I decompiled the launcher2.apk of eos Xoom ROM and made changes to
res/layout-port/launcher.xml
And to
res/layout-land/launcher.xml
By deleting some lines related to launcher screens. By default they come 5, I made them 3.
<include android:id="@id/cell1" layout="@layout/workspace_screen" />
<include android:id="@id/cell2" layout="@layout/workspace_screen" />
<include android:id="@id/cell3" layout="@layout/workspace_screen" />
<include android:id="@id/cell4" layout="@layout/workspace_screen" />
<include android:id="@id/cell5" layout="@layout/workspace_screen" />
I also made launcher:defaultScreen="1" to set the default screen to be the middle one.
I compiled the apk and replaced the original one with the same permission , however' the launcher remains with 5 screens...
Can anyone please point out how to get around this?
The way I compiled is using apktool manager and deleted resources.arcs from the keep folder !!! Does this need to be signed even if it is a system apk?
As soon as this works, I thought to provide a mod for xoomers...
Sent from my MZ601 using Tapatalk 2
Guys... no one?!!
Come on.... someone must have an answer here.
I decompiled the modded launcher and found the changes I made are gone and back to 5 screens !!
Sent from my MZ601 using Tapatalk 2
Have you tried adding workspaces? I for one would like 7 instead of 5.
Off topic: are there any launchers that work like compiz fusion under ubuntu?
Sent from my SGH-I717R using xda premium
Eun-Hjzjined said:
Have you tried adding workspaces? I for one would like 7 instead of 5.
Off topic: are there any launchers that work like compiz fusion under ubuntu?
Sent from my SGH-I717R using xda premium
Click to expand...
Click to collapse
The problem is that I am trying to make the changes I do persistent . However, whenever I compile the apk, it goes back to 5 screens. If I can manage removing screens, I will be able to add more. All I need is a little help of guideness if someone knows, plz step in...
Sent from my MZ601 using Tapatalk 2
wesamothman said:
The problem is that I am trying to make the changes I do persistent . However, whenever I compile the apk, it goes back to 5 screens. If I can manage removing screens, I will be able to add more. All I need is a little help of guideness if someone knows, plz step in...
Sent from my MZ601 using Tapatalk 2
Click to expand...
Click to collapse
ok you have it right, however i can 99.99% guarantee you that your problem is with apkmanager
becasue there is no why that once you make the changes that the changes will "revert" back to that what is was previously
use good old fashion cmd or terminal ( if on linux) or even simpler build it from the source,
however if you insist on using apktool use these ( which are moddified for ICS/JB) https://dl.dropbox.com/u/25886627/apktoo_8.15.12.zip
only follow these steps to the "T"
put the zip anywhere, open cmd ( command promt)
and CD to C:\were\extracted\zip\is\
and then take the framework-res.apk and the Launcher2.apk
and place both in the same folder you extraacted zip to
now in cmd type
apktool if framework-res.apk
followed by
apktool d Launcher2.apk
now this will decompile the apk to :\were\extracted\zip\is\Launcher2\
make changes
back in cmd type
apktool b Launcher2
now navigate to :\were\extracted\zip\is\Launcher2\build\apk\
copy the original Launcher2.apk from :\were\extracted\zip\is\ to :\were\extracted\zip\is\Launcher2\build\apk\
OPEN not extract the apk with 7zip ( or any archive manager) and now click and highlight from the :\were\extracted\zip\is\Launcher2\build\apk\ the res folder the classes.dex file and the resouces.arsc and drag them into the root of the Launcher2.apk that is open in 7zip
now that is the ready file to be sent to device
about signing...
system apps you dont sign becasue you dont have the authers signing tools, so if you try to simple sideload it an error of mismatching keys will prevent the app from installing
becasue we are flashing it ( or adb push) signing is not needed.
now i have not looked at the launcher as far as the amoutn of home screens ( done some customization for my own use on the n7) but what you have said you did should without a doubt work
runandhide05 said:
ok you have it right, however i can 99.99% guarantee you that your problem is with apkmanager
becasue there is no why that once you make the changes that the changes will "revert" back to that what is was previously
use good old fashion cmd or terminal ( if on linux) or even simpler build it from the source,
however if you insist on using apktool use these ( which are moddified for ICS/JB) https://dl.dropbox.com/u/25886627/apktoo_8.15.12.zip
only follow these steps to the "T"
put the zip anywhere, open cmd ( command promt)
and CD to C:\were\extracted\zip\is\
and then take the framework-res.apk and the Launcher2.apk
and place both in the same folder you extraacted zip to
now in cmd type
apktool if framework-res.apk
followed by
apktool d Launcher2.apk
now this will decompile the apk to :\were\extracted\zip\is\Launcher2\
make changes
back in cmd type
apktool b Launcher2
now navigate to :\were\extracted\zip\is\Launcher2\build\apk\
copy the original Launcher2.apk from :\were\extracted\zip\is\ to :\were\extracted\zip\is\Launcher2\build\apk\
OPEN not extract the apk with 7zip ( or any archive manager) and now click and highlight from the :\were\extracted\zip\is\Launcher2\build\apk\ the res folder the classes.dex file and the resouces.arsc and drag them into the root of the Launcher2.apk that is open in 7zip
now that is the ready file to be sent to device
about signing...
system apps you dont sign becasue you dont have the authers signing tools, so if you try to simple sideload it an error of mismatching keys will prevent the app from installing
becasue we are flashing it ( or adb push) signing is not needed.
now i have not looked at the launcher as far as the amoutn of home screens ( done some customization for my own use on the n7) but what you have said you did should without a doubt work
Click to expand...
Click to collapse
Thx a million times. I will do as said
Sent from my MZ601 using Tapatalk 2
Hi runandhide05. First allow me to send you a bigggggg thank you for your apktool. It really was apktool problem.
I did as you suggested, still, didn't work from the first time (modified to 3 screens) although the changes were persistent this time. so, in addition to the above files, i had to modify the following as well:
workspace.xml in layout-sw720dp
and public.xml in res/values in which I had to delete
<public type="id" name="cell4" id="hex val xxxxx" />
<public type="id" name="cell5" id="hex val xxxxx" />
So, now I tested with these changes and I got 3 screens
I will try to do 1 screen, and 7 screens.
Thanks again. you are truly appreciated.
EDIT: 1 Screen is successful too. I will try 7 soon.
EDIT: 7 Screens is successful too
I will try to write a flashable zips for them and post them as mods ...
wesamothman said:
Hi runandhide05. First allow me to send you a bigggggg thank you for your apktool. It really was apktool problem.
I did as you suggested, still, didn't work from the first time (modified to 3 screens) although the changes were persistent this time. so, in addition to the above files, i had to modify the following as well:
workspace.xml in layout-sw720dp
and public.xml in res/values in which I had to delete
<public type="id" name="cell4" id="hex val xxxxx" />
<public type="id" name="cell5" id="hex val xxxxx" />
So, now I tested with these changes and I got 3 screens
I will try to do 1 screen, and 7 screens.
Thanks again. you are truly appreciated.
Click to expand...
Click to collapse
ah, sorry completely forgot about the public XML. glad u got it
Sent from my Galaxy Nexus using Tapatalk 2
runandhide05 said:
ah, sorry completely forgot about the public XML. glad u got it
Sent from my Galaxy Nexus using Tapatalk 2
Click to expand...
Click to collapse
Dear runandhide, your brilliant advises/expertise is what helped me getting these mods in place. Thx again trillion times and I shall never forget that. I will finalize the flashable zips as mods in dev forum for xoomers of team eos jellybean interest.
Sent from my MZ601 using Tapatalk 2
Awesome work. Pm me when you have 7 screens cwm.zip
EOS3 N132 @ MZ604 [XDA HD]
Stock ICS @ SGH-i717R [XDA Premium]
Eun-Hjzjined said:
Awesome work. Pm me when you have 7 screens cwm.zip
EOS3 N132 @ MZ604 [XDA HD]
Stock ICS @ SGH-i717R [XDA Premium]
Click to expand...
Click to collapse
It will available today on DEV Forum. 1 screen, 3 screens, 5 screens (default) and 7 screens.
Keep an eye on the dev section.
Here is the link for the mods. 1,3,5,7,9 screens mods added.
http://forum.xda-developers.com/showthread.php?p=30306937
Sent from my MZ601 using Tapatalk 2
Related
Anyone know how to get a Translucent notification tray background in 2.3?
martijua said:
Anyone know how to get a Translucent notification tray background in 2.3?
Click to expand...
Click to collapse
It has to be done in systemui.apk. Have to open that specific file to the rom your running and edit the files inside. What exact rom are you running?
fdb8231 said:
It has to be done in systemui.apk. Have to open that specific file to the rom your running and edit the files inside. What exact rom are you running?
Click to expand...
Click to collapse
Thanks. I am running the stock rooted deodexed rom.
Here is what I did:
1 nandoid backup
2 adb devices
3 adb pull /system/app/SystemUI.apk SystemUI.apk (made a backup copy of this file)
4 open the SystemUI.apk file with winrar
5 inserted the "status_bar_header_background.9.png", "status_bar_close_on.9.png" and a transparent "status_bar_background.png" into the SystemUI.apk's \res\drawable-hdpi folder
6 adb remount
7 adb push SystemUI.apk /system/app/
8 adb reboot
as you can see from the attached screen shot...the "status_bar_header_background.9.png" and the "status_bar_close_on.9.png" worked but the transparent "status_bar_background.png" isnt transparent.
Any ideas?
martijua said:
Thanks. I am running the stock rooted deodexed rom.
Here is what I did:
1 nandoid backup
2 adb devices
3 adb pull /system/app/SystemUI.apk SystemUI.apk (made a backup copy of this file)
4 open the SystemUI.apk file with winrar
5 inserted the "status_bar_header_background.9.png", "status_bar_close_on.9.png" and a transparent "status_bar_background.png" into the SystemUI.apk's \res\drawable-hdpi folder
6 adb remount
7 adb push SystemUI.apk /system/app/
8 adb reboot
as you can see from the attached screen shot...the "status_bar_header_background.9.png" and the "status_bar_close_on.9.png" worked but the transparent "status_bar_background.png" isnt transparent.
Any ideas?
Click to expand...
Click to collapse
You should use 7 zip then you can open and edit without unzipping. Is this like what you want
Sent from my PC36100 using XDA App
More like this
It used to work in 2.2.
Oh, you dont have to unzip the apk when using winrar.
I believe that in system ui that is actually part of an xml and needs to be moddified using xml.
Is this a simple PNG swap, or are there any XML/smali edits required?
if you're having a bunch of trouble, send it on over to me and i'll help u out.
_Burst_ said:
Ok, check it out, obviously you will need to know how to use apktool. Do not ask me how to use it. Educate yourself.
To make the Notification Bar transparent I followed these steps:
-decompile SystemUI.apk
This is a direct quote and was very similar to what I had to do. The only different is that the code:
isn't exactly that. But, just look for the the const/4 and corresponding 0x2 and change that one to "-0x3."
Also, you may have to hunt for it, but it is there about 5-8 lines up.
To make the Notification Bar Shade transparent I followed these steps:
Again, direct quote and same situation, the v# might not match but just change the "0x2" to "-0x3."
And there ya go. Thanks to Master and ogdobber.
Click to expand...
Click to collapse
Enjoy yoself
SteelH said:
Is this a simple PNG swap, or are there any XML/smali edits required?
Click to expand...
Click to collapse
"status_bar_header_background.9.png" and the "status_bar_close_on.9.png" are simple PNG swap in the SystemUI.APK
Transparent notification background in the deodexed [ROM][STOCK] --- Version 4.22.651.2 --- Odexed & De-Odexed --- that was posted by xHausx requires that the SystemUI.apk be decompiled and then edit the status_bar_tracking.xml changing the default "android:background="#ff000000"" to "android:background="@drawable/shade_bg"". I'm getting a W: could not decode attr 0x20 error when decompiling so I havent been able to successfully make the changes to get the transparent shade_bg notification tray backdound to work.
If anybody can get this done an post the updated SystemUI.apk we'd appreicate it!
I finally figured out what was causing the error and have successfully decompiled the systemui.apk. Next i'm going to try what _Burst_ posted.
_Burst_ said:
Enjoy yoself
Click to expand...
Click to collapse
status_bar_tracking.xml does not have the line in it that is referenced in the link that you posted. I've attached the file.
martijua said:
status_bar_tracking.xml does not have the line in it that is referenced in the link that you posted. I've attached the file.
Click to expand...
Click to collapse
What? yes it is.
so the numbers are different...
Here comes the airplane.... zoooooooooooooooooooooom.
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.TrackingView androidrientation="vertical" androidaddingLeft="0.0px" androidaddingRight="0.0px" androidaddingBottom="0.0px" android:focusable="true" android:visibility="gone" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android">
<View android:id="@id/background" android:background="@drawable/shade_bg" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0" />
<LinearLayout androidrientation="vertical" android:id="@id/swtich_buttons" android:layout_width="fill_parent" android:layout_height="wrap_content">
<View android:background="@drawable/divider_horizontal_dark_opaque" android:layout_width="fill_parent" android:layout_height="1.0px" />
<View android:id="@id/tab_header" android:background="@drawable/list_item_background" android:layout_width="fill_parent" android:layout_height="4.0sp" />
Click to expand...
Click to collapse
martijua said:
"status_bar_header_background.9.png" and the "status_bar_close_on.9.png" are simple PNG swap in the SystemUI.APK
Transparent notification background in the deodexed [ROM][STOCK] --- Version 4.22.651.2 --- Odexed & De-Odexed --- that was posted by xHausx requires that the SystemUI.apk be decompiled and then edit the status_bar_tracking.xml changing the default "android:background="#ff000000"" to "android:background="@drawable/shade_bg"". I'm getting a W: could not decode attr 0x20 error when decompiling so I havent been able to successfully make the changes to get the transparent shade_bg notification tray backdound to work.
If anybody can get this done an post the updated SystemUI.apk we'd appreicate it!
Click to expand...
Click to collapse
I'm working on it . I'm at work now but tomorrow I'm going to hit it pretty hard.
Uot kitchen wouldn't even work for it so.... I'll have to look at the smalis and change the const/
But the v #'s are off and don't match like the op said. But it only looks like there is 2 options for it . I'm just going to do both and report back. If you get it working before I do hit me up. Thanks.
I havent got this to work. I dont think much people have as I dont see any themes or roms with this feature.
martijua said:
I havent got this to work. I dont think much people have as I dont see any themes or roms with this feature.
Click to expand...
Click to collapse
it's in many cm7 themes. should be around soon enough for sense.
Finally got it. I used the uot kitchen site to get it going. Will be sending them a donation after I get home from work. \m/
Widgets
martijua said:
Finally got it. I used the uot kitchen site to get it going. Will be sending them a donation after I get home from work. \m/
Click to expand...
Click to collapse
What are all the various widgets you are using there? They all look pretty useful!
Minimal Text Date, Time, Weather, Battery
S2 Calendar widget
CalWidget
martijua said:
Finally got it. I used the uot kitchen site to get it going. Will be sending them a donation after I get home from work. \m/
Click to expand...
Click to collapse
Looks sweet. Unfortunately the kitchen does not work for the drop down on any kingdom ROM. I've tried to no avail.
Sent from my PC36100 using XDA App
jholtom said:
Hi, All,
I got it working for screen off only
The changes are in framework-res.apk
Attached is the apk for Prime 2.0.4 ONLY!
To Use:
remove the unsigned- part from the name and use root explorer or adb push to put it in system/framework/
and then reboot!
To do this mod to another rom:
Decompile using apktool or apkmanager (which utilizes apktool) and then...
find bools.xml in res/values of a decompiled framework-res and then find this line
Code:
<bool name="config_animateScreenLights">true</bool>
and change the true to false
save and recompile and push or use root explorer to apply the new file
Click to expand...
Click to collapse
I'm quoting and reuploading to this post in case anyone else wants to try it out.
Jholtom do you mind if I post this on RootzWiki as well, giving you full credit?
+1
Would be nice.
Nothing so far. I too have been looking.
http://forum.xda-developers.com/showthread.php?t=1267728
I know you already mentioned it but there's actually two apps
Sucesss!!!!!!!!!!!!!!!
Hi, All,
I got it working for screen off only
The changes are in framework-res.apk
Attached is the apk for Prime 2.0.4 ONLY!
To Use:
remove the unsigned- part from the name and use root explorer or adb push to put it in system/framework/
and then reboot!
To do this mod to another rom:
Decompile using apktool or apkmanager (which utilizes apktool) and then...
find bools.xml in res/values of a decompiled framework-res and then find this line
Code:
<bool name="config_animateScreenLights">true</bool>
and change the true to false
save and recompile and push or use root explorer to apply the new file
Made a stupid mistake!! I can't remember how to push the file using ADB and my Transformer is force closing like crazy hahaha. Can someone give me some quick instructions? Watched a couple videos but they're all different and not working. I've got ADB running, it's mounted, the .apk is in the ADB folder but I can't get it to push. Please help! Thanks so much!
EDIT: Nevermind. Also a stupid mistake haha, that was a close one.
Thanks for doing this jholtom, I've wanted this for a while as well!
awesoe works nice man ought to make a thread for it so people can find it... or edit this one...
Sent from my Optimus Prime Transformer
Nice work. Seems I have to choose between this or the battery percentage mod but not both.
Thanks jholtom . You should contact roach so he can have it built in the rom!
It works! Tha mate.
I dont really mind where it gets posted
Credit is always nice though
jholtom said:
Decompile using apktool or apkmanager (which utilizes apktool) and then...
find bools.xml in res/values of a decompiled framework-res and then find this line
Code:
<bool name="config_animateScreenLights">true</bool>
and change the true to false
save and recompile and push or use root explorer to apply the new file
Click to expand...
Click to collapse
Can't seems to find res/values (using apkmanager do I need to decompile or extract APK?)
^ decompile.
Sent from samsung vibrant
Alex9090 said:
^ decompile.
Sent from samsung vibrant
Click to expand...
Click to collapse
Thanks. Yeah finally figured how to decomplie. Changed the field from true to false. Just trying to see what i'm doing wrong cause after compiling it back it doesn't have the crt shut down
Theres some sort of setting that can apparently cause it to work about 7/8 of the time but not that other 1/8. I'm looking around to see what it is and how it can be resolved.
And just in case did you push or install with root explorer?
jholtom said:
Theres some sort of setting that can apparently cause it to work about 7/8 of the time but not that other 1/8. I'm looking around to see what it is and how it can be resolved.
And just in case did you push or install with root explorer?
Click to expand...
Click to collapse
I used Root Explorer, I'll try to push it to see if it's any better.
EDIT: I just compile again and it seems to be working better. Thank you.
Hi all! First off, thanks to jholtom for figuring this out. I have thrown this mod in my PCB Blue theme (beta testing only now), and confirm that it works, BUT only when on the homescreen. I.E. if you are in any other app, the CRT animation will not run. Switching back to the homescreen does allow it to work again though. Another trick (if you have the kb dock) is to hit the "LOCK" key (top-right) while in another app, and then the CRT animation appears to play on further on/off toggles, but without unlocking the screen.
Not sure what the cause/solution of that may be, but I did find this thread on RootzWiki that also shows how to edit a .smali file in 'services.jar'. I am too lazy to decompile 'services.jar' and the .smali script, but if someone else is able to, maybe we can see if the further mods will allow it to work 100% of the time. Here's that thread:
[DEV] Enabling CRT ON & OFF Animation in Roms [HOW-TO]
I hope Roach gets wind of this, and maybe his expertise will point us in the right direction for how to get it working perfectly. It is such a simple animation overall, but one that gives us such joy and pleasure
Cheers!
Was hoping you would catch wind of this scar45 and put it in your theme. And nice work to you jholtom!
I hadn't looked at the CRT off animation for HC before as I read it didn't work right but I also didn't know about the potential fix in the services.jar file.
I'll have a wee play about and see what I can come up with.
Can any tell me if the issue still exists where it only works in landscape?
Roach2010 said:
Can any tell me if the issue still exists where it only works in landscape?
Click to expand...
Click to collapse
It work while in portrait also but the animation only shut down in landscape.
Like on the phone it only shut down in portrait. Hope I make sense.
It only work when you're on one of the home screen and not anywhere else.
Yeah, I got it working for screen on and off but only from the Home Screen. When you do if from within an app the TF flips out.
Hey guys, I finally managed to get it to work! I've done the editting of the framework-res.apk and finally got the on-screen button to work!
After you downloaded the file, unzip it and use adb and push it into your system/framework.res
Or:
Unzip it and put it into the flashable zip, system/framework. Then flash it via CMW.
NOTE: To disable the capacitive buttons, download the four file from the link and copy paste it into your system/usr/keylayout.
*remember to back up the 4 original files before replacing it!
Credit to " adamo3957 " for telling me this!
http://www.mediafire.com/?jzcpylhc0996xa4
http://www.mediafire.com/?iuuinn9t0m1vrww
http://www.mediafire.com/?2uw2z7oubw9it2l
http://www.mediafire.com/?7aivvw3acd25rl7
Sorry I had to upload to mediafire, because my PC is not working..
Alternate Link: http://db.tt/h8Bd1nIZ
marhensa said:
-----------------------------------------------
Make sure you have JRE installed on your system
Download and install JRE first
* Download JRE 64 bit for 64 bit system *
- Get your original framework-res.apk file from /system/framework/framework-res.apk
- Use adb pull, or just simply take it from inside ROM's zip
- Download the attachment, or this link (APKTool) (use this APKTool, some APKTools version cannot re-compile)
- Extract APKTool.zip
- In Windows Explorer, press hold Shift and right click APKTool folder
- Choose "Open command window here"
- In command prompt window, type:
apktool d framework-res.apk framework-res-edit
- APK is now decompiled, so now you can edit something, like changing the images or editing XMLs.
- Decompiled APK is on folder "framework-res-edit"
- Go to folder \framework-res-edit\res\values
- There's two file should be edited, bools.xml and dimens.xml
- For bools.xml, find this line, and change it to true, then save.
<bool name="config_showNavigationBar">true</bool>
- For dimens.xml, find this line, and change it to 36 (36 of height, so won't take much space), save.
<dimen name="navigation_bar_height">36.0dip</dimen>
- Back to the command prompt and then type:
apktool b framework-res-edit
- Just wait, it would take a minutes.. and now APK is re-compiled
if anything goes right, it should be like this screenshot:
ps:
on decompile and re-compile command i'm using "framework-edit-res" as an example of folder name,
you could use another folder name, it's your choice.
IMPORTANT..!!
In this case (editing a framework),
just DO NOT USE a recompiled APK on \framework-res-edit\dist
Use manual method, instead.
Because "resources.arsc" file inside the framework APK should not be compressed at all,
otherwise, you'll get bootloop.
resources.arsc should ONLY be "stored" on archive file, not "compressed".
So, here we go..
- Rename the ORIGINAL framework-res.apk to framework-res.zip
- OPEN it with 7zip or WinRAR, just let the window stay opened
- Go to folder \framework-res-edit\build\apk then delete AndroidManifest.xml file
- Drag "res" folder into 7zip / WinRAR window, so the res folder is now updated
- Drag resources.arsc file into 7zip / WinRAR window, BUT set the compression as "STORE" only
- Now all the files on original framework-res should be updated with the edited one
- Rename framework-res.zip to framework-res.apk.
- You are good to go, use that new framework in your system.
- Use adb push or create update zip to put it on your rom, your choice..
- Make sure wipe cache + wipe dalvik cache after that.
-----------------------------------------------
Click to expand...
Click to collapse
*Awesome tutorial from marhensa
Updates:
Added: Flashable Zip for those who don't know how to use ADB
Added: (090712 Quarx Defy+/ GB kernel build) On Screen Button
Added: (100712 Quarx Defy+/ GB kernel build) On Screen Button
Added: (110712 Epsylon Defy/ Froyo kernel build) On Screen Button
DEFY+
Some Requests:
-Enable + Revert ( Epsylon 11072012 Defy Build):
https://www.dropbox.com/s/ix0f5nhk71y7s5b/(Multi) Epsylon 11072012 Defy Build.rar
-Enable + Revert ( Quarx 10072012 Defy+ Build):
https://www.dropbox.com/s/no864wps6s5zpyn/(Multi) Quarx 10072012 Defy+ Build.rar
*Download according to your model! Don't download the wrong ones, as I have added a Epsylon DEFY Build (11072012)!
yeah, great mod mate..
although it is little weird..
because we have physical touch button.
It would be useful if we can disable the physical touch-buttons so you don't touch them accidentally in-game.(That happens sometimes to me).
Yeah, I know. I'm now trying to find a way to disable it.
marhensa said:
yeah, great mod mate..
although it is little weird..
because we have physical touch button.
Click to expand...
Click to collapse
I like virtual buttons that's what ICS is all about.
Why would you waste screen estate when you have physical buttons?
Sent from my MB525 using xda premium
vap_66 said:
Why would you waste screen estate when you have physical buttons?
Sent from my MB525 using xda premium
Click to expand...
Click to collapse
Well, its up to your taste. If you like the ICS om-screen button, but don't mind wasting just a little bit space, then this is good. But you if don't like wasting a little space, then you can stick to the physical buttons.
I have this mod too running on my defy...... I was a bit confused at first yesterday while i was recompiling my framework-res..... Modding is sooo much fun
Kayant said:
I have this mod too running on my defy..
Click to expand...
Click to collapse
saw you have this running on a SoC green lens. did you follow same steps as OP?
Edit: bit the bullet and went ahead and followed OP instructions on green lens. didn't work. ah, oh well
How edited you the framework-res?
If I edit my and install it I can't boot anymore.
m11kkaa said:
How edited you the framework-res?
If I edit my and install it I can't boot anymore.
Click to expand...
Click to collapse
Decompile edit recompile...
I don't remember if sign is required or not...
Last time I signed and bootlooped!
Editmake sure it recompiles properly... apktool can have problems... recompiled file is smaller that original...
Sent from my MB525 using xda premium
what da ugly mada..
Using heeptick also can ma
.
Maybe you guys forgot this step
syllogyking said:
saw you have this running on a SoC green lens. did you follow same steps as OP?
Edit: bit the bullet and went ahead and followed OP instructions on green lens. didn't work. ah, oh well
Click to expand...
Click to collapse
m11kkaa said:
How edited you the framework-res?
If I edit my and install it I can't boot anymore.
Click to expand...
Click to collapse
I used this amazing guide by _calum_ for assistant as am a noob at editiing apks
http://forum.xda-developers.com/showpost.php?p=9126643#post9126643
I think you lot have forgotten to do the last step........ copy the edited files from the newly complied framework to your original........ I don't do that before and i got bootloops.
nogoodusername said:
Decompile edit recompile...
I don't remember if sign is required or not...
Last time I signed and bootlooped!
Editmake sure it recompiles properly... apktool can have problems... recompiled file is smaller that original...
Sent from my MB525 using xda premium
Click to expand...
Click to collapse
That's why I always stuck at boot loop when I use apktool. This thread is good , http://forum.xda-developers.com/showpost.php?p=9126643#post9126643 that's what I did to recompile it!
guffoe said:
what da ugly mada..
Using heeptick also can ma
.
Click to expand...
Click to collapse
Not that ugly.. hmm, the way you 'speak' looks familiar:... looks like singlish...
Nchls said:
I like virtual buttons that's what ICS is all about.
Click to expand...
Click to collapse
no it's not
Galaxy Nexus has them because it uses 0.35" of the screen, without them, Galaxy Nexus would have a 4.3" screen with physical buttons...
ICS is much much much more than just that, this is probably 1% of it, and it's only for Galaxy Nexus.
Only HD2 would have use of that
mihovil13 said:
no it's not
Galaxy Nexus has them because it uses 0.35" of the screen, without them, Galaxy Nexus would have a 4.3" screen with physical buttons...
ICS is much much much more than just that, this is probably 1% of it, and it's only for Galaxy Nexus.
Only HD2 would have use of that
Click to expand...
Click to collapse
I see..but I think that its quite cool to have no physical buttons.
Nchls could you please tell me how to disable capacitive buttons or reupload qtouck-touchscreen.kl and umts_jordan-keypad.kl because they are duplicates of the other two files
for me this is what ics is about!
Windowed applications!
Sent from my MB526 using xda premium
Kayant said:
Nchls could you please tell me how to disable capacitive buttons or reupload qtouck-touchscreen.kl and umts_jordan-keypad.kl because they are duplicates of the other two files
Click to expand...
Click to collapse
Download the 4 files from mediafire, put it inside system/use/keylayout. Replace the original files, but backup the original files first. What do you mean by duplicate of 2 files? The 4 links are different files.
nogoodusername said:
View attachment 902011
View attachment 902012
for me this is what ics is about!
Windowed applications!
Sent from my MB526 using xda premium
Click to expand...
Click to collapse
Woah. How did you do it!?
Nchls said:
Woah. How did you do it!?
Click to expand...
Click to collapse
lol that's just an app...AirCalc. dl from market.
This is a mod for the TF700T to add 1% battery indicators for both the tablet and dock.
This posting is for developers, not newbies who usually do not know what they are doing.
First things first: I am a retired software engineer (and approaching retirement age). I do not have much time for support of this mod as I spend most of my time teaching English in Thailand and I develop ROMs for the SGS3. With that said, you are free to use this however you wish. BUT, please give me credit for the work. A link back to this page would be great. AND, I cannot guaratee it will will for everyone. Use at your own risk.
I will try to answer questions as soon as I can. Hopefully, some of the better developers can jump in and help with questions. If I do not answer a question right away, it is because I am busy with school.
This is probably not one of the better how-to-do-it posts, but it is the best I can do at this time.
What you will need:
1. Winmerge - you can get it here: Winmerge
This is a great app for making changes to newer ROMs without having to manually find all your previous changes. It is a pretty much cut 'n paste layout as you can see where the changes are and just copy them into the new source file. It uses a split window format for comparing previous and new source files. I usually view the original modded file in the right window and the new file I want to mod in the left window. Differences will be highlighted. Just marked the changes and copy them from the right window to the left window. Don't forget to save the file before exiting.
2. The attached zip file which contains the battery icons for both the dock and tablet and the modified xml files. The icons were created using BatteryIconCreator_V9.0 which you can find on the web. Makes creating icons easy plus you can merge 2 icons into 1. The zip file contains xml files for JellyBean v10.4.4.20 ROMs. It should work on previous versions as I started working on this with v10.4.4.16.
3. apktool150.jar - from here: http://miui.connortumbleson.com/other/apktool/apktool_1.5.0.jar
4. aapt.exe - from here: http://miui.connortumbleson.com/other/apktool/aapt/win/aapt.exe
For items 3 and 4, I have included them for Windows only. You should already know how to use apktool already and where these files go.
IF your ARE NOT on Windows O/S, go to this link to get the correct aapt file: APKTOOL
You MUST HAVE both of the files (3 & 4). Very important.
There are no install zips attached to this post. I am just too lazy to make them.
This is mostly for developers of TF700T Roms.
The files we will be modding:
framework-res.apk
SystemUI.apk
Transformer.apk
First thing to do is to decompile all 3 files:
java -jar apktool150.jar d <source.apk> <folder>
where <source.apk> is one of the above 3 files and <folder> is where you want them decompiled to.
Example: java -jar apktool150.jar d SystemUI.apk systemui
First the tablet battery mod:
SYSTEMUI.APK
Tablet icons
1. Copy the tablet battery icons to: /res/drawable-sw720dp-hdpi
2. Copy stat_sys_battery.xml AND stat_sys_battery_charge.xml to /res/drawable
3. Add the following to the end of /res/values-sw600dp/styles.xml:
<style name="StatusBarBatteryNotificationText2">
<item name="android:textSize">1.0dip</item>
<item name="android:textColor">#00999999</item>
</style>
4. Change /res/layout/status_bar_quick_settings_title.xml
(change both dock and battery) below is the modified script change (partial script).
<TextView android:id="@id/battery_text" android:layout_width="wrap_content" android:layout_height="1.0dip" android:layout_marginTop="-4.0dip" android:src="@drawable/ic_notification_open" android:text="@string/status_bar_settings_settings_button" android:singleLine="true" android:layout_below="@id/battery" android:layout_centerHorizontal="true" style="@style/StatusBarBatteryNotificationText2" />
FRAMEWORK_RES.APK
Dock-icons
1. Copy the dock battery icons to /res/drawable-hdpi
2. Copy stat_sys_dock_battery.xml AND stat_sys_dock_battery_charge.xml to /res/drawable
TRANSFORMER.APK
1. Change res/layout/status_bar_docking.xml:below is the modified script change (partial script).
<ImageView android:layout_gravity="center_vertical" android:src="@drawable/asus_ep_kb_battery_dock" android:layout_width="32.0dip" android:layout_height="32.0dip" android:scaleType="centerInside" />
<TextView android:layout_gravity="right|center" android:id="@id/battery_level" androidaddingRight="12.0dip" android:layout_width="56.0dip" android:layout_height="wrap_content" android:singleLine="true" android:layout_toRightOf="@drawable/asus_ep_kb_battery_dock" android:layout_alignBaseline="@drawable/asus_ep_kb_battery_dock" style="@style/StatusBarNotificationText" />
2. Add asus_ep_kb_battery_dock.png to /res/drawable-hdpi/
After you have done all of that, you need to compile them:
BUT FIRST: SystemUI.apk will not be decompiled correctly -> res/values/public.xml
We need to change some things or it will not compile.
Open /res/values/public.xml and go all the way to the end.
Change the last 2 entries to look like the following (the decompile hex value ordering in out of sequence):
<public type="menu" name="notification_popup_menu" id="0x7f0f0000" />
<public type="menu" name="recent_popup_menu" id="0x7f0f0001" />
Save the file and exit.
Now we can compile all the files.
java -jar apktool150.jar b <source folder>
where <source folder> is where you decompile the apk to.
Example: java -jar apktool150.jar b systemui
the apk file will be in the dist subfolder under systemui
After all 3 files have been compiled, you need to copy the META-INF folder and the AndroidManifest.xml from the original apk to the newly built apk. You need to do this for each of the 3 files.
The TF700T does not like the resources.arsc entry compressed. So...we have to extract the contents from SystemUI.apk and Transformer.apk. Create a new apk (using store only) no compression. You can use 7zip for this.
After you have done this for the SystemUI.apk and Transformer.apk files, zipalign all 3 files and install them in their proper folders on your tablet. I have included a zip align program in the attached zip file. Put the 3 files in the align folder and run the zip-app.bat program.
I have tried to make this easy, especially if you use WinMerge. It's as easy as copy 'n paste.
All files, including the modded source files (except Winmerge) are included in the attached zip file.
ZIPFILE: TF700T 1% Battery Mod
Thanks man, donno if im gonna implement this but hopefully we can get some devs to preload it onto other roms. You should pm scott and hiemanshu! thanks again.
Sent from my ASUS Transformer Pad TF700T using Tapatalk 2
gutts10 said:
Thanks man, donno if im gonna implement this but hopefully we can get some devs to preload it onto other roms. You should pm scott and hiemanshu! thanks again.
Sent from my ASUS Transformer Pad TF700T using Tapatalk 2
Click to expand...
Click to collapse
I'm sure users would prefer percentage anyways, right?
From TF700, hit THANKS for others
Hi! thanks for this mod and for opening a dedicated thread.
Does the zip have a version to go for the latest job update? I can implement it straight into the ROM quickly if so. Otherwise I'll work through instructions and ask as I go.
sbdags said:
Does the zip have a version to go for the latest job update? I can implement it straight into the ROM quickly if so. Otherwise I'll work through instructions and ask as I go.
Click to expand...
Click to collapse
The easiest way is to just do file compares based on the files mentioned in Post #1.
If you use winmerge.exe it is easy to find the differences and cut and paste. It's what I use for all my ROM development for TF700T and GS3.
The files are from 104420.
OK Couple of questions - I tried to use the .20 files but SystemUI.apk is different.
There is no res/values folder......
neither is there a /res/values-sw600dp either ....
Are they important or have Asus changed the files?
Edit: Ah figured it out - ignore me!
I'm watching you
sbdags said:
OK Couple of questions - I tried to use the .20 files but SystemUI.apk is different.
There is no res/values folder......
neither is there a /res/values-sw600dp either ....
Are they important or have Asus changed the files?
Edit: Ah figured it out - ignore me!
Click to expand...
Click to collapse
Sent from my ASUS Transformer Pad TF700T
chogardjr said:
I'm watching you
Sent from my ASUS Transformer Pad TF700T
Click to expand...
Click to collapse
Figured it out and got it working
Thanks OP!
The icon and the % are not clear like stock...hard to read.
buhohitr said:
The icon and the % are not clear like stock...hard to read.
Click to expand...
Click to collapse
Agreed.
For my GNex I use circlesmod by hooolm, which is a lot clearer. I think I'll try throwing a mod together with those icons...
http://circlesmod.dk/?s=dl
i am currently using a unlocked s-off rooted 4ext recovery set up device, i found i enjoy using this rom called midnight rom, it is wonderfula dn suits my needs perfect, but....atfe rhours and hours of searching i am unable to find a guide on how to do this myself, and that is why i am posting here. i would like to flash a CRT lock animation, and perhaps unlock animation (but not needed ofcourse). Ive searched high and low, but it seems i cant find any way of doing this myself without having to use a rom like CM10 that has it built in etc etc, the objective here guys is to flahs this onto my phone myself, without needing to change my rom, either by installable zip someone may have laying aorund, or a quick description of how i could add this into my current rom and reflash it maybe. than ks for all the help in advance. talk to you soon
giggz9269 said:
i am currently using a unlocked s-off rooted 4ext recovery set up device, i found i enjoy using this rom called midnight rom, it is wonderfula dn suits my needs perfect, but....atfe rhours and hours of searching i am unable to find a guide on how to do this myself, and that is why i am posting here. i would like to flash a CRT lock animation, and perhaps unlock animation (but not needed ofcourse). Ive searched high and low, but it seems i cant find any way of doing this myself without having to use a rom like CM10 that has it built in etc etc, the objective here guys is to flahs this onto my phone myself, without needing to change my rom, either by installable zip someone may have laying aorund, or a quick description of how i could add this into my current rom and reflash it maybe. than ks for all the help in advance. talk to you soon
Click to expand...
Click to collapse
this will provide "off" animation..
decompile framework-res.apk
go to res/values and find bools.xml
Change this
<bool name="config_animateScreenLights">true</bool>
to this
<bool name="config_animateScreenLights">false</bool>
how to decompile framework-res.apk
http://forum.xda-developers.com/showpost.php?p=36388165&postcount=2
if you want unlock animation too...read here
http://rootzwiki.com/topic/2553-dev-enabling-crt-on-off-animation-in-roms-how-to/
hit thanks if this helped you!
js2892 said:
this will provide "off" animation..
decompile framework-res.apk
go to res/values and find bools.xml
Change this
<bool name="config_animateScreenLights">true</bool>
to this
<bool name="config_animateScreenLights">false</bool>
how to decompile framework-res.apk
http://forum.xda-developers.com/showpost.php?p=36388165&postcount=2
if you want unlock animation too...read here
http://rootzwiki.com/topic/2553-dev-enabling-crt-on-off-animation-in-roms-how-to/
hit thanks if this helped you!
Click to expand...
Click to collapse
im xcurrently haveing trouble decompiling this apk, im folowing th eguide you linked, but im unable to find the system or twframework.apk files, so im gonna guess its not a deodexed version....hmmmm i wish this was as simple as install zip from sd card hahaha
giggz9269 said:
im xcurrently haveing trouble decompiling this apk, im folowing th eguide you linked, but im unable to find the system or twframework.apk files, so im gonna guess its not a deodexed version....hmmmm i wish this was as simple as install zip from sd card hahaha
Click to expand...
Click to collapse
Systemui.apk - system / app
Framework - res.apk. and twframework-res.apk - system / framework
Use root explorer..
Sent from my GT-S5830i using xda app-developers app
js2892 said:
this will provide "off" animation..
decompile framework-res.apk
go to res/values and find bools.xml
Change this
<bool name="config_animateScreenLights">true</bool>
to this
<bool name="config_animateScreenLights">false</bool>
how to decompile framework-res.apk
http://forum.xda-developers.com/showpost.php?p=36388165&postcount=2
if you want unlock animation too...read here
http://rootzwiki.com/topic/2553-dev-enabling-crt-on-off-animation-in-roms-how-to/
hit thanks if this helped you!
Click to expand...
Click to collapse
i found the asystem ui.apk but the twframework.apk is non existant
giggz9269 said:
i found the asystem ui.apk but the twframework.apk is non existant
Click to expand...
Click to collapse
twframework-res.apk is only for samsung phones with touchwiz... that's why it's not there...
use systemui.apk and framework-res.apk :good:
js2892 said:
twframework-res.apk is only for samsung phones with touchwiz... that's why it's not there...
use systemui.apk and framework-res.apk :good:
Click to expand...
Click to collapse
THANKYOUI SO MUCH, ok so i have the value you specified changed, now, is there anyway i can flash it into my phone so i dont have to painstakingly reinstall the rom and set all ym stuff back up?
also, after i have decompiled and the value changed, what is the next step to recompile? to chose option 15 and compile and sign and install apk?
giggz9269 said:
THANKYOUI SO MUCH, ok so i have the value you specified changed, now, is there anyway i can flash it into my phone so i dont have to painstakingly reinstall the rom and set all ym stuff back up?
also, after i have decompiled and the value changed, what is the next step to recompile? to chose option 15 and compile and sign and install apk?
Click to expand...
Click to collapse
ok..good you have decompiled and edited...!! No need to sign...
this is what you do..
use option 11..compile system apk..
go through the guide again, it specifically gives info about editing framework-res.apk
now since u have edited an .xml file, therefore you will have to delete resources.arsc
now again i'm saying see the guide, it tells u step by step along with pictures
after compiling apk, there are two options!
1. rename the compile apk as framework-res.apk and push it to system/framework and replace the old one!!
Note: If you do this you will face lot of force close errors, and screen might go black too...but this is normal..all you have to do is reboot and you'll be good again!:good:
OR
2. Create a flashable zip for cwm
How to-> http://forum.xda-developers.com/showthread.php?t=1721680
P.P.S- If you have committed any mistake in editing or compiling or even there is an software error in APK Multi tool which produced a bad .apk your phone will go into bootloop, hence make a backup with cwm!!
andddd im now bootlooping, i am on the third recompile, and pushing from recovery to /system/framework/framework-res.apk and i deleted the resources.asrc ill try recomiling a few more times just to make sure its not apk mutitool messing up
giggz9269 said:
andddd im now bootlooping, i am on the third recompile, and pushing from recovery to /system/framework/framework-res.apk and i deleted the resources.asrc ill try recomiling a few more times just to make sure its not apk mutitool messing up
Click to expand...
Click to collapse
ok..so i assume u are following the guide correctly and since u have tried three time hence i believe there is no mistake on editing part..following are scenarios:
1. APK Multi Tool is not compiling apk properly, in such case use other apk tools and then check ur results.
2. the problem might be with your phone/OS, i cannot predict what might be the problem, it's best to ask this thing in ur device's section!
I assume you are on deodexed ROM, if u want to check how then-
decompile your systemui.apk and go to folder project and there will be a folder "systemui". Open it and check if there is a folder named "smali" in it! If yes then ur rom is deodexed and if not ur ROM is odexed. I cannot guarantee the working of above method on odexed ROMs.!
Workaround
1. Get CM
2. There's an app called Screen Off and Lock. It gives CRT animation but not by power button press. It creates a shortcut on homescreen, by pressing which u lock ur phone with CRT animation:good:. But again it does not provide aniamtion on screen unlock!