[MOD][Feb 22] UI MODs for Virtuous ROM (No Battery Icon/Centre Clock/No AMPM....) - HTC Butterfly

THESE WILL MOST LIKELY BREAK YOUR % OR OTHER MODs . BEST IS TO EDIT THE FILES MANUALLY (AS DESCRIBED BELOW) IF YOU HAVE ADDITIONAL MODS.
Once again to emphasize, the ZIPs attached are for X920D version of Virtuous DNA+ v1 ROM Only. I have not tested on other versions!
ALL DOWNLOADS HERE -> http://vps.rana.sg/x920d/Virtuous_MODs/
Revert SystemUI to Stock -> Here
MOD 1 - Remove Battery Icon from Status Bar (SystemUI_HideBattery.zip)
This technique applies to ALL Sense ROMs, however, the zip file attached is specific to Virtuous ROM v1 for x920d variant.
This will remove the ugly green battery icon totally from the Status Bar. Then you can use your own apps to show battery % etc and it looks very clean imo.
{
"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"
}
Click to expand...
Click to collapse
Manual Steps
File to modify - /system/app/SystemUI.apk
Tools needed - 7zip
Steps -
1. Copy over your SystemUI.apk to your Computer
2. Open (Do not extract) using 7zip
3. Browse to folder "/res/drawable"
4. Delete files "stat_sys_battery.xml" & "stat_sys_battery_charge.xml" (Keep backup if you like)
5. Close 7zip (No option to save, etc.. just close the application)
6. Either push this SystemUI.apk file back to your phone or best is to download one of my zips below, open using 7zip and then copy over your SystemUI.apk overwriting the one in the zip. Then simply flash in CWM or TWRP.
All Done !
Click to expand...
Click to collapse
Removes Battery Icon, rest is Stock
MOD 2 - Remove AM/PM From Status Bar Clock (SystemUI_HideBattery_HideAMPM.zip)
This mod removes the AM/PM totally from the Status Bar Clock.
Click to expand...
Click to collapse
Steps -
1. Need to extract /system/app/SystemUI.apk to your computer and decompile with your favourite tool
2. Edit file - smali/com/android/systemui/statusbar/policy/Clock.smali (I use Notepad++)
3. Change 1st instance of const/4 v0, 0x1 to const/4 v0, 0x2
4. Save file and recompile the apk
5. Push apk back onto phone
Click to expand...
Click to collapse
1. Removes AM/PM from StatusBar
2. Removes Battery Icon
3. Enables Stock JB Style Multitasking
MOD 3 - Centre Status Bar Clock Combo (Virtuous_v1_SystemUI_Modded.zip)
This mod centres the Status Bar Clock. This zip also incorporates all the above MODs in it.
Click to expand...
Click to collapse
Steps -
1. Need to extract /system/app/SystemUI.apk to your computer and decompile with your favourite tool
2. Edit file - res/layout/status_bar.xml (I use Notepad++)
3. Find the first "LinearLayout Area".
4. Remove everything between the 2 LinearLayout tags (Only the first one, not the ticker ones)
5. Add following between the tags :
Code:
<RelativeLayout android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.StatusBarIconView android:id="@id/moreIcon" android:layout_alignParentLeft="true" 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:layout_toRightOf="@id/moreIcon" android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/notificationIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_alignParentLeft="true" />
<com.android.systemui.statusbar.policy.Clock android:layout_centerInParent="true" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textColor="@*android:color/white" android:gravity="center" android:id="@id/clock" android:paddingLeft="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
<ImageView android:id="@id/battery" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true" />
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_view" android:layout_toLeftOf="@id/battery" />
<LinearLayout android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" android:gravity="center_vertical" android:layout_toLeftOf="@id/signal_cluster" />
</RelativeLayout>
4. Save file and recompile the apk
5. Push apk back onto phone
Click to expand...
Click to collapse
1. Removes AM/PM from StatusBar
2. Removes Battery Icon
3. Enables Stock JB Style Multitasking
4. Centres Statusbar Clock

Added Combo Mod -
1. Remove Battery Icon
2. Remove AM/PM
3. Centre Statusbar Clock
4. JB Style Multitasking

Battery icon
can you tell me how to move the battery icon to the left side of status bar?? i edited the status_bar.xml with no luck.. i followed this <ImageView android:id="@id/battery" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true" /> but no luck either.

amazing, thank you!

Related

