android

安卓玩机

June 18, 2024
安卓
android, 安卓

shizuku # 启动命令: adb shell sh /storage/emulated/0/Android/data/moe.shizuku.privileged.api/start.sh 自动任务 AutoTask # 自动化任务 Scene # 查看安卓进程管理 App Ops # App权限监测 ADB # 设置http代理 # adb shell settings put global http_proxy 192.168.105.230:8080 adb shell settings put global https_proxy 192.168.105.230:8080 # 删除代理 adb shell settings delete global http_proxy Deleted 1 rows adb shell settings delete global https_proxy Deleted 1 rows adb shell settings delete global global_http_proxy_host Deleted 1 rows adb shell settings delete global global_https_proxy_host Deleted 0 rows adb shell settings delete global global_http_proxy_port Deleted 1 rows adb shell settings delete global global_https_proxy_port Deleted 0 rows # 需要冲起生效 - 有的机器可能不用 adb reboot

安卓

May 15, 2018
android

将安卓手机用于开发 # Termux # 类似于WIN端的Subsystem——其实更像Ubuntu下的虚拟终端。 不过这东西功能强大,除了将安卓里的Linux发挥出来。还有Termux API来调用手机的底层接口。 XFCE4 # 步骤: 安装Termux 执行pkg update 执行pkg install git && git clone https://github.com/Yisus7u7/termux-desktop-xfce.git 执行cd termux-desktop-xfce && bash boostrap.sh 当然,3&4步可以合并为一句curl -sLf https://raw.githubusercontent.com/Yisus7u7/termux-desktop-xfce/main/boostrap.sh | bash VNC # 默认VNC只能通过localhost:1来连接,局域网不能访问。想用大屏来看就不是很方便。 # 先执行`vncserver`使用本机的`VNC Viewer`看看效果,主要是需要先设置一下密码 vncserver # 现在还无法通过局域网连接 # 去设置 cd ~/.vnc/ vim config # 打开最后一行注释 # 重新运行 vncserver -kill :1 vncserver 配置文件一览 # 将config文件最后一行的注释打开,即可 ## Supported server options to pass to vncserver upon invocation can be listed ## in this file. ...