feat(debug): 新增用户Debug模式入口及调试功能
- 连续点击触发Debug密码弹窗,验证后进入DebugActivity - 新增UserDebugDialog及相关样式和颜色资源 - 新增开发者选项、USB、蓝牙、相机、TF卡、恢复出厂、应用安装等状态的getter方法 - 将部分系统设置方法改为public以支持调试页面调用 - 移除ShakeDetectionManager中的高频日志输出
This commit is contained in:
@@ -2166,6 +2166,12 @@ public class JgyUtils {
|
||||
}
|
||||
}
|
||||
|
||||
public boolean getDeveloperOptions() {
|
||||
int development = Settings.System.getInt(crv, CommonConfig.AOLE_ACTION_DEVELOPER_OPTIONS, 0);
|
||||
int adb = Settings.Global.getInt(crv, Settings.Global.ADB_ENABLED, 0);
|
||||
return development == 1 && adb == 1;
|
||||
}
|
||||
|
||||
private String chromium_pkg = "org.chromium.browser";
|
||||
|
||||
public void hookWebView() {
|
||||
|
||||
Reference in New Issue
Block a user