DO NOT MERGE Chk QUERY_ALL_PACKAGES when resolving
When resolving intents, check whether QUERY_ALL_PACKAGES permission was granted, as well as whether the caller is a system process, to determine whether filtering may occur. This allows prefered activity records to be deleted by non-system processes if they have QUERY_ALL_PACKAGES permission. Before this change, configuring a custom activity resolver doesn't work properly because it's not allowed to delete the record of the last chosen app before writing a new record. Test: Create a custom activity resolver, choose an app just once, choose another app next time, verify it defaults to the other app after that. Bug: 173543124 Change-Id: If4dfea0374352b5e903d15e87e90baf012abf40b
Loading
Please register or sign in to comment