2016-03-29, 20:14
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 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:
Imaeg Build: LMY47V-201603231128
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