You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2020/10/25 16:04:08 UTC

[GitHub] [cordova-plugin-camera] alexp25 opened a new issue #682: Restrictions on Non-SDK interfaces targeting Android 29

alexp25 opened a new issue #682:
URL: https://github.com/apache/cordova-plugin-camera/issues/682


   I am using this plugin in a cordova/ionic app. I have tested the build with veridex-tool after receiving warnings in Google Play Console that the app is using non-SDK apis that are greylisted. I have tested each plugin, installing them one by one to find out which causes this problem. I attach the output:
   
   ```
   NOTE: appcompat.sh is still under development. It can report
   API uses that do not execute at runtime, and reflection uses
   that do not exist. It can also miss on reflection uses.
   #1: Reflection greylist Landroid/app/Dialog;->mOnKeyListener use(s):
          Landroidx/core/view/KeyEventDispatcher;->getDialogKeyListenerPre28(Landroid/app/Dialog;)Landroid/content/DialogInterface$OnKeyListener;
   
   #2: Reflection greylist Landroid/graphics/Typeface;->createFromFamiliesWithDefault use(s):
          Landroidx/core/graphics/TypefaceCompatApi24Impl;-><clinit>()V
          Landroidx/core/graphics/TypefaceCompatApi26Impl;->obtainCreateFromFamiliesWithDefaultMethod(Ljava/lang/Class;)Ljava/lang/reflect/Method;
          Landroidx/core/graphics/TypefaceCompatApi28Impl;->obtainCreateFromFamiliesWithDefaultMethod(Ljava/lang/Class;)Ljava/lang/reflect/Method;
   
   #3: Reflection greylist Landroid/media/AudioAttributes;->toLegacyStreamType use(s):
          Landroidx/media/AudioAttributesImplApi21;->getAudioAttributesToLegacyStreamTypeMethod()Ljava/lang/reflect/Method;
   
   #4: Reflection greylist Landroid/media/session/MediaSession;->getCallingPackage use(s):
          Landroid/support/v4/media/session/MediaSessionCompatApi24;->getCallingPackage(Ljava/lang/Object;)Ljava/lang/String;
   
   #5: Reflection greylist Landroid/os/Bundle;->getIBinder use(s):
          Landroidx/core/app/BundleCompat$BundleCompatBaseImpl;->getBinder(Landroid/os/Bundle;Ljava/lang/String;)Landroid/os/IBinder;
   
   #6: Reflection greylist Landroid/os/Bundle;->putIBinder use(s):
          Landroidx/core/app/BundleCompat$BundleCompatBaseImpl;->putBinder(Landroid/os/Bundle;Ljava/lang/String;Landroid/os/IBinder;)V
   
   #7: Reflection greylist Landroid/service/media/MediaBrowserService$Result;->mFlags use(s):
          Landroidx/media/MediaBrowserServiceCompatApi26;-><clinit>()V
   
   #8: Reflection greylist Landroid/view/LayoutInflater;->mFactory2 use(s):
          Landroidx/core/view/LayoutInflaterCompat;->forceSetFactory2(Landroid/view/LayoutInflater;Landroid/view/LayoutInflater$Factory2;)V
   
   #9: Reflection greylist Landroid/view/View;->mAccessibilityDelegate use(s):
          Landroidx/core/view/ViewCompat;->hasAccessibilityDelegate(Landroid/view/View;)Z
   
   #10: Reflection greylist-max-p Landroid/view/animation/Animation;->mListener use(s):
          Landroidx/fragment/app/FragmentManagerImpl;->getAnimationListener(Landroid/view/animation/Animation;)Landroid/view/animation/Animation$AnimationListener;
   
   #11: Reflection greylist-max-o Lcom/android/internal/view/menu/MenuBuilder;->removeItemAt use(s):
          Landroidx/core/widget/TextViewCompat$OreoCallback;->recomputeProcessTextMenuItems(Landroid/view/Menu;)V
   
   #12: Reflection greylist Llibcore/icu/ICU;->addLikelySubtags use(s):
          Landroidx/core/text/ICUCompat;-><clinit>()V
   
   12 hidden API(s) used: 0 linked against, 12 through reflection
   	10 in greylist
   	0 in blacklist
   	1 in greylist-max-o
   	1 in greylist-max-p
   	0 in greylist-max-q
   To run an analysis that can give more reflection accesses, 
   but could include false positives, pass the --imprecise flag. 
   ```
   
   I mention that all of these API calls are caused by this plugin (the app may crash or not work at all on Android API Level > 27, while 29 is now required). What can be done to update this plugin to the Android new standards?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-plugin-camera] jcesarmobile closed issue #682: Restrictions on Non-SDK interfaces targeting Android 29

Posted by GitBox <gi...@apache.org>.
jcesarmobile closed issue #682:
URL: https://github.com/apache/cordova-plugin-camera/issues/682


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-plugin-camera] jcesarmobile commented on issue #682: Restrictions on Non-SDK interfaces targeting Android 29

Posted by GitBox <gi...@apache.org>.
jcesarmobile commented on issue #682:
URL: https://github.com/apache/cordova-plugin-camera/issues/682#issuecomment-746463822


   Not sure how did you figure out that all those calls are caused by this plugin, but you are wrong, most of them are from AndroidX, which the plugin doesn't support yet, so it's not possible that they are caused by the plugin. And even if the plugin used AndroidX, those come from the google classes, so google should fix those or maybe your dependencies are out of date.
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org