[MORPH] Desire Lock Screen Text

So I've made a Morph to make the lock screen tab transparent, inspired by Pervert Power haha
http://forum.xda-developers.com/showthread...389#post6016389
Here it is:
{
"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"
}
I'd like to add my first and last name underneath the date. Does anyone know what files will need to be edited for that to happen? And can that be Morphed?
Attached is the LockScreen Morph if anyone is interested. (Reboot after Morph)
Probably an xml change. I can try and hack it if pointed at the right location
ps: found this
britoso said:
Probably an xml change. I can try and hack it if pointed at the right location
Click to expand...
Click to collapse
I'm guessing you're not using Desire?
ps: found this
Click to expand...
Click to collapse
Wow, that guy is looking for the same thing I am. What are the chances!
I looked through the XML's but didn't see one that was specifically for lock screen. Hopefully this doesn't require editing the Kernel?...
Wow this forum moves fast!
This would be way cool! You should also check it out for cyanogen, i would love this
Found the XML!!! (attached)
\cyanogen-android_frameworks_base-67dd0a3\core\res\res\layout\keyguard_screen_tab_unlock.xml
Note there is a keyguard_screen_tab_unlock_land.xml file too for landscape mode.
Just need to
1) decompile this XML in framework-res.apk\res\layout\
2) make our changes
3) and compile it back.
update: Eclipse compiles your xml to binary when you test/build your app. Testing it now.
britoso said:
Just need to
1) decompile this XML in framework-res.apk\res\layout\
Click to expand...
Click to collapse
BOOM
My brain just exploded
britoso said:
update: Eclipse compiles your xml to binary when you test/build your app. Testing it now.
Click to expand...
Click to collapse
I tried this, put all the xml files in a HelloWorld project, built and ran it on the emulator, then got the lock screen xml files from the .apk and morphed it to my phones framework-res.apk.... phone went beserk on restart. (bootloop until i pushed my backup back in, then after startup UID mismatch FCs for all apps...fixed via recovery option.)
And can please put the standard files (images) from the screen lock? It is very necessary!
Behold:
Decompiled XML files attached. (2 files)
framework-res.apk-decoded\res\values\ids.xml (added just one line. #140)
framework-res.apk-decoded\res\layout\keyguard_screen_tab_unlock.xml
Note: Files are based off a CM506-N1 ROM. Do not use these files directly for Desire.
Steps:
1) pull framework-res.apk from your phone.
Code:
adb pull /system/framework/framework-res.apk .
2) decompile everything to a folder named framework-res.apk-decoded. you need apktool.jar
Code:
java -jar apktool.jar d -s framework-res.apk framework-res.apk-decoded
3) replace or merge-in the changes from the two files attached.
4) rebuild the apk.
Code:
java -jar apktool.jar b framework-res.apk-decoded
5) rename framework-res.apk-decoded\build\dist\out.apk to framework-res.apk
6) create a new update.zip containing framework-res.apk. Instructions and the testsign utility here.
This is the command I ran to sign the update.zip file.
Code:
java -cp testsign.jar testsign update.zip update-signed.zip
7)copy update-signed.zip to the root of your sd card.
8)reboot to recovery.
Code:
adb reboot recovery
9)Nandroid everything. Important.
10) Flash the update file.
Note: Here is the latest source on cyanogens github
Re: Desire Lock Screen Text
Nice thanks. I will try on my desire rom.
Nice job.... Is there a way I can just change the carrier text on my Desire rom lockscreen without changing any layout or anything but just change carrier text to my name for example?
LevitateJay said:
Nice job.... Is there a way I can just change the carrier text on my Desire rom lockscreen without changing any layout or anything but just change carrier text to my name for example?
Click to expand...
Click to collapse
It should be doable, in keyguard_screen_tab_unlock.xml change
Code:
<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" />
to
Code:
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="[B][COLOR="Red"]0.0sp[/COLOR][/B]" 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" />
[COLOR="Blue"]<TextView android:text="[B][COLOR="DarkGreen"]My Name[/COLOR][/B]" android:textAppearance="?textAppearanceMedium" android:ellipsize="marquee" android:gravity="bottom|right|center" 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" /> [/COLOR]
I have not tested this.
Update: removed the ids.xml line for this case. No other xml element refers to this one so its not needed.
Wow, amazing! Will have to mess around with this stuff this weekend.
britoso said:
Note: Files are based off a CM506-N1 ROM. Do not use these files directly for Desire.
Click to expand...
Click to collapse
Will these changes work with Desire? I mean, won't the line(s) be different because the lock screen puts different text in different places than stock Android?
Paul22000 said:
Wow, amazing! Will have to mess around with this stuff this weekend.
Will these changes work with Desire? I mean, won't the line(s) be different because the lock screen puts different text in different places than stock Android?
Click to expand...
Click to collapse
update: keyguard_screen_tab_unlock.xml appears to be the same in r21. Only difference is that the .apk is at /data/system-framework/
dont know if this xml is used though
@britoso
You could treat decoded apk as any Android app , so:
you could create new ids through: android:id="@+id/carrier_custom" and don't modify ids.xml
android:id is optional - used for referencing it in other XMLs and a code. You don't need it in this situation.
Brut.all said:
@britoso
You could treat decoded apk as any Android app , so:
you could create new ids through: android:id="@+id/carrier_custom" and don't modify ids.xml
android:id is optional - used for referencing it in other XMLs and a code. You don't need it in this situation.
Click to expand...
Click to collapse
Yes, thanks. I copied the code from below in the layout where everything was relative.
WOAAAAAAAAAAH
Does this help??
http://www.cyrket.com/p/android/stericson.ninjamorph/
Paul22000 said:
http://www.cyrket.com/p/android/stericson.ninjamorph/
Click to expand...
Click to collapse
anyone know how this is different from MetaMorph.
Update: Its the "without hooking up a pc" part
They say its free for 24 hours only, so get yours!
britoso said:
anyone know how this is different from MetaMorph.
Click to expand...
Click to collapse
MetaMorph is only for changing images?
I think that's that difference.

