from time import sleep
import os
numbers = [10086,1008611,10010,12580]
for number in numbers:
    #拨打电话
    call = os.popen('adb shell am start -a android.intent.action.CALL -d tel:{}'.format(number))
    sleep(20)
    #挂断电话
    Hangup = os.popen('adb shell input keyevent 26')
    sleep(5)
    print('ok')

#截图
ScreenShot = os.popen('adb shell /system/bin/screencap -p /sdcard/xie.png')
print(1)
#将截图保存到电脑
SaveScreenShot = os.popen('adb pull /sdcard/xie.png')
print(2)

安卓打电话

相关文章:

  • 2021-12-28
  • 2021-08-14
  • 2022-02-02
  • 2021-11-09
  • 2022-02-23
  • 2022-12-23
  • 2021-08-02
  • 2021-11-07
猜你喜欢
  • 2022-01-15
  • 2021-12-17
  • 2022-01-21
  • 2021-12-18
  • 2022-01-09
  • 2021-04-07
  • 2021-06-12
相关资源
相似解决方案