[App/Mod][Share]1070 Battery Mods! - Sprint Galaxy S 5 Themes and Apps

All credit to @gharrington I'm just sharing this in hopes that some Dev on the Sprint S5 (specifically on MOAR ROM) will put it to good use!
You must follow the "how to" in the OP (involves decompiling/recompiling system UI apk), you CANNOT just install apk as is and expect it to work!
http://forum.xda-developers.com/showthread.php?t=2799958
http://forum.xda-developers.com/devdb/project/?id=4780#downloads

Ya I got it working on MOAR. Fairly easy, thanks for the info, awesome!
Joe0113 said:
All credit to @gharrington I'm just sharing this in hopes that some Dev on the Sprint S5 (specifically on MOAR ROM) will put it to good use!
You must follow the "how to" in the OP (involves decompiling/recompiling system UI apk), you CANNOT just install apk as is and expect it to work!
http://forum.xda-developers.com/showthread.php?t=2799958
http://forum.xda-developers.com/devdb/project/?id=4780#downloads
Click to expand...
Click to collapse

xSLAYERx said:
Ya I got it working on MOAR. Fairly easy, thanks for the info, awesome!
Click to expand...
Click to collapse
For real? Which version of MOAR? I got it working but it would reveet back to the stock battery every ten seconds so I gave up lol.
Sent from a Galaxy 5 light years away

I did it on MOAR v1.1 and just followed the instructions and changed this line:
<ImageView android:gravity="center" android:id="@id/battery" android:layout_width="wrap_content" android:layout_height="wrap_content" androidaddingStart="3.0dip" />
And I changed it to:
<com.android.systemui.statusbar.policy.MinitBattery android:id="@id/battery" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="0.33000004dip" android:layout_marginStart="5.0dip" />
Make sure you have the 3minit battery app installed before you copy over your newly compiled SystemUI.apk and all should be well, you will just need to to hide the MOAR battery icon in the MOAR Mod Control settings.
Joe0113 said:
For real? Which version of MOAR? I got it working but it would reveet back to the stock battery every ten seconds so I gave up lol.
Sent from a Galaxy 5 light years away
Click to expand...
Click to collapse

xSLAYERx said:
I did it on MOAR v1.1 and just followed the instructions and changed this line:
<ImageView android:gravity="center" android:id="@id/battery" android:layout_width="wrap_content" android:layout_height="wrap_content" androidaddingStart="3.0dip" />
And I changed it to:
<com.android.systemui.statusbar.policy.MinitBattery android:id="@id/battery" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="0.33000004dip" android:layout_marginStart="5.0dip" />
Make sure you have the 3minit battery app installed before you copy over your newly compiled SystemUI.apk and all should be well, you will just need to to hide the MOAR battery icon in the MOAR Mod Control settings.
Click to expand...
Click to collapse
Can you upload your modified systemui apk for me with the 3minit edits in it??
Sent from a Galaxy 5 light years away

Modding the systemui apk on stock odex NE5, getting force closes and a disappearing status bar.
Sent from my SM-G900P using Tapatalk

Related

(>HOW TO<)Centre clock/clock colour blue

Guide:
Center Clock Mod
Decompile SystemUI.apk
Systemui/res/layout/tw_status_bar.xml
Delete:
Code:
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="left|center" android:id="@id/clock" android:paddingLeft="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
Then find this line and create a blank under it:
Code:
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
And enter these lines into the space:
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>
Blue clock
SystemUI/res/values/styles.xml
search for
Code:
<style name="TextAppearance.StatusBar.Clock" parent="@android:style/TextAppearance.StatusBar.Icon">
<item name="android:textSize">18.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">@android:color/[COLOR="Magenta"]holo_blue_light</item>[/COLOR]
and change to
Code:
<style name="TextAppearance.StatusBar.Clock" parent="@android:style/TextAppearance.StatusBar.Icon">
<item name="android:textSize">20.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">@android:color/[COLOR="Red"]holo_blue_dark</item>[/COLOR]
Recompile SystemUI
Is it possible to make a flashable zip ? for both blue clock and centered clock ?
can explain center clock more brifly nt geting itt
Sent from my GT-I9300 using xda premium
saveferris said:
Is it possible to make a flashable zip ? for both blue clock and centered clock ?
Click to expand...
Click to collapse
Systemui changes on every theme on every rom. Its something best done by the individual
Sent from my GT-I9300 using Tapatalk 2
What are you guys using to decompile/recompile... I'm having issues compiling with apktool..
Can someone write up a quick guide ?
It seems I can decompile, can't compile with out errors tho.
yea,can someone make a flashible zip? Thanks
hello a suggestion. I personally do not like the operator's name in the status bar. I would put in the bottom of the curtain. Thank you.
Enviado desde mi GT-I9300 usando Tapatalk 2
vegerfrancois said:
yea,can someone make a flashible zip? Thanks
Click to expand...
Click to collapse
Not possible. Did you read my post?
this should work on both odexed and deodexed roms, ye?
maxq1 said:
this should work on both odexed and deodexed roms, ye?
Click to expand...
Click to collapse
Yes it works on both!!!!
Did you use Notepad to make the changes?
Sent from my GT-I9300 using xda premium
slonn said:
Did you use Notepad to make the changes?
Sent from my GT-I9300 using xda premium
Click to expand...
Click to collapse
yes notepad++
Sent from my GT-I9300 using xda premium
Could you turn this into an installable app?
I dont want to root my phone yet, but really wanted to have that clock centered :-/
This method is working, thanks ... but how to make the center clock disappear in lock-screen?
center data
Hello friends, I followed the guide to center the clock :good:, now I want to center the data and move under the name of the manager, how can I do? thanks for your time.
Roby
mine looks all crazy in notepad++, how do I get it to read as all text?
Skyler2Dope said:
mine looks all crazy in notepad++, how do I get it to read as all text?
Click to expand...
Click to collapse
you have to decompiele it with apktool
Sent from my GT-I9300 using xda premium
Andrewtst said:
This method is working, thanks ... but how to make the center clock disappear in lock-screen?
Click to expand...
Click to collapse
+1, would like to know too, if possible.
I think it's a LinearLayout placement problem, should be placed elsewhere, not sure thought.
Does this mod work also on Android 4.1 Jelly Bean? I tried it on my GS3 with CM10, but it didn't work for me.
yeah!
zotac1907 said:
Does this mod work also on Android 4.1 Jelly Bean? I tried it on my GS3 with CM10, but it didn't work for me.
Click to expand...
Click to collapse
It's work fine thanks you very much:good::highfive:

