Making Process.NFC_UID SystemApi for modules

In order for Bluetooth to be a mainline module, we need to
remove all hidden APIs calls from and to it. NFC_UID is
used inside BluetoothManagerService so we need to be able
to access it.

Tag: #feature
Test: make
Bug: 211851706
Change-Id: Ie778c4467f5db1efa1f759c405373cc3e34747ca
This commit is contained in:
Etienne Ruffieux
2022-01-11 16:17:55 +00:00
parent f1245786d6
commit fe195c9b7e
2 changed files with 2 additions and 0 deletions

View File

@@ -351,6 +351,7 @@ package android.os {
}
public class Process {
field public static final int NFC_UID = 1027; // 0x403
field public static final int VPN_UID = 1016; // 0x3f8
}

View File

@@ -129,6 +129,7 @@ public class Process {
*/
@UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.R, trackingBug = 170729553)
@TestApi
@SystemApi(client = MODULE_LIBRARIES)
public static final int NFC_UID = 1027;
/**