[MOD] Soft Lock (Powerbutton) Button + 5 softkey Button - Motorola Atrix HD

--------------------------------------------------
1. SOFT POWER BUTTON
--------------------------------------------------
Today I will introduce about my new mod. This will add a soft lock button on your screen which help to decrease the usage of hard lock button
And another great thing is that this button has the same funtion with power button (hold to show power menu as well).
I'm on stock Bell 4.1.2 so the attached file below is only applied on Bell 4.1.2 deodexed only. U also may try on Mexican retail 4.1.2 and I think it should work. About 4.1.1 (Bell & ATT), I'm not sure so if anyone who is interested in, I will write a guide.
Note: About Back, Home, Task icons, I have used SoftkeyZ to change and forgot to go back to stock one before modding So if you want, search for the app and change it again. :">
Instruction:
- Put file in /system/app
- set permission: rw-r-r
Download: (see attachment)
Guide for doing this mod is in 2nd post below.
Here is screenshots:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
-------------------------------------------------
5 SOFT KEY BUTTONS ( BACK, RECENT, HOME, SEARCH & MENU)
-------------------------------------------------
Here is the new mod as request from
It currently has a small limitation is that the search & menu button always show on lockscreen. I'm trying to figure out how to make it show only in homescreen. If anyone knows, plz tell me. Thank you.
Anw, enjoy this mod. Of course, this is for Bell 4.1.2 only I have no time to flash other stock firmware. I also attached the modded files for anyone want to compare and do this mod by themselves.
DOWNLOAD (see attachment)
INSTRUCTIONS:
- Put file in /system/app
- set permission: rw-r-r
SCREENSHOTS

