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

Commit 69f79b0a authored by paulhu's avatar paulhu
Browse files

Expose Build.VERSION.FIRST_SDK_INT as module-lib API

Connectivity service is going to become a mainline module which
will not be able to access hidden APIs. But PermissionMonitor
needs know Build.VERSION.FIRST_SDK_INT for granting network
restricted permission to system packages. Thus, expose the value
as module-lib API to support the usage.

Bug: 170598012
Test: make update-api
Change-Id: Id0ae42120f69faee43eeb7ebd35cae9e26cb7561
parent b380466d
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -28,6 +28,10 @@ package android.os {
    method public final void markVintfStability();
  }

  public static class Build.VERSION {
    field public static final int FIRST_SDK_INT;
  }

  public interface Parcelable {
    method public default int getStability();
  }
+1 −0
Original line number Diff line number Diff line
@@ -317,6 +317,7 @@ public class Build {
         * @see #SDK_INT
         * @hide
         */
        @SystemApi(client = SystemApi.Client.MODULE_LIBRARIES)
        @TestApi
        public static final int FIRST_SDK_INT = SystemProperties
                .getInt("ro.product.first_api_level", 0);