]> cvs.zerfleddert.de Git - ms2-fixes/blame_incremental - MS2Debounce/src/de/rmdir/ms2debounce/DebounceService.java
load the module (still from the system dir)
[ms2-fixes] / MS2Debounce / src / de / rmdir / ms2debounce / DebounceService.java
... / ...
CommitLineData
1package de.rmdir.ms2debounce;
2
3import android.content.Intent;
4import android.app.IntentService;
5
6public class DebounceService extends IntentService {
7
8 // Create worker thread
9 public DebounceService() {
10 super("DebounceService");
11 }
12
13 @Override
14 protected void onHandleIntent(Intent intent) {
15 }
16
17 @Override
18 public void onCreate() {
19 try {
20 Process insmod = Runtime.getRuntime().exec(new String[]{"su","-c","/system/bin/insmod /system/lib/modules/debounce.ko"});
21 insmod.waitFor();
22 } catch (Exception e) {}
23 super.onCreate();
24 }
25}
Impressum, Datenschutz