Jump to content


Photo

CM7 look-a-like Notification Power Widget & MIUI Battery Bar for Moldovan Mile-High-Mountain-Pie

* * * * - 2 votes

  • Please log in to reply
29 replies to this topic

#1
KonstaT

KonstaT

    Hardcore

  • Developer Team
  • PipPipPipPipPipPip
  • 2,516 posts
  • Gender:Male
  • Location:Finland
  • Devices:Moto G, ZTE Open C
  • Twitter:@konstatuomio
Here is a fully customisable CM7 look-a-like power widget for Moldovan Mile-High-Mountain-Pie. Toggles for wifi, mobile data, GPS, bluetooth, sound/vibrate, brightness, flight mode, sync and auto-rotate. You can freely select which buttons are displayd and select their order. Options for sound/vibrate and brightness buttons. Long pressing on any of the switches takes you to settings menu. Quickpanel settings is embedded into settings menu. Select Settings -> QuickPanel Settings.

Attached File  shot_000003.png   275.87KB   111 downloads Attached File  shot_000004.png   275.67KB   64 downloads
Attached File  shot_000006.png   55.22KB   51 downloads Attached File  shot_000007.png   45.92KB   60 downloads

M-MHMP-RLS7-PowerWidget.zip
included in RLS8


MIUI style battery bar:

Attached File  shot_000008.png   296.77KB   98 downloads Attached File  shot_000011.png   59.57KB   65 downloads

What is included:
-MIUI style battery bar by Pvy. I've modified it a bit and it also needed a little fixing but all credits to Pvy.
-New fully customisable notification power widget
-Centered clock
-Removed normal battery icon
-Changed order of the status bar icons (moved alarm icon)
-Embeded battery bar settings into settings menu

M-MHMP-RLS7-PowerWidget-MIUI.zip
included in RLS8

Thanks:
lidroid, Pvy and CyanogenMod.

Edited by KonstaT, 09 January 2012 - 01:53 PM.

  • 0

#2
Geree

Geree

    Regular

  • Members
  • PipPip
  • 82 posts
  • Devices:ZTE Blade

Here is a CM7 look-a-like power widget for Moldovan Mile-High-Mountain-Pie. Toggles for wifi, mobile data, GPS, bluetooth, sync, auto-rotate, flight mode, auto-brightness, vibrate and sound.



Scrollable versions:

M-MHMP-PW10-scroll-all.zip
http://www.mediafire...vmj95v3449ff9l7
MD5:4B89929383FC2A0C70AEBE78B4E678AB

Regular versions:

M-MHMP-PW5-wifi-data-gps-bt-snd.zip
http://www.mediafire...265dcvocctcedom
MD5:01B4F344E5A1D41CB56FEDA124AEF925

M-MHMP-PW6-wifi-data-gps-bt-air-snd.zip
http://www.mediafire...4o2ykidfni2acon
MD5:9A8BD6C553290BBD267BC0DA2A6A2D20


Thanks to elitemovil, flshg, JKay, lidroid and CyanogenMod.


hi,
is it possible to create another (not scrollable) one with the followings:
wifi, BT, GPS, mobile data, sync, brightness
thanks in advance..

  • 0

#3
Geree

Geree

    Regular

  • Members
  • PipPip
  • 82 posts
  • Devices:ZTE Blade

hi,
is it possible to create another (not scrollable) one with the followings:
wifi, BT, GPS, mobile data, sync, brightness
thanks in advance..


I noticed meanwhile that Brightness switch only disables autobrightness...is it possible to add more brightness options? (e.g. Dim, 40,75,100,auto)

  • 0

#4
KonstaT

KonstaT

    Hardcore

  • Developer Team
  • PipPipPipPipPipPip
  • 2,516 posts
  • Gender:Male
  • Location:Finland
  • Devices:Moto G, ZTE Open C
  • Twitter:@konstatuomio
Yeah, it's only auto-brightness switch. It's pretty useless if you ask me too. ;)

We'll see what happens, I'm quite busy with other things at the moment. It's possible future work to add more brightness options. It would also be great to have sound/vibrate options under one button. I'm also looking into porting 2G-3G network mode option. No promises on any of those though...

I added that quite interesting combo you requested into the first post if you still want it.

Edited by KonstaT, 30 October 2011 - 03:34 PM.

  • 0

#5
Geree

Geree

    Regular

  • Members
  • PipPip
  • 82 posts
  • Devices:ZTE Blade

Yeah, it's only auto-brightness switch. It's pretty useless if you ask me too. ;)

We'll see what happens, I'm quite busy with other things at the moment. It's possible future work to add more brightness options. It would also be great to have sound/vibrate options under one button. I'm also looking into porting 2G-3G network mode option. No promises on any of those though...

I added that quite interesting combo you requested into the first post if you still want it.


Thanks..can't wait for the "useful" brigjtness sw now :)..
I get used to this combo since Im using CM this way since ancient times.

  • 0

#6
daaneel

daaneel

    Newbie

  • Members
  • Pip
  • 26 posts
  • Gender:Male
  • Devices:Blade / CM 10.1 KonstaKang
