From fe195c9b7eb5fb1690122510872bc7d892947096 Mon Sep 17 00:00:00 2001 From: Etienne Ruffieux Date: Tue, 11 Jan 2022 16:17:55 +0000 Subject: [PATCH] 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 --- core/api/module-lib-current.txt | 1 + core/java/android/os/Process.java | 1 + 2 files changed, 2 insertions(+) diff --git a/core/api/module-lib-current.txt b/core/api/module-lib-current.txt index 21e3cc3aabda0..76402bcc5a5db 100644 --- a/core/api/module-lib-current.txt +++ b/core/api/module-lib-current.txt @@ -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 } diff --git a/core/java/android/os/Process.java b/core/java/android/os/Process.java index 9f37c4877199d..2030571dffe98 100644 --- a/core/java/android/os/Process.java +++ b/core/java/android/os/Process.java @@ -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; /**