Android SVC command tutorial

Source: Internet
Author: User

SVC command, located in the/system/bin directory, used to manage power control, wireless data, WiFi

# SVC <br/> available commands: <br/> help show information about the subcommands <br/> power control the power manager <br/> Data Control mobile data connectivity <br/> WiFi control the Wi-Fi manager </P> <p> # SVC power <br/> control the power manager <br/> usage: SVC power stayon [true | false | USB | Ac] <br/> set the 'Keep awake while plugged in 'setting. // set that the screen is always on, true is always on, false is not on, and USB is always on when the USB is inserted, AC is always on when power is inserted </P> <p> # SVC data <br/> control mobile data connectivity <br/> usage: SVC data [enable | disable] <br/> turn mobile data on or off. // set whether data on the mobile network is enabled <br/> SVC data prefer <br/> set mobile as the preferred Data Network // set the data on the mobile network to take precedence over WiFi </P> <p> # SVC WiFi <br/> control the Wi-Fi manager <br/> usage: SVC WiFi [enable | disable] <br/> turn Wi-Fi on or off. // set whether WiFi is enabled <br/> SVC WiFi prefer <br/> set Wi-Fi as the preferred Data Network // set wifi to take precedence over mobile network data, this should be set in general, unless you deliberately use mobile network data transmission

 


The above commands must be executed in shell and must be root.

You can use gscript and input these commands to put the shortcut on the desktop, which is as convenient as those of the switch software.

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.