from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice import time device = MonkeyRunner.waitForConnection() for i in range(3): #start to call device.shell("am start -a android.intent.action.CALL -d tel:10086") time.sleep(…
首先在项目中添加ITelephony.aidl文件,我的如下: /* * Copyright (C) 2007 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a cop…