[Quick Circle] LG G3 Quick Circles Clocks. Marshmellow[Soon], Lollipop & Kitkat - G3 Q&A, Help & Troubleshooting

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.

Related

[Q] Transparent Statusbar/Dropdown Menu Gingerbread

Hello People!
I was wondering if someone knows if there is someone who can make a semi-transparent statusbar and dropdown menu? Or is there a ''how to'', to make it my own?
Hope this thread is on the right place.
Greets
[B-shorty]
Transparent status bar when on home screen on launcher pro is something I'm dying for since a very very long time...
you can make the background of the statusbar. The file ist in the framework-res.apk. Named "status_bar_background.9.png"
I uploaded an example for you
Ok thank you!
Had how can i implement and apply this adjustment?
Thank you!
Gunny© said:
you can make the background of the statusbar. The file ist in the framework-res.apk. Named "status_bar_background.9.png"
I uploaded an example for you
Click to expand...
Click to collapse
Doesn't work for gingerbread.
Have a look at SystemUI.apk/res/layout/status_bar_tracking.xml
scheichuwe said:
Doesn't work for gingerbread.
Have a look at SystemUI.apk/res/layout/status_bar_tracking.xml
Click to expand...
Click to collapse
How can i adjust that xml file? I'm totally new in adjusting such files.
Thank you!
B_sHorTy said:
How can i adjust that xml file? I'm totally new in adjusting such files.
Thank you!
Click to expand...
Click to collapse
scheichuwe is right. Change the status_bar_tracking.xml to point the background to a drawable.. Something like :-
<View android:background="@drawable/shade_bg" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0" />
Then make your drawable transparent. I've attached the one I use but you can always make your own if you want.
Hope this helps..
EDIT: The attachment should be called shade_bg.png. It seems to have been renamed when I attached it????
Rimmer1966 said:
scheichuwe is right. Change the status_bar_tracking.xml to point the background to a drawable.. Something like :-
<View android:background="@drawable/shade_bg" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0" />
Then make your drawable transparent. I've attached the one I use but you can always make your own if you want.
Hope this helps..
EDIT: The attachment should be called shade_bg.png. It seems to have been renamed when I attached it????
Click to expand...
Click to collapse
Do i need to past those lines in that XML file? how can i apply the changes i made?
Thanks!
Is this project finished?
Is it possible someone send modified xml file for transparent status bar in gingerbread ( 2.3.4)?
I would like that too..
I tried to make it my self but with no success.
Every time I changed something, the statusbar was gone. (like the whole status bar)
any progress on this?
same question.. somebody know?

[Q] Remove recent apps

After decompiling SystemUI.apk, what needs to be done in order to remove the recent apps section from the notification pulldown?
The easy way to remove the recent apps is to edit dimens.xml in SystemUI.apk in /res/values-hdpi. Change the line "recent_app_icon_height" from 120.0 px to 0.0 px.
To remove 4G from the Quick Settings tab, edit /res/layout/quick_settings.xml (also in SystemUI.apk) and change the line from
<include android:id="@id/wimax" layout="@layout/status_bar_preference" />
To:
<include android:id="@id/wimax" layout="@layout/status_bar_preference" android:visibility="gone" />
nvm, fixed it
Goldeneye877 said:
I'm using apk manager. Whenever I compile then push to my device, I end up with no status bar. I restart the device and stll no bar and systemui force closes.
Click to expand...
Click to collapse
You'll have to open the original and modded apk side by side using 7zip and pull the META-INF and the android manifest.xml from the original apk into your modded one. adb push that once you got that done and reboot. You should be good to go now.
Thanks so much, everything worked so far. One last thing. I used UOT to make some modifications to the pulldown such as transparency and just changing colors. However, it doesnt seem to change the color of the notification text (switched from white background to black transparent). What xml edit do I have to make to change the text in notifcations and quick settings to white instead of the original black?

[request]remove ATT carrier logo from stock ICS notification bar.