Now I will write how to do this mod for your rom.
Requirement:
- Apktool (for decompile/compile) - If you dont have, go and download our Myth Tools here and install it.
- Notepad ++ (recommended or u can use other apps)
- Understanding about decompile/compile/replace file in system
- Deodexed system/rom/firmware
Target:
- We will modify SystemUI.apk
Instructions:
1. Pull your deodexed SystemUI.apk and use apktool to decompile it
2. Find "navigation_bar.xml" in \res\layout. Open it with Notepad ++
3. We need to modify 2 places in navigation_bar.xml:
- This place for screen when it's not rotation:
Code:
<FrameLayout android:id="@id/rot0" android:layout_width="fill_parent" android:layout_height="fill_parent">
- And this place for screen when it's rotation
Code:
<FrameLayout android:id="@id/rot90" android:paddingTop="0.0dip" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="fill_parent">
4. In the 1st place, replace the code below (it's under "<LinearLayout..." line):
Code:
<View android:visibility="invisible" android:layout_width="40.0dip" android:layout_height="fill_parent" android:layout_weight="0.0" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/back" android:layout_width="@dimen/navigation_key_width" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_back" android:scaleType="center" android:layout_weight="0.0" android:contentDescription="@string/accessibility_back" systemui:keyCode="4" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
with
Code:
<View android:visibility="invisible" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="0.0" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/lock" android:layout_width="@dimen/navigation_key_width" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_lock" android:scaleType="center" android:layout_weight="0.0" android:contentDescription="@string/accessibility_lock" systemui:keyCode="26" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
<View android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/back" android:layout_width="@dimen/navigation_key_width" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_back" android:layout_weight="0.0" android:contentDescription="@string/accessibility_back" systemui:keyCode="4" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
5. In the 2nd place, replace the code below (It's above the "</LinearLayout>" line)
Code:
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/back" android:layout_width="fill_parent" android:layout_height="80.0dip" android:src="@drawable/ic_sysbar_back_land" android:scaleType="center" android:layout_weight="0.0" android:contentDescription="@string/accessibility_back" systemui:keyCode="4" systemui:glowBackground="@drawable/ic_sysbar_highlight_land" />
<View android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="40.0dip" android:layout_weight="0.0" />
with this one:
Code:
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/back" android:layout_width="fill_parent" android:layout_height="80.0dip" android:src="@drawable/ic_sysbar_back_land" android:layout_weight="0.0" android:contentDescription="@string/accessibility_back" systemui:keyCode="4" systemui:glowBackground="@drawable/ic_sysbar_highlight_land" />
<View android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/lock" android:layout_width="fill_parent" android:layout_height="80.0dip" android:src="@drawable/ic_sysbar_lock" android:scaleType="center" android:layout_weight="0.0" android:contentDescription="@string/accessibility_lock" systemui:keyCode="26" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
<View android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="15.0dip" android:layout_weight="0.0" />
6. Now go to /value and open "ids.xml". Then add this line:
Code:
<item type="id" name="lock">false</item>
7. Next is editing "strings.xml" in /value. Add this line:
Code:
<string name="accessibility_lock">Lock</string>
8. Put the png file for lock image in the attachment below into /res/drawable-xhdpi. Or you can change it to ur image, it's up to u.
9. Compile and test.
Note: I also attached my navigation_bar.xml for you if you need it to compare.
Have fun with modding!
DK

Looks nice, and should come in handy to people with dis-functional power buttons. :good:
If only we could get an IOS6 style "Assistive touch" just like the one on the iPhone.

Codex01 said:
Looks nice, and should come in handy to people with dis-functional power buttons. :good:
If only we could get an IOS6 style "Assistive touch" just like the one on the iPhone.
Click to expand...
Click to collapse
Ya. I did this mod becoz all apps such as Toucher, Easy Touch...etc which look like "assistive touch" have problem with lockscreen funtion. After the screen turn off, it automatically turns on to lockscreen again. And that makes me mad =.='. So I decided to mod this one

Any guide to make it work on another rom,bro? This is so helpful to keep my power button.
Sent from my XT897 using Tapatalk 2

huatz84 said:
Any guide to make it work on another rom,bro? This is so helpful to keep my power button.
Sent from my XT897 using Tapatalk 2
Click to expand...
Click to collapse
I will write the guide when i come back home tonight
Sent from my MB886 using xda app-developers app

huatz84 said:
Any guide to make it work on another rom,bro? This is so helpful to keep my power button.
Sent from my XT897 using Tapatalk 2
Click to expand...
Click to collapse
Wrote the guide as ur request have fun!

devilsking said:
Wrote the guide as ur request have fun!
Click to expand...
Click to collapse
Thanks for the guide,bro.. I'll try it when I have much time.

I tested it. It works awesome.

wow, this is a great mod. very underated.
im surprised its not more in demand to have a MENU SOFT KEY, the stock navbar uses a lot of space and it can easily fit a softkey button for menu.
thanks again op, maybe you can add a matching menu (three dots) button in the nav bar section.

eugenile said:
wow, this is a great mod. very underated.
im surprised its not more in demand to have a MENU SOFT KEY, the stock navbar uses a lot of space and it can easily fit a softkey button for menu.
thanks again op, maybe you can add a matching menu (three dots) button in the nav bar section.
Click to expand...
Click to collapse
I think it's possible. As i Checked in code of menu button, it's only be invisible modify the code and it can be come visible. U can do it urself I'm busy these time and I dont know when I can do it

I'm an idiot... While wrestling my 2 year old to sleep, I applied the mod without renaming the original systemUI.apk... Now systemUI is dead, and I have no backup. Any chance someone could upload the stock AT&T systemUI.apk PLEASE?
I know... N00b move, but I blame the kid... Lol
Edit: extracted the apk from the rom zip and replaced modded apk. No go... Just gonna reflash and start from scratch... Ugh...
N7...'Nuff said...
http://android-gz.com

eugenile said:
wow, this is a great mod. very underated.
im surprised its not more in demand to have a MENU SOFT KEY, the stock navbar uses a lot of space and it can easily fit a softkey button for menu.
thanks again op, maybe you can add a matching menu (three dots) button in the nav bar section.
Click to expand...
Click to collapse
Done it as your request. Check the 1st post.

Thanks a lot,bro! Can I request advanced reboot on power menu?

huatz84 said:
Thanks a lot,bro! Can I request advanced reboot on power menu?
Click to expand...
Click to collapse
U means expanded power menu? For Bell 4.1.2? If yes, I already did and I will upload for u

devilsking said:
U means expanded power menu? For Bell 4.1.2? If yes, I already did and I will upload for u
Click to expand...
Click to collapse
Yeah,bro.. For Bell 4.1.2. Thanks a lot!

huatz84 said:
Yeah,bro.. For Bell 4.1.2. Thanks a lot!
Click to expand...
Click to collapse
Here u are. Flash it with cwm and remember to mount /system before flashing.
I changed some things in my framework-res (lockscreen mod) so if u want stock one, u can use myth tools to make it go back to default
http://d-h.st/Iwt

devilsking said:
Here u are. Flash it with cwm and remember to mount /system before flashing.
I changed some things in my framework-res (lockscreen mod) so if u want stock one, u can use myth tools to make it go back to default
http://d-h.st/Iwt
Click to expand...
Click to collapse
I also like the lockscreen mod. You are awesome,bro!! You can combine all your mods into a new stable ROM.
Here's my screenshot :

great work keep em coming

WOW!! THANK YOU SIR YOU ARE AWESOME!!
this should be implented in all roms for the atrix hd from now on its that awesome!!

Related

[Q] Transparent lock screen

In some of the ROM's I've seen here the lockscreen is transparent, but in the ROM I use it's not, and I should like to know how to make it transparent.
If this would involve downloading source code, changing it and recompiling it, just let me know and I'll forget about it for now, but if it's something that a relative beginner might be able to accomplish then any pointers would be appreciated.
TheGrammarFreak said:
In some of the ROM's I've seen here the lockscreen is transparent, but in the ROM I use it's not, and I should like to know how to make it transparent.
If this would involve downloading source code, changing it and recompiling it, just let me know and I'll forget about it for now, but if it's something that a relative beginner might be able to accomplish then any pointers would be appreciated.
Click to expand...
Click to collapse
2.03 Roms have a broken vanilla lockscreen which look like this:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
This lockscreen has the trasparency and can be changed editing keyguard_screen_tab_unlock.xml in framework-res.apk (You need to deassemble with apktool).
You can change color and trasparency by changing the ARGB color highlighted down here.
If you refer to CyanogenMod or other Vanilla (from source) i can't confirm that changing the highlighted part of that xml will help (i don't know if there is a class which create the RelativeLayout and apply a background somewhere outside the xml) .
Code:
<?xml version="1.0" encoding="UTF-8"?>
<RelativeLayout android:gravity="center_horizontal" android:id="@id/root" [B]android:background="#DC000000"[/B] android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tabunlock="http://schemas.android.com/apk/res/com.android.tabunlock">
<TextView android:textAppearance="?textAppearanceMedium" android:ellipsize="marquee" android:gravity="bottom|right|center" android:id="@id/carrier" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="10.0dip" android:layout_marginRight="8.0dip" android:singleLine="true" android:layout_alignParentTop="true" android:layout_alignParentRight="true" />
<com.android.internal.widget.DigitalClock android:id="@id/time" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="20.0dip" android:layout_marginTop="52.0dip" android:layout_marginBottom="10.0dip" android:layout_below="@id/carrier">
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="72.0sp" android:gravity="bottom" android:id="@id/timeDisplay" android:layout_width="wrap_content" android:layout_height="wrap_content" android:shadowColor="#c0000000" android:shadowDx="0.0" android:shadowDy="0.0" android:shadowRadius="3.0" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="22.0sp" android:gravity="bottom" android:id="@id/am_pm" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginLeft="8.0dip" android:layout_marginBottom="-6.0dip" android:singleLine="true" android:shadowColor="#c0000000" android:shadowDx="0.0" android:shadowDy="0.0" android:shadowRadius="3.0" />
</com.android.internal.widget.DigitalClock>
<TextView android:textAppearance="?textAppearanceMedium" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="24.0dip" android:layout_below="@id/time" />
<TextView android:textAppearance="?textAppearanceMedium" android:id="@id/status1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="24.0dip" android:layout_marginTop="4.0dip" android:drawablePadding="4.0dip" android:layout_below="@id/date" />
<TextView android:textAppearance="?textAppearanceMedium" android:id="@id/status2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="24.0dip" android:layout_marginTop="4.0dip" android:drawablePadding="4.0dip" android:layout_below="@id/status1" />
<TextView android:textAppearance="?textAppearanceMedium" android:id="@id/screenLocked" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="24.0dip" android:layout_marginTop="12.0dip" android:layout_below="@id/status2" />
<com.android.internal.widget.SlidingTab android:orientation="horizontal" android:id="@id/tab_selector" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="80.0dip" android:layout_alignParentBottom="true" />
<Button android:id="@id/emergencyCallButton" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="24.0dip" android:layout_marginTop="8.0dip" android:drawableLeft="@drawable/ic_emergency" android:drawablePadding="8.0dip" android:layout_below="@id/screenLocked" style="@style/Widget.Button.Transparent" />
</RelativeLayout>
Well, I'll give it a shot, and let y'all know. We'll see what happens. I assume it's a boot into recovery and then use ADB pull to get the apk? And then push it back when when I've finished?
EDIT:
Well, I've pulled the APK, edited the file and am now backing up my phone before I push it back. I hope this works...
EDIT 2:
Well, I tried, and failed. It got stuck in a bootloop... I just pushed the original framework-res.apk back to get back to a working system.
TheGrammarFreak said:
Well, I'll give it a shot, and let y'all know. We'll see what happens. I assume it's a boot into recovery and then use ADB pull to get the apk? And then push it back when when I've finished?
EDIT:
Well, I've pulled the APK, edited the file and am now backing up my phone before I push it back. I hope this works...
EDIT 2:
Well, I tried, and failed. It got stuck in a bootloop... I just pushed the original framework-res.apk back to get back to a working system.
Click to expand...
Click to collapse
Read your logcat, it will give you advices on what's wrong.
Did you signed framework-res.apk with fakesign?
You could try to make a small update.zip and flash it instad of pushing.
Ok, well I'll look at into logcat.
I didn't know I had to sign it, I'll do that too. <-- How? A Google search yielded little,unless I was looking for the wrong thing
And I'll look into update.zip's later. Thanks for all your help.
EDIT:
Well, I had a go with logcat, and none of it means anything to me. I'll keep trying though. I may have filtered the wrong things. The thing is I'm not quite sure what I'm looking for. Oh well, I'll get there eventually. Doing this makes me realise how great ROM developers are...
Thanks again for your help with this
I've been trying hard with no luck.
The ROM I'm using is Azure (0.5), if anyone has any ideas on how to go about making the lockscreen I would be grateful for the help.
Cheers.
You can't push files to the system partition, we don't quite have access to it yet.... your best bet is to create an update zip and clockwork it in as mentioned above....
Sent from my Legend using XDA App
Quanny2000 said:
You can't push files to the system partition, we don't quite have access to it yet.... your best bet is to create an update zip and clockwork it in as mentioned above....
Sent from my Legend using XDA App
Click to expand...
Click to collapse
Well, I do it with my phone in clockworkMOD recovery, with /system mounted, and it seems to work fine...
where 2 find non-transparent screen lock
im pretty new to all this and am not that technical, so please bear with me
i have successfully rooted my legend and have installed custom rom speedlegend v.06
it comes with a lockscreen which is transparent.
i dont like the transparency and was wondering if you could point me in the direction of the link where i can find the lockscreen w/o a transparency?
id be happy with juz a black background with the clock and unlock and silent buttons
im not confident enough with coding or messing with coding to try and manually edit it
on a side note, do you think there would be any way to change the sliding "sound off" tab to make it enter vibration mode rather than no ring at all?
thanks in advance!
r3ptil3 said:
im pretty new to all this and am not that technical, so please bear with me
i have successfully rooted my legend and have installed custom rom speedlegend v.06
it comes with a lockscreen which is transparent.
i dont like the transparency and was wondering if you could point me in the direction of the link where i can find the lockscreen w/o a transparency?
id be happy with juz a black background with the clock and unlock and silent buttons
im not confident enough with coding or messing with coding to try and manually edit it
on a side note, do you think there would be any way to change the sliding "sound off" tab to make it enter vibration mode rather than no ring at all?
thanks in advance!
Click to expand...
Click to collapse
Well, if you follow the instruction up there ^ and set it all to #00000000 you'll get a black background.
I was about as noob as you when I tried to do it first (it was about my 3rd post), it's easy. You'll be fine.

[MODS+GUIDES+THEME+REF][CARRIER LOGOS] ICS MODS, LunarUICS and Guide for Theming ICS

INDEX
-1ST POST: STATUSBAR MODS
-2ND POST: THEMES AND OTHER MODS (CM9 MUSIC ETC)
-3RD POST: BASIC HOW TO'S AND AT THE BOTTOM OF THE POST, GREAT REFERENCES WITH LINKS AND DESCRIPTIONS
Here are some mods for ICS ROM's
Statusbar Mod's confirmed working on:
-aosp's ROM for NS4G
-CM9 v1p1 (GSM + CDMA)
All confirmed on 1/25/12
NOTE: If your ROM gets updated, or you have a request, let me know and I will update mods accordingly. If these mods don't work for you please tell me what ROM your on, which mod you used and what device model you have. Also, please post your STOCK UNMODIFIED SystemUI.apk (/system/app/) and framework-res.apk (/system/framework/) and I will take a look
Screenshots:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Downloads
CENTER CLOCK + CENTER DATE + 0-100% BATTERY MOD FOR CM9 V1P1 (GSM) DOWNLOAD HERE
JUST A 0-100% BATTERY MOD FOR CM9 V1P1 (GSM) DOWNLOAD HERE
JUST A 0-100% ICS BATTERY MOD FOR CM9 V1P1 (CDMA) DOWNLOAD HERE
CENTER CLOCK + CENTER DATE + 0-100% BATTERY MOD FOR CM9 V1 P1 (NS4G) DOWNLOAD HERE
Just a 0-100% Battery Mod for oICS v43
Updated 12-25
OnScreen Buttons Mod + LS Rotation for oICS v43
HOW TO FLASH THESE MODS
-Reboot to Recovery
-Wipe Cache/Dalvik Cache
-Make a Backup (OPTIONAL)
-Flash dalvik-wiper.zip
-Flash MOD
-Fix Permissions
-Reboot
-Updated 1-26
*** PLEASE NOTE, THIS THEME HAS BEEN CHANGING RAPIDLY AND THE SCREEN SHOTS MAY NOT BE UPDATED! ALSO, I MIX UP THE CARRIER LOGO'S FOR EACH ROM IT'S ALMOST ALWAYS DIFFERENT! ALL SCREEN SHOTS WERE UPDATED 1-27-12 ***
I'm very happy to get this out. It contains a lot of png's and xml edits from LunarUi, a theme done by my friend R3D X. You can check out his work here.
Thanks to denverg for the inverted Mms.apk I modded to match the theme
Would also like to thank all of the folks who have tested this for me and who have uploaded their apk's so I don't have to download an entire ROM
Special Thanks to​-denverg
-R3D X
-solesonfire
-chalan30
-dome95
-zDune
And all of those who have helped me by uploading apk's, giving advice or pointing out my mistakes!
Please look at the bottom of this post and make sure you download the correct file depending which ROM you are on
Screenshots Updated 1-27-12
DOWNLOADS
FOR CM9 V1P1 (updated 1-23) (NS4G) DOWNLOAD FROM ROM MANAGER OR HERE
FOR CM9 v1p1(updated 1-24) (GSM) DOWNLOAD FROM ROM MANGER OR HERE
FOR oICS V43 (updated 12-25) (CDMA) DOWNLOAD HERE
FOR BRAINMASTER'S STOCK ICS (GSM)(UPDATED 1-24-12) DOWNLOAD HERE
FOR APEX V1 BY BIGXIE (CDMA) DOWNLOAD HERE OR ROM MANAGER (UPDATED 1-27-12)
FOR CODENAME ANDROID V1.2.0 (CDMA) DOWNLOAD HERE OR ROM MANAGER (UPDATED 1-27-12)
FOR GUMMYNEX 0.7.1 (CDMA) (UPDATED 1-29-12) DOWNLOAD HERE OR ROM MANAGER
FOR AOKP V21 (CDMA) DOWNLOAD HERE OR ROM MANAGER (UPDATED 1-27-12)
FOR CODENAME ANDROID V1.2.0 (GSM) DOWNLOAD HERE OR ROM MANAGER (UPDATED 1-27-12)
FOR AOKP MILESTONE 3 (GSM)(UPDATED 2-1-12) DOWNLOAD HERE OR ROM MANAGER
FOR AOKP MILESTONE 3 (CDMA)(UPDATED 2-1-12) DOWNLOAD HERE OR ROM MANAGER
Screenshots of themed Music.apk
UPDATED 1-24
Here is then new CM9 Music apk I themed. Still very much a WIP but any feedback is welcome
Music-CM9-1-24.zip
Flash in recovery
I have a few more things themed, just have to touch them up. Excited to hear feedback, enjoy!
Theming ICS
**If you use these guides for your device all I ask is you link back to this thread so more people can theme ICS for their devices**
I use apktool to for all my decompiling/recompiling purposes. Just a note, this is not a guide on how to set up SDK or apktool. There are tons of guides for that, this is guide on how to set up apktool so you can decompile, recompile, modify and theme ICS apks
I have a Windows 7 laptop, YMMV
Make sure you have latest version of apktool. I have this version and it works fine
So first, you need to update your SDK to the latest version. Open up your SDK Manager and install the latest update. Make sure you update latest Platform tools. After you are done updating, navigate to your SDK path (mine is C:\android-sdk-windows\) and go to platform-tools.
Copy the aapt.exe and paste it in your apktool working folder (my path is C:\apktool)
Now extract the ICS Rom your planning on working on and grab the framework-res.apk from it and put it in your apktool folder
Open up cmd and cd your apktool folder. Next, install ICS resources by
Code:
apktool if framework-res.apk
Now your set.
How to Change Battery in ICS ROM
After you got apktool all set up with ICS resources installed get the SystemUI.apk from your ICS ROM, put it in your apktool folder and decompile it.
Make sure you have installed framework-res.apk in apktool prior to decompiling ICS apks
Navigate to your decompiled SystemUI folder, go to /res/drawable-hdpi/
This is where the battery png's are in ICS. Copy/paste your battery png's. To make it more easy, make sure your png's follow the pattern (stat_sys_battery_1.png, etc)
If you plan on changing the png's for charging animation make sure you have the correct png's named stat_sys_battery_charge_anim0.png etc
Delete leftover battery png's, if any, from stock ICS
Once all your png's are in place, you need to modify the corresponding xml's
Those are found in SystemUI/res/drawable/stat_sys_battery.xml and stat_sys_battery_charge.xml
If your using battery png's from a Theme you can grab their corresponding xml's from the /res/drawable folder from the theme, just open up the xml's and make sure the xml is calling upon the correct png's
Now that you have your png's and xml's in place, go back to cmd and recompile
Code:
apktool b SystemUI SystemUI-battery.apk
Now, if you have used apktool to recompile you need to sign the apk. ONLY SIGN IT IF YOU USED APKTOOL! I don't know what the process is using Apk Manager
Rename to just SystemUI.apk and make a flashable zip out of it or push with adb and change permissions to rw-r--r--
How to Enable Lockscreen Rotation (ICS)
This one is pretty easy
-decompile framework-res.apk using apktool
-navigate to decompiled folder, go to /res/values/bools.xml
-change "config_enableLockScreenRotation" to "true"
-recompile framework-res.apk
-If you used apktool, sign it, and make a flashable zip to push it to /system/framework/
HOW TO CENTER CLOCK
-decompile your SystemUI.apk
-navigate to your decompiled folder and go to res>layout>status_bar.xml
-look for this line:
Code:
<com.android.systemui.statusbar.policy.Clock
-delete the stock clock line, delete the entire line
-next go to the top of your status_bar.xml and place your cursor at the end of this line:
Code:
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
-press "enter" to create an empty line
-place your cursor at the beginning of that empty line and paste this line of code:
Code:
<LinearLayout android:gravity="center" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center" android:paddingTop="3.0px" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_weight="1.0" />
</LinearLayout>
-make sure everything lines up (see my xml below)
-lastly, find this line:
Code:
<LinearLayout android:orientation="horizontal" android:id="@id/ticker"
-right after "@id/ticker" add this drawable:
Code:
android:background="@drawable/status_bar_bg_tile"
That's it for the Center Clock. Recompile and if you used apktool sign your new SystemUI.apk using apkmanager (option 16)
Here is an example of how your status_bar.xml should look like
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.PhoneStatusBarView android:orientation="vertical" android:background="@drawable/status_bar_background" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<LinearLayout android:gravity="center" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center" android:paddingTop="3.0px" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_weight="1.0" />
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/icons" android:paddingLeft="6.0dip" android:paddingRight="6.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:orientation="horizontal" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
<com.android.systemui.statusbar.StatusBarIconView android:id="@id/moreIcon" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/stat_notify_more" />
<com.android.systemui.statusbar.phone.IconMerger android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/notificationIcons" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentLeft="true" />
</LinearLayout>
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/signal_battery_cluster" android:paddingLeft="2.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent">
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_view" />
<ImageView android:id="@id/battery" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/ticker" android:background="@drawable/status_bar_bg_tile" android:paddingLeft="6.0dip" android:animationCache="false" android:layout_width="fill_parent" android:layout_height="fill_parent">
<ImageSwitcher android:id="@id/tickerIcon" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:layout_marginRight="4.0dip">
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:scaleType="center" />
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:scaleType="center" />
</ImageSwitcher>
<com.android.systemui.statusbar.phone.TickerView android:id="@id/tickerText" android:paddingTop="2.0dip" android:paddingRight="10.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0">
<TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
</com.android.systemui.statusbar.phone.TickerView>
</LinearLayout>
</com.android.systemui.statusbar.phone.PhoneStatusBarView>
HOW TO PUT CUSTOM CARRIER LOGO IN STATUSBAR
-Decompile your SystemUI.apk from whatever ROM your using
-Navigate to your decompiled folder and go to /res/layouts/status_bar.xml
-Look for the line of code that starts with this
Code:
<com.android.systemui.statusbar.StatusBarIconView
-Place your cursor at the beginning of that line and press "ENTER" to create an empty line right above it
-In that empty line, copy/paste this line of code
Code:
<com.android.systemui.statusbar.phone.CarrierLabel android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:textColor="@android:color/transparent" android:background="@drawable/carrier_logo" android:gravity="center_vertical" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:layout_alignParentLeft="true" />
-Make sure everything "lines up" in your xml (no odd spacing or empty lines)
-Next, you need to select an image you want displayed in your statusbar. I usually stick to one no greater than 100 pixels wide and 45 pixels in height
-Whatever image you decide to use make sure it's in ".png" format and name it "carrier_logo" (with out the quotes)
-Place your carrier_logo.png in the /res/drawable-hdpi/ folder
-Now you can build your new SystemUI, if you used apktool to do all of this don't forget to sign your apk
Here's what mine looks like
HOW TO MAKE A FLASHABLE ZIP FOR YOUR MODIFIED APK
-Download this zip here
-Extract it
-navigate to the /system/app/ folder
-place your modified apk's in that folder
-if your flashing a modified framework-res.apk or anything from /system/framework/ simply create a folder within the system folder and name it "framework" without the quotes and place the apk (framework-res.apk) or jar in there.
-navigate back until you only see the META-INF folder and the system folder
-if you want, you can edit the updater-script found in /META-INF/com/google/android/. Using a text editor open up the updater-script and change some of the UI Print (Mine all say "Flashing some Mod by fergie716" so you can change it to whatever). BUT IF YOUR NEW OR UNSURE DO NOT MESS WITH ANYTHING ELSE IN THE UPDATER SCRIPT, JUST THE UI PRINT
-select both the META-INF and system folders and zip them up (I use 7-zip with default zip settings)
-place your newly created zip on your SD and flash in recovery
-**Just a note, this was made especially for the NS/NS4G so IDK if it'll work for other devices. My updater-script also cleans dalvik-cache before installing. This is also for system apps/framework ONLY! I will post one for data (user) apps if needed
RESOURCES
HOW TO INSTALL SDK
-This is a great guide on how to install ADB with Android SDK. PAY SPECIAL ATTENTION TO THE PICTURES ON HOW TO SET UP CORRECT ENVIRONMENT VARIABLES, ESPECIALLY THE SDK AND JAVA FILES
DOWNLOADS AND HOW TO (OFFICIAL)
-This is the official page for SDK downloads and a "How to" on setting up requirements.. MAKE SURE YOU MEET REQUIREMENTS (JAVA, ETC)
APKTOOL
-Official page for apktool. Get the downloads
ANDROID COMMANDER
-Very useful tool! Can pull data/system apps extremely easily, run a live log, run DDMS, push/pull files with a handy GUI. One of my favorite, and most useful, apps
APK MANAGER
-This is what I use to sign apps. To make it compatible for ICS you need to replace the aapt.exe and apktool.jar (both found in APK Manage's "other folder") with the aapt.exe from latest SDK update (found in platform-tools folder) and the apktool.jar is found in your main apktool directory
DSIXDA'S KITCHEN
-Very useful. Deodex stock ROMs, unpack/repack boot.img, add different functionality to a ROM. Just tons of tools and options
**I WILL ADD MORE LINKS LATER**
cool.. thanks
JG96EVO said:
cool.. thanks
Click to expand...
Click to collapse
No problem
I'm curious to find out if it works on other ROMs/devices. If someone will check I would be grateful. If it doesn't work I will make it for that ROM/device
When flashing the zip for the on screen buttons, is therw a way to completely disable the capasitive buttons? I know we can dim them, though they come back on from time to time, but actually disable them completely?
Edit: Hmm maybe wrong thread to ask....
I just flashed the 0-100 battery mod on BM's V5 with francos latest kernel.
Annnd...it worked. Thank you
What about a center clock without battery mod?
thanks. works perfect
Thank you. I got used to conveniently let.
Sent from my Nexus S using xda premium
Smoke314 said:
When flashing the zip for the on screen buttons, is therw a way to completely disable the capasitive buttons? I know we can dim them, though they come back on from time to time, but actually disable them completely?
Edit: Hmm maybe wrong thread to ask....
Click to expand...
Click to collapse
Yes, I ported the on screen buttons mod for aosp's ROM. You can try to disbale BLN through NSTOOLS. I'll look into it more
fromthestars said:
I just flashed the 0-100 battery mod on BM's V5 with francos latest kernel.
Annnd...it worked. Thank you
Click to expand...
Click to collapse
Thank you for checking, really appreciate it!
Eclair~ said:
What about a center clock without battery mod?
Click to expand...
Click to collapse
Done, added to OP. Let me know if it works
nothing totally major , but is there a way to where you can disable the clock on the lock screen & enable it on the home screen like it dose natively on ICS?
kinda looks funny with the 2 clocks lol ..
Man, your on a role. Just flashed the center clock and batt percent mod and it worked perfect. Thanks.
Sent from my Nexus S 4G using xda premium
surveysays said:
nothing totally major , but is there a way to where you can disable the clock on the lock screen & enable it on the home screen like it dose natively on ICS?
kinda looks funny with the 2 clocks lol ..
Click to expand...
Click to collapse
I just started looking into it.. If I can figure it out I will post it up
Tiffany84 said:
Man, your on a role. Just flashed the center clock and batt percent mod and it worked perfect. Thanks.
Sent from my Nexus S 4G using xda premium
Click to expand...
Click to collapse
Thanks! I appreciate it. Next steps are icon switch, centered date when you pull down on statusbar, then lockscreen theme
I'm using the battery mod and it works great
derekwilkinson said:
I'm using the battery mod and it works great
Click to expand...
Click to collapse
Hey thanks man! Glad you guys like it.
Open to ideas.. I'd really like to see centered date with expanded statusbar, just have to get the padding right with the new buttons (settings icon and clear all button)
Sent from my Nexus S 4G using Tapatalk
Could anyone help me and tell me if I can use this on koushs CM9 alpha 11 build? Im not a 4g guy neither, thanks
Sent from my Nexus S
mike216 said:
Could anyone help me and tell me if I can use this on koushs CM9 alpha 11 build? Im not a 4g guy neither, thanks
Sent from my Nexus S
Click to expand...
Click to collapse
Can you make a backup then try it? If it doesn't work post your framework-res.apk and SystemUI.apk and I'll make it real quick
Sent from my Nexus S 4G using Tapatalk
Thanks im afraid to try but I guess I will and report back
Sent from my Nexus S
mike216 said:
Thanks im afraid to try but I guess I will and report back
Sent from my Nexus S
Click to expand...
Click to collapse
Thank God for nandroid backups lol
If it doesn't work just post your SystemUI.apk and framework-res.apk and I'll make it.. Gunna be up for a few more hours

[GUIDE][CM9/CM10] How to Add BRIGHTNESS SLIDER TO NOTIFICATION PANEL

How to Add BRIGHTNESS SLIDER TO NOTIFICATION PANEL for CM9 & CM10
Hi..Hi..Hello XDA , especially for Developer only
I want to share to you all how to add brigtness slider to notification panel for your Devices running CyanogenMod 9 & 10
Basically the guide is for Gingerbread, and I use all smali file and code from here http://forum.xda-developers.com/showthread.php?t=2152370
so full credit goes to evanlocked
I just made some change and fix to suit for Device running CM9 & CM10
WARNING !!!
But there is a little bug on this Mod, if you enable Automatic Brightness from your SETTINGS - DISPLAY -BRIGHTNESS - , the Brightness bar will dissappear from notification panel, and never want to show again, so make sure before and after applying this mod, never to do that
SEE THE SCREENSHOT :
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
If you can see, there is an Automatic brightness check box,
and the check box is only a fake check box, doesn't have accessibility to access Automatic brightness of our Device. so you are free to tick/check list it, and brightness slider will not dissapear.
ok lets go to Guide:
first of all need some requirement for this MOD-GUIDE
REQUIREMENT:
- BRAIN
- Patient
- experience
- Know how to decompile/recompiling Apk file
- notepad++
- Tool for decompiling, : apkmanager/apktool/Virtous/apkmultitools/ or else
​
STEP 1
Decompile your SytemUI.apk, go to
res/values/ids.xml
and add this line to the end
Code:
<item type="id" name="automatic">false</item>
NEXT - STEP -2
res/values/strings.xml
Add these two lines to the end
Code:
<string name="brightness_settings_automatic">AUTO</string>
<string name="brightness_settings_title" />
NEXT - STEP -3 for CM10
res/layout/status_bar_expanded.xml
and add the RED line code
Code:
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout android:id="@id/notification_panel" android:background="@drawable/notification_panel_bg" android:paddingTop="@dimen/notification_panel_padding_top" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginLeft="@dimen/notification_panel_margin_left"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Network" android:gravity="center" android:layout_gravity="bottom" android:id="@id/carrier_label" android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="@dimen/carrier_label_height" android:layout_marginBottom="@dimen/close_handle_height" />
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginBottom="@dimen/close_handle_underlap">
<include android:layout_width="fill_parent" android:layout_height="@dimen/notification_panel_header_height" layout="@layout/status_bar_expanded_header" />
<com.android.systemui.statusbar.powerwidget.PowerWidget android:id="@id/exp_power_stat" android:layout_width="fill_parent" android:layout_height="@dimen/notification_panel_widget_height" />
[COLOR="Red"]<include layout="@layout/adi_brightness" />[/COLOR]
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Network.EmergencyOnly" android:gravity="center" android:id="@id/emergency_calls_only" android:paddingBottom="4.0dip" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<ScrollView android:id="@id/scroll" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="fill_parent" android:overScrollMode="always">
<com.android.systemui.statusbar.policy.NotificationRowLayout android:id="@id/latestItems" android:layout_width="fill_parent" android:layout_height="wrap_content" systemui:rowHeight="@dimen/notification_row_min_height" />
</ScrollView>
</LinearLayout>
<com.android.systemui.statusbar.phone.CloseDragHandle android:layout_gravity="bottom" android:orientation="vertical" android:id="@id/close" android:layout_width="fill_parent" android:layout_height="@dimen/close_handle_height">
<ImageView android:layout_gravity="bottom" android:layout_width="fill_parent" android:layout_height="@dimen/close_handle_height" android:src="@drawable/status_bar_close" android:scaleType="fitXY" />
</com.android.systemui.statusbar.phone.CloseDragHandle>
</FrameLayout>
NEXT - STEP -3 for CM9
add the RED LINE
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.ExpandedView android:orientation="vertical" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<LinearLayout android:orientation="vertical" android:background="@drawable/notification_header_bg" android:layout_width="fill_parent" android:layout_height="wrap_content">
<com.android.systemui.statusbar.powerwidget.PowerWidget android:id="@id/exp_power_stat" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<RelativeLayout android:paddingTop="3.0dip" android:paddingRight="3.0dip" android:paddingBottom="5.0dip" android:layout_width="fill_parent" android:layout_height="52.0dip">
<com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Date" android:gravity="left|center" android:id="@id/date" android:paddingLeft="16.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_alignParentLeft="true" />
<ImageView android:id="@id/settings_button" android:paddingLeft="8.0dip" android:paddingRight="8.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/ic_notify_quicksettings" android:layout_toRightOf="@id/date" android:contentDescription="@string/accessibility_settings_button" />
<ImageView android:id="@id/clear_all_button" android:paddingLeft="8.0dip" android:paddingRight="8.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/ic_notify_clear" android:layout_alignParentRight="true" android:contentDescription="@string/accessibility_clear_all" />
</RelativeLayout>
[COLOR="Red"]<include layout="@layout/adi_brightness" />[/COLOR]
</LinearLayout>
<View android:background="@drawable/status_bar_hr" android:layout_width="fill_parent" android:layout_height="2.0dip" />
<FrameLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0">
<TextView android:textAppearance="@*android:style/TextAppearance.Large" android:gravity="left" android:layout_gravity="top" android:id="@id/noNotificationsTitle" android:padding="8.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/status_bar_no_notifications_title" />
<ScrollView android:id="@id/scroll" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="fill_parent" android:overScrollMode="ifContentScrolls">
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<com.android.systemui.statusbar.policy.NotificationRowLayout android:id="@id/latestItems" android:layout_width="fill_parent" android:layout_height="wrap_content" systemui:rowHeight="@dimen/notification_height" />
</LinearLayout>
</ScrollView>
<ImageView android:layout_width="fill_parent" android:layout_height="fill_parent" android:src="@drawable/title_bar_shadow" android:scaleType="fitXY" />
</FrameLayout>
</com.android.systemui.statusbar.phone.ExpandedView>
NEXT - STEP -4
FOR CM9, YOU JUST SKIP THIS STEP-4 !!!
res/layout/status_bar_expanded_header
LINE xml 2
Code:
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" [COLOR="Red"]android:background="#ff000000"[/COLOR] android:layout_width="fill_parent" android:layout_height="wrap_content" android:baselineAligned="false"
NEXT - STEP -5
Download the brightness bar source according to your device category :
Source_Brightness_HDPI
Source_Brightness_XHDPI
Source_Brightness_MDPI
Source_Brightness_LDPI
NEXT - STEP -6
Extract you have downloaded and merge it to your decompiled SytemUI.apk
Done and Recompile
I''ve made for my device Galaxy Wonder (HDPI) http://forum.xda-developers.com/showthread.php?t=2230063
and Galaxy Nexus http://forum.xda-developers.com/showthread.php?t=2265104
thanks to Omar1c for testing it
CREDIT & THANKS
arco
evanlocked
Omar1c
Galaxy Nexus xda themes forum
Galaxy wonder xda themes forum
XDA
CyanogenMod
ApkMultitools
and all of you , sorry if I missed
Reserved for something
will this mod work on CM10.1 ?
MicroLizard said:
will this mod work on CM10.1 ?
Click to expand...
Click to collapse
No , still force close..
I still try and try to get it working..
PS : But it will work to CM9
Sent from my GT-I8150 using xda app-developers app
Adi Aisiteru Reborn said:
No , still force close..
I still try and try to get it working..
PS : But it will work to CM9
Sent from my GT-I8150 using xda app-developers app
Click to expand...
Click to collapse
Yes, I've tried and it give me force close.
Big thanks!! :good:
Thank you bro work fine
androidphone2012 said:
Big thanks!! :good:
Click to expand...
Click to collapse
Screenshot will be appreciated
Sent from my GT-I8150 using xda app-developers app
Awesome bro!!
Sent from my Galaxy Nexus using xda premium
Omar1c said:
Awesome bro!!
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
I want to write another porting Guide, CM10 O4x style lockscreen, will you test it for XHDPI version ?.
I 'll use your file framework , but before you test it, make sure you revert back to stok theme first, without mod installed on your device.
I'll send you PM when the flashable zip is ready
Edit : Done for the porting guide
Adi Aisiteru Reborn said:
Screenshot will be appreciated
Sent from my GT-I8150 using xda app-developers app
Click to expand...
Click to collapse
Yes, sir. :good: I slightly modified the layout
Adi Aisiteru Reborn said:
I want to write another porting Guide, CM10 O4x style lockscreen, will you test it for XHDPI version ?.
I 'll use your file framework , but before you test it, make sure you revert back to stok theme first, without mod installed on your device.
I'll send you PM when the flashable zip is ready
Edit : Done for the porting guide
Click to expand...
Click to collapse
Alright sorry for the late reply and yeah bro remember I'm your test monkey lul
Sent from my Galaxy Nexus using xda premium
Omar1c said:
Alright sorry for the late reply and yeah bro remember I'm your test monkey lul
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
that's oke Bro
do you still want flashable.zip ?
or you gonna try to do it your self ? http://forum.xda-developers.com/showthread.php?t=2269131
Adi Aisiteru Reborn said:
that's oke Bro
do you still want flashable.zip ?
or you gonna try to do it your self ? http://forum.xda-developers.com/showthread.php?t=2269131
Click to expand...
Click to collapse
Flashable zip would be great
Sent from my Galaxy Nexus using xda premium
Omar1c said:
Flashable zip would be great
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
well I need your CM10 android.policy.jar and services.jar
Adi Aisiteru Reborn said:
well I need your CM10 android.policy.jar and services.jar
Click to expand...
Click to collapse
Ok
Sent from my Galaxy Nexus using xda premium
---------- Post added at 02:20 PM ---------- Previous post was at 02:14 PM ----------
Adi Aisiteru Reborn said:
well I need your CM10 android.policy.jar and services.jar
Click to expand...
Click to collapse
Here it is
http://db.tt/9fmkUR6y
Sent from my Galaxy Nexus using xda premium
Omar1c said:
Ok
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
but first I want ask you
is it still working or not anymore ? http://forum.xda-developers.com/showthread.php?p=27873486
Adi Aisiteru Reborn said:
but first I want ask you
is it still working or not anymore ? http://forum.xda-developers.com/showthread.php?p=27873486
Click to expand...
Click to collapse
That's for GSM not toroplus so I can't test that one
Sent from my Galaxy Nexus using xda premium
Omar1c said:
That's for GSM not toroplus so I can't test that one
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
Oke
give me 20 minutes , I'll send you PM soon, when flshble.zip ready
EDIT : Done
please check your PM
Adi Aisiteru Reborn said:
Oke
give me 20 minutes , I'll send you PM soon, when flshble.zip ready
EDIT : Done
please check your PM
Click to expand...
Click to collapse
Please please please!!! will u make a guide (optimus4x lockscreen) for ldpi device as well??????I am using cm10.1 right now and will test it..

[MOD] Screen off status bar Mod

This mod lets you shut off screen by pressing the time on the top right status bar.
Must know how to use Apktool. For dev's mostly.
Decompile LGSystemUI.apk with apktool.
Search for: status_bar.xml
then search for:
</com.lge.systemui.widget.StatusBarLinearLayout>
add this after this line:
PHP:
<com.android.systemui.statusbar.policy.KeyButtonView android:layout_gravity="right" android:id="@id/back" android:paddingRight="65.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="#00000000" android:layout_toRightOf="@id/recent_apps" android:contentDescription="@string/accessibility_back" systemui:keyCode="26" systemui:keyRepeat="false" systemui:glowBackground="@drawable/ic_sysbar_highlight" androidundefinedrientation="vertical" />
Then build your LGSystemUI.apk and your done.

Softkey Mod: Swap Back and Recents Button

Hey guys -
Here are flashable zips to swap the back button with the recent keys. This is a pretty simple modification but I wanted to bring it together in a clean thread here for anyone who is interested in the modification. I eventually just figured this out myself after nothing was available in custom ROMs for quite some time.
For those who are curious what all is changed, here are the here are the basics. This is the first attempt I've ever made at doing anything like this so I apologize if something doesn't look right but here is what I did. You will need to get apktool then do this:
1) Download SystemUI.apk and framework-res.apk to computer
2) apktool if framework-res.apk
3) apktool if SystemUI.apk
4) apktool d SystemUI.apk
5) Modify SystemUI\res\layout\navigation_bar.xml
Here is the stock snippet for reordered:
Code:
<LinearLayout android:orientation="horizontal" android:id="@id/nav_buttons" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="fill_parent" android:animateLayoutChanges="true">
<View android:visibility="invisible" android:layout_width="40.0dip" android:layout_height="fill_parent" android:layout_weight="0.0" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/recent_apps" android:layout_width="@dimen/navigation_key_width" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_recent" android:layout_weight="0.0" android:contentDescription="@string/accessibility_recent" />
<View android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/home" android:layout_width="@dimen/navigation_key_width" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_home" android:layout_weight="0.0" android:contentDescription="@string/accessibility_home" systemui:keyCode="3" systemui:keyRepeat="false" />
<View android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/back" android:layout_width="@dimen/navigation_key_width" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_back" android:scaleType="center" android:layout_weight="0.0" android:contentDescription="@string/accessibility_back" systemui:keyCode="4" />
<FrameLayout android:layout_width="@dimen/navigation_extra_key_width" android:layout_height="fill_parent" android:layout_weight="0.0">
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/menu" android:visibility="invisible" android:layout_width="@dimen/navigation_extra_key_width" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_menu" android:contentDescription="@string/accessibility_menu" systemui:keyCode="82" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/ime_switcher" android:visibility="invisible" android:layout_width="@dimen/navigation_extra_key_width" android:layout_height="fill_parent" android:src="@drawable/ic_ime_switcher_default" android:scaleType="centerInside" android:contentDescription="@string/accessibility_ime_switch_button" />
</FrameLayout>
</LinearLayout>
6) apktool b SystemUI
7) copy SystemUI.apk from SystemUI\dist
There are 4 zip files. A modify and restore for both rastapop and stock 5.01.
** BE SURE TO WIPE DALVIK/CACHE AFTER FLASHING
Zenoran said:
Hey guys -
Here are flashable zips to swap the back button with the recent keys. This is a pretty simple modification but I wanted to bring it together in a clean thread here for anyone who is interested in the modification. I eventually just figured this out myself after nothing was available in custom ROMs for quite some time.
For those who are curious what all is changed, here are the here are the basics. This is the first attempt I've ever made at doing anything like this so I apologize if something doesn't look right but here is what I did. You will need to get apktool then do this:
1) Download SystemUI.apk and framework-res.apk to computer
2) apktool is framework-res.apk
3) apktool is SystemUI.apk
4) apktool d SystemUI.apk
5) Modify SystemUI\res\layout\navigation_bar.xml
Here is the stock snippet for reordered:
Code:
<LinearLayout android:orientation="horizontal" android:id="@id/nav_buttons" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="fill_parent" android:animateLayoutChanges="true">
<View android:visibility="invisible" android:layout_width="40.0dip" android:layout_height="fill_parent" android:layout_weight="0.0" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/recent_apps" android:layout_width="@dimen/navigation_key_width" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_recent" android:layout_weight="0.0" android:contentDescription="@string/accessibility_recent" />
<View android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/home" android:layout_width="@dimen/navigation_key_width" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_home" android:layout_weight="0.0" android:contentDescription="@string/accessibility_home" systemui:keyCode="3" systemui:keyRepeat="false" />
<View android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/back" android:layout_width="@dimen/navigation_key_width" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_back" android:scaleType="center" android:layout_weight="0.0" android:contentDescription="@string/accessibility_back" systemui:keyCode="4" />
<FrameLayout android:layout_width="@dimen/navigation_extra_key_width" android:layout_height="fill_parent" android:layout_weight="0.0">
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/menu" android:visibility="invisible" android:layout_width="@dimen/navigation_extra_key_width" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_menu" android:contentDescription="@string/accessibility_menu" systemui:keyCode="82" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/ime_switcher" android:visibility="invisible" android:layout_width="@dimen/navigation_extra_key_width" android:layout_height="fill_parent" android:src="@drawable/ic_ime_switcher_default" android:scaleType="centerInside" android:contentDescription="@string/accessibility_ime_switch_button" />
</FrameLayout>
</LinearLayout>
6) apktool b SystemUI
7) copy SystemUI.apk from SystemUI\dist
There are 4 zip files. A modify and restore for both rastapop and stock 5.01.
** BE SURE TO WIPE DALVIK/CACHE AFTER FLASHING
Click to expand...
Click to collapse
Love this Mod, any chance you will take request? Say SlimLP or LoliPop Dream? That would be awesome. I will happily provide the system files.
[email protected] said:
Love this Mod, any chance you will take request? Say SlimLP or LoliPop Dream? That would be awesome. I will happily provide the system files.
Click to expand...
Click to collapse
Probably not due to the amount of time it takes to properly build and test things to the point where I'm comfortable posting it. There were some weird things with the framework after boot creating some unique properties of one of the apks making the mod specific to that installation. I had to pull files from recovery prior to boot to make the modded zip work for fresh installs and I don't know enough about why. But basically that means reflashing my device and testing multiple times to make sure it works so it's very time consuming.
If I have the time, I'll do requests in my free time. Finals are starting to come to a close if thats okay with OP.
Any way to get a menu button on the far right. That's about the only mod I'm really waiting for. Know your all busy with life so I'm just puttin it out there. Hehe. Happy holidays everyone.
Any screen shots of the icons? Thx
Via my NeXus™ 6 on Tapatalk⁴
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
There you go
---------- Post added at 07:26 AM ---------- Previous post was at 07:23 AM ----------
Also a note. Make sure you are fully flashed, meaning ROM, Gapps, and Kernel, before you flash. Boot up, then flash this mod. I had issues if I tried to do them all at once. Just an FYI.
---------- Post added at 08:14 AM ---------- Previous post was at 07:26 AM ----------
zephiK said:
If I have the time, I'll do requests in my free time. Finals are starting to come to a close if thats okay with OP.
Click to expand...
Click to collapse
I'd Love that, If I test / assist, let me know.
I'm desperate for SlimLP and LoliPop Dream, but I am an addict, so ANY that you throw our way would be awesome. Thanks
zephiK said:
If I have the time, I'll do requests in my free time. Finals are starting to come to a close if thats okay with OP.
Click to expand...
Click to collapse
Fine by me! That's why I provided the steps to recreate so people can do whatever they want.
I'm going to give this a try once I get lunch and establish the environment. Instructions seem simple enough, I just have to set up apktool environment, the one I had previously doesn't install the framework probably because its not updated for Lollipop so I'll have to do that.
I did check up into it, oddly enough apktool_2.0.0rc3.jar and using apktool bat doesn't provide "is" as a valid input but is showing up in command prompt with the list of usages. I'll have to look more into it once I get food, im starving.
Edit: I got it, didn't use OP's instructions but did it the way I normally mod apks. Just had to update the apktool for the tool I used to decompile Lollipop apks.
Going to flash the new LiquidSmooth and then apply the mod and I'll report back on testing then I can take requests.
I wish Lollipop didn't hide all the contents of the ROM. It used to be a lot easier since I can extract the apks without installing the ROM.
And it's good to go. Upload framework-res.apk and systemui.apk and I'll fulfill some requests include ROM name.
Sent from my Nexus 6 using Tapatalk
Edit:
LiquidSmooth 12/19/2014 Only: https://www.androidfilehost.com/?fid=95864024717066420
Thank you for taking on this project !!
https://drive.google.com/folder/d/0B_g_T_jTM-hkaHVWcENpVE9Tb00/edit
---------- Post added at 01:59 PM ---------- Previous post was at 01:56 PM ----------
zephiK said:
And it's good to go. Upload framework-res.apk and systemui.apk and I'll fulfill some requests include ROM name.
Sent from my Nexus 6 using Tapatalk
Edit:
LiquidSmooth 12/19/2014 Only: https://www.androidfilehost.com/?fid=95864024717066420
Click to expand...
Click to collapse
[emoji1]
[email protected] said:
Thank you for taking on this project !!
Click to expand...
Click to collapse
What version is this for?
zephiK said:
What version is this for?
Click to expand...
Click to collapse
lollipopdream_aosp_shamu-20141211.zip
for the*Google Nexus 6, by*upndwn4par
---------- Post added at 02:42 PM ---------- Previous post was at 02:42 PM ----------
Build 7
Could anyone do a build for Pure Shamu? Or has anyone tested it on Pure Shamu yet?
Sent from my Nexus 6 using XDA Free mobile app
[email protected] said:
lollipopdream_aosp_shamu-20141211.zip
for the*Google Nexus 6, by*upndwn4par
---------- Post added at 02:42 PM ---------- Previous post was at 02:42 PM ----------
Build 7
Click to expand...
Click to collapse
Lollipop Dream Build 7: https://www.androidfilehost.com/?fid=95864024717066505
Not tested, should work though, I'm 99% certain. Report back
dambrosioj said:
Could anyone do a build for Pure Shamu? Or has anyone tested it on Pure Shamu yet?
Sent from my Nexus 6 using XDA Free mobile app
Click to expand...
Click to collapse
None of the zips will work for Pure Shamu as each ROM as their own SystemUI / Framework which are core fundamentals of a ROM. Upload the two files from your ROM and I'll do it for your ROM.
I can mass produce these in less a minute, fairly simple to do.
zephiK said:
Lollipop Dream Build 7: https://www.androidfilehost.com/?fid=95864024717066505
Not tested, should work though, I'm 99% certain. Report back
None of the zips will work for Pure Shamu as each ROM as their own SystemUI / Framework which are core fundamentals of a ROM. Upload the two files from your ROM and I'll do it for your ROM.
I can mass produce these in less a minute, fairly simple to do.
Click to expand...
Click to collapse
You're 99% right, as you can see below. First is at 493 DPI, next is 560, its a bit to the right
493
560
I'm totally psyched with this mod!!!!
The only problem I have which I'm sure I can fix is if the phone is in Landscape mode, it still follows the Back Home Recents format.
I'll work on that sometime later (enjoying my day after a tough week of finals)
Can't get it to work with the Pure Shamu 3.2 ROM. Just keep getting the never ending System UI crashes.
Perhaps it's also due to me having the Dark Theme mod installed as well??
Baldilocks said:
Can't get it to work with the Pure Shamu 3.2 ROM. Just keep getting the never ending System UI crashes.
Perhaps it's also do to me having the Dark Theme mod installed as well??
Click to expand...
Click to collapse
As I mentioned earlier,
None of the zips will work for Pure Shamu as each ROM as their own SystemUI / Framework which are core fundamentals of a ROM. Upload the two files from your ROM and I'll do it for your ROM.
I can mass produce these in less a minute, fairly simple to do.
Click to expand...
Click to collapse
Upload Pure Shamu 3.2 ROM Framework-res.apk and SystemUI.apk and then I'll mod it.
Baldilocks said:
Can't get it to work with the Pure Shamu 3.2 ROM. Just keep getting the never ending System UI crashes.
Perhaps it's also due to me having the Dark Theme mod installed as well??
Click to expand...
Click to collapse
If you are looking for this to work on Pure, you should upload the requested files that ZephiK had mentioned in this post. Both the op and zephiK are awesome for doing this.
zephiK said:
And it's good to go. Upload framework-res.apk and systemui.apk and I'll fulfill some requests include ROM name.
Sent from my Nexus 6 using Tapatalk
Edit:
LiquidSmooth 12/19/2014 Only: https://www.androidfilehost.com/?fid=95864024717066420
Click to expand...
Click to collapse
---------- Post added at 04:23 PM ---------- Previous post was at 04:22 PM ----------
Oops
---------- Post added at 04:36 PM ---------- Previous post was at 04:23 PM ----------
Strangely, I'm fine with the back being on the bottom in landscape, odd.

Categories

Resources