]> git.zerfleddert.de Git - ms2-fixes/commitdiff
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 f9f81bbefcf274ed7c9655f0891a918317503ba8..c4a8762f2f96164560fdfde163f734f9435f1dfd 100644 (file)
@@ -17,7 +17,8 @@ public class DebounceService extends IntentService {
        @Override
        public void onCreate() {
                try {
        @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();
        }
                } catch (Exception e) {}
                super.onCreate();
        }
Impressum, Datenschutz