Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4362: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4364: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4365: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4366: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
anddev.org • View topic - Battery tutorial for emulator

Battery tutorial for emulator

Basic Tutorials concerning: GUI, Views, Activites, XML, Layouts, Intents, ...

Battery tutorial for emulator

Postby adameve24 » Thu Dec 23, 2010 8:12 am

use the following instructions -
telnet
o localhost 5554
power ac off
power status discharging
power capacity 5

observe the emulator.

Now tell me can I do all these things with adb shell because -
adb shell cat /sys/class/power_supply/battery/capacity

returns the capacity.

Actualy in the "FILE SYSTEM" DRIVE
SYS -> CLASS -> POWER_SUPPLY
there are two folders which are not visible to us.
emulator maintains text files for every parameter of battery.

adb pull /sys/class/power_supply/battery/capacity /home/hp/Desktop
pulls the text file named capacity onto your desktop with value written on it.

I want to edit this file in sys folder but I do not have the permission, can you tell me how should I edit that file or any other alternative to change battery parameters using adb shell.

thnx

bye
adameve24
Developer
Developer
 
Posts: 29
Joined: Wed Dec 15, 2010 12:32 pm

Top

Return to Novice Tutorials

Who is online

Users browsing this forum: Google Feedfetcher and 3 guests