question

Simplify Now, LLC avatar image
Simplify Now, LLC asked

Crash due to undisclosed READ_PHONE_STATE requirement

It looks like the quickstart docs are not in sync with the ads SDK. I got a crash report due to Amazon Ads requesting a permission that it should not. Please update the docs or fix the code. Caused by: java.lang.SecurityException: Requires READ_PHONE_STATE: Neither user 10066 nor current process has android.permission.READ_PHONE_STATE. at android.os.Parcel.readException(Parcel.java:1322) at android.os.Parcel.readException(Parcel.java:1276) at com.android.internal.telephony.IPhoneSubInfo$Stub$Proxy.getSubscriberId(IPhoneSubInfo.java:191) at android.telephony.TelephonyManager.getSubscriberId(TelephonyManager.java:737) at android.telephony.TelephonyManager.getNetworkOperatorName(TelephonyManager.java:405) at com.amazon.device.ads.DeviceInfo.setCarrier(Unknown Source) at com.amazon.device.ads.DeviceInfo. (Unknown Source) at com.amazon.device.ads.InternalAdRegistration.createDeviceInfo(Unknown Source) at com.amazon.device.ads.InternalAdRegistration.contextReceived(Unknown Source) at com.amazon.device.ads.AdLayout.initialize(Unknown Source) at com.amazon.device.ads.AdLayout. (Unknown Source)
mobile ads
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Sujoy@Amazon avatar image
Sujoy@Amazon answered
Hi, Please let us know which device you are testing on? Thanks.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.