### Appium一些相关参数获取:
1. 如何获取手机某一程序的应用包名
    使用adb命令进行获取,手机打开应用,adb命令行输入adb shell dumpsys activity recents | find "intent={" 找到第一行的cmp的key值appPackage/appActivity
    ![img.png](img.png)

### 运行Appium时遇到的问题总结:
1. 问题:运行Appium报错:
   Failed to initialize driver: Message: An unknown server-side error occurred while processing the command. Original error: Error executing adbExec. Original error: 'Command ''C:\\Program Files\\androidsdk\\platform-tools\\adb.exe' -P 5037 -s f0b5fab1 shell settings delete global hidden_api_policy_pre_p_apps' exited with code 255'; Stderr: 'Exception occurred while executing 'delete':
   解决方法:可能是权限不足导致,在adb命令行窗口输入adb root赋予权限。再执行程序