microsoft / WSA

Developer-related issues and feature requests for Windows Subsystem for Android
MIT License
1.45k stars 798 forks source link

Support for DeviceAdmin #520

Open Ziegenbeisser opened 5 months ago

Ziegenbeisser commented 5 months ago

Is your feature request related to a problem? Please describe

Currently when requesting DeviceAdmin via Intent, a new Activity Pops up but you cannot enable it. I would like to run automatic test with DeviceAdmin enabled this is not possible.

Describe the solution you'd like

I would like to be able to enable Device Admins/Managed Profile inside of WSA

Intent intent = new Intent(DevicePolicyManager.ActionAddDeviceAdmin);
intent.PutExtra(DevicePolicyManager.ExtraDeviceAdmin, "DeviceAdminComponent");
intent.PutExtra(DevicePolicyManager.ExtraAddExplanation, "Explanation");
StartActivityForResult(intent, REQUEST_CODE_ADD_ADMIN);

Describe alternatives you've considered

No response

Please specify the version of Windows Subsystem for Android

2311.40000.5.0

s1204IT commented 3 months ago

This was resolved by adding android.software.device_admin, although Microsoft had rejected it before.