From 670c2f4cad7c7c36d13c55d9f6e985440a8638a5 Mon Sep 17 00:00:00 2001 From: Michael Gernoth Date: Fri, 20 May 2011 20:20:07 +0200 Subject: [PATCH] load the module (still from the system dir) --- MS2Debounce/src/de/rmdir/ms2debounce/DebounceService.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(); } -- 2.39.2