summaryrefslogtreecommitdiff
path: root/service/java/com
AgeCommit message (Collapse)Author
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-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-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-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-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
2024-11-07Move USER_NULL to UserHandleCompat Richard MacGregor
Change-Id: I1532a775026710d4123ae6f8ea53bfeb30615ab4 RelNote: N/A Bug: 376728836 Flag: EXEMPT refactor Test: build
2024-11-04Move shared User util methods to UserUtils Richard MacGregor
LOW_COVERAGE_REASON=b/377295697 RelNote: N/A Bug: 376728836 Flag: EXEMPT refactor Test: build Change-Id: Ia5e2949e21193a833b2861b273b2d13eaac55dbf
2024-08-21Fix SafetyCenterEnabledChanged broadcasts tests when device config flag not ↵ Elliot Sisteron
in use. Bug: 361281194 Bug: 354670125 Test: atest CtsSafetyCenterTestCases Relnote: Fixing tests after removing Safety Center device config flag Flag: com.android.permission.flags.safety_center_enabled_no_device_config LOW_COVERAGE_REASON=b/360423897 Change-Id: I491977e7499ab5d42688a375de0f3afb301286de
2024-08-19Stop using DeviceConfig to enable / disable SafetyCenter on UDC+. Elliot Sisteron
Rely solely on the XML configuration instead. This flag is true on UDC+ on 100% of devices, so this change should technically be a no-op. This is done for a few reasons: - Don’t run through the DeviceConfig code path when it’s not necessary - Avoid potential regressions where we wrongly turn this flag off server-side - Avoid issues such as b/341315099 where the flag ends up being false server-side for some reason Bug: 354670125 Test: atest CtsSafetyCenterTestCases Relnote: Stop using DeviceConfig to enable / disable SafetyCenter on UDC+ Flag: com.android.permission.flags.safety_center_enabled_no_device_config LOW_COVERAGE_REASON=b/360423897 Change-Id: I56a1e2927cf3f33d24f2f249bbecfbeeffe04e2a
2024-08-16Make issue-only source affect the status light of group. Elliot Sisteron
Requested by UX for ODAD integration. Bug: 356910111 Test: atest SafetyCenterFunctionalTestCases Relnote: N/A Flag: com.android.permission.flags.safety_center_issue_only_affects_group_status Change-Id: I20baa3bcf185220834173c940423ca9591494c1f LOW_COVERAGE_REASON=b/356910111
2024-08-14Add ODAD to safety center notifications allowed hack. Elliot Sisteron
We can't roll this change out remotely (as per existing comment), so rolling this out in code instead. Bug: 356910008 Test: atest CtsSafetyCenterTestCases Relnote: N/A Flag: com.android.permission.flags.odad_notifications_supported Change-Id: I3d4dff60bf0adf40c3a157a557a5ea917be4454c LOW_COVERAGE_REASON=b/356910008
2024-07-26Merge "Fix fallback enabled state migration for Roles" into main Yi-an Chen