{"id":19,"date":"2017-10-10T15:55:42","date_gmt":"2018-03-08T07:55:42","guid":{"rendered":"http:\/\/www.anthonylee.cn\/myblog\/?p=19"},"modified":"2018-03-08T15:55:42","modified_gmt":"2018-03-08T07:55:42","slug":"android%e7%b3%bb%e7%bb%9fsvc%e5%91%bd%e4%bb%a4","status":"publish","type":"post","link":"http:\/\/www.anthonylee.cn\/myblog\/?p=19","title":{"rendered":"Android\u7cfb\u7edfSVC\u547d\u4ee4"},"content":{"rendered":"<p># svc<br \/>\nsvc<br \/>\nAvailable commands:<br \/>\nhelp\u00a0\u00a0\u00a0\u00a0 Show information about the subcommands<br \/>\npower\u00a0\u00a0\u00a0 Control the power manager<br \/>\ndata\u00a0\u00a0\u00a0\u00a0 Control mobile data connectivity<br \/>\nwifi\u00a0\u00a0\u00a0\u00a0 Control the Wi-Fi manager<\/p>\n<p># svc power<br \/>\nsvc power<br \/>\nControl the power manager<br \/>\nusage: svc power stayon [true|false|usb|ac]<br \/>\nSet the &#8216;keep awake while plugged in&#8217; setting.\/\/\u8bbe\u7f6e\u5c4f\u5e55\u7684\u5e38\u4eae\uff0ctrue\u4fdd\u6301\u5e38\u4eae\uff0cfalse\u4e0d\u4fdd\u6301\uff0cusb\u5f53\u63d2\u5165usb\u65f6\u5e38\u4eae\uff0cac\u5f53\u63d2\u5165\u7535\u6e90\u65f6\u5e38\u4eae<\/p>\n<p># svc data<br \/>\nsvc data<br \/>\nControl mobile data connectivity<br \/>\nusage: svc data [enable|disable]<br \/>\nTurn mobile data on or off.\/\/\u8bbe\u7f6e\u79fb\u52a8\u7f51\u7edc\u7684\u6570\u636e\u662f\u5426\u542f\u7528<br \/>\nsvc data prefer<br \/>\nSet mobile as the preferred data network\/\/\u8bbe\u7f6e\u79fb\u52a8\u7f51\u7edc\u7684\u6570\u636e\u4f18\u5148\u4e8eWIFI<\/p>\n<p># svc wifi<br \/>\nsvc wifi<br \/>\nControl the Wi-Fi manager<br \/>\nusage: svc wifi [enable|disable]<br \/>\nTurn Wi-Fi on or off.\/\/\u8bbe\u7f6eWIFI\u662f\u5426\u542f\u7528<br \/>\nsvc wifi prefer<br \/>\nSet Wi-Fi as the preferred data network\/\/\u8bbe\u7f6eWIFI\u4f18\u5148\u4e8e\u79fb\u52a8\u7f51\u7edc\u7684\u6570\u636e\uff0c\u4e00\u822c\u5e94\u8bbe\u7f6e\u6210\u8fd9\u6837\uff0c\u9664\u975e\u4f60\u523b\u610f\u4f7f\u7528\u79fb\u52a8\u7f51\u7edc\u6570\u636e\u4f20\u8f93<\/p>\n","protected":false},"excerpt":{"rendered":"<p># svc svc Available commands: help\u00a0\u00a0\u00a0\u00a0 Show inform&hellip; <a href=\"http:\/\/www.anthonylee.cn\/myblog\/?p=19\" class=\"more-link read-more\" rel=\"bookmark\">\u7ee7\u7eed\u9605\u8bfb <span class=\"screen-reader-text\">Android\u7cfb\u7edfSVC\u547d\u4ee4<\/span><i class=\"fa fa-arrow-right\"><\/i><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"http:\/\/www.anthonylee.cn\/myblog\/index.php?rest_route=\/wp\/v2\/posts\/19"}],"collection":[{"href":"http:\/\/www.anthonylee.cn\/myblog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.anthonylee.cn\/myblog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.anthonylee.cn\/myblog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.anthonylee.cn\/myblog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=19"}],"version-history":[{"count":1,"href":"http:\/\/www.anthonylee.cn\/myblog\/index.php?rest_route=\/wp\/v2\/posts\/19\/revisions"}],"predecessor-version":[{"id":20,"href":"http:\/\/www.anthonylee.cn\/myblog\/index.php?rest_route=\/wp\/v2\/posts\/19\/revisions\/20"}],"wp:attachment":[{"href":"http:\/\/www.anthonylee.cn\/myblog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=19"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.anthonylee.cn\/myblog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=19"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.anthonylee.cn\/myblog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=19"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}