Skip to content

Instantly share code, notes, and snippets.

@hvu0712
hvu0712 / DeviceDetectUtil.java
Created September 14, 2023 09:57 — forked from Muyangmin/DeviceDetectUtil.java
detect android device info, MIUI version, etc.
public static boolean isMiUi() {
return !TextUtils.isEmpty(getSystemProperty("ro.miui.ui.version.name"));
}
public static String getSystemProperty(String propName) {
String line;
BufferedReader input = null;
try {
java.lang.Process p = Runtime.getRuntime().exec("getprop " + propName);
input = new BufferedReader(new InputStreamReader(p.getInputStream()), 1024);
@hvu0712
hvu0712 / AdbCommands
Created October 6, 2022 14:00 — forked from Pulimet/AdbCommands
Adb useful commands list
adb help // List all comands
== Adb Server
adb kill-server
adb start-server
== Adb Reboot
adb reboot
adb reboot recovery
adb reboot-bootloader