Repository navigation
开机放开「安装未知应用」后立刻落盘 - #177
Merged
Merged
Conversation
7c 只改了 system_server 内存里的 app ops(约 30 分钟后才写盘),同一次开机的客体库补丁会重启 system_server,新建的实例从没存下来;第一次装 APK 时安装器把 default 改成 deny。有改动时跑 appops write-settings。 Refs ModAVD/ModAVD#218
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
开机设置 7c(放开「安装未知应用」)在有改动时跑一次
appops write-settings,立刻把 app ops 写进/data/system/appops.xml。原来只改了 system_server 内存里的状态(约 30 分钟后才落盘),同一次开机的客体库补丁一挂就重启 system_server,新建的实例从来没存下来;第一次装 APK 时系统安装器把 default 改成 deny,之后开机也不再放开。
测试:
go vet、go test ./internal/emu/通过(TestHostImeScripts的脚本原文同步更新)。appops.xml立刻是m="0"。Runs
appops write-settingsafter boot step 7c changed any app op, so the "install unknown apps" allow survives the system_server restart of the guest library patches.Refs ModAVD/ModAVD#218