mercredi 27 février 2019

android P reflection how to do

I use veridex-linux util and get some log I see some text like

52: Reflection greylist Landroid/app/AppOpsManager;->OP_POST_NOTIFICATION use(s):

   Lcom/xiaomi/a/a/a/a;->c(Landroid/content/Context;Ljava/lang/String;)Lcom/xiaomi/a/a/a/a$a

;

58: Reflection blacklist Landroid/graphics/Typeface;->createFromFamiliesWithDefault use(s):

   Landroid/support/v4/graphics/TypefaceCompatApi24Impl;-><clinit>()V
   Landroid/support/v4/graphics/TypefaceCompatApi26Impl;-><clinit>()V

59: Reflection blacklist Landroid/graphics/drawable/Drawable;->getOpticalInsets use(s):

   Landroid/support/v7/widget/DrawableUtils;->getOpticalBounds(Landroid/graphics/drawable/Dr

awable;)Landroid/graphics/Rect;

60: Reflection greylist Landroid/graphics/drawable/Drawable;->isProjected use(s):

   Landroid/support/v4/graphics/drawable/WrappedDrawableApi21;->findAndCacheIsProjectedDrawa

bleMethod()V

61: Reflection greylist Landroid/media/AudioAttributes;->toLegacyStreamType use(s):

   Landroid/support/v4/media/AudioAttributesCompatApi21;->toLegacyStreamType(Landroid/suppor

t/v4/media/AudioAttributesCompatApi21$Wrapper;)I

62: Reflection greylist Landroid/media/session/MediaSession;->getCallingPackage use(s):

   Landroid/support/v4/media/session/MediaSessionCompatApi24;->getCallingPackage(Ljava/lang/

Object;)Ljava/lang/String;"

what should I do about support libs(use grey-list and black-list)? and another third SDK, if third SDK use reflection and don't upgrade new version, may I get throw exception? How to fix it except abondon it? (grey-list will be fine in android 9 but in height is uncertainly black-list can not use normal)





Aucun commentaire:

Enregistrer un commentaire