HOT: Asphalt 7 deviceconfig for HTC One S

Hello All,
I've searched the web for days to find an Asphalt 7: Heat 1.0.1 deviceconfig file that works with the HTC One S to no avail...so I created my own.
The game now looks amazing with hi-res textures, high detail cars, motion blur and the farthest draw distance ever and still runs at an excellent framerate. It also includes real time reflection mapping, detailed trees and other effects. It also DOES NOT include the texture clipping/flickering of other device configs that I ran across.
{
"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"
}
HOW TO:
1. Connect your phone to the computer and enable Disk Drive via the pulldown status bar on the One S and click Done.
2. Go to SD:\Android\obb\com.gameloft.android.ANMP.GloftA7HM
3. Rename main.101.com.gameloft.android.ANMP.GloftA7HM.obb to .zip and open with winrar (I use 7zip) navigate data/DeviceConfig and relpace the DeviceConfig.xml with one that I made. You can drag and drop it over the original. Also make a copy of the original deviceconfig by pasting it on your desktop in the rare event that you want your original file.
(I cut and paste the entire obb file to my computer and THEN rename it, open it on my desktop, navigate to the deviceconfig folder and then drag and drop, then rename it vs it still being on my One S. My PC copies/saves faster than from the phone.)
4. Once the deviceconfig file is replaced with the new one, rename the .zip back to .obb (If you copied the obb to your desktop, copy it back to its original location on the phone)
5. Start Asphalt 7, download the 1MB file if it asks and enjoy the enhanced graphics that are in the screenshots.
For those that want to know what I changed in the deviceconfig file:
Medium-Lodev class devices
-->
<device name="android_medium_lodev" parent="default">
<attributes>
<bool name="use_msaa" value="true" />
<bool name="use_car_shadow" value="true" />
<bool name="use_radial_blur_on_nitro" value="true" />
<bool name="use_menu_high_res_texture" value="true" />
<bool name="use_orientation_locked" value="false" />
<bool name="use_hud_low_res_texture" value="false" />
<bool name="use_traffic_shadow" value="true" />
<bool name="use_set_min_filter_linear" value="true" />
<bool name="use_hires_map" value="true" />
<bool name="use_swf_posteffect_render_texture" value="true" />
<bool name="is_low_res_platform" value="false" />
<bool name="use_lodev_textures" value="false" />
<bool name="use_glLive_iPad" value="false" />
<float name="a_lod_table_box" value="27500000.0" />
<float name="a_lod_table_low" value="15000000.0" />
<float name="a_pickup_visibility_multiplier" value="1.0" />
<string name="showTrackLowLODDistance" value="FAR" />
<bool name="use_gamma_luminance" value="false" />
<bool name="use_second_render_target" value="true" />
<float name="ReflectionMapU" value="0.46875" /><!-- Dynamic Reflection Shader U coordinate to take for the relfection -->
<float name="ReflectionMapV" value="0.3125" /><!-- Dynamic Reflection Shader V coordinate to take for the relfection -->
<bool name="use_high_quality_car_shader" value="true" />
<bool name="use_dynamic_reflection_on_cars" value="true" /><!-- Special case for low device, ignore on high end one -->
<bool name="optimize_dynamic_reflection" value="false" /><!-- Skip one frame on two -->
<bool name="draw_car_reflection_garage" value="true" />
</attributes>
</device>
Click to expand...
Click to collapse
Thank you and enjoy!
i dunno why u needed this as bobiras has modded asphalt 7 for all phones so it runs on one S and X without any problem !!
Hi, thanks for the tip for Asphalt 7, Deaconclgi.
acerulz said:
i dunno why u needed this as bobiras has modded asphalt 7 for all phones so it runs on one S and X without any problem !!
Click to expand...
Click to collapse
What are you talking about ? What thread ?
Is it possible to do the same with Batman Rise?
acerulz said:
i dunno why u needed this as bobiras has modded asphalt 7 for all phones so it runs on one S and X without any problem !!
Click to expand...
Click to collapse
Link please
Gesendet von meinem HTC One S mit Tapatalk 2
Deaconclgi said:
Hello All,
I've searched the web for days to find an Asphalt 7: Heat 1.0.1 deviceconfig file that works with the HTC One S to no avail...so I created my own.
The game now looks amazing with hi-res textures, high detail cars, motion blur and the farthest draw distance ever and still runs at an excellent framerate. It also includes real time reflection mapping, detailed trees and other effects. It also DOES NOT include the texture clipping/flickering of other device configs that I ran across.
HOW TO:
1. Connect your phone to the computer and enable Disk Drive via the pulldown status bar on the One S and click Done.
2. Go to SD:\Android\obb\com.gameloft.android.ANMP.GloftA7HM
3. Rename main.101.com.gameloft.android.ANMP.GloftA7HM.obb to .zip and open with winrar (I use 7zip) navigate data/DeviceConfig and relpace the DeviceConfig.xml with one that I made. You can drag and drop it over the original. Also make a copy of the original deviceconfig by pasting it on your desktop in the rare event that you want your original file.
(I cut and paste the entire obb file to my computer and THEN rename it, open it on my desktop, navigate to the deviceconfig folder and then drag and drop, then rename it vs it still being on my One S. My PC copies/saves faster than from the phone.)
4. Once the deviceconfig file is replaced with the new one, rename the .zip back to .obb (If you copied the obb to your desktop, copy it back to its original location on the phone)
5. Start Asphalt 7, download the 1MB file if it asks and enjoy the enhanced graphics that are in the screenshots.
For those that want to know what I changed in the deviceconfig file:
Thank you and enjoy!
Click to expand...
Click to collapse
thanks by the way ! I made the same for TDKR

