|
|
|
@ -9,7 +9,7 @@
|
|
|
|
|
</p>
|
|
|
|
|
<p>配置文件"/sdcard/uweb/default.cmds"示例:<br>
|
|
|
|
|
|
|
|
|
|
<p><a href="i:03清空浏览数据::toybox find /data/data/info.torapp.uweb/app_webview ! -name 'Cookies' -type f -delete">清空浏览数据::toybox find /data/data/info.torapp.uweb/app_webview ! -name 'Cookies' -type f -delete</a></p><p><a href="i:03VPN::am start -a android.settings.VPN_SETTINGS">VPN::am start -a android.settings.VPN_SETTINGS</a></p><p><a href="i:03无线::am start -a android.settings.WIRELESS_SETTINGS">无线::am start -a android.settings.WIRELESS_SETTINGS</a></p><p><a href="i:03合并查询历史至自动填充:uweb:cd /sdcard/uweb;cat default.autoc query.log|toybox sort|toybox uniq -i>a.tmp;mv a.tmp default.autoc;>query.log;echo file:///sdcard/uweb/default.autoc">合并查询历史至自动填充:uweb:cd /sdcard/uweb;cat default.autoc query.log|toybox sort|toybox uniq -i>a.tmp;mv a.tmp default.autoc;>query.log;echo file:///sdcard/uweb/default.autoc</a></p><p><a href="i:03备份Cookie::toybox cp /data/data/info.torapp.uweb/app_webview/Default/Cookies /sdcard/uweb/.">备份Cookie::toybox cp /data/data/info.torapp.uweb/app_webview/Default/Cookies /sdcard/uweb/.</a></p><p><a href="i:03恢复Cookie::toybox cp /sdcard/uweb/Cookies /data/data/info.torapp.uweb/app_webview/Default/.">恢复Cookie::toybox cp /sdcard/uweb/Cookies /data/data/info.torapp.uweb/app_webview/Default/.</a></p><p><a href="i:03清空缓存::toybox rm -rf /data/data/info.torapp.uweb/cache">清空缓存::toybox rm -rf /data/data/info.torapp.uweb/cache</a></p><p><a href="i:03清空logcat::logcat -c">清空logcat::logcat -c</a></p><p><a href="i:03输出logcat.log::logcat -d > /sdcard/uweb/logcat.log">输出logcat.log::logcat -d > /sdcard/uweb/logcat.log</a></p><p><a href="i:03tgz install::cd /;toybox tar -xzf %f">tgz install::cd /;toybox tar -xzf %f</a></p></p><p>下面配置需要root权限:<br><p><a href="i:03解冻微信::su -c 'pm enable com.tencent.mm'">解冻微信::su -c 'pm enable com.tencent.mm'</a></p><p><a href="i:03冻结微信::su -c 'pm disable com.tencent.mm'">冻结微信::su -c 'pm disable com.tencent.mm'</a></p><p><a href="i:03解冻拼多多::su -c 'pm enable com.xunmeng.pinduoduo'">解冻拼多多::su -c 'pm enable com.xunmeng.pinduoduo'</a></p><p><a href="i:03冻结拼多多::su -c 'pm disable com.xunmeng.pinduoduo'">冻结拼多多::su -c 'pm disable com.xunmeng.pinduoduo'</a></p></p><p>下面配置需要termux:<br><p><a href="i:03cd:termux/*:cd %f;exit 1">cd:termux/*:cd %f;exit 1</a></p><p><a href="i:03vim:termux/*:vim %f">vim:termux/*:vim %f</a></p><p><a href="i:03历史去重::awk -F'\t' '!s[\$2]++' /sdcard/uweb/history.log>/sdcard/a.tmp;mv /sdcard/a.tmp /sdcard/uweb/history.log">历史去重::awk -F'\t' '!s[\$2]++' /sdcard/uweb/history.log>/sdcard/a.tmp;mv /sdcard/a.tmp /sdcard/uweb/history.log</a></p><p><a href="i:03书签去重::awk '!s[\$0]++' /sdcard/uweb/bookmark.html>/sdcard/a.tmp;mv /sdcard/a.tmp /sdcard/uweb/bookmark.html">书签去重::awk '!s[\$0]++' /sdcard/uweb/bookmark.html>/sdcard/a.tmp;mv /sdcard/a.tmp /sdcard/uweb/bookmark.html</a></p><p><a href="i:03hosts去重::toybox tac /sdcard/uweb/default.hosts|awk -F' ' '!s[\$1]++' |toybox tac>/sdcard/a.tmp;mv /sdcard/a.tmp /sdcard/uweb/default.hosts">hosts去重::toybox tac /sdcard/uweb/default.hosts|awk -F' ' '!s[\$1]++' |toybox tac>/sdcard/a.tmp;mv /sdcard/a.tmp /sdcard/uweb/default.hosts</a></p><p><a href="i:03网站设置去重::toybox tac /sdcard/uweb/default.siteconf|awk -F':' '!s[\$1]++' |toybox tac>/sdcard/a.tmp;mv /sdcard/a.tmp /sdcard/uweb/default.siteconf">网站设置去重::toybox tac /sdcard/uweb/default.siteconf|awk -F':' '!s[\$1]++' |toybox tac>/sdcard/a.tmp;mv /sdcard/a.tmp /sdcard/uweb/default.siteconf</a></p><p><a href="i:03代理8888:termux/*:tinyproxy;am start -a android.settings.WIFI_SETTINGS">代理8888:termux/*:tinyproxy;am start -a android.settings.WIFI_SETTINGS</a></p><p><a href="i:03剪贴板_至PC:clip:ssh fengcao@192.168.2.102 'DISPLAY=:0 xsel -i'">剪贴板_至PC:clip:ssh fengcao@192.168.2.102 'DISPLAY=:0 xsel -i'</a></p><p><a href="i:03剪贴板_从PC:/clip:ssh fengcao@192.168.2.102 'DISPLAY=:0 xsel -o'">剪贴板_从PC:/clip:ssh fengcao@192.168.2.102 'DISPLAY=:0 xsel -o'</a></p></p>
|
|
|
|
|
<p><a href="i:03清空浏览数据::toybox find /data/data/info.torapp.uweb/app_webview ! -name 'Cookies' -type f -delete">清空浏览数据::toybox find /data/data/info.torapp.uweb/app_webview ! -name 'Cookies' -type f -delete</a></p><p><a href="i:03VPN::am start -a android.settings.VPN_SETTINGS">VPN::am start -a android.settings.VPN_SETTINGS</a></p><p><a href="i:03无线::am start -a android.settings.WIRELESS_SETTINGS">无线::am start -a android.settings.WIRELESS_SETTINGS</a></p><p><a href="i:03合并查询历史至自动填充:uweb:cd /sdcard/uweb;cat default.autoc query.log|toybox sort|toybox uniq -i>a.tmp;mv a.tmp default.autoc;>query.log;echo file:///sdcard/uweb/default.autoc">合并查询历史至自动填充:uweb:cd /sdcard/uweb;cat default.autoc query.log|toybox sort|toybox uniq -i>a.tmp;mv a.tmp default.autoc;>query.log;echo file:///sdcard/uweb/default.autoc</a></p><p><a href="i:03备份Cookie::toybox cp /data/data/info.torapp.uweb/app_webview/Default/Cookies /sdcard/uweb/.">备份Cookie::toybox cp /data/data/info.torapp.uweb/app_webview/Default/Cookies /sdcard/uweb/.</a></p><p><a href="i:03恢复Cookie::toybox cp /sdcard/uweb/Cookies /data/data/info.torapp.uweb/app_webview/Default/.">恢复Cookie::toybox cp /sdcard/uweb/Cookies /data/data/info.torapp.uweb/app_webview/Default/.</a></p><p><a href="i:03清空缓存::toybox rm -rf /data/data/info.torapp.uweb/cache">清空缓存::toybox rm -rf /data/data/info.torapp.uweb/cache</a></p><p><a href="i:03清空logcat::logcat -c">清空logcat::logcat -c</a></p><p><a href="i:03输出logcat.log::logcat -d > /sdcard/uweb/logcat.log">输出logcat.log::logcat -d > /sdcard/uweb/logcat.log</a></p><p><a href="i:03tgz install::/system/bin/toybox tar -xzf %f -C /">tgz install::/system/bin/toybox tar -xzf %f -C /</a></p></p><p>下面配置需要root权限:<br><p><a href="i:03解冻微信::su -c 'pm enable com.tencent.mm'">解冻微信::su -c 'pm enable com.tencent.mm'</a></p><p><a href="i:03冻结微信::su -c 'pm disable com.tencent.mm'">冻结微信::su -c 'pm disable com.tencent.mm'</a></p><p><a href="i:03解冻拼多多::su -c 'pm enable com.xunmeng.pinduoduo'">解冻拼多多::su -c 'pm enable com.xunmeng.pinduoduo'</a></p><p><a href="i:03冻结拼多多::su -c 'pm disable com.xunmeng.pinduoduo'">冻结拼多多::su -c 'pm disable com.xunmeng.pinduoduo'</a></p></p><p>下面配置需要termux:<br><p><a href="i:03cd:termux/*:cd %f;exit 1">cd:termux/*:cd %f;exit 1</a></p><p><a href="i:03vim:termux/*:vim %f">vim:termux/*:vim %f</a></p><p><a href="i:03历史去重::awk -F'\t' '!s[\$2]++' /sdcard/uweb/history.log>/sdcard/a.tmp;mv /sdcard/a.tmp /sdcard/uweb/history.log">历史去重::awk -F'\t' '!s[\$2]++' /sdcard/uweb/history.log>/sdcard/a.tmp;mv /sdcard/a.tmp /sdcard/uweb/history.log</a></p><p><a href="i:03书签去重::awk '!s[\$0]++' /sdcard/uweb/bookmark.html>/sdcard/a.tmp;mv /sdcard/a.tmp /sdcard/uweb/bookmark.html">书签去重::awk '!s[\$0]++' /sdcard/uweb/bookmark.html>/sdcard/a.tmp;mv /sdcard/a.tmp /sdcard/uweb/bookmark.html</a></p><p><a href="i:03hosts去重::toybox tac /sdcard/uweb/default.hosts|awk -F' ' '!s[\$1]++' |toybox tac>/sdcard/a.tmp;mv /sdcard/a.tmp /sdcard/uweb/default.hosts">hosts去重::toybox tac /sdcard/uweb/default.hosts|awk -F' ' '!s[\$1]++' |toybox tac>/sdcard/a.tmp;mv /sdcard/a.tmp /sdcard/uweb/default.hosts</a></p><p><a href="i:03网站设置去重::toybox tac /sdcard/uweb/default.siteconf|awk -F':' '!s[\$1]++' |toybox tac>/sdcard/a.tmp;mv /sdcard/a.tmp /sdcard/uweb/default.siteconf">网站设置去重::toybox tac /sdcard/uweb/default.siteconf|awk -F':' '!s[\$1]++' |toybox tac>/sdcard/a.tmp;mv /sdcard/a.tmp /sdcard/uweb/default.siteconf</a></p><p><a href="i:03代理8888:termux/*:tinyproxy;am start -a android.settings.WIFI_SETTINGS">代理8888:termux/*:tinyproxy;am start -a android.settings.WIFI_SETTINGS</a></p><p><a href="i:03剪贴板_至PC:clip:ssh fengcao@192.168.2.102 'DISPLAY=:0 xsel -i'">剪贴板_至PC:clip:ssh fengcao@192.168.2.102 'DISPLAY=:0 xsel -i'</a></p><p><a href="i:03剪贴板_从PC:/clip:ssh fengcao@192.168.2.102 'DISPLAY=:0 xsel -o'">剪贴板_从PC:/clip:ssh fengcao@192.168.2.102 'DISPLAY=:0 xsel -o'</a></p></p>
|
|
|
|
|
<p>代理8888需要安装有tinyproxy(apt install tinyproxy),端口为8888。用户可配置为允许外部PC使用。<br>剪贴板_PC需更改用户名,PC端安装有xsel,termux安装有ssh (apt install openssh),且配置好ssh无密码登录。</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|