feat(platform): 优化设备适配与抖动检测逻辑

- 新增DX11平台强制安装应用白名单
- 优化加速度传感器选择策略,优先使用TYPE_ACCELEROMETER
- 分离普通加速度计与线性加速度计检测算法,调整方差阈值参数
- 增加默认输入法和默认浏览器设置广播
- 扩展USB广播兼容DX11平台
- 移除已废弃的ActivityController和重复代码
- 统一强制安装应用设置逻辑
This commit is contained in:
2026-08-05 20:42:25 +08:00
parent 621ebd64d7
commit e7a570fe09
11 changed files with 323 additions and 190 deletions

View File

@@ -147,6 +147,12 @@ public class SysSettingUtils {
public static void openMtp(Context context) {
String usbStatus = CommonConfig.AOLE_ACTION_USB_USB_MTP;
Intent usbIntent = new Intent(usbStatus);
if (JgyUtils.getInstance().checkAppPlatform() == JgyUtils.TeclastP20sPlatform
|| JgyUtils.getInstance().checkAppPlatform() == JgyUtils.AH6016Platform
|| JgyUtils.getInstance().checkAppPlatform() == JgyUtils.DX11Platform
) {
usbIntent.setPackage("com.android.settings");
}
context.sendBroadcast(usbIntent);
}
@@ -247,6 +253,7 @@ public class SysSettingUtils {
if (JgyUtils.getInstance().checkAppPlatform() == JgyUtils.TeclastP20sPlatform
|| JgyUtils.getInstance().checkAppPlatform() == JgyUtils.AH6016Platform
|| JgyUtils.getInstance().checkAppPlatform() == JgyUtils.seewoPlatform
|| JgyUtils.getInstance().checkAppPlatform() == JgyUtils.DX11Platform
) {
usbIntent.setPackage("com.android.settings");
}
@@ -316,6 +323,7 @@ public class SysSettingUtils {
Intent usbIntent = new Intent(usbStatus);
if (JgyUtils.getInstance().checkAppPlatform() == JgyUtils.TeclastP20sPlatform
|| JgyUtils.getInstance().checkAppPlatform() == JgyUtils.AH6016Platform
|| JgyUtils.getInstance().checkAppPlatform() == JgyUtils.DX11Platform
) {
usbIntent.setPackage("com.android.settings");
}
@@ -1204,6 +1212,7 @@ public class SysSettingUtils {
Intent usbIntent = new Intent(usbStatus);
if (JgyUtils.getInstance().checkAppPlatform() == JgyUtils.TeclastP20sPlatform
|| JgyUtils.getInstance().checkAppPlatform() == JgyUtils.AH6016Platform
|| JgyUtils.getInstance().checkAppPlatform() == JgyUtils.DX11Platform
) {
usbIntent.setPackage("com.android.settings");
}