From 126677222c4d6429f0584fdfe3002d2ec4e202c5 Mon Sep 17 00:00:00 2001 From: Sergey Vasilinets Date: Thu, 7 Feb 2019 16:39:14 +0000 Subject: [PATCH] Disallow access to IGraphicsStats$Stub starting with Q Reasoning: this is deeply internal apis and it is impossible to use them without calling tons of other private apis. Also, there is no known valid use cases, when it would be useful to do. If you need graphics stats for debug purposes, please use "adb shell dumpsys gfxinfo " and/or systrace Change-Id: If04c7802c9e663f62b85c23d81fa11514137319b Fixes: 123769511 Test: N/A --- config/hiddenapi-greylist-max-p.txt | 2 ++ config/hiddenapi-greylist.txt | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/hiddenapi-greylist-max-p.txt b/config/hiddenapi-greylist-max-p.txt index 7840b186615fc..4c643e1c68317 100644 --- a/config/hiddenapi-greylist-max-p.txt +++ b/config/hiddenapi-greylist-max-p.txt @@ -48,6 +48,8 @@ Landroid/os/WorkSource;->updateLocked(Landroid/os/WorkSource;ZZ)Z Landroid/service/carrier/ICarrierMessagingCallback$Stub;->()V Landroid/service/carrier/ICarrierMessagingService;->filterSms(Landroid/service/carrier/MessagePdu;Ljava/lang/String;IILandroid/service/carrier/ICarrierMessagingCallback;)V Landroid/telephony/CarrierMessagingServiceManager;->()V +Landroid/view/IGraphicsStats$Stub$Proxy;->(Landroid/os/IBinder;)V +Landroid/view/IGraphicsStats$Stub;->asInterface(Landroid/os/IBinder;)Landroid/view/IGraphicsStats; Landroid/view/IWindowManager;->setInTouchMode(Z)V Landroid/view/IWindowManager;->showStrictModeViolation(Z)V Lcom/android/internal/R$styleable;->AndroidManifestActivityAlias:[I diff --git a/config/hiddenapi-greylist.txt b/config/hiddenapi-greylist.txt index 11bb38beee87d..b1c4cd2d5882c 100644 --- a/config/hiddenapi-greylist.txt +++ b/config/hiddenapi-greylist.txt @@ -1482,8 +1482,6 @@ Landroid/view/autofill/IAutoFillManager$Stub$Proxy;->(Landroid/os/IBinder; Landroid/view/autofill/IAutoFillManager$Stub;->asInterface(Landroid/os/IBinder;)Landroid/view/autofill/IAutoFillManager; Landroid/view/IAppTransitionAnimationSpecsFuture$Stub;->()V Landroid/view/IDockedStackListener$Stub;->()V -Landroid/view/IGraphicsStats$Stub$Proxy;->(Landroid/os/IBinder;)V -Landroid/view/IGraphicsStats$Stub;->asInterface(Landroid/os/IBinder;)Landroid/view/IGraphicsStats; Landroid/view/IRecentsAnimationController;->finish(Z)V Landroid/view/IRecentsAnimationController;->screenshotTask(I)Landroid/app/ActivityManager$TaskSnapshot; Landroid/view/IRecentsAnimationController;->setAnimationTargetsBehindSystemBars(Z)V