[HOWTO][MOD] Remove Battery, No AMPM, Center Clock and more...

This is a howto thread ... Copied from the one I had opened in Butterfly Themes/Apps Section to help others ...
Tools Required :
1. apktool (For Decompile/Compile)
2. Notepad++ (My preferred smali/xml editor)
3. 7zip (Windows) or Text Editor (Mac)
4. Java Runtime
MOD 1 - Remove Battery Icon from Status Bar
This technique applies to ALL ROMs.
This will remove the ugly green battery icon totally from the Status Bar. Then you can use your own apps to show battery % etc and it looks very clean imo.
{
"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"
}
Click to expand...
Click to collapse
Manual Steps
File to modify - /system/app/SystemUI.apk
Tools needed - 7zip
Steps -
1. Copy over your SystemUI.apk to your Computer
2. Open (Do not extract) using 7zip
3. Browse to folder "/res/drawable"
4. Delete files "stat_sys_battery.xml" & "stat_sys_battery_charge.xml" (Keep backup if you like)
5. Close 7zip (No option to save, etc.. just close the application)
6. Either push this SystemUI.apk file back to your phone or best is to download one of my zips below, open using 7zip and then copy over your SystemUI.apk overwriting the one in the zip. Then simply flash in CWM or TWRP.
All Done !
Click to expand...
Click to collapse
MOD 2 - Remove AM/PM From Status Bar Clock
This mod removes the AM/PM totally from the Status Bar Clock.
Click to expand...
Click to collapse
Steps -
1. Need to extract /system/app/SystemUI.apk to your computer and decompile with your favourite tool
2. Edit file - smali/com/android/systemui/statusbar/policy/Clock.smali (I use Notepad++)
3. Change 1st instance of const/4 v0, 0x1 to const/4 v0, 0x2
4. Save file and recompile the apk
5. Push apk back onto phone
Click to expand...
Click to collapse
MOD 3 - Centre Status Bar Clock
This mod centres the Status Bar Clock
Click to expand...
Click to collapse
Steps -
1. Extract all files for apktool into a folder (Lets say C:\apktool for this example)
2. Extract files from your phone and copy into c:\apktool :
/system/framework/framework-res.apk
/system/framework/com.htc.resources.apk
/system/app/SystemUI.apk
3. Open a command prompt at c:\apktool
4. Run following commands :
apktool if framework-res.apk
apktool com.htc.resources.apk
apktool d SystemUI.apk
5. This should decompile the SystemUI apk successfully and create folder SystemUI in c:\apktool
6. Change into SystemUI folder. Edit file - res/layout/status_bar.xml (I use Notepad++)
7. Find the first "LinearLayout Area".
8. Remove everything between the 2 LinearLayout tags (Only the first one, not the ticker ones)
9. Add following between the tags :
Code:
<RelativeLayout android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.StatusBarIconView android:id="@id/moreIcon" android:layout_alignParentLeft="true" 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:layout_toRightOf="@id/moreIcon" android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/notificationIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_alignParentLeft="true" />
<com.android.systemui.statusbar.policy.Clock android:layout_centerInParent="true" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textColor="@*android:color/white" android:gravity="center" android:id="@id/clock" android:paddingLeft="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
<ImageView android:id="@id/battery" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true" />
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_view" android:layout_toLeftOf="@id/battery" />
<LinearLayout android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" android:gravity="center_vertical" android:layout_toLeftOf="@id/signal_cluster" />
</RelativeLayout>
10. Save file and recompile the apk using command prompt :
apktool b SystemUI
11. New compiled apk will be available in c:\apktool\SystemUI\dist
12. You can use attached template zip and open (DO NOT EXTRACT) using 7z
13. Change into system/app folder in 7z and drag the new compiled SystemUI.apk into it. Answer YES if you get prompt in 7z
14. Similarly use the template to create an original zip for your untouched SystemUI.apk for reverting back to original
15. Flash away in Recovery and Enjoy!
Click to expand...
Click to collapse
Thanks for this tips!
Work perfect on my HTC
Do you know how to delete icon of the "energy economy" option?
alexbds said:
Thanks for this tips!
Work perfect on my HTC
Do you know how to delete icon of the "energy economy" option?
Click to expand...
Click to collapse
From menu in your app drawer select Manage Apps. Swipe to All, then scroll down until you find Power. Click on it and then deselect Show Notifications. That's it
Dunc001 said:
From menu in your app drawer select Manage Apps. Swipe to All, then scroll down until you find Power. Click on it and then deselect Show Notifications. That's it
Click to expand...
Click to collapse
Thanks for the tip but it is not working with power application. The Show notifications is unaccessible for this app.
My phone is in root mode with 4.2 ROM custom from Mike1986.
Do you mean the power save notification ? If yes I think I know the way .. Will post back soon
Sent from my HTC One using xda premium
Yes , the power save application has a notification that you can not desactivate if you use the application.
---------- Post added at 04:10 PM ---------- Previous post was at 04:04 PM ----------
I just found how to desactivate it: just download application "notification off" and you will be able to desactivate the notification icon without stopping the application anc continue to have power save benefits
Thank you very much for the tutorial! I do have a small request though.... I like my Statusbar very minimal with only data/wifi showing and everything else gone.
How would I remove gps crosshair, clock, alarm, and signal icons if you have the time. Thank you
knightwolf123 said:
Thank you very much for the tutorial! I do have a small request though.... I like my Statusbar very minimal with only data/wifi showing and everything else gone.
How would I remove gps crosshair, clock, alarm, and signal icons if you have the time. Thank you
Click to expand...
Click to collapse
just download "notifications off" app and you will be able to remove all notifications you want!
alexbds said:
just download "notifications off" app and you will be able to remove all notifications you want!
Click to expand...
Click to collapse
I tried that. Didn't have the options I'm looking for. Great however for disabling notifications for apps I've downloaded from the market though.
Can anyone do me a huge favour, could someone please remove the clock and the battery from the statusbar. Looking at this Remove Clock it guides people through on how to do it, I cant as I seem to be unable too, can anyone help.
nintendolinky said:
Can anyone do me a huge favour, could someone please remove the clock and the battery from the statusbar. Looking at this Remove Clock it guides people through on how to do it, I cant as I seem to be unable too, can anyone help.
Click to expand...
Click to collapse
Also attach the framework files I have mentioned in OP
Sent from my HTC One using xda premium
framework-res.apk is here Thanks mate
Here use the attached zip, also attached the Original for reverting. Removed clock and battery from Status bar.
v-b-n said:
Here use the attached zip, also attached the Original for reverting. Removed clock and battery from Status bar.
Click to expand...
Click to collapse
Doesnt work mate, getting status bar has stopped error, and them systemui force close.
Which ROM is this btw ? I will recompile on my laptop shortly and upload again (My mac is not upto speed for this)
It's trickdroid 3.5.0 and thanks, really appreciated.
Sent from my M7 using Tapatalk 2
Removed my whole status bar
I'm trying to do mod 1 but for some reason when i try to delete the two files in 7-zip, it tells says "Not Implemented!". Any ideas?
Awesome tutorial, thanks a lot!
Sent from my Tricked-out M7 using xda premium
Oh thats coincidental. The other day I had many attempts to remove the am and pm. Pretty much did the same thing. It seems like HTC must've really ****ed with the clock.smali, because it didnt work.