remove carrier logo from the statusbar?

anyone know how to remove that at&t logo from the statusbar? i know its a xml edit in the systemui but i cannot figure it out.
somebody please answer this man
I don't know, maybe, possibly, someone with better skills than I on modding could chime in
Ø LGSystemUI.apk /res/layout/Status_bar.xml
<com.lge.systemui.OperatorTextView
android:textStyle="bold" android:gravity="center_vertical" android:id="@id/operator_text" android:tag="NO_R2L" androidaddingLeft="0.0dip" androidaddingRight="0.0dip" android:layout_width="0.0dip" android:layout_height="0.0dip" android:singleLine="true" />
Change like this.
I did not find it out. From tnsqo1126
Edit: is : p
Link: http://m.cafe.naver.com/ArticleRead.nhn?clubid=25821799&articleid=1220&page=&menuid=26
reider123 said:
Ø LGSystemUI.apk /res/layout/Status_bar.xml
<com.lge.systemui.OperatorTextView
android:textStyle="bold" android:gravity="center_vertical" android:id="@id/operator_text" android:tag="NO_R2L" androidaddingLeft="0.0dip" androidaddingRight="0.0dip" android:layout_width="0.0dip" android:layout_height="0.0dip" android:singleLine="true" />
Change like this.
I did not find it out. From tnsqo1126
Edit: is : p
Link: http://m.cafe.naver.com/ArticleRead.nhn?clubid=25821799&articleid=1220&page=&menuid=26
Click to expand...
Click to collapse
Anyone try this?
reider123 said:
Ø LGSystemUI.apk /res/layout/Status_bar.xml
<com.lge.systemui.OperatorTextView
android:textStyle="bold" android:gravity="center_vertical" android:id="@id/operator_text" android:tag="NO_R2L" androidaddingLeft="0.0dip" androidaddingRight="0.0dip" android:layout_width="0.0dip" android:layout_height="0.0dip" android:singleLine="true" />
Change like this.
I did not find it out. From tnsqo1126
Edit: is : p
Link: http://m.cafe.naver.com/ArticleRead.nhn?clubid=25821799&articleid=1220&page=&menuid=26
Click to expand...
Click to collapse
if i upload my systemui can you do this mod? i cant apktool to work right.
i can confirm it works, i removed the carrier text and changed all of the stausbar text to holo blue.
reider123 said:
Ø LGSystemUI.apk /res/layout/Status_bar.xml
<com.lge.systemui.OperatorTextView
android:textStyle="bold" android:gravity="center_vertical" android:id="@id/operator_text" android:tag="NO_R2L" androidaddingLeft="0.0dip" androidaddingRight="0.0dip" android:layout_width="0.0dip" android:layout_height="0.0dip" android:singleLine="true" />
Change like this.
I did not find it out. From tnsqo1126
Edit: is : p
Link: http://m.cafe.naver.com/ArticleRead.nhn?clubid=25821799&articleid=1220&page=&menuid=26
Click to expand...
Click to collapse
I'm dumb as bricks, what I use to enter all this?
Funk2641 said:
I'm dumb as bricks, what I use to enter all this?
Click to expand...
Click to collapse
Its complicated. You need both java and the android SDK installed on your PC. Then you need apktools to decomplie and recompile the lgsystemUI. Not for the faint of heart but its fun learning.
fix-this! said:
Its complicated. You need both java and the android SDK installed on your PC. Then you need apktools to decomplie and recompile the lgsystemUI. Not for the faint of heart but its fun learning.
Click to expand...
Click to collapse
great....its a start for sure...the g pro is all new, its already a giant leap done!!:good:
reider123 said:
Ø LGSystemUI.apk /res/layout/Status_bar.xml
<com.lge.systemui.OperatorTextView
android:textStyle="bold" android:gravity="center_vertical" android:id="@id/operator_text" android:tag="NO_R2L" androidaddingLeft="0.0dip" androidaddingRight="0.0dip" android:layout_width="0.0dip" android:layout_height="0.0dip" android:singleLine="true" />
Change like this.
I did not find it out. From tnsqo1126
Edit: is : p
Link: http://m.cafe.naver.com/ArticleRead.nhn?clubid=25821799&articleid=1220&page=&menuid=26
Click to expand...
Click to collapse
this worked great for me. do you know how to remove the brightness slider too? i assume its in the lgsystemui somewhere?
fix-this! said:
this worked great for me. do you know how to remove the brightness slider too? i assume its in the lgsystemui somewhere?
Click to expand...
Click to collapse
it would be nice to have a "debloated" at&t rom.....like the optimus g have on xda here...:good:
zxaz said:
it would be nice to have a "debloated" at&t rom.....like the optimus g have on xda here...:good:
Click to expand...
Click to collapse
we will in time, its a brand new device.
Anyone make a cwm flashable zip for this?
idle0095 said:
Anyone make a cwm flashable zip for this?
Click to expand...
Click to collapse
Not yet.....but should very soon.....
Looking for CWM flashable zip with the carrier logo ..the brigtness slider and the Qslide removed...
Teardrop45 said:
Looking for CWM flashable zip with the carrier logo ..the brigtness slider and the Qslide removed...
Click to expand...
Click to collapse
There is already one for removing QSlide: http://forum.xda-developers.com/showthread.php?t=2284429
Probably best to keep them separate, for flexibility. I actually like the brightness slider and would want to keep it, but I don't mind ditching the AT&T logo. It's useless and it's not like I don't know what carrier I'm on.
npaladin2000 said:
There is already one for removing QSlide: http://forum.xda-developers.com/showthread.php?t=2284429
Probably best to keep them separate, for flexibility. I actually like the brightness slider and would want to keep it, but I don't mind ditching the AT&T logo. It's useless and it's not like I don't know what carrier I'm on.
Click to expand...
Click to collapse
Yes im already using that one...But if i find a zip that takes care of all 3 it would be amazing..
fix-this! said:
i can confirm it works, i removed the carrier text and changed all of the stausbar text to holo blue.
Click to expand...
Click to collapse
Help me out here... to do this, what did you do? A text editor and add the listed code? If so how? And what file?
Sent from my LG-E980 using xda premium
Bumping this, can anyone post a walkthrough for doing this?

