kkevsekk1 / AutoX

A UiAutomator on android, does not need root access(安卓平台上的JavaScript自动化工具)
Other
7.84k stars 1.86k forks source link

魅族20打开APP白屏 #991

Open qianniancn opened 4 months ago

qianniancn commented 4 months ago
  1. Autox.js 版本:6.6.2
  2. Autox.js 下载渠道:https://github.com/kkevsekk1/AutoX/releases
  3. Android 版本:Android 14
  4. Android 机型:魅族20
  5. Android 系统类别:fylme 10.5.5.1A
  6. VSCODE Autox.js 扩展版本(可选,如果是连接电脑的问题需要填):
  7. 问题描述:

6.6.2版本app 启动白屏,无任何显示,6.6.0正常

gaomanyi commented 4 months ago

原因: Android14 registerReceiver 注册广播时报错

其实就在registerReceiver函数的第三个参数写上RECEIVER_EXPORTED或者RECEIVER_NOT_EXPORTED

registerReceiver(myReceiver, intentFilter,RECEIVER_EXPORTED);