load the module (still from the system dir)
authorMichael Gernoth <michael@gernoth.net>
Fri, 20 May 2011 18:20:07 +0000 (20:20 +0200)
committerMichael Gernoth <michael@gernoth.net>
Fri, 20 May 2011 18:20:07 +0000 (20:20 +0200)
MS2Debounce/src/de/rmdir/ms2debounce/DebounceService.java

index f9f81bb..c4a8762 100644 (file)
@@ -17,7 +17,8 @@ public class DebounceService extends IntentService {
        @Override
        public void onCreate() {
                try {
-                       Process ps = Runtime.getRuntime().exec("su");
+                       Process insmod = Runtime.getRuntime().exec(new String[]{"su","-c","/system/bin/insmod /system/lib/modules/debounce.ko"});
+                       insmod.waitFor();
                } catch (Exception e) {}
                super.onCreate();
        }
Impressum, Datenschutz