droid: do not try to diddle permissions if we are not an aml device
authorS. Davilla <davilla@4pi.com>
Tue, 31 Dec 2013 19:29:26 +0000 (14:29 -0500)
committerS. Davilla <davilla@4pi.com>
Tue, 31 Dec 2013 19:29:36 +0000 (14:29 -0500)
xbmc/utils/AMLUtils.cpp

index 4c0e161..67872a7 100644 (file)
@@ -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)