summaryrefslogtreecommitdiff
path: root/tests/DynamicCodeLoggerIntegrationTests/src
diff options
context:
space:
mode:
author Azhara Assanova <azharaa@google.com> 2024-10-23 11:29:15 +0000
committer Azhara Assanova <azharaa@google.com> 2024-11-12 20:56:09 +0000
commitd1a18160a6cb662d33ab64c564455b5481626d11 (patch)
tree19c1477cf3bd5fc5e346d2c65ef9f21482ecd071 /tests/DynamicCodeLoggerIntegrationTests/src
parent913e30ed1d4adaee82dbb67dc30bb55628eb786a (diff)
[AAPM] Disallow Install Unknown Sources Hook
Implement an AdvancedProtectionHook class for disallowing install unknown sources via DevicePolicyManager restriction DISALLOW_INSTALL_UNKNOWN_SOURCES_GLOBALLY. To do the above, this change introduces two hidden APIs in DevicePolicyManager that allow setting global restrictions for system components. They mimic the existing hidden APIs for setting local restricitons for system components. Bug: 369361373 Test: manually tested the restriction is set even after reboot Test: atest AdvancedProtectionManagerTest Test: atest AdvancedProtectionServiceTest Test: atest DisallowInstallUnknownSourcesTest Flag: android.security.aapm_feature_disable_install_unknown_sources Change-Id: I80722ee489a79a316cd54f171a180b609effd80f
Diffstat (limited to 'tests/DynamicCodeLoggerIntegrationTests/src')
0 files changed, 0 insertions, 0 deletions