summaryrefslogtreecommitdiff
path: root/service
AgeCommit message (Collapse)Author
2025-04-10Revert "Add READ/WRITE_SYSTEM_PREFERENCES permissions to ASSISTANT role" Chris Antol
This reverts commit 0b3022e555fdf158dbdcc5171e24e1c574e0a9fe. Reason for revert: b/409604217 Relnote: N/A NO_IFTTT=not applicable (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:0c8729509e4e444734e4d8827ad4e5b29b14fc62) Merged-In: Iab3a924bb0d9a2b81e19ec04d74c50491a062faa Change-Id: Iab3a924bb0d9a2b81e19ec04d74c50491a062faa
2025-04-10Temporarily stop getting user from call Nate Myren
This is being removed, due to unidentified crashed. Ensures the incall test doesn't run on HSUM builds. Bug: 408470449 Test: atest EnhancedConfirmationInCallTest Flag: EXEMPT critical crash fix Relnote: None (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:671bad75d3c80c9ac73b767b3e06f71c29ce8f86) Merged-In: I38253e0cdae80fb9116e38926af81c642cbbd144 Change-Id: I38253e0cdae80fb9116e38926af81c642cbbd144
2025-03-18Catch runtime exception when telephony is not available Nate Myren
When the telephony service is unavailable, calling emergency number check will trigger remote exception,which will be thrown as runtime exception. Bug: 404137946 Test: manual Flag: EXEMPT minor bugfix Relnote: N/A Change-Id: I1c9c20b259849ba9de39ec2fdfd73b15e017baa0
2025-03-12Work around force stop issue for assistant role Hai Zhang
Work around VoiceInteractionManagerService resetting default assistant upon force stop by ignoring its call to clearRoleHoldersAsUser(), and announce a role holder change instead to trigger re-configuring the default assistant. Bug: 191743558 Flag: EXEMPT bugfix Test: manually force stop a current downloaded assistant with VIS and make sure it is still the default assistant and usable Relnote: N/A Change-Id: Ibd36cd8c1fb86059301951b7be0d43942cac7ed6
2025-03-05Change enhanced confirmation dialog gravity from left to start Nate Myren
This ensures it is aligned properly in RTL languages Fixes: 400932081 Flag: EXEMPT need to backport Test: manual Relnote: Internationalization fix LOW_COVERAGE_REASON=NON_CODE_ONLY Change-Id: I04ade36055480c977cff63e3a9290f5b757640e8
2025-03-05Merge "Add cooldown to ECM logging" into main Nate Myren
2025-03-05Merge "Add logging to ECM in call checks" into main Nate Myren
2025-03-05Add cooldown to ECM logging Nate Myren
Bug: 364535720 Test: manual Flag: android.permission.flags.unknown_call_setting_blocked_logging_enabled Relnote: none LOW_COVERAGE_REASON=FLAG_NOT_ENABLED Change-Id: If3c8fd6867d73b452b49fc8fb61fe0ee0eb0b951
2025-03-05Add logging to ECM in call checks Nate Myren
These will help guage the success of the feature. Also refactors the call tracking to its own class. Bug: 364535720 Test: manual Flag: android.permission.flags.unknown_call_setting_blocked_logging_enabled Relnote: none LOW_COVERAGE_REASON=FLAG_NOT_ENABLED Change-Id: I5b23564b7cb75d8ddeaaed38307d2bb2c19bab0a
2025-03-03Merge "Add missing preconditions to get/setDefaultApplicationAsUser" into main Richard MacGregor
2025-03-03Merge "Revert^2 "Query for contacts in the same user as the call when ↵ Treehugger Robot
deciding trusted"" into main
2025-03-03Revert^2 "Query for contacts in the same user as the call when deciding trusted" Nate Myren
This reverts commit 47ab31627dbf1bad5f911f298ead12297e241538. Reason for revert: re-merging LOW_COVERAGE_REASON=FLAG_NOT_ENABLED Change-Id: Ifa8b2bb1c39b7be6173dd7436e37cbfe3c207472
2025-02-28Make ecm caller map concurrent Nate Myren
Bug: 397055134 Test: atest EnhancedConfirmationInCallTest Flag: EXEMPT followup fix for system server crash Relnote: 25Q2 LOW_COVERAGE_REASON=b/397055134 Change-Id: Iab37527c69e8c3562a856721e5fbd2f19ce0374b
2025-02-28Check caller status on background thread in ECM Nate Myren
Fixes: 397055134 Test: atest EnhancedConfirmationInCallTest Flag: EXEMPT fix for system server crash Relnote: 25Q2 LOW_COVERAGE_REASON=b/397055134 Change-Id: I3e252dbeeb90e118af8c8227d4fb15db739572d7
2025-02-26Merge "Revert "Query for contacts in the same user as the call when deciding ↵ Pechetty Sravani (xWF)
trusted"" into main
2025-02-26Revert "Query for contacts in the same user as the call when deciding trusted" Pechetty Sravani (xWF)
This reverts commit b0514c4e229ef09328bc7aeaf09c4c2f3a3ace71. Reason for revert: <Droidmonitor created revert due to b/399250535. Will be verified through ABTD for standard investigation.>> Change-Id: I8c343f180c05a8c770bfdb95430fcfca794f0c45
2025-02-25Merge "Query for contacts in the same user as the call when deciding ↵ Treehugger Robot
trusted" into main
2025-02-20Use user context when getting profiles for user Richard MacGregor
LOW_COVERAGE_REASON=b/377295697 Bug: 394850733 Flag: EXEMPT bugfix Relnote: n/a Test: atest RoleManagerMultiUserTest Change-Id: Ib4c7a42e0134cdf21481732d6fc160d78900d9f5
2025-02-18Query for contacts in the same user as the call when deciding trusted Nate Myren
This ensures the correct set of contacts is queried before a call is declared trusted Fixes: 396541213 Test: (in HSUM mode) atest EnhancedConfirmationInCallTest Flag: EXEMPT fix for HSUM test Relnote: 25Q2 Change-Id: I420dd9f99a4fc4c5231166c05dea3a97a458adc4
2025-02-11Add missing preconditions to get/setDefaultApplicationAsUser Richard MacGregor
Add missing preconditions to ensure these methods are not called on APIs lower than U Bug: 379362792 Flag: EXEMPT bug fix Relnote: Fix API preconditions Test: atest RoleManagerSecurityTest Change-Id: Iadc97d09cf083e2525de421362c5a4bece92ee8a
2025-02-05Check DISALLOW_CONFIG_DEFAULT_APPS for all users of a cross-profile role Richard MacGregor
Bug: 379143953 Flag: com.android.permission.flags.cross_user_role_ux_bugfix_enabled Relnote: N/A Test: atest RoleManagerMultiUserTest Change-Id: I448a8d2a90c0121338876ef04c843f4758e17c6a
2025-01-21Exempt AccessibilityTools from restriction, add new strings Nate Myren
AccessibilityTool AccessibilityServices should be exempt from the in-call fraud restrictions. This CL also adds strings for accessibility service blocking Fixes: 391416431 Test: manual Relnote: 25Q2 release work Flag: android.permission.flags.enhanced_confirmation_in_call_apis_enabled LOW_COVERAGE_REASON=b/391416431 Change-Id: I908ff29a5fe3e6ed370a431cebe319e2a6c57e92
2025-01-15Merge "Separate per-package and global restricted ECM settings" into main Nate Myren
2025-01-15Separate per-package and global restricted ECM settings Nate Myren
If an ECM setting is restricted only by global device state, then it should not be checked for a per-package restriction. Fixes: 385317771 Test: atest EnhancedConfirmationInCallTest Flag: android.permission.flags.enhanced_confirmation_in_call_apis_enabled Relnote: 25Q2 feature work LOW_COVERAGE_REASON=b/387927331 Change-Id: Ia78acdca3071af6310d5bd5ce2c4db0c30195478
2025-01-07Merge "Block accessibility service enabling while in a call" into main Nate Myren
2025-01-02Add CtsRoleMultiUserTestCases to TEST_MAPPING files Richard MacGregor
LOW_COVERAGE_REASON=NON_CODE_ONLY Bug: 378965769 Flag: TEST_ONLY Relnote: N/A Change-Id: Ic09fa519fd43fc1790865b196ca612b4b4510846
2024-12-30Block accessibility service enabling while in a call Nate Myren
This also adds a "reason" to the ecm dialog, to be used in determining which version of the dialog to show Bug: 364535720 Test: manual Flag: android.permission.flags.enhanced_confirmation_in_call_apis_enabled Relnote: 25Q2 feature work Change-Id: I4be7e63d616d80ac196e88524b2f4cbda2d0c405
2024-12-19Merge "Set full user as active if active user removed" into main Richard MacGregor
2024-12-19Set full user as active if active user removed Richard MacGregor
On removal of a user, set it's parent user as active for all roles in which the removed user was marked as active LOW_COVERAGE_REASON=FLAG_NOT_ENABLED Relnote: N/A Flag: com.android.permission.flags.cross_user_role_enabled Bug: 375029649 Test: atest RoleManagerMultiUserTest Change-Id: If8dc5b1d74e7d37a8758d31470a5b91a1294428a
2024-12-17Add READ/WRITE_SYSTEM_PREFERENCES permissions to ASSISTANT role Chris Antol
Bug: 381900860 Flag: com.android.settingslib.flags.settings_catalyst Flag: com.android.settingslib.flags.write_system_preference_permission_enabled Test: manual test via build + verifying permissions available on app Relnote: N/A NO_IFTTT=flag jarjar logic already covered LOW_COVERAGE_REASON=NON_CODE_ONLY Change-Id: I869ce060616ed4000ddf1b17a66d93fc6bb93429
2024-12-10Merge "Followup fixes for RoleManager test api" into main Richard MacGregor
2024-12-10Followup fixes for RoleManager test api Richard MacGregor
Followup fixes for RoleManager get/setDefaultHoldersForTest and is/setRoleVisibleForTest LOW_COVERAGE_REASON=b/382484309 Relnote: N/A Flag: com.android.permission.flags.cross_user_role_enabled Bug: 381315745 Test: atest RoleManagerTest Test: atest RoleManagerMultiUserTest Change-Id: I19ddcd4a71682f89ccf32322833db3404f46c86f
2024-12-09Remove API flag for ECM InCall Nate Myren
The flag was designed to gate APIs, but there are no APIs remaining gated by it. Leaving the flag definition in place until a rollback is performed Fixes: 383034203 Test: atest EnhancedConfirmationInCallTest LOW_COVERAGE_REASON=FLAG_NOT_ENABLED Change-Id: I5202be86a8b431494c2efcd312e426af3257a61e
2024-12-09Merge "Add traces for RoleService" into main Richard MacGregor
2024-12-09Add traces for RoleService Richard MacGregor
Add traces for RoleService onUserStarting(), getActiveUserForRoleAsUser() and setActiveUserForRoleAsUser() LOW_COVERAGE_REASON=FLAG_NOT_ENABLED Relnote: N/A Test: manual Bug: 369438477 Flag: EXEMPT log only update Change-Id: I94009e94c15950787eccbfc474e286aeb80f2c00
2024-12-06Add in-call version of ECM dialog, remove new ECM api Nate Myren
This dialog looks similar to the existing ECM dialog, but has a different message, about being blocked while in a phone call Also removes the ecm "isUnknownCallOngoing", in favor of using "isRestricted" Test: atest EnhancedConfirmationInCallTest Flag: android.permission.flags.unknown_call_package_install_blocking_enabled Relnote: android 25Q2 feature LOW_COVERAGE_REASON=FLAG_NOT_ENABLED Change-Id: I113114c15df3df483e290f0bab00f5cecb2b44f8
2024-12-05Add get/setDefaultHoldersForTest and is/setRoleVisibleForTest Richard MacGregor
Add role methods to assist in setting test role visiblity and default holders LOW_COVERAGE_REASON=b/382484309 Relnote: N/A Flag: com.android.permission.flags.cross_user_role_enabled Bug: 381315745 Test: atest RoleManagerTest Change-Id: I6d1d4200849a2be994f83da675fc57837ae7204f
2024-12-02Use an admin flag for the COPY_ACCOUNTS permission Alex Johnston
This was added in ag/30578611 but was reverted due to a test failure. This CL fixes the test failure Bug: 381303924 Test: atest PermissionPolicyTest Relnote: N/A Flag: android.app.admin.flags.split_create_managed_profile_enabled NO_IFTTT=flag jarjar logic already covered LOW_COVERAGE_REASON=NON_CODE_ONLY Change-Id: I6a0d4a096c47dae4cf89981554e2c87ba35a6a55
2024-11-27Revert "Use an admin flag for the COPY_ACCOUNTS permission" Chaitanya Cheemala (xWF)
Revert submission 30578537-admin-flag-export Reason for revert: Likely culprit for b/381215589 - verifying through ABTD before revert submission. This is part of the standard investigation process, and does not mean your CL will be reverted. Reverted changes: /q/submissionid:30578537-admin-flag-export Change-Id: I2dab6615dbb3ee37d06d9419f904d182b9e7086b
2024-11-26Use an admin flag for the COPY_ACCOUNTS permission Alex Johnston
Bug: 380793808 Test: atest PermissionPolicyTest Relnote: N/A Flag: android.app.admin.flags.split_create_managed_profile_enabled NO_IFTTT=flag jarjar logic already covered Change-Id: I52df63f0cdbe0b1f36768228cb605c4d3f701330
2024-11-26Merge "Catch errors related to Telephony being unavailable in ECMService" ↵ Treehugger Robot
into main
2024-11-25Catch errors related to Telephony being unavailable in ECMService Nate Myren
On some devices, like tablets, there may be telecom calls (from things like VOIP apps), but not telephony (sim cards). These exceptions should be caught when checking for emergency numbers Fixes: 380718851 Test: manual Flag: none Change-Id: I1a6de95b114d7d206d583f2d79f6ab34011e9220
2024-11-25Set activeuser when setting role holder Richard MacGregor
Set active user for profilegroup exclusive roles when calling setDefaultApplication and addRoleHolderAsUser API LOW_COVERAGE_REASON=FLAG_NOT_ENABLED Relnote: N/A Flag: com.android.permission.flags.cross_user_role_enabled Test: atest RoleManagerMultiUserTest Bug: 378887974 Bug: 378888547 Change-Id: Ifd8e9a60f5024799dd4dc81d00cd578d799a4114
2024-11-21Merge "Add new unknown call apis in ECM, add InCallService to track" into main Nate Myren
2024-11-21Add new unknown call apis in ECM, add InCallService to track Nate Myren
Adds new APIs that let certain apps query if there is a call with an unkown user (read: not a contact) ongoing. Also merges an InCallService which tracks and updates this state Bug: 364535720 Test: atest EnhancedConfirmationInCallTest Flag: android.permission.flags.enhanced_confirmation_in_call_apis_enabled Relnote: 25Q2 release LOW_COVERAGE_REASON=FLAG_NOT_ENABLED Change-Id: I2e260bd911a65f99dd7e7b7b4012b04ef7b51203
2024-11-19Get and set users for cross-user roles in RoleService Richard MacGregor
LOW_COVERAGE_REASON=FLAG_NOT_ENABLED NO_IFTTT=brings jarjar inline with RoleParse transform Relnote: N/A Flag: com.android.permission.flags.cross_user_role_enabled Test: atest RoleManagerTest Test: atest RoleShellCommandTest Bug: 372746716 Change-Id: I1b4da27df2f0d1862aa0031b2988bd7562f1a956
2024-11-14Create new role for dependency installer. Sorin Dinu
NO_IFTTT=flag jarjar logic already covered Relnote: Creating a new role to be held by a system app responsible for installing shared library dependencies required by the current active install session. Bug: 372862084 Test: local testing FLAG: android.content.pm.sdk_dependency_installer Change-Id: I776e7b494f94b55f4ef92e686ae7a498b521682b
2024-11-12Move UserHandleCompat to framework-s for more convenient accessed Richard MacGregor
NO_IFTTT=Does not modify RoleParser logic RelNote: N/A Bug: 376728836 Flag: EXEMPT refactor Test: build Change-Id: I603adc9e8e584bbadda49903bca6c3aba30cad89
2024-11-08Merge "Add Cross-user role persistence" into main Richard MacGregor
2024-11-08Add Cross-user role persistence Richard MacGregor
Add persistence for cross-user role support. LOW_COVERAGE_REASON=FLAG_NOT_ENABLED Relnote: Add cross-user role persistence Flag: com.android.permission.flags.cross_user_role_enabled Test: atest RolesPersistenceTest Bug: 373469933 Change-Id: I428f1033e8c76959fea611070a79ac1c7b3eb6ac