[Tutorial][How-to][Guide] StatusBar Mods [CORNER OPTION - TRAFFIC - MORE]

StatusBar Mods For All Xperia Devices​
Requirements​
ApkTool
SystemUI.apk
Knowledge to Decompiling and Compiling APKs
Notepad++
Add Corner Options on StatusBar
Decompile with APKTool SystemUI.apk
Go to res/layout/status_bar.xml
Add this Line ( <com.android.systemui.statusbar.policy.KeyButtonView android:layout_gravity="right" android:id="@id/home" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/screen_lock" android:layout_toRightOf="@id/recent_apps" android:contentDescription="@string/accessibility_back" systemui:keyCode="26" systemui:keyRepeat="false" systemui:glowBackground="@drawable/ic_sysbar_highlight" androidrientation="vertical" /> ) between this " </LinearLayout> " and this " <ImageView android:layout_gravity="top|left|center" android:id="@id/rounded_corner_ul" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/rounded_corner_ul" /> "
Than Make a Transparent Image 20x35 with Photoshop in .PNG , rename it in ( screen_lock ) and copy in" res/drawable-xhdpi "
Compilng and Done
Add Traffic Meter to StatusBar
Decompile systemUI.apk
Go to res/layout and open status_bar.xml
Add this line ( <com.android.systemui.statusbar.policy.Traffic android:textAppearance="@style/TextAppearance.StatusBar.Traffic" android:gravity="left|center" android:id="@id/traffic" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" /> ) two line above the line " <include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_view" /> "
now go to res/values and open ids.xml and add this line at the end " <include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_view" /> "
Now go to res/values and open styles.xml and copy this code at the end "
<style name="TextAppearance.StatusBar.Traffic" parent="@style/TextAppearance.StatusBar.Clock">
<item name="android:textSize">14.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">#ffffffff</item>
<item name="android:textAllCaps">false</item>
</style> "
Now download this Package and extract it to smali/com/android/systemui/statusbar/policy/HERE
Compile and Done
Change Color StatusBar
Decompiling SystemUI.apk
Go to res/values , open drawables.xml
Change in <item type="drawable" name="status_bar_background">#ff14374f</item> the #ff14374f in ur prefered colour , to choose color i suggest to open Photoshop and in colors pick up ur colour code and paste with this " 14374f " in Drawables.xml file.
Compiling and Done
More Mods Soon​
Appreciate your work but these mods can already be done using Xposed framework without any flashing.
PünchUp said:
Appreciate your work but these mods can already be done using Xposed framework without any flashing.
Click to expand...
Click to collapse
And for who dont want xposed?!? Hahah
Sent from my LT26ii using XDA Premium 4 mobile app
savergiggio said:
And for who dont want xposed?!? Hahah
Sent from my LT26ii using XDA Premium 4 mobile app
Click to expand...
Click to collapse
That's why I said I appreciate your work
PünchUp said:
That's why I said I appreciate your work
Click to expand...
Click to collapse
nice!!
Can u post screenshots of end-effect of edited statusbar?
Thanks master @savergiggio
Sent from my LT26w using XDA Premium 4 mobile app
Great tutorial mate! I really appriciate it ?
EDIT: how about tutorial on putting close all button on taskswitcher?
Why don't you never give credits? You haven't made up these mods... you should give credits to whoever you have copied the code from.
rockernaxo said:
Why don't you never give credits? You haven't made up these mods... you should give credits to whoever you have copied the code from.
Click to expand...
Click to collapse
i didnt copy these codes
HitFan said:
Can u post screenshots of end-effect of edited statusbar?
Click to expand...
Click to collapse
i will
rockernaxo said:
Why don't you never give credits? You haven't made up these mods... you should give credits to whoever you have copied the code from.
Click to expand...
Click to collapse
savergiggio said:
i didnt copy these codes
Click to expand...
Click to collapse
Oh Really?
Same as this link : http://forum.xda-developers.com/showthread.php?t=2241739
And you give TRAFFIC.zip on this thread.
You Reported "freeloader" !!
savergiggio said:
i didnt copy these codes
Click to expand...
Click to collapse
Are you kidding? Who are you trying to decieve?
I don't say you can't post "your guide" here, but at least give credits to those who have really done this stuff.
These mods are the result of hours of hardwork and not of your hardwork. Give credits man, that's not the spirit of xda.
Hi , i guess that OP never use searh button. 
Dzol Cp said:
Hi , i guess that OP never use searh button. 
Click to expand...
Click to collapse
But he uses well Ctrl-C and Ctrl-P
Btw thanks you for this tuturial...
rockernaxo said:
Are you kidding? Who are you trying to decieve?
I don't say you can't post "your guide" here, but at least give credits to those who have really done this stuff.
These mods are the result of hours of hardwork and not of your hardwork. Give credits man, that's not the spirit of xda.
Click to expand...
Click to collapse
bro u are right but i pick up these codes from different source i can't give credit to only one person... i serched for them in others site too .... different from XDA...
savergiggio said:
bro u are right but i pick up these codes from different source i can't give credit to only one person... i serched for them in others site too .... different from XDA...
Click to expand...
Click to collapse
Simple, you can start giving credits to RC @Dzol Cp.
The same I'd recommend with your ROM
savergiggio said:
i didnt copy these codes
Click to expand...
Click to collapse
@rockernaxo is right, i think u get the tutorial on adding traffic meter on statusbar here: http://forum.xda-developers.com/showthread.php?t=2241739 right?
savergiggio said:
bro u are right but i pick up these codes from different source i can't give credit to only one person... i serched for them in others site too .... different from XDA...
Click to expand...
Click to collapse
You're not successful on lying as hijack. I gave the source thread (which you take(hijack) TRAFFIC.zip) You must give Dzol Cp to credits.
This is not your work, and you're saying i didint take the codes, they are my made. So Sorry for you!
savergiggio said:
bro u are right but i pick up these codes from different source i can't give credit to only one person... i serched for them in others site too .... different from XDA...
Click to expand...
Click to collapse
I check your zip file and all the smali code is belong to me and my group project! what are you gonna say? still refuse to add real link and credits?
then your thread has still not report to FORUM MODERATOR.. i give you chance by today.. and if still nothing on progress. then you will know.
Regards
Dz

[Guide] Add OGBatteryMod to your ROM

I found this guide here and this is what I did differently from it to make this work for us. You can use the linked file to click an app to change the icon or you can add it into settings in your rom. For those that don't know what this does this probably isn't the thread for you. Just wait until you see it popping up in the roms you use. This should work universally for ND8 builds.
http://forum.xda-developers.com/showthread.php?t=2730108
Now instead of following all of his steps and not finding what you're searching for I will simplify this some to make it quicker. You will want to search for this and replace it throughout the smali file in your decompiled systemui.apk (\SystemUI\smali\com\android\systemui\statusbar\ph one\PhoneStatusBar.smali)
Find all instances of
Code:
Lcom/android/systemui/statusbar/policy/BatteryController;
and replace with
Code:
Lcom/ghareeb/BatteryMod/BatteryController;
Then open (\SystemUI\res\layout\status_bar.xml) and find [This may already be changed if you used tdunham's 1% battery mod]
Code:
<com.android.systemui.BatteryMeterView android:id="@id/battery" android:layout_width="12.0dip" android:layout_height="18.0dip" android:layout_marginBottom="0.33000004dip" android:layout_marginStart="5.0dip" />
and replace it with
Code:
<ImageView android:gravity="center" android:id="@id/battery" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="0.0dip" android:layout_marginStart="2.0dip" />
Now most importantly you need to add these smali files to your systemui so they're in (systemui/smali/com/ghareeb/BatteryMod)
http://forum.xda-developers.com/attachment.php?attachmentid=2706746&stc=1&d=1398368939
Then add the OGBatterymod.apk of your choice to system/app. I didn't provide one in this guide sorry but maybe I will upload one eventually. You can easily look for one to add, all the old ones should work.
To add it to secsettings under display
Decompile secsettings.apk and open (\SecSettings\res\xml\display_settings.xml)
Find
Code:
<PreferenceScreen android:title="@string/notification_panel_title" android:key="notification_panel_edit" android:fragment="com.android.settings.NotificationPanelMenu" />
Add this under that line
Code:
<PreferenceScreen android:title="@string/battery_mod" android:summary="@string/battery_mod_desc">
<intent android:targetPackage="com.ghareeb.battery" android:action="android.intent.action.MAIN" android:targetClass="com.ghareeb.battery.Settings" />
</PreferenceScreen>
Now open (\SecSettings\res\values\string.xml) and add this
Code:
<string name="battery_mod">OGBattery Mod</string>
<string name="battery_mod_desc">Change battery icon and charging animation.</string>
For those who don't want to add this to settings for some reason you can find one with the icon so you can just open the app here: http://forum.xda-developers.com/showthread.php?t=2758088
Thanks to @OsamaGhareeb and @meawww also @axel06 for his that I linked with the icon instead of having to have it in settings if anyone would like to do it this way.
Dude you are awesome! I can't wait to get on this. Have to wait till the weekend though.
BTW this works great! Thanks again.
talkingmonkeys said:
I found this guide here and this is what I did differently from it to make this work for us. You can use the linked file to click an app to change the icon or you can add it into settings in your rom. For those that don't know what this does this probably isn't the thread for you. Just wait until you see it popping up in the roms you use. This should work universally for ND8 builds.
http://forum.xda-developers.com/showthread.php?t=2730108
Now instead of following all of his steps and not finding what you're searching for I will simplify this some to make it quicker. You will want to search for this and replace it throughout the smali file in your decompiled systemui.apk (\SystemUI\smali\com\android\systemui\statusbar\ph one\PhoneStatusBar.smali)
Find all instances of
Code:
Lcom/android/systemui/statusbar/policy/BatteryController;
and replace with
Code:
Lcom/ghareeb/BatteryMod/BatteryController;
Then open (\SystemUI\res\layout\status_bar.xml) and find [This may already be changed if you used tdunham's 1% battery mod]
Code:
<com.android.systemui.BatteryMeterView android:id="@id/battery" android:layout_width="12.0dip" android:layout_height="18.0dip" android:layout_marginBottom="0.33000004dip" android:layout_marginStart="5.0dip" />
and replace it with
Code:
<ImageView android:gravity="center" android:id="@id/battery" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="0.0dip" android:layout_marginStart="2.0dip" />
Now most importantly you need to add these smali files to your systemui so they're in (systemui/smali/com/ghareeb/BatteryMod)
http://forum.xda-developers.com/attachment.php?attachmentid=2706746&stc=1&d=1398368939
Then add the OGBatterymod.apk of your choice to system/app. I didn't provide one in this guide sorry but maybe I will upload one eventually. You can easily look for one to add, all the old ones should work.
To add it to secsettings under display
Decompile secsettings.apk and open (\SecSettings\res\xml\display_settings.xml)
Find
Code:
<PreferenceScreen android:title="@string/notification_panel_title" android:key="notification_panel_edit" android:fragment="com.android.settings.NotificationPanelMenu" />
Add this under that line
Code:
<PreferenceScreen android:title="@string/battery_mod" android:summary="@string/battery_mod_desc">
<intent android:targetPackage="com.ghareeb.battery" android:action="android.intent.action.MAIN" android:targetClass="com.ghareeb.battery.Settings" />
</PreferenceScreen>
Now open (\SecSettings\res\values\string.xml) and add this
Code:
<string name="battery_mod">OGBattery Mod</string>
<string name="battery_mod_desc">Change battery icon and charging animation.</string>
For those who don't want to add this to settings for some reason you can find one with the icon so you can just open the app here: http://forum.xda-developers.com/showthread.php?t=2758088
Thanks to @OsamaGhareeb and @meawww also @axel06 for his that I linked with the icon instead of having to have it in settings if anyone would like to do it this way.
Click to expand...
Click to collapse
Great guide man. I've been trying to get this mod going using some of the other guides out there, but no luck. Glad I found this. A couple of questions; I don't see a \ph one\ folder in my statusbar smali. Is that typo? Should it be: \SystemUI\smali\com\android\systemui\statusbar\PhoneStatusBar.smali. If so, I followed all steps but I get the following error when trying to recompile. Is it a syntax error?
Edit: Sorry about the path question. Dummy me. As for the recompile error, I think it has something to do with one of the smali files in the Ghareeb zip?
nyfl2004 said:
Great guide man. I've been trying to get this mod going using some of the other guides out there, but no luck. Glad I found this. A couple of questions; I don't see a \ph one\ folder in my statusbar smali. Is that typo? Should it be: \SystemUI\smali\com\android\systemui\statusbar\PhoneStatusBar.smali. If so, I followed all steps but I get the following error when trying to recompile. Is it a syntax error?
Edit: Sorry about the path question. Dummy me. As for the recompile error, I think it has something to do with one of the smali files in the Ghareeb zip?
Click to expand...
Click to collapse
Try using a different apktool. I think I used 2 beta. The different apk tools use different parameters and I can't remember exactly what you need to change it to for it to recompile just this minute
talkingmonkeys said:
Try using a different apktool. I think I used 2 beta. The different apk tools use different parameters and I can't remember exactly what you need to change it to for it to recompile just this minute
Click to expand...
Click to collapse
Thanks man. I can recompile your edits with no problem. I can't recompile once I add the Ghareeb smali files. I'll keep trying. Thanks again..
nyfl2004 said:
Thanks man. I can recompile your edits with no problem. I can't recompile once I add the Ghareeb smali files. I'll keep trying. Thanks again..
Click to expand...
Click to collapse
Try tickle my android. Chad suggested it to me and it worked. You can send me the file too and I'll have a look. Might not have a chance until Thursday to look at it but I think I know whats wrong its just explaining it drunk isn't too easy
talkingmonkeys said:
Try tickle my android. Chad suggested it to me and it worked. You can send me the file too and I'll have a look. Might not have a chance until Thursday to look at it but I think I know whats wrong its just explaining it drunk isn't too easy
Click to expand...
Click to collapse
Thanks man. I'll give Trickle my Android a shot later after work. If I can't manage, I'll send you the file. I really appreciate your help!

[Quick Circle] LG G3 Quick Circles Clocks. Marshmellow[Soon], Lollipop & Kitkat

D85* variants, works (to my knowledge) on all roms that support lg quick circle.
marshmellow QC Coming soon as soon as i can.
*Warning: Although this is working fine for me and others, i cant guarantee the safty of your device. This is a very simple Flash and complications are very very VERY rare. However i am not responsible for any damages done to your device please Always Backup With TWRP Before hand. This Only Works With TWRP. And (as far as i know) Only for D855-D852. Flash at your own risk if your using a different model number​
I want to make more i have future ideas for a superman clock and a number of other clocks if you have any ideas im more than happy to try them out. Just Message me. I make clocks to work for Lollipop and Kitkat. If you Run lollipop on g3 and have a ROM and you chose Xposed over quick circle "DONT FLASH THESE"
Space Clock:
Lollipop: https://www.dropbox.com/s/zoi9o79v4xk5f64/space%20Clock%20for%20lollipop.zip?dl=0
Kitkat: https://www.dropbox.com/s/75lm8gelp2olcq8/space%20clock%20for%20kitkat.zip?dl=0
Update!!! Im working on bringing my space clock to marshmellow & working on a brand new clock called "around the world" which will have a number of moving objects a hot air balloon and clouds, a Plane and a number of monuments form countries around the world. While will also slowly rotate.
Click to expand...
Click to collapse
Contributors: Thanks to Lillo75 for zip And Ashrockr for assistance too.
I can't decompile it with apktool, so I can't help you.
Inorder to decrypt the file you need decompile the apk.( There are some great tool for easy decopilation of apk).
I've already modified these clock for g2 running g3 rom which has a rectangular case.
Moreover to remove the date which appears behind your second's hand you need to edit the smali file which you'll get by decompiling the apk.
Hence you need to learn how to decompile and edit smali file.
Ashrockr said:
Inorder to decrypt the file you need decompile the apk.( There are some great tool for easy decopilation of apk).
I've already modified these clock for g2 running g3 rom which has a rectangular case.
Moreover to remove the date which appears behind your second's hand you need to edit the smali file which you'll get by decompiling the apk.
Hence you need to learn how to decompile and edit smali file.
Click to expand...
Click to collapse
Have you successed in decompiling android 5.0 system apks using apktool? it fails for me.
yoavst said:
Have you successed in decompiling android 5.0 system apks using apktool? it fails for me.
Click to expand...
Click to collapse
I too couldn't decompile the apk from 5.0 even though it has been updated to decompile 5.0 apps.
Mmm well im running kitkat atm. So i night try that then. Ive got rid of date i just want to customise it more to behonest lol. I like digital but i want spinny clock. Is apktool the best to use??
well ive decompiled and im begining the smali edit lol ... this should be intresting
Green:- Hour
White:- Minute
Orange:- Second (All working good. Couldn't remove the date bg.)
I attached a zip file which will add digital clock to you analog clock (3rd clock), just flash using twrp.
It didn't add the files to change the clock face so that you can add your own style. Also it won't remove the date.
Flash at your risk. Also DO make a backup of LGAlarmClock.apk if you want to remove the mod.
Tested on cloudyG3 2.1 for G2 (G3A based rom).
Only for kitkat.
Is it possible to make it work on aosp based ROMs??
Thx
Ashrockr said:
View attachment 3072850
Green:- Hour
White:- Minute
Orange:- Second (All working good. Couldn't remove the date bg.)
I attached a zip file which will add digital clock to you analog clock (3rd clock), just flash using twrp.
It didn't add the files to change the clock face so that you can add your own style. Also it won't remove the date.
Flash at your risk. Also DO make a backup of LGAlarmClock.apk if you want to remove the mod.
Tested on cloudyG3 2.1 for G2 (G3A based rom).
Only for kitkat.
Click to expand...
Click to collapse
Wow thats awesome!, so i flash it like a normal rom?
Ashrockr said:
View attachment 3072850
Green:- Hour
White:- Minute
Orange:- Second (All working good. Couldn't remove the date bg.)
I attached a zip file which will add digital clock to you analog clock (3rd clock), just flash using twrp.
It didn't add the files to change the clock face so that you can add your own style. Also it won't remove the date.
Flash at your risk. Also DO make a backup of LGAlarmClock.apk if you want to remove the mod.
Tested on cloudyG3 2.1 for G2 (G3A based rom).
Only for kitkat.
Click to expand...
Click to collapse
Archtects said:
Wow thats awesome!, so i flash it like a normal rom?
Click to expand...
Click to collapse
Sorry How i decrypt the xml? stadard way lol
Ashrockr said:
View attachment 3072850
Green:- Hour
White:- Minute
Orange:- Second (All working good. Couldn't remove the date bg.)
I attached a zip file which will add digital clock to you analog clock (3rd clock), just flash using twrp.
It didn't add the files to change the clock face so that you can add your own style. Also it won't remove the date.
Flash at your risk. Also DO make a backup of LGAlarmClock.apk if you want to remove the mod.
Tested on cloudyG3 2.1 for G2 (G3A based rom).
Only for kitkat.
Click to expand...
Click to collapse
IGnore allll of that crap im just retarded i flashed it and its worked
soorta >_> lol, it doubles the BG Lol
https://www.dropbox.com/s/lsdqtugt1zh1nvt/Screenshot_2014-12-22-21-10-47.png?dl=0
okay i cant edit the XML at all its encrypted and ive tried loads to try edit it, and if you want to remove the date thing then you have to start coding from the WHITE analog Clock, but i cant edit the xml otherwise i might be able to stop the double bg, its only because "I imagine" the digital code is looking for a bg and because its been planted on top of the analog its using the same variable to call the same bg, there for reproducing it lol, but i cant do anything with the xml file i cant edit anything i cant view it at all lol, its encrypted.
and if i wanted to i cant seem to recompile the apk i edit wont do it so im still stuck at this lol
Ashrockr said:
View attachment 3072850
Green:- Hour
White:- Minute
Orange:- Second (All working good. Couldn't remove the date bg.)
I attached a zip file which will add digital clock to you analog clock (3rd clock), just flash using twrp.
It didn't add the files to change the clock face so that you can add your own style. Also it won't remove the date.
Flash at your risk. Also DO make a backup of LGAlarmClock.apk if you want to remove the mod.
Tested on cloudyG3 2.1 for G2 (G3A based rom).
Only for kitkat.
Click to expand...
Click to collapse
Okay! I think!! (This is me just assuming) Your xml works not by plonking all the digital code into the analoug code but your calling the digital code from the digial clock xml? So is it possible then to edit the digital.xml to remove it looking for a bg. And flash it? The same way you made itflash the clock? Sorry so many replies but i keep thinking of different things lol
Archtects said:
Okay! I think!! (This is me just assuming) Your xml works not by plonking all the digital code into the analoug code but your calling the digital code from the digial clock xml? So is it possible then to edit the digital.xml to remove it looking for a bg. And flash it? The same way you made itflash the clock? Sorry so many replies but i keep thinking of different things lol
Click to expand...
Click to collapse
Yes you are right!!
It is possible to edit the digital clack too. If you want to change the background of digital clock then edit the b2_quickcircle_digital_bg.png in raw-xxxhdpi folder.
Here's what i've edited in the analog_quick_circle_black.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout android:background="@android:color/black" android:layout_width="fill_parent" android:layout_height="fill_parent" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:custom="http://schemas.android.com/apk/res-auto">
<com.lge.clock.quickcover.view.AnalogQuickCircle android:gravity="center" android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" custom:dial="@raw/b2_quickcircle_analog_style03_bg" custom:hand_hour="@raw/b2_quickcircle_analog_style03_hour" custom:hand_minute="@raw/b2_quickcircle_analog_style03_minute" custom:hand_second="@raw/b2_quickcircle_analog_style03_second" custom:setStyle="style03" />
<RelativeLayout android:layout_width="190dp" android:layout_height="190dp" android:layout_centerInParent="true">
<com.lge.clock.quickcover.view.DigitalQuickCircle android:layout_width="wrap_content" android:layout_height="wrap_content" custom:digital_background="@raw/b2_quickcircle_digital_bg" custom:timeColorTop="#fff1f1f1" custom:timeColorBottom="#fff1f1f1" custom:amPmColor="#fff1f1f1" custom:dateColor="#fff1f1f1" custom:circleColor="#00f1f1f1" />
</RelativeLayout>
</RelativeLayout>
May be i've edited this a bit from the last time.
But you can get the idea from it.
And if you want to create the zip file for it then put this xml file in your decompiled folder of lgalarmclock.apk/res/layout and compile it. Then open the compiled apk with winrar and extract this file(analog_quick_circle_black.xml) from there and place the file in zip(vrtheme/system/priv-app/lagalarm.apk/res/layout). Compress and flash it.
Also i've created a new for g2's window case:- View attachment 3075006
That's awesome Clock haha!! Okay well I'm going to carry on having a play once its done it look awesome lol. But cheers dude. Really helped ! Ill keep updating if i find anything new or have done it lol
Ashrockr said:
Yes you are right!!
It is possible to edit the digital clack too. If you want to change the background of digital clock then edit the b2_quickcircle_digital_bg.png in raw-xxxhdpi folder.
Here's what i've edited in the analog_quick_circle_black.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout android:background="@android:color/black" android:layout_width="fill_parent" android:layout_height="fill_parent" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:custom="http://schemas.android.com/apk/res-auto">
<com.lge.clock.quickcover.view.AnalogQuickCircle android:gravity="center" android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" custom:dial="@raw/b2_quickcircle_analog_style03_bg" custom:hand_hour="@raw/b2_quickcircle_analog_style03_hour" custom:hand_minute="@raw/b2_quickcircle_analog_style03_minute" custom:hand_second="@raw/b2_quickcircle_analog_style03_second" custom:setStyle="style03" />
<RelativeLayout android:layout_width="190dp" android:layout_height="190dp" android:layout_centerInParent="true">
<com.lge.clock.quickcover.view.DigitalQuickCircle android:layout_width="wrap_content" android:layout_height="wrap_content" custom:digital_background="@raw/b2_quickcircle_digital_bg" custom:timeColorTop="#fff1f1f1" custom:timeColorBottom="#fff1f1f1" custom:amPmColor="#fff1f1f1" custom:dateColor="#fff1f1f1" custom:circleColor="#00f1f1f1" />
</RelativeLayout>
</RelativeLayout>
May be i've edited this a bit from the last time.
But you can get the idea from it.
And if you want to create the zip file for it then put this xml file in your decompiled folder of lgalarmclock.apk/res/layout and compile it. Then open the compiled apk with winrar and extract this file(analog_quick_circle_black.xml) from there and place the file in zip(vrtheme/system/priv-app/lagalarm.apk/res/layout). Compress and flash it.
Also i've created a new for g2's window case:- View attachment 3075006
Click to expand...
Click to collapse
can i push the xml to phone with out recompiling? for some reason my LGALARMCLOCK.apk Will not compile at all. im using apk tool
Archtects said:
can i push the xml to phone with out recompiling? for some reason my LGALARMCLOCK.apk Will not compile at all. im using apk tool
Click to expand...
Click to collapse
No you have to compile first.
https://www.dropbox.com/s/f54ljacx9ou9fs1/Screenshot_2014-12-23-22-20-19.png?dl=0
ive managed to get this so far.
need to work out how to change the color of the text now
Code:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout android:background="@*android:color/black" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:custom="http://schemas.android.com/apk/res-auto">
<com.lge.clock.quickcover.view.AnalogQuickCircle android:gravity="center" android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" custom:dial="@raw/b2_quickcircle_analog_style03_bg" custom:hand_hour="@raw/b2_quickcircle_analog_style03_hour" custom:hand_minute="@raw/b2_quickcircle_analog_style03_minute" custom:hand_second="@raw/b2_quickcircle_analog_style03_second" custom:setStyle="style02" />
<RelativeLayout android:layout_width="190.0dip" android:layout_height="190.0dip" android:layout_centerInParent="true">
<com.lge.clock.quickcover.view.DigitalQuickCircle android:layout_width="wrap_content" android:layout_height="wrap_content" custom:digital_background="@null" custom:timeColorTop="#154C6F" custom:timeColorBottom="#435e6f" custom:amPmColor="#435e6f" custom:dateColor="#435e6f" custom:circleColor="@null" />
</RelativeLayout>
</RelativeLayout>
this above is the code that should finaly finish the job lol!.
once i can actualy compile the flaming APK lol. still wont compile ive tried everything multitool, apktool, Just wont do it :/ idk why, apparently something to do with the andriod manifest?
anyone had this problem while compiling the LGAlarmClock? lol even if i decompile then recompile without editing anything it just wont do it.

Categories

Resources