diff options
| author | Mister Oyster <oysterized@gmail.com> | 2017-01-31 16:24:10 +0100 |
|---|---|---|
| committer | Mister Oyster <oysterized@gmail.com> | 2017-01-31 16:24:10 +0100 |
| commit | f850d049056116f35452f92e4afa97185f10508d (patch) | |
| tree | c204f7ac61f593f5c73d93848a58e904162a5531 | |
| parent | 35bcf0f244545892bb4c8f370587ae17c63d7729 (diff) | |
| -rw-r--r-- | cmhw/org/cyanogenmod/hardware/VibratorHW.java | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/cmhw/org/cyanogenmod/hardware/VibratorHW.java b/cmhw/org/cyanogenmod/hardware/VibratorHW.java index 6da130f..6d50152 100644 --- a/cmhw/org/cyanogenmod/hardware/VibratorHW.java +++ b/cmhw/org/cyanogenmod/hardware/VibratorHW.java @@ -37,7 +37,7 @@ import org.cyanogenmod.internal.util.FileUtils; public class VibratorHW { // Keep this synced to immvibe impl - private static final String INTENSITY_FILE = "/data/.libimmvibeclient_force"; + private static final String INTENSITY_FILE = "/sys/kernel/thunderquake_engine/level"; public static boolean isSupported() { return true; @@ -48,32 +48,32 @@ public class VibratorHW { } public static int getMaxIntensity() { - return 127; + return 7; } public static int getMinIntensity() { - return 3; + return 0; } public static int getWarningThreshold() { // actually this is rather arbitrary - return 115; + return 7; } public static int getCurIntensity() { final String result = FileUtils.readOneLine(INTENSITY_FILE); if (result == null) { - return 96; + return 5; } try { return Integer.parseInt(result.trim()); } catch (final NumberFormatException ignored) { - return 96; + return 5; } } public static int getDefaultIntensity() { - return 96; + return 5; } } |
