droid: fix build
[vuplus_xbmc] / xbmc / utils / AMLUtils.cpp
index 4c0e161..6df8dd2 100644 (file)
@@ -116,6 +116,9 @@ bool aml_wired_present()
 
 void aml_permissions()
 {
+  if (!aml_present())
+    return;
+  
   // most all aml devices are already rooted.
   int ret = system("ls /system/xbin/su");
   if (ret != 0)