]>
Commit | Line | Data |
---|---|---|
1 | package de.rmdir.ms2debounce; | |
2 | ||
3 | import java.io.File; | |
4 | ||
5 | public class DebounceModuleHelper | |
6 | { | |
7 | private File filesdir; | |
8 | ||
9 | public DebounceModuleHelper(File appdir) { | |
10 | filesdir = appdir; | |
11 | } | |
12 | ||
13 | public void loadModule() { | |
14 | extractModule(); | |
15 | ||
16 | try { | |
17 | Process insmod = Runtime.getRuntime().exec(new String[]{"su","-c","/system/bin/insmod /system/lib/modules/debounce.ko"}); | |
18 | insmod.waitFor(); | |
19 | } catch (Exception e) {} | |
20 | } | |
21 | ||
22 | public boolean isLoaded() { | |
23 | return false; | |
24 | } | |
25 | ||
26 | private void extractModule() { | |
27 | File debounce_ko = new File(filesdir + "/debounce.ko"); | |
28 | ||
29 | if (debounce_ko.exists()) { | |
30 | return; | |
31 | } | |
32 | } | |
33 | } |