google / play-work

Apache License 2.0
83 stars 42 forks source link

Android Device Policy crash during Registering Device. #29

Open jelle-k opened 5 years ago

jelle-k commented 5 years ago

Hi there, I have a bug when trying to register device.

New company was created on https://enterprise.google.com/android/experience/overview.

I registered my device without any issues, and was able to access work environment on one+ 6 android phone. Unfortunately I had a typeo in my company name, there was no way to update the name, so I went back to enterprise.google.com and removed my company.

I created a new company with correct spelling, went through the steps in Android Device Policy, got up to Registering device. Then phone crashes and reboots.

If I go to settings > account I see work profile settings but work profile name states "work profile isn't available yet" It has had this message for last 3 hours with no change and I cannot access my work profile.

I rebooted phone, uninstalled Android Device Policy, rebooted, reinstalled without success.

After removing Android Device Policy I still have Work profile apps in settings > apps & notifications screen, removing these is not possible.

Android version: 9 OxygenOS: 9.0.4 Phone Build: ONEPLUS A6003_22_190123

Thanks in advance. Jelle

hdurer commented 5 years ago

In Settings → Accounts can't you select the work account and remove it?

jelle-k commented 5 years ago

Thanks for the reply. unfortunately, removing work profile does not remove the apps.

For the sake of testing, I removed the account, rebooted the phone then went back to registering my device, as soon as I accept the terms, phone crashes and restarts, a work profile is created with status work profile isn't available yet.

petarov commented 5 years ago

Do you specify a default device policy in the enrollment token? Does this policy exist within your newly created enterprise/company?

jelle-k commented 5 years ago

Hello, Thanks again for the assistance.

Where do I assign default device policy? Under settings I can only delete account.

If you mean in users and devices, I can see my name with 'Add first device', from there I get two options and two steps, register my own device or have company manage device, download app and enter code.

I have the app, once I enter the code, click accept terms and it starts creating work file. It's at this step the phone crashes.