You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’m trying to create an Appium session for Microsoft Edge installed in an Android Work Profile on a device-farm setup, but session creation fails with a permission error when Appium tries to access user 10.
Environment
Appium: 3.2.0
device-farm: 11.2.8
UiAutomator2 driver: 6.6.1
Device: Android device in device-farm
Target app: Microsoft Edge in Work Profile
Work profile user: 10
Capabilities used
Error
While trying to access the work profile app, ADB throws:
java.lang.SecurityException: Shell does not have permission to access user 10
com.android.server.am.ActivityManagerService.handleIncomingUser
com.android.server.pm.PackageManagerShellCommand.translateUserId
What I’m trying to do
I want Appium/device-farm to launch or attach to Microsoft Edge inside the Work Profile and create a session successfully.
Questions
Does device-farm 11.2.8 support launching apps from an Android Work Profile?
Is there a supported way to create a session for a Work Profile app like Edge?
Is there any capability or workaround recommended for handling --user 10 / work-profile isolation?
Is this limitation expected in device-farm, or is there a known fix/configuration change?
Any guidance or workaround would be appreciated. Thanks!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Everyone,
I’m trying to create an Appium session for Microsoft Edge installed in an Android Work Profile on a device-farm setup, but session creation fails with a permission error when Appium tries to access user 10.
Environment
Appium: 3.2.0
device-farm: 11.2.8
UiAutomator2 driver: 6.6.1
Device: Android device in device-farm
Target app: Microsoft Edge in Work Profile
Work profile user: 10
Capabilities used
appium:deviceName = e8161571
appium:automationName = UiAutomator2
appium:msedgedriverExecutable = C:\Users\casqa001\Downloads\edgedriver_win64\msedgedriver.exe
appium:autoGrantPermissions = true
appium:ignoreHiddenApiPolicyError = true
appium:appPackage = com.company.app
appium:appActivity = com.company.app.MainActivity
appium:noReset = true
custom:profile = work
Error
While trying to access the work profile app, ADB throws:
java.lang.SecurityException: Shell does not have permission to access user 10
com.android.server.am.ActivityManagerService.handleIncomingUser
com.android.server.pm.PackageManagerShellCommand.translateUserId
What I’m trying to do
I want Appium/device-farm to launch or attach to Microsoft Edge inside the Work Profile and create a session successfully.
Questions
Does device-farm 11.2.8 support launching apps from an Android Work Profile?
Is there a supported way to create a session for a Work Profile app like Edge?
Is there any capability or workaround recommended for handling --user 10 / work-profile isolation?
Is this limitation expected in device-farm, or is there a known fix/configuration change?
Any guidance or workaround would be appreciated. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions