shell
babytiger
这个作者很懒,什么都没留下…
展开
-
android 12以上改变应用最大32进程限制方法
#查看当前系统最大进程数adb shell dumpsys activity settings | grep max_phantom_processes如果没改变则为32,只有Android12有效果#停用adb shell device_config set_sync_disabled_for_tests persistent #设定最大数是65536adb shell device_config put activity_manager max_phantom_processes 65.原创 2022-02-11 16:30:44 · 10211 阅读 · 5 评论 -
adb 获取蓝牙 mac地址 、wifi mac地址的方法
获取蓝牙 mac地址adb shell settings get secure bluetooth_address要么adb shell service call bluetooth_manager 13adb shell service call bluetooth_manager 12adb shell service call bluetooth_manager 10wifi mac地址adb shellip addr show wlan0 | grep link/e...原创 2022-01-21 14:41:39 · 5483 阅读 · 0 评论 -
tar 排除指定的目录 ,或者指定文件类型
test|-- out| `-- readme|-- out1| `-- out| `-- test1out1out|-- out2`-- test `-- out `-- test.out目录结构 如上,如果不想打包根目录下test/out下的文件夹命令如下tar zcvf --exclude=test/out test/user@user-Z370-HD3:~/sermux$ tar zcvf test.tar.gz --e...原创 2021-08-09 15:03:22 · 327 阅读 · 0 评论 -
linux shell脚本 sed 替换指定文件夹下所有有空格文件路径下的内容,有坑
在开发板上,android 7的,比如我想查快手跑了多少流量,要先获取其uid命令如下dumpsys package com.kuaishou.nebula | grep userId | grep -o '[0-9]\{5\}' 然后从cat /proc/net/xt_qtaguid/stats中过滤出对应UID的值 需要把上面dumpsys package com.kuaishou.nebula | grep userId | grep -o '[0-9]\{5\}'作为结果传...原创 2021-06-16 17:36:20 · 774 阅读 · 0 评论