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

Commit 4236ccb7 authored by Philip P. Moltmann's avatar Philip P. Moltmann
Browse files

Expose the ability to resolve icon as a different app

This is needed as the Permission Controller needs to get the icons for
permissions declared by 3rd party apps.

Bug: 110953302
Test: Built
Change-Id: I3fa643ad46150283c33c8fac918df158ed9b5a30
parent 8cc536c8
Loading
Loading
Loading
Loading
+8 −0
Original line number Original line Diff line number Diff line
@@ -1269,6 +1269,14 @@ package android.content.pm.permission {


}
}


package android.graphics.drawable {

  public final class Icon implements android.os.Parcelable {
    method public static android.graphics.drawable.Icon createWithResource(android.content.res.Resources, int);
  }

}

package android.hardware {
package android.hardware {


  public final class Sensor {
  public final class Sensor {
+2 −1
Original line number Original line Diff line number Diff line
@@ -21,6 +21,7 @@ import android.annotation.DrawableRes;
import android.annotation.IdRes;
import android.annotation.IdRes;
import android.annotation.IntDef;
import android.annotation.IntDef;
import android.annotation.NonNull;
import android.annotation.NonNull;
import android.annotation.SystemApi;
import android.annotation.UnsupportedAppUsage;
import android.annotation.UnsupportedAppUsage;
import android.content.ContentResolver;
import android.content.ContentResolver;
import android.content.Context;
import android.content.Context;
@@ -568,7 +569,7 @@ public final class Icon implements Parcelable {
     * Version of createWithResource that takes Resources. Do not use.
     * Version of createWithResource that takes Resources. Do not use.
     * @hide
     * @hide
     */
     */
    @UnsupportedAppUsage
    @SystemApi
    public static Icon createWithResource(Resources res, @DrawableRes int resId) {
    public static Icon createWithResource(Resources res, @DrawableRes int resId) {
        if (res == null) {
        if (res == null) {
            throw new IllegalArgumentException("Resource must not be null.");
            throw new IllegalArgumentException("Resource must not be null.");