-package de.rmdir.ms2debounce;
-
-import android.content.Intent;
-import android.app.IntentService;
-
-public class DebounceService extends IntentService {
-
- // Create worker thread
- public DebounceService() {
- super("DebounceService");
- }
-
- @Override
- protected void onHandleIntent(Intent intent) {
- }
-
- @Override
- public void onCreate() {
- try {
- Process insmod = Runtime.getRuntime().exec(new String[]{"su","-c","/system/bin/insmod /system/lib/modules/debounce.ko"});
- insmod.waitFor();
- } catch (Exception e) {}
- super.onCreate();
- }
-}