]> cvs.zerfleddert.de Git - ms2-fixes/blobdiff - MS2Debounce/src/de/rmdir/ms2debounce/DebounceBootReceiver.java
better error-handling when executing commands as root
[ms2-fixes] / MS2Debounce / src / de / rmdir / ms2debounce / DebounceBootReceiver.java
index 2a15ea4271a8a0a53be2447b0fc604e9eaec49a8..14e76a9cf2758480628ec89e8b4724db2e9dbf14 100644 (file)
@@ -10,7 +10,11 @@ public class DebounceBootReceiver extends BroadcastReceiver{
                if("android.intent.action.BOOT_COMPLETED".equals(intent.getAction())) {
                        DebounceModuleHelper module = new DebounceModuleHelper(context);
 
-                       module.loadModule();
+                       if (module.get_on_boot() && module.is_safe_to_load()) {
+                               try {
+                                       module.loadModule();
+                               } catch (Exception e) {}
+                       }
                }
        }
 }
Impressum, Datenschutz