Skip to content

[Feat Request] how to test app in different users #117

@ares89

Description

@ares89

🥰 Feature Description

I want to test an app installed in /system/priv-app/ or /system/app/, i found kea2 cannot find the package. I modified the adbhelper. kea2 can find the package now. but other problem occurs:

[INFO][2025-10-30 16:42:02,883 keaUtils:401 pid:11076] Result file: D:\codes\ai_tests\output\res_2025103016_4202719674\result_2025103016_4202719674.json
] Options info: {'driverName': 'd', 'Driver': <class 'kea2.u2Driver.U2Driver'>, 'packageNames': ['ltd.xxx.mycar'], 'serial': None, 'transport_id': None, 'agent': 'u2', 'maxStep': inf, 'running_mins': 1, 'throttle': 200, 'output_dir': WindowsPath('D:/codes/xxx/output/res_2025103016_4202719674'), 'log_stamp': None, 'profile_period': 25, 'take_screenshots': False, 'pre_failure_screenshots': 0, 'device_output_root': '/sdcard', 'debug': False, 'act_whitelist_file': None, 'act_blacklist_file': None, 'propertytest_args': [], 'unittest_args': [], 'extra_args': []}
[INFO][2025-10-30 16:42:04,232 fastbotManager:226 pid:11076] Launching fastbot with shell command:
adb shell CLASSPATH=/sdcard/monkeyq.jar:/sdcard/framework.jar:/sdcard/fastbot-thirdpart.jar:/sdcard/kea2-thirdpart.jar exec app_process /system/bin com.android.commands.monkey.Monkey --agent-u2 reuseq --running-minutes 1 --throttle 200 --bugreport --output-directory /sdcard/output_None -p ltd.xxx.mycar --profile-period 25 -v -v -v
[INFO][2025-10-30 16:42:04,232 fastbotManager:227 pid:11076] Fastbot log will be saved to D:\codes\xxx\output\res_2025103016_4202719674\fastbot_2025103016_4202719674.log
[INFO][2025-10-30 16:42:04,247 fastbotManager:93 pid:11076] Running Fastbot...
[INFO][2025-10-30 16:42:04,247 logWatcher:64 pid:11076] Watching log: D:\codes\ai_tests\output\res_2025103016_4202719674\fastbot_2025103016_4202719674.log
[INFO] Connecting to uiautomator2. Please wait ...
[INFO][2025-10-30 16:42:10,813 fastbotManager:106 pid:11076] Connecting to fastbot server...
[WARNING][2025-10-30 16:42:10,845 api:50 pid:11076] HTTPError: Unable to connect to uiautomator2 server: closed in kea2.fastbotManager.FastbotManager.check_alive.._check_alive_request, retrying in 2 seconds...

does kea2 or fastbot need some permission in android?

📝 Additional Information

No response

Metadata

Metadata

Assignees

Labels

help wantedExtra attention is needed
No fields configured for Feature.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions