Android - android.os.Parcel.readException中的java.lang.SecurityException

时间:2018-03-08 14:08:01

标签: android geolocation securityexception android-securityexception

我一直在研究基于位置的Android应用程序。此外,我已经处理了运行时危险的位置权限。它在测试4.0到8.0的各种设备时效果很好。

我没有其他危险的权限。

如果异常是针对运行时位置权限的,则会读取如下所示的内容

java.lang.SecurityException: Client must have ACCESS_FINE_LOCATION permission to request PRIORITY_HIGH_ACCURACY locations.

但相反,日志如下所示。

java.lang.SecurityException: 
  at android.os.Parcel.readException (Parcel.java:1683)
  at android.os.Parcel.readException (Parcel.java:1636)
  at com.google.android.gms.internal.zzed.zzb (Unknown Source)
  at com.google.android.gms.internal.zzcdx.zza (Unknown Source)
  at com.google.android.gms.internal.zzcea.zza (Unknown Source)
  at com.google.android.gms.internal.zzceh.zza (Unknown Source)
  at com.google.android.gms.location.zzi.zzb (Unknown Source)
  at com.google.android.gms.common.api.internal.zzd.zzb (Unknown Source)
  at com.google.android.gms.common.api.internal.zzb.zza (Unknown Source)
  at com.google.android.gms.common.api.internal.zzbr.zzb (Unknown Source)
  at com.google.android.gms.common.api.internal.zzbr.zzaik (Unknown Source)
  at com.google.android.gms.common.api.internal.zzbr.onConnected (Unknown Source)
  at com.google.android.gms.common.internal.zzac.onConnected (Unknown Source)
  at com.google.android.gms.common.internal.zzn.zzakf (Unknown Source)
  at com.google.android.gms.common.internal.zze.zzv (Unknown Source)
  at com.google.android.gms.common.internal.zzi.zzakg (Unknown Source)
  at com.google.android.gms.common.internal.zzh.handleMessage (Unknown Source)
  at android.os.Handler.dispatchMessage (Handler.java:102)
  at android.os.Looper.loop (Looper.java:154)
  at android.os.HandlerThread.run (HandlerThread.java:61)

与Google Play控制台相比,例外的计数为1216。受影响的用户在短时间内是368。

任何帮助将不胜感激。提前致谢

0 个答案:

没有答案