I would like to see the tethering ("wifi hotspot switch") available on this too!
Great addition to your Rom anyway, the switches I use most are on here now already!
+1 btw on the more options for the brightness switch request :)



  • 0

#7
KonstaT

KonstaT

    Hardcore

  • Developer Team
  • PipPipPipPipPipPip
  • 2,516 posts
  • Gender:Male
  • Location:Finland
  • Devices:Moto G, ZTE Open C
  • Twitter:@konstatuomio
Added scrollable version with enhanced brightness button. Thanks to flshg.

Edit. And removed. See next post.

Edited by KonstaT, 12 November 2011 - 04:12 PM.

  • 0

#8
KonstaT

KonstaT

    Hardcore

  • Developer Team
  • PipPipPipPipPipPip
  • 2,516 posts
  • Gender:Male
  • Location:Finland
  • Devices:Moto G, ZTE Open C
  • Twitter:@konstatuomio
Added new version. Thanks to flshg again. Long press on any of the toggles will automatically collapse status bar and take you to the respective settings menu.

M-MHMP-PW10-scroll+longpress-close.zip (brightness: auto -> min -> 48% -> max, and longpress opens respective setting menu and automatically closes status bar)
http://www.mediafire...arl0vu3lb1yyujc
MD5:CB46847C804191DE34CD8131F18A565A

Edited by KonstaT, 12 November 2011 - 02:37 PM.

  • 0

#9
Geree

Geree

    Regular

  • Members
  • PipPip
  • 82 posts
  • Devices:ZTE Blade

Added new version. Thanks to flshg again. Long press on any of the toggles will automatically collapse status bar and take you to the respective settings menu.

M-MHMP-PW10-scroll+longpress-close.zip (brightness: auto -> min -> 48% -> max, and longpress opens respective setting menu and automatically closes status bar)
http://www.mediafire...arl0vu3lb1yyujc
MD5:CB46847C804191DE34CD8131F18A565A


Hi KonstaT,
can you please make my favourite /w fixed brightness options?
M-MHMP-PW6-wifi-bt-gps-data-sync-bright?
I'd prefer the 48 or 50%...

thnks

Edited by Geree, 12 November 2011 - 03:23 PM.

  • 0

#10
KonstaT

KonstaT

    Hardcore

  • Developer Team
  • PipPipPipPipPipPip
  • 2,516 posts
  • Gender:Male
  • Location:Finland
  • Devices:Moto G, ZTE Open C
  • Twitter:@konstatuomio
Updated all of the regular versions. Better brightness button and long press link to settings menu. Also small tweak to layout/appearence (now it looks the same as the scrollable version).

M-MHMP-PW5-wifi-data-gps-bt-snd.zip
http://www.mediafire...p0otwlujghswjtw
MD5:98F4B76AFE90FAC935D0A44015AD5228

M-MHMP-PW6-wifi-data-gps-bt-air-snd.zip
http://www.mediafire...zz9z50ey4taaabb
MD5:25262B83FB74FCF0CAAEACA027AAA68F

M-MHMP-PW6-wifi-bt-gps-data-sync-bright.zip (brightness: auto -> min -> 48% -> max)
http://www.mediafire...1ebv8y0w7jomuch
MD5:48FAC3A1BA26B079BA1B50A2409F929C

  • 0

#11
Geree

Geree

    Regular

  • Members
  • PipPip
  • 82 posts
  • Devices:ZTE Blade

Updated all of the regular versions. Better brightness button and long press link to settings menu. Also small tweak to layout/appearence (now it looks the same as the scrollable version).

M-MHMP-PW5-wifi-data-gps-bt-snd.zip
http://www.mediafire...p0otwlujghswjtw
MD5:98F4B76AFE90FAC935D0A44015AD5228

M-MHMP-PW6-wifi-data-gps-bt-air-snd.zip
http://www.mediafire...zz9z50ey4taaabb
MD5:25262B83FB74FCF0CAAEACA027AAA68F

M-MHMP-PW6-wifi-bt-gps-data-sync-bright.zip (brightness: auto -> min -> 48% -> max)
http://www.mediafire...1ebv8y0w7jomuch
MD5:48FAC3A1BA26B079BA1B50A2409F929C


great thanks, I'll try it soon with your Gen3 rom... (now im still on Gen2)

  • 0

#12
KonstaT

KonstaT

    Hardcore

  • Developer Team
  • PipPipPipPipPipPip
  • 2,516 posts
  • Gender:Male
  • Location:Finland
  • Devices:Moto G, ZTE Open C
  • Twitter:@konstatuomio

great thanks, I'll try it soon with your Gen3 rom... (now im still on Gen2)

Why would you update to gen3?

You'll have a terrible partition layout and basically no ROM support (except mine of course ;)).

  • 0

#13
R_Bachman

R_Bachman

    Newbie

  • Members
  • Pip
  • 28 posts
  • Devices:ZTE-Blade
How can i make the power widget notification bar bigger?

Also a guide to change apps to whatever u want would be good.

