Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[APP] Skyrocket Charger Test [Now in Google Play]

OP Jrockttu

28th July 2012, 06:00 PM   |  #1  
OP Senior Member
Thanks Meter: 477
 
698 posts
Join Date:Joined: Nov 2007
Donate to Me
UPDATE (3/1/2014): Better late than never, the app is now available in the Google Play Store.

DOWNLOAD HERE

This version *should* work for both ICS and JB. I still don't have a Skyrocket, so can someone please download and test and let me know if it works? If it does not, I'll fix ASAP. I'm just publishing the same basic app to the Play Store to make it a little easier for you folks to install it after a flash.

If the Play Store version doesn't work for ICS and/or JB, v0.1 in this thread is for ICS, v0.3 is for JB


I created an app in Tasker's App Factory to test your Skyrocket's charger.

The goal of this app is to help you determine if your charger is providing a fast charge and to see if your charger will cause the dreaded wakelock. You should be able to plug in your charger and launch the app to see your charger type and current reported in the notification bar.

This app was created to accompany my thread on Skyrocket battery life here: http://forum.xda-developers.com/show....php?t=1759541

The apk is attached. Just install it and launch the app when you have a charger connected.

For Reference:

The app runs a cat of these files: /sys/class/power_supply/battery/charging_source & /sys/class/power_supply/battery/batt_current_adc

***Version 0.3 for Jelly Bean ROMs cats batt_charging_source instead of charging_source***

It uses charging_source and the values below to determine the charge type
0= No charger connected.

1= USB Normal Charge. There is 5VDC on pins 1&4 and data current is detected on 2&3

2= AC Fast Charge. AC Fast Charge. There is 5VDC on pins 1&4, and pins 2&3 are BRIDGED.

6= AC Regular Charge. This is the charge state that creates the wakelock. There is 5VDC on pins 1&4, and pins 2&3 are OPEN/DISCONNECTED.
The app uses the batt_current_adc value to determine the charge current. Anything below 500 means your charger provides a normal charge. Anything above that will likely be around 900 and that is considered a fast charge.

The Tasker project XML is attached in the second ZIP if anybody wants to see what the app is doing.

Version 0.1
First attempt

V 0.3
Should work with Jelly Bean
Updated minimum OS to 4.1
Changed cat of "charging_source" to "batt_charging_source"
Last edited by Jrockttu; 2nd March 2014 at 12:00 AM.
The Following 68 Users Say Thank You to Jrockttu For This Useful Post: [ View ]
28th July 2012, 06:28 PM   |  #2  
burgeswe's Avatar
Senior Member
Flag Edmond, OK
Thanks Meter: 31
 
108 posts
Join Date:Joined: Mar 2012
More
Installed this and tested it on 3 chargers, official, cheap brand, and car. Seems to work great!

So far all I notice is that it just doesn't launch if the device isn't plugged in (understandably), and the notification icon persists through closing the app (very minor)

I'm going to try it with another skyrocket and some knockoff batteries and will let you know!

Very nice app!

Edit: I'm running CM9 RC2/Nightly, just to give as much info as I can


Sent from my SAMSUNG-SGH-I727 using xda premium
Last edited by burgeswe; 28th July 2012 at 06:30 PM.
The Following User Says Thank You to burgeswe For This Useful Post: [ View ]
28th July 2012, 07:01 PM   |  #3  
OP Senior Member
Thanks Meter: 477
 
698 posts
Join Date:Joined: Nov 2007
Donate to Me
Quote:
Originally Posted by burgeswe

Installed this and tested it on 3 chargers, official, cheap brand, and car. Seems to work great!

So far all I notice is that it just doesn't launch if the device isn't plugged in (understandably), and the notification icon persists through closing the app (very minor)

I'm going to try it with another skyrocket and some knockoff batteries and will let you know!

Very nice app!

Edit: I'm running CM9 RC2/Nightly, just to give as much info as I can


Sent from my SAMSUNG-SGH-I727 using xda premium

Thanks for the feedback. I was trying to get it to report "No charger connected" when one isn't connected, but couldn't get it working. I'll try adding that again on my next version.
The Following User Says Thank You to Jrockttu For This Useful Post: [ View ]
31st July 2012, 05:51 PM   |  #4  
Junior Member
Thanks Meter: 6
 
20 posts
Join Date:Joined: Nov 2010
More
This Is Awesome! It allowed me to figure out which charges in my house were actually doing the trick. Thanks
1st August 2012, 07:11 AM   |  #5  
Junior Member
Thanks Meter: 5
 
29 posts
Join Date:Joined: Dec 2011
Hey everything works as you said. Good work.

Sent from my SGH-I727 using xda premium
2nd August 2012, 06:29 AM   |  #6  
Weazmeister's Avatar
Senior Member
Flag Huntington Beach
Thanks Meter: 48
 
271 posts
Join Date:Joined: Jul 2012
More
Excellent, thanks for this. Is there anyway to integrate the wakelock charging check into this as well?
2nd August 2012, 07:13 PM   |  #7  
OP Senior Member
Thanks Meter: 477
 
698 posts
Join Date:Joined: Nov 2007
Donate to Me
Quote:
Originally Posted by Weazmeister

Excellent, thanks for this. Is there anyway to integrate the wakelock charging check into this as well?

The app should tell you that your charger will cause a wakelock if it's one that will. Is it not doing that for you?
The Following 3 Users Say Thank You to Jrockttu For This Useful Post: [ View ]
2nd August 2012, 11:32 PM   |  #8  
Senior Member
Flag central Il
Thanks Meter: 77
 
380 posts
Join Date:Joined: Dec 2010
More
Mine just says fast charge a/c 903ma in notification area.I'm on cm10

Sent from my SAMSUNG-SGH-I727 using xda app-developers app
2nd August 2012, 11:35 PM   |  #9  
Senior Member
Thanks Meter: 54
 
403 posts
Join Date:Joined: Jun 2012
Quote:
Originally Posted by holeindalip

Mine just says fast charge a/c 903ma in notification area.I'm on cm10

Sent from my SAMSUNG-SGH-I727 using xda app-developers app

I'm on AOKP and I also just get #ma. Perhaps I'm referencing back to the post incorrectly but I don't follow how to interpret this to wake lock issue.

Sent from my SGH-I727 using Tapatalk 2
3rd August 2012, 07:41 AM   |  #10  
OP Senior Member
Thanks Meter: 477
 
698 posts
Join Date:Joined: Nov 2007
Donate to Me
If your charger is recognized as type 6, it will give you a notification like in the attached image. Type 6 causes a wakelock.

Click image for larger version

Name:	uploadfromtaptalk1343972478068.jpg
Views:	3526
Size:	42.1 KB
ID:	1238741

Sent from my SAMSUNG-SGH-I727 using xda app-developers app

The Following User Says Thank You to Jrockttu For This Useful Post: [ View ]
Post Reply Subscribe to Thread

Tags
battery, charger, charging, skyrocket
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes