Forum Discussion
Elijah
21 days agoLevel 2.0: Eclair
Problem Joining Work Profile From Android Device
I created an enrollment token for an enterprise for work profile, and I ensured that setAllowPersonalUsage("PERSONAL_USAGE_ALLOWED"); was set for the token. How ever when I try to join from my ...
jasonbayton
21 days agoLevel 4.0: Ice Cream Sandwich
Ok, it looks fine.
Can you replicate this with a new token, and are you ensuring you aren't just allowing the token to expire? The default expiry time isn't very long. What does your token.create payload look like?
- Elijah20 days agoLevel 2.0: Eclair
yes, my token expiry is about 24hrs...
here is the token create payload function:
private static String getQrCodeStringWorkProfile(String enterpriseName, String policyName) throws GeneralSecurityException, IOException { EnrollmentToken token = new EnrollmentToken().setPolicyName(policyName).setDuration("86400s").setAllowPersonalUsage("PERSONAL_USAGE_ALLOWED"); return getAndroidManagementClient() .enterprises() .enrollmentTokens() .create(enterpriseName, token) .execute().getQrCode(); }
- jasonbayton19 days agoLevel 4.0: Ice Cream Sandwich
That also doesn't show anything obviously wrong. As you're doing a work profile, can you spin up a new token, test on problem devices, and capture a bug report immediately after failure?
- Elijah19 days agoLevel 2.0: Eclair
Hi Jason, here is the bug report(both full and interactive after trying to setup a work profile:Bug Report
Related Content
- 2 years ago
- 2 years ago