feat(platform): 优化设备适配与抖动检测逻辑
- 新增DX11平台强制安装应用白名单 - 优化加速度传感器选择策略,优先使用TYPE_ACCELEROMETER - 分离普通加速度计与线性加速度计检测算法,调整方差阈值参数 - 增加默认输入法和默认浏览器设置广播 - 扩展USB广播兼容DX11平台 - 移除已废弃的ActivityController和重复代码 - 统一强制安装应用设置逻辑
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
package com.aoleyun.sn.utils;
|
||||
|
||||
import static android.content.Context.WIFI_SERVICE;
|
||||
|
||||
import android.annotation.SuppressLint;
|
||||
import android.app.ActivityManager;
|
||||
import android.bluetooth.BluetoothAdapter;
|
||||
@@ -109,8 +111,6 @@ import io.reactivex.rxjava3.disposables.Disposable;
|
||||
import io.reactivex.rxjava3.schedulers.Schedulers;
|
||||
import vendor.mediatek.hardware.nvram.V1_0.INvram;
|
||||
|
||||
import static android.content.Context.WIFI_SERVICE;
|
||||
|
||||
|
||||
public class Utils {
|
||||
private static final String TAG = "Utils";
|
||||
@@ -1838,6 +1838,7 @@ public class Utils {
|
||||
|| JgyUtils.getInstance().checkAppPlatform() == JgyUtils.MT6765Platform
|
||||
|| JgyUtils.getInstance().checkAppPlatform() == JgyUtils.G128TPlatform
|
||||
|| JgyUtils.getInstance().checkAppPlatform() == JgyUtils.QualcommTPlatform
|
||||
|| JgyUtils.getInstance().checkAppPlatform() == JgyUtils.DX11Platform
|
||||
) {
|
||||
return Utils.getProperty("ro.build.display.id", "获取失败");
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user