![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
常用命令&工具
_Saimon
这个作者很懒,什么都没留下…
展开
-
关闭wifi扫描
首先,我们需要一个应用程序iwpriv及提供对应接口的lib库libiw.so.然后,push进设备adb push libiw.so /vendor/lib64/adb push iwpriv /vendor/bin/执行命令,关闭scan adb shell iwpriv wlan0 scan_disable 1...原创 2018-04-23 10:50:39 · 2827 阅读 · 0 评论 -
iw
iw reg get //getcountryiw reg set [country] //set countryiw list //get the support channel info原创 2019-09-27 16:18:10 · 984 阅读 · 0 评论 -
如何统计项目代码行数
find . "(" -name "*" ")" -print | xargs wc -l1、打开终端,用cd命令 定位到工程所在的目录。2、调用以下命令即可把每个源代码文件行数及总数统计出来(1)包括空行(会列出每个文件的代码行数):find . "(" -name "*.m" -or -name "*.mm" -or -name "*.c" -or -name "*.h...转载 2019-07-11 19:15:31 · 21766 阅读 · 3 评论 -
查看Qcom wlan软硬件版本
1. WCN39x0method1:#dmesgHost SW:5.1.1.28U, FW:1.0.0.1521.0, HW:WCN3990_V2.1host driver 版本: 5.1.1.28Ufirmware 版本:1.0.0.1521.0芯片Hardware版本:WCN3990_V2.1method2:#iwpriv wlan0 versionwla...原创 2019-06-28 09:52:04 · 1315 阅读 · 0 评论 -
git/repo常用操作
1. 下载代码repo initrepo sync2. 创建分支repo start branch --all3. porting作业:cd git dirrepo sync . //get all branchsgit cherry-pick commit-idif no conflit doneelse // has confilt deal wi...原创 2019-06-25 17:22:28 · 179 阅读 · 0 评论 -
Android移植/编译iperf工具
一. 背景手上已有的iperf工具在新设备上无法使用: # iperf ...原创 2019-04-25 11:48:56 · 2712 阅读 · 0 评论 -
GPS/GNSS测试工具
先说一下GPS和GNSS的区别, 很多人把GPS等同于GNSS,我们在生活和工作中也常以GPS的概念描述GNSS。其实不然。GNSS全球导航卫星系统(Global Navigation Satellite System)。泛指所有的卫星导航系统,包括全球的、区域的和增强的导航系统,如美国的GPS、俄罗斯的Glonass、欧洲的Galileo、中国的北斗卫星导航系统,以及相关的增强系统,如美国的...原创 2019-04-15 17:12:30 · 11565 阅读 · 3 评论 -
android/linux 常用网络调试命令
目录iwiwconfigiwlistiwprivifconfigwpa_clihostapd_cliip routeip addrip ruleiptablesebtablesiwiw 是一种新的基于 nl80211 的用于无线设备的CLI配置实用程序。它支持最近已添加到内核所有新的驱动程序。采用无线扩展接口的旧工具iwconfig...原创 2019-02-26 16:59:23 · 3206 阅读 · 0 评论 -
Android进程crash log解析
Android进程crash会导致比较严重的问题, 轻则进程相关功能无法使用, 重则导致系统crash。抓取对应的log和tombstone,会发现crash时打印的是一串地址栈,而不是对应的函数调用栈。要解决问题,首要问题是把地址栈解析为对应的函数调用栈。 1. addr2linecd prebuilts/gcc/linux-x86/aarch64/aarch64-linux...原创 2018-10-18 15:20:47 · 995 阅读 · 0 评论 -
adb命令行打开Android settings
adb命令打开手机设置页面设置主页面adb shell am start com.android.settings/com.android.settings.Settings安全adb shell am start com.android.settings/com.android.settings.SecuritySettings手机无线信息adb shell am sta...转载 2018-08-21 19:41:57 · 39415 阅读 · 0 评论 -
ssh/sshfs
linux挂载其他设备存储:sshfs [username]@[ip]:[dir] [local-dir]linux访问其他设备:ssh [username]@[ip]scp(secure copy):scp local_file remote_username@remote_ip:remote_folder...原创 2018-05-08 16:11:21 · 1194 阅读 · 0 评论 -
adb打开/关闭飞行模式
打开飞行模式:adb shell settings put global airplane_mode_on 1关闭飞行模式:adb shell settings put global airplane_mode_on 0原创 2018-05-02 13:45:12 · 16545 阅读 · 2 评论 -
Android adb remount failed处理及Read-only file system处理(Android O)
我们在调试工作中,常常会使用adb pull/push来获取或替换设备中的一些文件。1. 在使用pull/push前需要先执行:# adb root# adb remount在Android N及之前的版本,是ok的,但是在Android O上会提示remount失败:# adb remountremount of / failed: Permission deniedremount fai...原创 2018-04-14 11:20:13 · 22379 阅读 · 0 评论 -
命令开关wifi/bluetooth -- Android svc命令与自动化/压力测试
svc指令可用于电源控制, 无线业务控制(modem/wifi/nfc/bt, etc), 等等.可以不适用按键,触控设备, 而通过使用svc命令实现这些模块的功能操作,比如wifi的开关:svc wifi enable //打开wifisvc wifi disable //关闭wifi 因此, 对于涉及到这些模块的自动化测试和压力测试, 都可以使用svc命令, 来解放双手....原创 2018-03-30 20:27:51 · 6261 阅读 · 1 评论 -
命令设置wifi国家码
1. wpa_cli -i wlan0 set country [country_code]2. service call wifi [setCountryCode_CODE] s16 [country_code]setCountryCode_CODE 是对应代码中IWifiManager.aidl中interface IWifiManager的setCountryCode方法对应的...原创 2018-04-17 20:31:19 · 22204 阅读 · 5 评论 -
命令查看蓝牙mac
1. adb shell settings get secure bluetooth_address2. service call bluetooth_manager 13其中: bluetooth_manager: [android.bluetooth.IBluetoothManager] 是Bluetooth相关services提供给上层的接口13 是IBluetoothManag...原创 2018-04-23 10:43:07 · 14087 阅读 · 0 评论 -
android content命令
content主要是和数据库进行交互,对数据库进行增删改查操作。用法:adb shell content [subcommand] [options]adb shell content insert --uri <URI>[--user <USER_ID>] --bind <BINDING> [--bind <BINDING>...]...原创 2019-10-11 14:25:12 · 1553 阅读 · 0 评论