51Testing软件测试论坛

标题: Qual 常用命令 [打印本页]

作者: qingzhi    时间: 2019-10-28 10:45
标题: Qual 常用命令
1.root 手机:
    adb root
    adb disable-verity
    adb reboot
    adb root
    adb remount

2.adb shell  cd .. 返回上一目录
  ls  查看当前目录有哪些文件/文件夹
  cat 文件名  ,查看该文件内容

3.wifi P2P 传输命令法
P2Pwifidirect  命令传输方法
第一步:手机push busybox
Adbpush      system/bin
U:\>adbpush C:\E-FARM\LA\CapellaTestBox\Capella\Axiom_Q\Installation\utils\busy
box/system/bin

第二步GC:
C:\WINDOWS\system32>adb-s fe67ce5a shell
lito:/ #ifconfig p2p0
p2p0      Link encap:Ethernet  HWaddr 1e:8d:ef:a0:94:c8  Driver icnss
          inet addr:192.168.49.45  Bcast:192.168.49.255  Mask:255.255.255.0
          inet6 addr:fe80::b239:aa25:b51b:c49/64 Scope: Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500 Metric:1
          RX packets:31 errors:0 dropped:0overruns:0 frame:0
          TX packets:37 errors:0 dropped:0overruns:0 carrier:0
          collisions:0 txqueuelen:3000
          RX bytes:3712 TX bytes:4482

lito:/ #busybox udpsvd -vE 0.0.0.0 69 busybox tftpd

第三步:GO端:
C:\WINDOWS\system32>adb-s d4ed67e7 shell
lito:/ #ifconfig p2p0
p2p0      Link encap:Ethernet  HWaddr 7e:a4:2a:ed:e4:e9  Driver icnss
          inet addr:192.168.49.1 Bcast:192.168.49.255  Mask:255.255.255.0
          inet6 addr:fe80::9442:8571:7691:7506/64 Scope: Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500 Metric:1
          RX packets:46 errors:0 dropped:0overruns:0 frame:0
          TX packets:30 errors:0 dropped:0overruns:0 carrier:0
          collisions:0 txqueuelen:3000
          RX bytes:4860 TX bytes:3735

lito:/#  busybox tftp -r /sdcard/3.mp4 -l/sdcard/12.mp4 -g 192.168.49.45
tftp:server error: (1) can't open file
1|lito:/#  busybox tftp -r /sdcard/3.mp4 -l/sdcard/12.mp4 -g 192.168.49.45

4.subsystem:
1)manually enable ADSP SSR
     adb root
     adb remount
     adb shell ls -l /sys/bus/msm_subsys/devices/   查看subsystem
或者:
1.查看SSR:C:\CrashIt\SSR_Stress_allPL>adb -s 37fabfe1 shell cat /sys/bus/msm_subsys/devices/subsys*/name
adsp  0
cdsp  1
modem 2
venus 3
npu   4
ipa_fws  5
a615_zap  6
     adb shell "echo related > /sys/bus/msm_subsys/devices/subsys2/restart_level"  激活对应的SSR
     adb shell cat /sys/bus/msm_subsys/devices/subsys2/restart_level     releated 表示已激活,system表示未激活

  2.)trigger ADSP SSR by qxdm commands,there’re totally three type commands :
      Null Pointer,  send_data 75 37 03 48 02
      Software Error Fatal Exception,  send_data 75 37 03 48 00
      Watchdog Bite,  send_data 75 37 03 48 01



5.强制手机crash:
    1)adb 命令:
    adb root
    adbshell
    echoc>/proc/sysrq-trigger
    2)长按power 12S

6.log buffer:   adblogcat -G 256M

7.modem 擦除:
fastboot erase modemst1
    fastboot erase modemst2
    fastboot erase fsg

8.EnableLLS:
adb  shell echo"disableLowLightCapture=FALSE" >>/vendor/etc/camera/camxoverridesettings.txt   

作者: qingzhi    时间: 2019-10-28 10:46
wxid_400e9y3bpyfz12  xaaoqPMk
作者: qingzhi    时间: 2021-6-3 21:36
网络禁用机制:
adb root
adb remount
adb shell settings put global captive_portal_mode 0
adb shell sync
adb  reboot




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2