Failed to disable com.android.systemui on the root of Nexus 9

I have root access to my Nexus 9 running 5.1.1. I tried to work

adb shell su pm disable com.android.systemui 

but after the shutdown command I always get

 /system/bin/pm[6]: app_process: Permission denied 

Maybe I need to flash another ROM? Am I missing a command somewhere? I'm completely at a dead end

*, because someone is obliged to ask this, and not answer the question: I'm trying to disable the system interface, so Nexus can be used as a kiosk (the client does not want to see that the navigation bar is visible at all, suggested it and rejected it)

+5
source share
1 answer

Many thanks to CM Adnan for help in finding this solution - a colleague recruited him for his help.

The reason for the denial of access was due to the fact that the SELinux parameter is set to enforcing , and not permissive . To change it, I just ran

$ adb shell su -c setenforce 0

and my command to disable the UI system was accepted!

Note: this states that permissive mode is not supported on production devices, so I really did not expect this to work. It’s possible that access to the root allowed me to undermine it or it could be some other factor

+4
source

Source: https://habr.com/ru/post/1238983/


All Articles