android Programming Glossary: power_supply
Getting the battery current values for the Android Phone http://stackoverflow.com/questions/2439619/getting-the-battery-current-values-for-the-android-phone from adb shell using the following command cat sys class power_supply battery batt_current 449 But that too works only if the phone.. .contains inspire f new File sys class power_supply battery batt_current if f.exists return OneLineReader.getValue.. f new File sys devices platform i2c adapter i2c 0 0 0036 power_supply ds2746 battery current_now if f.exists return OneLineReader.getValue..
Getting the battery current values for the Android Phone http://stackoverflow.com/questions/2439619/getting-the-battery-current-values-for-the-android-phone sysfs interface where I can view the battery current value from adb shell using the following command cat sys class power_supply battery batt_current 449 But that too works only if the phone is connected via USB interface. If I disconnect the phone.. desire hd Build.MODEL.toLowerCase .contains desire z Build.MODEL.toLowerCase .contains inspire f new File sys class power_supply battery batt_current if f.exists return OneLineReader.getValue f false nexus one cyangoenmod f new File sys devices.. return OneLineReader.getValue f true sony ericsson xperia x1 f new File sys devices platform i2c adapter i2c 0 0 0036 power_supply ds2746 battery current_now if f.exists return OneLineReader.getValue f false xdandroid if Build.MODEL.equalsIgnoreCase..
|