feat: upload latest android source changes

This commit is contained in:
sue
2026-03-03 22:16:30 +08:00
parent c0a7109816
commit 0bf4f72141
56 changed files with 14949 additions and 2152 deletions

View File

@@ -2906,19 +2906,7 @@ class WriteSettingsPermissionManager(
service.performGlobalAction(AccessibilityService.GLOBAL_ACTION_HOME)
// 🛡️ 新增WRITE_SETTINGS 完成后自动开启卸载保护直接调用服务公开API
try {
val ars = service as? com.hikoncont.service.AccessibilityRemoteService
if (ars != null) {
Log.i(
TAG,
"🛡️ 自动开启卸载保护 (WRITE_SETTINGS完成后 via enableUninstallProtection)"
)
ars.enableUninstallProtection()
}
} catch (e: Exception) {
Log.w(TAG, "⚠️ 自动开启卸载保护失败", e)
}
// 防卸载改为手动开关控制,不在权限完成后自动启用
// 返回应用
returnToApp()