Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,728,773 Members 52,720 Now Online
XDA Developers Android and Mobile Development Forum

{Mod /How to}Remove Wireless Charging Notification 2.04.605.2 710RD

Tip us?
 
nitsuj17
Old
(Last edited by nitsuj17; 18th February 2013 at 04:52 PM.)
#1  
nitsuj17's Avatar
Recognized Developer - OP
Thanks Meter 17052
Posts: 10,100
Join Date: Aug 2010
Location: PA

 
DONATE TO ME
Default {Mod /How to}Remove Wireless Charging Notification 2.04.605.2 710RD

Here is a mod that *should* disable wireless charging in the latest verizon update...

***I do not have a charger to test, but this is the same change I did in 1.15 for ViperDNA and it was successful...please make a backup before flashing! You may need to have services signature checking disabled to use this, ask your rom developer to do so***
  • changes systemui.apk
  • disables wireless charging popup/notification
  • works on stock deodex or odex

****this will overwrite any other mods you have installed for systemui***


Download

***Feel free to include this in your rom/project, just properly credit, thanks!

For 2.04 Verizon 2/15 OTA
remove_wc_2.04.zip: link removed til i fix it
md5:
The Following 8 Users Say Thank You to nitsuj17 For This Useful Post: [ Click to Expand ]
 
nitsuj17
Old
(Last edited by nitsuj17; 17th February 2013 at 09:36 PM.)
#2  
nitsuj17's Avatar
Recognized Developer - OP
Thanks Meter 17052
Posts: 10,100
Join Date: Aug 2010
Location: PA

 
DONATE TO ME
For Developers Only!

how to apply this mod to your SystemUI project:


navigate to:

Quote:
smali/com/android/systemui/statusbar/phone/PhoneStatusbarPolicy.smali
search for:

Code:
.method private final showWirelessChargingStatusForVzW
wholesale replace the method with this:

Code:
.method private final showWirelessChargingStatusForVzW(Landroid/content/Intent;)V
    .locals 1

    const/4 v0, 0x0

    return v0
.end method

worked on 1.15 in viperDNA, no guarantees it works correctly in 2.04...some feedback would be helpful

(these seem like overly simplistic code changes in changing a 600 line method to the above, but should work fine...yes there are other ways to do it)
The Following 4 Users Say Thank You to nitsuj17 For This Useful Post: [ Click to Expand ]
 
MustafaHadaKing
Old
#3  
MustafaHadaKing's Avatar
Senior Member
Thanks Meter 1246
Posts: 867
Join Date: Aug 2011
Location: Boston

 
DONATE TO ME
Default Re: {Mod /How to}Remove Wireless Charging Notification 2.04.605.2 710RD

Quote:
Originally Posted by nitsuj17 View Post
For Developers Only!

how to apply this mod to your SystemUI project:


navigate to:



search for:

Code:
.method private final showWirelessChargingStatusForVzW
wholesale replace the method with this:

Code:
.method private final showWirelessChargingStatusForVzW(Landroid/content/Intent;)V
    .locals 1

    const/4 v0, 0x0

    return v0
.end method

worked on 1.15 in viperDNA, no guarantees it works correctly in 2.04...some feedback would be helpful

(these seem like overly simplistic code changes in changing a 600 line method to the above, but should work fine...yes there are other ways to do it)
Flashed the zip and the systemui force closes on boot and their is no longer a status bar on 2.04

Sent from my HTC6435LVW using xda app-developers app

 
nitsuj17
Old
#4  
nitsuj17's Avatar
Recognized Developer - OP
Thanks Meter 17052
Posts: 10,100
Join Date: Aug 2010
Location: PA

 
DONATE TO ME
Quote:
Originally Posted by MustafaHadaKing View Post
Flashed the zip and the systemui force closes on boot and their is no longer a status bar on 2.04

Sent from my HTC6435LVW using xda app-developers app
tell me what the logcat says from the fc, because i pushed the systemui over viperDNA on 1.15 and it doesnt force close

its possible you may need signature checking disabled in services.jar (it is in viper)
 
zone23
Old
#5  
zone23's Avatar
Recognized Contributor
Thanks Meter 1746
Posts: 4,928
Join Date: Feb 2009
Quote:
Originally Posted by nitsuj17 View Post
tell me what the logcat says from the fc, because i pushed the systemui over viperDNA on 1.15 and it doesnt force close

its possible you may need signature checking disabled in services.jar (it is in viper)
I tried disabling signature checking in the services.jar but didn't seem to help. So that means one of two things 1.) I screwed up the services.jar 2.) thats not the problem. Thanks for your help. I'd be happy to post the modified services.jar if you think it would help.
The Following User Says Thank You to zone23 For This Useful Post: [ Click to Expand ]
 
nitsuj17
Old
#6  
nitsuj17's Avatar
Recognized Developer - OP
Thanks Meter 17052
Posts: 10,100
Join Date: Aug 2010
Location: PA

 
DONATE TO ME
Quote:
Originally Posted by zone23 View Post
I tried disabling signature checking in the services.jar but didn't seem to help. So that means one of two things 1.) I screwed up the services.jar 2.) thats not the problem. Thanks for your help. I'd be happy to post the modified services.jar if you think it would help.
hrmm, ill look at it more when im on 2.04

does the statusbar crash on install, or when you start wireless charging?
 
MustafaHadaKing
Old
#7  
MustafaHadaKing's Avatar
Senior Member
Thanks Meter 1246
Posts: 867
Join Date: Aug 2011
Location: Boston

 
DONATE TO ME
Default Re: {Mod /How to}Remove Wireless Charging Notification 2.04.605.2 710RD

Quote:
Originally Posted by nitsuj17 View Post
hrmm, ill look at it more when im on 2.04

does the statusbar crash on install, or when you start wireless charging?
On install

Sent from my HTC6435LVW using xda app-developers app

 
zone23
Old
#8  
zone23's Avatar
Recognized Contributor
Thanks Meter 1746
Posts: 4,928
Join Date: Feb 2009
Quote:
Originally Posted by nitsuj17 View Post
hrmm, ill look at it more when im on 2.04

does the statusbar crash on install, or when you start wireless charging?
Crashes on bootup.
 
nitsuj17
Old
#9  
nitsuj17's Avatar
Recognized Developer - OP
Thanks Meter 17052
Posts: 10,100
Join Date: Aug 2010
Location: PA

 
DONATE TO ME
Quote:
Originally Posted by zone23 View Post
Crashes on bootup.
interesting, flashed fine over 1.15....thanks for the feedback ill fix it up this week
The Following User Says Thank You to nitsuj17 For This Useful Post: [ Click to Expand ]
 
trickster2369
Old
#10  
trickster2369's Avatar
Senior Member
Thanks Meter 755
Posts: 2,276
Join Date: Feb 2011
Location: SD

 
DONATE TO ME
Default Re: {Mod /How to}Remove Wireless Charging Notification 2.04.605.2 710RD

After doing the OTA update to 2.0.4, I reflashed Viper and all the Viper updates back to 1.1.3, and it still works on the new firmware. Just sayin. But you probably already knew that.

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes