TargetSdk 33 support on Android Admob library

215 views
Skip to first unread message

YOUNG CHA

unread,
Sep 6, 2022, 8:16:17 PM9/6/22
to Google Mobile Ads SDK Developers
Hello.

My app is using com.google.android.gms:play-services-ads:21.0.0

And I tried to update targetSdk to 33 , but I found that admob library still checked "WRITE_EXTERNAL_STORAGE"

Here is how I checked.

javap -p -c -cp classes.jar com.google.android.gms.internal.ads.zzbhi
Compiled from "com.google.android.gms:play-services-ads@@21.0.0"
public final class com.google.android.gms.internal.ads.zzbhi {
  private final android.content.Context zza;

  public final boolean zzc();
    Code:
       0: aload_0
       1: getfield      #32                 // Field zza:Landroid/content/Context;
       4: getstatic     #75                 // Field com/google/android/gms/internal/ads/zzbhh.zza:Lcom/google/android/gms/internal/ads/zzbhh;
       7: invokestatic  #80                 // Method com/google/android/gms/ads/internal/util/zzcb.zza:(Landroid/content/Context;Ljava/util/concurrent/Callable;)Ljava/lang/Object;
      10: checkcast     #82                 // class java/lang/Boolean
      13: invokevirtual #85                 // Method java/lang/Boolean.booleanValue:()Z
      16: ifeq          36
      19: aload_0
      20: getfield      #32                 // Field zza:Landroid/content/Context;
      23: invokestatic  #91                 // Method com/google/android/gms/common/wrappers/Wrappers.packageManager:(Landroid/content/Context;)Lcom/google/android/gms/common/wrappers/PackageManagerWrapper;
      26: ldc           #93                 // String android.permission.WRITE_EXTERNAL_STORAGE
      28: invokevirtual #99                 // Method com/google/android/gms/common/wrappers/PackageManagerWrapper.checkCallingOrSelfPermission:(Ljava/lang/String;)I
      31: ifne          36
      34: iconst_1
      35: ireturn
      36: iconst_0
      37: ireturn


To update targetSdk 33, it needs granular-media-permissions  

Is it okay to update targetSdk 33 with com.google.android.gms:play-services-ads:21.0.0

Or would I wait until next version of play-services-ads which supports targetSdk 33?

Mobile Ads SDK Forum Advisor

unread,
Sep 7, 2022, 1:06:34 AM9/7/22
to gana...@linecorp.com, google-adm...@googlegroups.com

Hi Young,

Thank you for reaching out to us.

Can you confirm if this is also happening in the newest version of the SDK which is v21.2.0? If yes, can you provide us your sample app project and steps replicating this behavior? You can provide the following details via Reply privately to author option or directly provide it to the link below.

If the file(s) you are looking to share are less than 25mb in total you can attach them to this case on your next reply. If you are having trouble attaching your file to this case or if your file(s) are larger than 25mb, you can share your files with me by performing the following steps:

1. Navigate to

https://docs.google.com/forms/d/e/1FAIpQLSfkAiXMeYP-fw1W3Z-tT9uwmATEKO5X6S-th0gR2ezdKaaqfg/viewform?usp=pp_url&entry.400550049=Mobile+Ads+SDK&entry.460850823=5004Q00002dw5yoQAA&entry.80707362=00121865

2. Fill out all fields, and attach your file(s).

3. Please reply back on this thread when you have uploaded your file(s). Please do not share this link.

Regards,

Google Logo
Princess Pamela
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2dw5yo:ref
Message has been deleted
Message has been deleted

Mobile Ads SDK Forum Advisor

unread,
Sep 9, 2022, 3:28:04 AM9/9/22
to gana...@linecorp.com, google-adm...@googlegroups.com

Hi Young,

Thank you for confirming that this is also happening in the newest version.

With that, can you provide us the sample app project and steps to replicate that we requested previously so that we can further check this behavior? You can provide the following details via Reply privately to author option or directly provide it to the link below.

Reply all
Reply to author
Forward
0 new messages