[MOD STAMINA] [XPOSED] Xperia Stamina Hide - v1.1 [Only MM]

Search This thread

Michele2

Senior Member
Nov 4, 2013
204
168
23
Manfredonia
Remove new annoying permanent bar notification of stamina in MM and other type of notify from Stamina and SystemUI :victory:
in XperiaPowerService. java there is a method "updateNotification(boolean var1)" called when stamina is activated or deactivated so this call resources to create notification but it use a boolean value given when called, if this is true he do job otherwhise remove red bar, simple inject boolean always false :laugh: - UPDATE: Also removed battery warning from SystemUI when battery is less than 15% or when Stamina is off and battery is less than 30%

Permissions:
Do whatever you want, but ... DO NOT PUBLISH MY SOURCE CODE ANYWHERE!!

Requeriments:
- Xposed Framework

Install:
1. Download and install always the latest apk version (attached below)
2. Activate it (Xposed Installer modules) and reboot
3. Done!

Special thanks:
- Sony
- @serajr for suggests and source :highfive:
- me, of course

Changelog:
v1.1
Removed notifications from SystemUI when stamina is off and battery is less than 30% and 15%
v.1.0
Removed any notification in SuperStamina.apk

if you like this module, hit thanks!
 

Attachments

  • XStaminaHide.apk
    51.2 KB · Views: 654
  • XStaminaHide_source.zip
    306 KB · Views: 195
  • XStaminaHide-v1.1.apk
    50.1 KB · Views: 492
  • XStaminaHide-v1.1.zip
    159.3 KB · Views: 207
Last edited:

whalesplaho

Senior Member
Feb 1, 2012
10,689
2,668
Treasure Island
Working great... But tha space is still there cos other notifications doesnt align well, there is a space before apps notification

---------- Post added at 11:30 AM ---------- Previous post was at 11:14 AM ----------

I mean tha gap between network icon and walkman icon....
 

Attachments

  • tmp_11874-Screenshot_20160907-112751145176673.jpg
    tmp_11874-Screenshot_20160907-112751145176673.jpg
    235 KB · Views: 1,172

Michele2

Senior Member
Nov 4, 2013
204
168
23
Manfredonia
Working great... But tha space is still there cos other notifications doesnt align well, there is a space before apps notification

---------- Post added at 11:30 AM ---------- Previous post was at 11:14 AM ----------

I mean tha gap between network icon and walkman icon....

This isn't a gap fix only bar remover and other advise, on my Z3C MM I haven't your types of icons attach screenshots before and after. Status bar untouched
 

Michele2

Senior Member
Nov 4, 2013
204
168
23
Manfredonia
Installed Google phone app now when activate usm phone not received so i want to remove i need xposed module because i dont have knowledge to edit apks

I think that you say something but you want something else, you would "include"(whitelist) google phone app into usm, because when you enable usm it freeze phone app and you can't use it, right?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 14
    Remove new annoying permanent bar notification of stamina in MM and other type of notify from Stamina and SystemUI :victory:
    in XperiaPowerService. java there is a method "updateNotification(boolean var1)" called when stamina is activated or deactivated so this call resources to create notification but it use a boolean value given when called, if this is true he do job otherwhise remove red bar, simple inject boolean always false :laugh: - UPDATE: Also removed battery warning from SystemUI when battery is less than 15% or when Stamina is off and battery is less than 30%

    Permissions:
    Do whatever you want, but ... DO NOT PUBLISH MY SOURCE CODE ANYWHERE!!

    Requeriments:
    - Xposed Framework

    Install:
    1. Download and install always the latest apk version (attached below)
    2. Activate it (Xposed Installer modules) and reboot
    3. Done!

    Special thanks:
    - Sony
    - @serajr for suggests and source :highfive:
    - me, of course

    Changelog:
    v1.1
    Removed notifications from SystemUI when stamina is off and battery is less than 30% and 15%
    v.1.0
    Removed any notification in SuperStamina.apk

    if you like this module, hit thanks!
    3
    any chance for tutorial on how to get rid of the notification modifiying the stamina.apk?. cheers

    simple add after "if-eqz...." the same row but with "if-nez..." in updateNotification(Z) in XperiaPowerService.smali

    if-eqz jump to...
    if-nez jumpt to...
    so the notification will never appear!
    1
    Mind helping with tha steps and xml to edit please?
    Thanks
    sorry friend I dont remember, there is a thread somewhere on xda... we are OT
    1
    Ciao Michele2, per caso il tuo modulo permette anche di disabilitare le fastidiosissime notifiche con inclusa vibrazione che compaiono a partire dal 15% di batteria "Livello batteria: inferiore a.... Sfiora qui per la stima sulla durata...Abilita avvio autom. stamina" ?
    credo che in MM 6.0.0 ci fosse una opzione per disabilitarle dalle impostazioni, ma su MM 6.0.1 non mi sembra ci sia più.
    A quanto pare la notifica appartiene a SystemUI

    Is it possible to disable those annoying notifications "Battery level: 15% or less....enable automatic activation of stamina mode", that you get when battery level reaches 15% ?

    Sono italiano, si ho capito a cosa ti riferisci, sinceramente sto pensando di rimuoverla, ok lo faccio, non mi pare sia difficile. appartiene alla systemUI , poi magari la integro in questo modulo oppure faccio qualcosa tipo flag. ora ci penso su

    I'm Italian, yes I know what do you want, I'm thinking to remove tem, ok I will do, it's simple. In SystemUI\res\values\integers.xml we can edit threshold