]> git.zerfleddert.de Git - ms2-fixes/blob - MS2Debounce/src/de/rmdir/ms2debounce/DebounceService.java
c4a8762f2f96164560fdfde163f734f9435f1dfd
[ms2-fixes] / MS2Debounce / src / de / rmdir / ms2debounce / DebounceService.java
1 package de.rmdir.ms2debounce;
2
3 import android.content.Intent;
4 import android.app.IntentService;
5
6 public 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