MCPcopy Create free account
hub / github.com/WrBug/dumpDex / DeviceUtils

Class DeviceUtils

app/src/main/java/com/wrbug/dumpdex/util/DeviceUtils.java:11–33  ·  view source on GitHub ↗

DeviceUtils @author suanlafen @since 2018/4/8

Source from the content-addressed store, hash-verified

9 * @since 2018/4/8
10 */
11public class DeviceUtils {
12 private static int sdkInit;
13
14 static {
15 sdkInit = Build.VERSION.SDK_INT;
16 }
17
18 public static boolean supportNativeHook() {
19 return isNougat() || isMarshmallow() || isOreo();
20 }
21
22 public static boolean isNougat() {
23 return sdkInit == 24 || sdkInit == 25;
24 }
25
26 public static boolean isOreo() {
27 return sdkInit == 26 || sdkInit == 27;
28 }
29
30 public static boolean isMarshmallow() {
31 return sdkInit == 23;
32 }
33}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected