Kodi Community Forum

Full Version: Android 5.1.1 Power Options Problem
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello to all,

I am using Android 5.1.1 that is running on Amlogic S905 Android box (It is known as MXQ Pro).

My problem is I cannot see "Power off", "Custom Shutdown", "Suspend", "Hibernate" or similar options in the Shutdown menu; only "Exit" option is shown. My device is rooted and SuperSU is already installed. Other applications (such as SSHDroid) can request root privilege successfully. I have also verified my device with Root Checker Android app. It seems that Kodi does not request root privilege and as a result shutdown function does not work properly.

When I tried running

Code:
os.system("su -c 'reboot -p'")

code within a dummy Kodi plugin, it worked like a charm. I have tried several suggestions including modifying DialogButtonMenu.xml file to enforce Kodi always show hidden power options, but no matter what I did power option items did not worked.

I made my trials on several Kodi versions including 15.2, 16.0 and latest nightly build (kodi-20160327-2d05a88-master-armeabi-v7a.apk) with no success.

Any suggestions or help would be much appreciated.

Thanks.

My OS version:

Code:
# uname -a
Linux localhost 3.14.29 #3 SMP PREEMPT Tue Mar 22 18:14:44 CST 2016 aarch64 GNU/Linux

Imaeg Build: LMY47V-201603231128
Kodi for Android doesnt have access to the power options for the Android device. Only exit will be shown (or logoff if using profiles).

EDIT: IIRC, your script probably works because your device is rooted. Kodi can't assume or check for root (at this time, at least), to use such a work around.
That is very sad Sad

I am new to Kodi community. Where can I check whether there is a development request about this? Or create a new feature request?

Thanks.