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.
Different results running android cts test with adb as root vs not as root
645 Views Asked by user2248720 At
1
There are 1 best solutions below
Related Questions in ADB
- how to debug on the smartphone Wiko (KITE)
- Error when trying to use Android systrace.py on Linux Ubuntu
- How can I add an existing google account on an Android device from command line?
- captured screen video from ADB screenrecord results in a black screen
- How to disable battery charging during ADB connection?
- Android device adb another device
- How to call getPackageManager() from Android command-line executable
- ADB and Genymotion error: "adb server is out of date. killing... cannot bind 'tcp:5037' ADB server didn't ACK"
- ADB issues on Galaxy S3 and Windows 7 - installed but not working?
- aggressive adware irremovable apk on android
- Virtual device running in Genymotion periodically goes offline in ADB
- Adb pull database from android device
- adb.exe not found after installing Android Studio
- Logcat Bluetooth Data
- ADB Driver for Sony Xperia E4 (E2105)
Related Questions in ROOT-ACCESS
- How to revoke other applications permission in android with root access?
- I am making a application which will help user to record its screen
- How to run print command lpr -p programmatically throgh root privilage in Qt
- Electron JS application open at login after providing admin privilege not working
- install google map.jar to Moto Phone
- Device Administration App & AppData Wipe on Android
- android java receive root access is denied
- Transferring AWS Root Account access when MFA is enabled
- Programmatically requesting elevated rights in Linux
- What can I do as OpenShift user?
- Running shell commands on the click of a button
- Root Access on Android Things
- Is there any framework / program to control Android emulator via Code?
- How to know what bots of a website, if I have no root access to the hosting they will read?
- Application is working on rooted device but not working with SuperSU
Related Questions in ANDROID-CTS
- What are the correct commands to run the CTS and VTS test plans?
- is it possible to stop the cts and save the current logs
- Is there any steps to configure android-cts latest version 13 on docker?
- How to build Trade Federation test cases
- Android: Adding a custom test to the compatibility test suite
- INSTALL_FAILED_UID_CHANGED ERROR While Android CTS TEST
- android-cts-4.4-r3 gives NoClassDefFoundError while running cts-tradefed
- How to setup and run Android CTS in Windows OS
- Starting CTS from the commandline
- CTS error faced
- Android CTS test - test_execCreatedJar failing
- Not able to add new group permission in android
- android-cts-8.1_r3 execution is not starting
- android-gts Setup android-gts on ubuntu16.04
- How to stop android CTS with saving the current results?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You are supposed to run
CTSon auserbuild withoutrootaccess.testNoDebuggingFeaturesRestriction()is properly failing whenadbdis running withrootprivileges. Ignore the warning - it has nothing to do with the reason why the test is failing.Make sure to read The Compatilbility Definition Document