diff options
author | S. Davilla <davilla@4pi.com> | 2013-12-31 14:29:26 -0500 |
---|---|---|
committer | S. Davilla <davilla@4pi.com> | 2013-12-31 14:29:36 -0500 |
commit | 609504eaa47a11be973d3de8fa41352b4f8bbd4a (patch) | |
tree | 66f353d299b20d13b41deddfb3b53b2425d92acd | |
parent | 877b4249f2017faf4832d2b40d97684ab70313d9 (diff) |
droid: do not try to diddle permissions if we are not an aml device
-rw-r--r-- | xbmc/utils/AMLUtils.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xbmc/utils/AMLUtils.cpp b/xbmc/utils/AMLUtils.cpp index 4c0e161482..67872a7cf0 100644 --- a/xbmc/utils/AMLUtils.cpp +++ b/xbmc/utils/AMLUtils.cpp @@ -116,6 +116,9 @@ bool aml_wired_present() void aml_permissions() { + if (!aml_present()) + return false; + // most all aml devices are already rooted. int ret = system("ls /system/xbin/su"); if (ret != 0) |