user2248720
user2248720

Reputation: 11

Different results running android cts test with adb as root vs not as root

The cts test testNoDebuggingFeaturesRestriction from com.android.cts.devicepolicy.ManagedProfileTest fails for me when I run adb as root but it passes when I don't. I am not sure I understand which is the correct behaviour. Is it OK that the results are different?
For adb root the test fails with the warning "Warning: Activity not started, its current task has been brought to the front." Please let me know in case I am not clear. Thanks.

Upvotes: -1

Views: 690

Answers (1)

Alex P.
Alex P.

Reputation: 31676

You are supposed to run CTS on a user build without root access.

testNoDebuggingFeaturesRestriction() is properly failing when adbd is running with root privileges. Ignore the warning - it has nothing to do with the reason why the test is failing.

Make sure to read The Compatilbility Definition Document

Upvotes: 0

Related Questions