纯粹的对两条命令的封装,开启和关闭网络 adb 调试(修改端口),需要 root 权限
// 开启
setprop service.adb.tcp.port 5555
stop adbd
start adbd
// 关闭
setprop service.adb.tcp.port -1
stop adbd
start adbd
主要还是想试一下 Android N 上新加的 Tile API ,所以这些效果需要 Android N 才能看到。
或者 戳这里直接下载 APK
Apache License 2.0
Copyright 2016 Haruue Icymoon, PinkD
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.