[GUIDE][5.0][NOOBS]Add rom banner in about phone.

Hi, in this tut, ill show you how to add rom banners in about phone settings of your lollipop rom.
Files required-
-Zip in attachments
-DEODEXED rom
-Brain(link?)
Part One-
-Extract the zip
-Copy these files into the folder--->
Code:
/system/priv-app/Settings/Settings.apk
And
Code:
/system/framework/framework-res.apk
-Run cmd.exe and run this command--->
Code:
apktool if framework-res.apk
This will install the framework.
-Then run this command to decompile settings.apk--->
Code:
apktool d Settings.apk
Part two-
-In apktool folder goto Settings/res/layout and create a logo.xml file
-Open it, and paste the following lines in it--->
-----------------------------------------------------------------------------------------------------------------------------------
"<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:gravity="center" android:layout_width="fill_parent" android:layout_height="wrap_content"
xmlns:android="http://schemas.android.com/apk/res/android">
<ImageView android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/logo" />
</LinearLayout>"
------------------------------------------------------------------------------------------------------------------------------------
-Resize your banner (which should be a PNG file) to 500x123 and rename it to logo.png. Then copy it to Settings/res/drawable
Part Three-
-Navigate to Settings/res/xml and open device_info_settings.xml.
-Add this line--->
------------------------------------------------------------------------------------------------------------------------------------
"<PreferenceScreen android:enabled="false" android:layout="@layout/logo" android:selectable="false" android:key="logo" />
------------------------------------------------------------------------------------------------------------------------------------
Right below this line--->
------------------------------------------------------------------------------------------------------------------------------------
"xmlns:android="http://schemas.android.com/apk/res/android">"
------------------------------------------------------------------------------------------------------------------------------------
-It should look like this--->
-----------------------------------------------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen android:title="@string/about_settings"
xmlns:android="http://schemas.android.com/apk/res/android">
<PreferenceScreen android:enabled="false" android:layout="@layout/logo" android:selectable="false" android:key="logo" />
------------------------------------------------------------------------------------------------------------------------------------
Part four-
-Now open cmd.exe and type this to recompile--->
Code:
apktool b Settings
Part Five and most important!!
-After the last command finishes, goto Settings/original and copy everything inside it to
Settings/build/apk and replace the file if prompted
-Then again run--->
Code:
apktool b Settings
-Now you have your settings.apk in Settings/dist/
-Copy it to /system/priv-app/Settings/ and replace the old file, set rw-r-r- permissions and reboot!
NOTE- THIS HAS BEEN TESTED ON AOSP BASED LOLLIPOP ROM. I DO NOT GUARANTEE WORKING ON CUSTOMIZED ROMS LIKE TOUCHWIZ OR LG ROMS. ALL LINES MUST BE ADDED WITHOUT THE "(QUOTES) MARK AT THEIR STARTING AND ENDING.
It should 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"
}
HIT THNX IF IT HELPED!!!
Thanks alot i was looking for a guide like this but for 5.0+ also i dont see any xml code in the code parts?
Are u using xda app?
Whoops! I remember adding em. Anyways, I'll do it.
Would it be OK if I add em in few hrs? I hv school.

