From a2689a9a11067dfedb9cfb27a3098efeb18c3eb3 Mon Sep 17 00:00:00 2001 From: Artem Iglikov Date: Mon, 12 Mar 2018 11:21:56 +0000 Subject: [PATCH] Whitelist UsbManager and UsbPortStatus apis Bug: 74424953 Test: N/A Change-Id: I8e96e3c81067a65430c58ab3f7fa2013a52d2be5 --- config/hiddenapi-light-greylist.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/config/hiddenapi-light-greylist.txt b/config/hiddenapi-light-greylist.txt index 1a1d431b1d2db..7a9a953c452c1 100644 --- a/config/hiddenapi-light-greylist.txt +++ b/config/hiddenapi-light-greylist.txt @@ -681,7 +681,13 @@ Landroid/hardware/SystemSensorManager$BaseEventQueue;->dispatchFlushCompleteEven Landroid/hardware/SystemSensorManager$BaseEventQueue;->dispatchSensorEvent(I[FIJ)V Landroid/hardware/usb/IUsbManager$Stub$Proxy;->(Landroid/os/IBinder;)V Landroid/hardware/usb/UsbDeviceConnection;->mNativeContext:J +Landroid/hardware/usb/UsbManager;->getPorts()[Landroid/hardware/usb/UsbPort; +Landroid/hardware/usb/UsbManager;->getPortStatus(Landroid/hardware/usb/UsbPort;)Landroid/hardware/usb/UsbPortStatus; Landroid/hardware/usb/UsbManager;->setCurrentFunction(Ljava/lang/String;Z)V +Landroid/hardware/usb/UsbManager;->setPortRoles(Landroid/hardware/usb/UsbPort;II)V +Landroid/hardware/usb/UsbPortStatus;->getCurrentDataRole()I +Landroid/hardware/usb/UsbPortStatus;->isConnected()Z +Landroid/hardware/usb/UsbPortStatus;->isRoleCombinationSupported(II)Z Landroid/hardware/usb/UsbRequest;->mNativeContext:J Landroid/icu/impl/number/DecimalFormatProperties;->readObject(Ljava/io/ObjectInputStream;)V Landroid/icu/impl/number/DecimalFormatProperties;->writeObject(Ljava/io/ObjectOutputStream;)V