i found this, it's for another device but perhaps it can help with the location within xml files and such
http://forum.xda-developers.com/show...e+carrier+name
i'll donate to the dev that creates mod that removes the logo, who's with me!!??
let's give that hideous graphic the old heave ho!!!!!!!
http://forum.xda-developers.com/showthread.php?t=1773879&highlight=remove+carrier+name
Working link
do not mention it
Only for v20c. Use X-plore to replace. Delete SystemUI.odex before it.
-ReaL- said:
do not mention it
Only for v20c. Use X-plore to replace. Delete SystemUI.odex before it.
Click to expand...
Click to collapse
works perfect, thank you!!! sending a donation now..........:good:
-ReaL- said:
do not mention it
Only for v20c. Use X-plore to replace. Delete SystemUI.odex before it.
Click to expand...
Click to collapse
Thank you
Do we have to do anything special when replacing?
i had to change permissions, after moving the file into the system folder but before moving it into the app folder.
i used root explorer, had to change a setting there read/write only up at the top right.
If you will use X-plore you not have to change permissions
Thank you so much!!!!!!
-ReaL- said:
do not mention it
Only for v20c. Use X-plore to replace. Delete SystemUI.odex before it.
Click to expand...
Click to collapse
hmmm....now you are giving me a reason to update to 20c.
damint and I just re downloaded all my apps again...lol.
but no carrier logo is all win
as agenral rule of thumb when using root explorer you must change the permisions/attributes to "read/write" as opposed to "read only"
IMO unless your are 100% sure you would never accidently delete or move anything, this is the best option to have. Pluss I love rootEx.
For me and my two braincells its better to be safe.
Edit: Yo Real-> ..... thx again for your awesome root guide/method....I just got the 20c, IM rooted and this baby's next. Scott thx for posting this request!
Replacing
Code:
<TextView android:textSize="16.0dip" android:textStyle="bold" android:textColor="#ffffffff" android:ellipsize="marquee" android:layout_gravity="center_vertical" android:id="@id/operator_text" android:paddingLeft="6.0px" android:paddingTop="2.0px" android:layout_width="fill_parent" android:layout_height="fill_parent" android:singleLine="true" android:marqueeRepeatLimit="marquee_forever" />
with
Code:
<TextView android:textSize="[COLOR="Red"]0.0sp[/COLOR]" android:textStyle="bold" android:textColor="#ffffffff" android:ellipsize="marquee" android:layout_gravity="center_vertical" android:id="@id/operator_text" android:paddingLeft="[COLOR="red"]0.0px[/COLOR]" android:paddingTop="[COLOR="red"]0.0px[/COLOR]" android:layout_width="fill_parent" android:layout_height="fill_parent" android:singleLine="true" android:marqueeRepeatLimit="marquee_forever" />
in Bell's 20e like from 20c, but new systemui.apk does not start. APK from 20c does not work. Should it be deodexed?
For v20e Bell
-ReaL- said:
For v20e Bell
Click to expand...
Click to collapse
is there any hope you'll update the systemUI.apk for the latest
v20f bell release ?
I'm using v20f now and made a bunch of mods to the look including removing the carrier. You can see them in the "flaunt your screens" thread. If you send me your SystemUI.apk, I can remove the carrier (or do any of the other mods I posted in that thread), or I can post a tutorial. Either way! Let me know!
itiskonrad said:
I'm using v20f now and made a bunch of mods to the look including removing the carrier. You can see them in the "flaunt your screens" thread. If you send me your SystemUI.apk, I can remove the carrier (or do any of the other mods I posted in that thread), or I can post a tutorial. Either way! Let me know!
Click to expand...
Click to collapse
Hi,
Since you offer to post a tutorial I think I'll give it a try
Your mod list is quite cool but for now I only need the
instructions for removing the scrolling carrier's name in the
notification bar.
Thanks !
glc011 said:
Hi,
Since you offer to post a tutorial I think I'll give it a try
Your mod list is quite cool but for now I only need the
instructions for removing the scrolling carrier's name in the
notification bar.
Thanks !
Click to expand...
Click to collapse
The one above for v20e works fine for v20f I am running it now.
Sent from my LG-P930 using xda app-developers app
Sent from my LG-P930 using xda app-developers app
Indeed. I tried and it works.
Sent from my LG-P930 using xda app-developers app
May someone help me with getting the carrier text to show on mine ( yes odd that I want it but I kinda like it ). I don't have a Nitro but I (Might) get one to play with and dev a lil for (might), but I have a LG Spectrum 4G LTE (VS920) and need help getting the carrier to show in the top left. If someone could either port yalls system ui to mine or just put it in the top left I'd be glad to port a Rom of your liking! Thank you so much. Sorry for the troubles, been busy lately so kinda need some help. I've attached my SystemUI.apk at the bottom. Thanks again! Also I would do this but I'm having troubles with adb and apktool on my new laptop so I can't really do it myself. It worked on my old one go figure ( which is now broke ) .
Thank you for your time!
View attachment SystemUI.apk
I can do that for you, but just to be safe, I should probably also get your framework-res.apk and lge-res.apk since SystemUI.apk is dependent on both of them and since I'll bet they're slightly different than the framework-res.apk and lge-res.apk I have for my Nitro.
itiskonrad said:
I can do that for you, but just to be safe, I should probably also get your framework-res.apk and lge-res.apk since SystemUI.apk is dependent on both of them and since I'll bet they're slightly different than the framework-res.apk and lge-res.apk I have for my Nitro.
Click to expand...
Click to collapse
Ok, thank you so much!! is there anything you want in return such as a Rom or so?
Here's a zip including my SystemUI.apk, Framework-Res.apk and lge-res.apk : http://www.mediafire.com/?x6itzmbi2a7xjbl
Thanks

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

[App/Mod][Share]1070 Battery Mods!

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

Categories

Resources