Skip to content

Turning off location permissions before adding a new session will cause RadioBeacon to crash #249

@sjl872964789

Description

@sjl872964789

What steps will reproduce the problem?

  1. Install and open RadioBeacon
  2. Turn off location permission of RadioBeacon
  3. Click on "New session"
  4. Crash

What is the expected output? What do you see instead?
RadioBeacon should not crash

What version are you using? On what operating system?
Device: Galaxy A6s
OS: Android 7.1.2
Version: 0.8.18

Please provide any additional information below.
ezgif com-video-to-gif (16)

Logcat

08-23 10:24:03.355  6730  6730 E AndroidRuntime: FATAL EXCEPTION: main
08-23 10:24:03.355  6730  6730 E AndroidRuntime: Process: org.openbmap, PID: 6730
08-23 10:24:03.355  6730  6730 E AndroidRuntime: java.lang.RuntimeException: Unable to create service org.openbmap.services.wireless.WirelessLoggerService: java.lang.SecurityException: Neither user 10184 nor current process has android.permission.ACCESS_COARSE_LOCATION.
08-23 10:24:03.355  6730  6730 E AndroidRuntime:        at android.app.ActivityThread.handleCreateService(ActivityThread.java:3532)
08-23 10:24:03.355  6730  6730 E AndroidRuntime:        at android.app.ActivityThread.-wrap4(Unknown Source:0)
08-23 10:24:03.355  6730  6730 E AndroidRuntime:        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1740)
08-23 10:24:03.355  6730  6730 E AndroidRuntime:        at android.os.Handler.dispatchMessage(Handler.java:106)
08-23 10:24:03.355  6730  6730 E AndroidRuntime:        at android.os.Looper.loop(Looper.java:164)
08-23 10:24:03.355  6730  6730 E AndroidRuntime:        at android.app.ActivityThread.main(ActivityThread.java:6746)
08-23 10:24:03.355  6730  6730 E AndroidRuntime:        at java.lang.reflect.Method.invoke(Native Method)
08-23 10:24:03.355  6730  6730 E AndroidRuntime:        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
08-23 10:24:03.355  6730  6730 E AndroidRuntime:        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
08-23 10:24:03.355  6730  6730 E AndroidRuntime: Caused by: java.lang.SecurityException: Neither user 10184 nor current process has android.permission.ACCESS_COARSE_LOCATION.
08-23 10:24:03.355  6730  6730 E AndroidRuntime:        at android.os.Parcel.readException(Parcel.java:2005)
08-23 10:24:03.355  6730  6730 E AndroidRuntime:        at android.os.Parcel.readException(Parcel.java:1951)
08-23 10:24:03.355  6730  6730 E AndroidRuntime:        at com.android.internal.telephony.ITelephonyRegistry$Stub$Proxy.listenForSubscriber(ITelephonyRegistry.java:544)
08-23 10:24:03.355  6730  6730 E AndroidRuntime:        at android.telephony.TelephonyManager.listen(TelephonyManager.java:3625)
08-23 10:24:03.355  6730  6730 E AndroidRuntime:        at org.openbmap.services.wireless.WirelessLoggerService.e(Unknown Source:260)
08-23 10:24:03.355  6730  6730 E AndroidRuntime:        at org.openbmap.services.wireless.WirelessLoggerService.onCreate(Unknown Source:143)
08-23 10:24:03.355  6730  6730 E AndroidRuntime:        at android.app.ActivityThread.handleCreateService(ActivityThread.java:3522)
08-23 10:24:03.355  6730  6730 E AndroidRuntime:        ... 8 more

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions