Skip to content
This repository has been archived by the owner on Oct 29, 2024. It is now read-only.

Add support for fetching permission state from calling app launching the activity for system browser #446

Open
wants to merge 285 commits into
base: 14
Choose a base branch
from

Conversation

quh4gko8
Copy link
Contributor

No description provided.

@quh4gko8 quh4gko8 requested a review from a team November 17, 2023 09:29
@quh4gko8 quh4gko8 changed the title Add support for fetching permission state from calling app launching the activity for system browser, as well as apps that are allowed to determine getLaunchedFrom{Uid,Package} Add support for fetching permission state from calling app launching the activity for system browser, as well as apps that are allowed to determine calling app's identity via Activity#getLaunchedFrom{Uid,Package} Nov 17, 2023
@quh4gko8 quh4gko8 requested review from thestinger and muhomorr and removed request for a team November 17, 2023 09:48
core/java/android/app/Activity.java Outdated Show resolved Hide resolved
@quh4gko8 quh4gko8 force-pushed the enforce-INTERNET-api-Vanadium branch 2 times, most recently from 427ce30 to ddaaa10 Compare November 17, 2023 12:02
@quh4gko8 quh4gko8 changed the title Add support for fetching permission state from calling app launching the activity for system browser, as well as apps that are allowed to determine calling app's identity via Activity#getLaunchedFrom{Uid,Package} Add support for fetching permission state from calling app launching the activity for system browser Nov 17, 2023
core/java/android/app/Activity.java Outdated Show resolved Hide resolved
core/java/android/app/IActivityClientController.aidl Outdated Show resolved Hide resolved
core/java/android/app/Activity.java Outdated Show resolved Hide resolved
muhomorr and others added 17 commits June 13, 2024 11:48
com.android.text.flags.use_optimized_boottime_font_loading flag is now enabled, which delays font
initialization.
This reverts commit 7e259ee.

Reverted change regressed the Internet quick settings tile in secondary users.
This reverts commit 5f07744.

loadAssociationsFromDisk() change makes it call methods on mAssociationRevokeProcessor object in
some cases. mAssociationRevokeProcessor is null at boot-time.

This leads to NullPointerException chain-crashes during boot-time state restoration, which renders
the device unbootable.
There's another implementation for PackageExtIFace, namely PackageExtDefault and class casting exception is encountered in cases where this was the non-null instance acquired.
This significantly simplifies the fw/base part of auto-reboot implementation and fixes the following
bug: auto-reboot timer was not started when the device was locked for the first time after setting
up a lock screen (e.g. on first boot). That bug was due to an assumption that "keyguard dismissed"
event is always produced at least once before device is locked in an AFU state, which is not the
case when the device doesn't have a lockscreen when it transitions from BFU to AFU.

This commit fixes that bug, since onKeyguardShowingStateChanged() callback is invoked at boot even
when the device doesn't have a lockscreen.
This is a regression that has appeared due to changed ordering between USB connection notification
and "keyguard shown" event.
This is an overly verbose logging statement, that event is logged elsewhere already.
This allows for apps that can already access the calling app identity that launchers their activity, along with other select system apps such as browser that are granted with such access, to check whenever a permission is granted, similar to the permission entry in activity section of AndroidManifest.xml.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.