Whenever n if you have time , Ty m8.

  • 0

#14
KonstaT

KonstaT

    Hardcore

  • Developer Team
  • PipPipPipPipPipPip
  • 2,516 posts
  • Gender:Male
  • Location:Finland
  • Devices:Moto G, ZTE Open C
  • Twitter:@konstatuomio

How can i make the power widget notification bar bigger?

Also a guide to change apps to whatever u want would be good.

Whenever n if you have time , Ty m8.

Can't be bothered to write a complete guide. Changing size/layout, button order, which buttons are shown, etc. is quite simple. Decompile SystemUI.apk with apktool, edit /res/layout/quickpanel_quick_settings.xml, compile with apktool, sign with test key and push to phone.

I attached template quickpanel_quick_settings.xml for both scrollable and normal version. Just remove lines for buttons you don't want to display. Change button order to what ever you like. You can change size by editing layout_width and layout_height in various places. There are some tricks with the scrollable version. If you remove buttons you also need to do some math to reduce the size of the whole button bar. Also make sure that layout_toRightOf points to previous button.

Attached Files


  • 1

#15
R_Bachman

R_Bachman

    Newbie

  • Members
  • Pip
  • 28 posts
  • Devices:ZTE-Blade
Thanks for the quick reply m8 :) .

  • 0

#16
C!chy

C!chy

    Newbie

  • Members
  • Pip
  • 36 posts
  • Devices:ZTE Blade (Orange SF)
KonstaT, you're the man! I rarely see a developer keeping things tight & posts crystal clear, while responding promptly to the community and coding practically per request. I'm very impressed! Thanks for all your work. :)

Now, back to the business. ;)

Changing size/layout, button order, which buttons are shown, etc. is quite simple. Decompile SystemUI.apk with apktool, edit /res/layout/quickpanel_quick_settings.xml, compile with apktool, sign with test key and push to phone.


I decoded, changed and built back the SystemUI.apk. I am using signapk.jar tool to sign the apk (I found it online, is it good one?) but I need to know how to push it back to the phone.   

Edited by C!chy, 09 December 2011 - 12:08 PM.

  • 0
:: C!chy ::
--------------
ZTE Blade [Gen 2 via FTM]
--------------
GEN1: JJ RLS9 -> SSpring RLS5 -> MMHMP RLS7
GEN2: CM 7.2 Burstlam -> MMHMP r8 uvk -> SSnow r7 -> AOKP CM9 rmx -> Back to SSnow r7 !!!

#17
KonstaT

KonstaT

    Hardcore

  • Developer Team
  • PipPipPipPipPipPip
  • 2,516 posts
  • Gender:Male
  • Location:Finland
  • Devices:Moto G, ZTE Open C
  • Twitter:@konstatuomio

I decoded, changed and built back the SystemUI.apk. I am using signapk.jar tool to sign the apk (I found it online, is it good one?) but I need to know how to push it back to the phone.   

Yeah, signapk does the job. I've used generic test key to sign stuff, but I've attached to exact key I've used to this post if you're unsure what key to use.

There are many ways of copying the new SystemUI.apk back to your phone. You can use Root Explorer or similar app, or you can use adb to push it to phone. In both of those cases remember to set correct permissions (644) to your file. I have a habit of making clockworkmod flashable zips. You can use one the zips from the first post and use some zip tool to replace SystemUI.apk with your new modified version.

  • 1

#18
C!chy

C!chy

    Newbie

  • Members
  • Pip
  • 36 posts
  • Devices:ZTE Blade (Orange SF)
It can not be that simple!? :D Just flashed the modified file and it just works. I love the CWM way! B)
I need to tweak the quickpanel-layout a bit, though, as there is a gap in the middle of green activity bar (I've moved few buttons around).

Edit: Gap fixed. Now PW works and looks great! :D

Thanks!




Edit: Can I replace the original PW (with the one I just customized) directly in the CWM ROM file before I flash it? Can I also replace/remove some non-critical apps and ringtones that way?

Edited by C!chy, 12 December 2011 - 04:27 PM.

  • 0
:: C!chy ::
--------------
ZTE Blade [Gen 2 via FTM]
--------------
GEN1: JJ RLS9 -> SSpring RLS5 -> MMHMP RLS7
GEN2: CM 7.2 Burstlam -> MMHMP r8 uvk -> SSnow r7 -> AOKP CM9 rmx -> Back to SSnow r7 !!!

#19
KonstaT

KonstaT

    Hardcore

  • Developer Team
  • PipPipPipPipPipPip
  • 2,516 posts
  • Gender:Male
  • Location:Finland
  • Devices:Moto G, ZTE Open C
  • Twitter:@konstatuomio
Added MIUI style battery bar to first post. More info in Moldavan MHMP thread post #715.

  • 0

#20
KonstaT

KonstaT

    Hardcore

  • Developer Team
  • PipPipPipPipPipPip
  • 2,516 posts
  • Gender:Male
  • Location:Finland
  • Devices:Moto G, ZTE Open C
  • Twitter:@konstatuomio
Updated the first post. Now fully customisable.

  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users