Fix crash for react-native-mapbox for Android 11 or more

If you use react-native-mapbox, it can crash in Android 11 with the error as below.

java.lang.SecurityException:
at android.os.Parcel.createExceptionOrNull (Parcel.java:2376)
at android.os.Parcel.createException (Parcel.java:2360)
at android.os.Parcel.readException (Parcel.java:2343)
at android.os.Parcel.readException (Parcel.java:2285)
at com.android.internal.telephony.ITelephony$Stub$Proxy.getNetworkTypeForSubscriber (ITelephony.java:8764)
at android.telephony.TelephonyManager.getNetworkType (TelephonyManager.java:3034)
at android.telephony.TelephonyManager.getNetworkType (TelephonyManager.java:2998)
at com.mapbox.android.telemetry.TelemetryUtils.obtainCellularNetworkType (TelemetryUtils.java:165)
at com.mapbox.mapboxsdk.module.telemetry.PhoneState. (PhoneState.java:39)
at com.mapbox.mapboxsdk.module.telemetry.TelemetryImpl.onAppUserTurnstileEvent (TelemetryImpl.java:46)
at com.mapbox.mapboxsdk.maps.MapView.onCreate (MapView.java:303)
at com.mapbox.rctmgl.components.mapview.RCTMGLMapView. (RCTMGLMapView.java:162)
at com.mapbox.rctmgl.components.mapview.RCTMGLAndroidTextureMapView. (RCTMGLAndroidTextureMapView.java:14)
at com.mapbox.rctmgl.components.mapview.RCTMGLAndroidTextureMapViewManager.createViewInstance (RCTMGLAndroidTextureMapViewManager.java:29)
at com.mapbox.rctmgl.components.mapview.RCTMGLAndroidTextureMapViewManager.createViewInstance (RCTMGLAndroidTextureMapViewManager.java:12)
at com.facebook.react.uimanager.ViewManager.createViewInstance (ViewManager.java:139)
at com.facebook.react.uimanager.ViewManager.createView (ViewManager.java:83)
at com.facebook.react.uimanager.NativeViewHierarchyManager.createView (NativeViewHierarchyManager.java:281)
at com.facebook.react.uimanager.UIViewOperationQueue$CreateViewOperation.execute (UIViewOperationQueue.java:188)
at com.facebook.react.uimanager.UIViewOperationQueue$DispatchUIFrameCallback.dispatchPendingNonBatchedOperations (UIViewOperationQueue.java:1103)
at com.facebook.react.uimanager.UIViewOperationQueue$DispatchUIFrameCallback.doFrameGuarded (UIViewOperationQueue.java:1074)
at com.facebook.react.uimanager.GuardedFrameCallback.doFrame (GuardedFrameCallback.java:29)
at com.facebook.react.modules.core.ReactChoreographer$ReactChoreographerDispatcher.doFrame (ReactChoreographer.java:175)
at com.facebook.react.modules.core.ChoreographerCompat$FrameCallback$1.doFrame (ChoreographerCompat.java:85)
at android.view.Choreographer$CallbackRecord.run (Choreographer.java:1056)
at android.view.Choreographer.doCallbacks (Choreographer.java:880)
at android.view.Choreographer.doFrame (Choreographer.java:809)
at android.view.Choreographer$FrameDisplayEventReceiver.run (Choreographer.java:1043)
at android.os.Handler.handleCallback (Handler.java:938)
at android.os.Handler.dispatchMessage (Handler.java:99)
at android.os.Looper.loop (Looper.java:236)
at android.app.ActivityThread.main (ActivityThread.java:8019)
at java.lang.reflect.Method.invoke (Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:600)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:967)

The important thing is READ_PHONE_STATE
You have to update app.json like this.
android:{“permissions” : [“READ_PHONE_STATE”]}

And react-native-mapbox shuold be 8.5.0, 8.3.0 did not fix the issue.

FYI!