From: Michael Gernoth Date: Fri, 20 May 2011 18:20:07 +0000 (+0200) Subject: load the module (still from the system dir) X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/ms2-fixes/commitdiff_plain/670c2f4cad7c7c36d13c55d9f6e985440a8638a5 load the module (still from the system dir) --- diff --git a/MS2Debounce/src/de/rmdir/ms2debounce/DebounceService.java b/MS2Debounce/src/de/rmdir/ms2debounce/DebounceService.java index f9f81bb..c4a8762 100644 --- a/MS2Debounce/src/de/rmdir/ms2debounce/DebounceService.java +++ b/MS2Debounce/src/de/rmdir/ms2debounce/DebounceService.java @@ -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(); }