Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 86705dd0 authored by Nextbit's avatar Nextbit Committed by Adnan Begovic
Browse files

PackageManager: Add optional prelaunch check step

This ability is protected by config overlays.

Change-Id: I0c80bd9ec6bda3d21557aaa9503f05ff86adf434
parent 0ef5fe9e
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -430,4 +430,7 @@ interface IPackageManager {
    /** Protected Apps */
    void setComponentProtectedSetting(in ComponentName componentName, in boolean newState,
            int userId);

    void addPreLaunchCheckPackage(String packageName);
    void removePreLaunchCheckPackage(String packageName);
}
+7 −0
Original line number Diff line number Diff line
@@ -190,6 +190,13 @@ public abstract class PackageManager {
     */
    public static final int MATCH_DEFAULT_ONLY   = 0x00010000;

    /**
     * Resolution flag: If there is only 1 activity that the intent resolves too and if this
     * flag  is set perform pre launch check for the resolved activity.
     * @hide
     */
    public static final int PERFORM_PRE_LAUNCH_CHECK   = 0x00100000;

    /**
     * Permission check result: this is returned by {@link #checkPermission}
     * if the permission has been granted to the given package.
+8 −0
Original line number Diff line number Diff line
@@ -126,6 +126,14 @@ public class ResolveInfo implements Parcelable {
     */
    public String resolvePackageName;

    /**
     * Optional -- if non-null, the component name of the target of the original
     * intent. The ResolveInfo can change the component so this field stores
     * the origial target. This can be used for retargetting by the receiver.
     * @hide
     */
    public ComponentName targetComponentName;

    /**
     * @hide Target comes from system process?
     */
+4 −0
Original line number Diff line number Diff line
@@ -1331,6 +1331,10 @@
         Example: com.google.android.myapp/.resolver.MyResolverActivity  -->
    <string name="config_customResolverActivity"></string>

    <!-- Component name of a custom pre launch check activity to be used instead of default
         framework version. Currently, there is no default version. -->
    <string name="config_prelaunchcheckactivity"></string>

    <!-- Apps that are authorized to access shared accounts, overridden by product overlays -->
    <string name="config_appsAuthorizedForSharedAccounts">;com.android.settings;</string>

+1 −0
Original line number Diff line number Diff line
@@ -874,6 +874,7 @@
  <java-symbol type="string" name="config_chooseAccountActivity" />
  <java-symbol type="string" name="config_chooseTypeAndAccountActivity" />
  <java-symbol type="string" name="config_customResolverActivity" />
  <java-symbol type="string" name="config_prelaunchcheckactivity" />
  <java-symbol type="string" name="config_appsAuthorizedForSharedAccounts" />
  <java-symbol type="string" name="error_message_title" />
  <java-symbol type="string" name="action_bar_home_description_format" />
Loading