[Q] Attempting to build liquidsmooth, running into issues.

So I'm trying to build the lollipop branch of liquidsmooth, but I have a couple issues. Mainly trying to do
Code:
$ . build/envsetup.sh
$ breakfast bacon
this leaves me with this error
{
"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"
}
So I read the cyanogenmod guide on building it here: http://wiki.cyanogenmod.org/w/Build_for_bacon#Prepare_the_Build_Environment
and I decide to go and extract the blobs using the steps given(on today's official CM build 5.0.2). I do that, get another error
I type "croot" to go to my main directory, and do the same 2 commands at the top, and I still get the same error as before.
What do I do? I'm getting quite infuriated right now... I REALLY want this to work.
_ASSASSIN_ said:
So I'm trying to build the lollipop branch of liquidsmooth, but I have a couple issues. Mainly trying to do
...
this leaves me with this error
So I read the cyanogenmod guide on building it here: http://wiki.cyanogenmod.org/w/Build_for_bacon#Prepare_the_Build_Environment
and I decide to go and extract the blobs using the steps given(on today's official CM build 5.0.2). I do that, get another error
...
I type "croot" to go to my main directory, and do the same 2 commands at the top, and I still get the same error as before.
What do I do? I'm getting quite infuriated right now... I REALLY want this to work.
Click to expand...
Click to collapse
Hi.
On getting blob files, rather than installing CM12 ROMs and fetching blob files using cable data, I found it is easier and practical to first decompress lollipop dat files by following guide on this thread (especially post #2).
After decompressing done, I copy files in directory "output" to somewhere else (lets say to directory "/android/CM12Files/")
Edit file device/oppo/msm8974-common/extract-files.sh, commenting out two lines containing "adb pull /system/$DEST $2/$DEST" and add "cp /android/CM12Files/system/$DEST $2/$DEST" below them as follows:
Code:
# Try CM target first
[COLOR="Red"] #adb pull /system/$DEST $2/$DEST
cp /android/CM12Files/system/$DEST $2/$DEST[/COLOR]
# if file does not exist try OEM target
if [ "$?" != "0" ]; then
[COLOR="Red"] #adb pull /system/$FILE $2/$DEST
cp /android/CM12Files/system/$FILE $2/$DEST[/COLOR]
fi
Then run extract-files.sh in directory device/oneplus/bacon
BTW, I tried decompressing latest CM12 nightly ROM, and there was no vendor/lib/liblisten.so
I attached the (zipped) lib file below...been using it for compiling DU (forgot from where I got the lib file), so I think it is safe to use it...finger crossed
Hope this helps.
_ASSASSIN_ said:
So I'm trying to build the lollipop branch of liquidsmooth, but I have a couple issues. Mainly trying to do
...
this leaves me with this error
...
Click to expand...
Click to collapse
On getting repos for device, vendor, and kernel tree, could you try using codes below as content of .repo/local_manifests/local_manifest.xml ?
Code:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="kernel_oneplus_msm8974" path="kernel/oneplus/msm8974" remote="lsd" revision="lollipop" />
<project name="device_oppo_common" path="device/oppo/common" remote="lsd" revision="lollipop" />
<project name="android_device_oneplus_bacon" path="device/oneplus/bacon" remote="lsd" revision="lollipop" />
<project name="android_device_qcom_common" path="device/qcom/common" remote="cm" revision="cm-12.0" />
<project name="android_device_oppo_msm8974-common" path="device/oppo/msm8974-common" remote="lsd" revision="lollipop" />
<project name="proprietary_vendor_oneplus" path="vendor/oneplus" remote="tm" revision="cm-12.0" />
<project name="proprietary_vendor_oppo" path="vendor/oppo" remote="tm" revision="cm-12.0" />
<project name="android_frameworks_opt_connectivity" path="frameworks/opt/connectivity" remote="cm" revision="cm-11.0" />
</manifest>

Categories

Resources