Advanced Privacy: Accessing Location settings when location is off freezes AP
- /e/ version: 1.5-q-dev
- Device model(s): FP3
- Developer mode enabled: yes
- Device rooted: yes
- Trackers blocker enabled: no
Summary
AP freezes when one accesses location settings while location is turned off in system settings
The problem
Steps to reproduce
Make sure location is turned off
Enter AP
Enter Location
What is the current behavior?
AP freezes
What is the expected correct behavior?
Either just normal continuation or a notification to enable location
Technical informations
Relevant logs (adb logcat
)
Provided by the crash monitor app Scoop
FATAL EXCEPTION: main
Process: foundation.e.advancedprivacy, PID: 19911
java.lang.RuntimeException: Unable to start service foundation.e.privacymodules.trackers.DNSBlockerService@5621787 with null: java.lang.NullPointerException: Parameter specified as non-null is null: method kotlin.jvm.internal.Intrinsics.checkNotNullParameter, parameter intent
at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:4105)
at android.app.ActivityThread.access$1800(ActivityThread.java:219)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1891)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7356)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:491)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:940)
Caused by: java.lang.NullPointerException: Parameter specified as non-null is null: method kotlin.jvm.internal.Intrinsics.checkNotNullParameter, parameter intent
at foundation.e.privacymodules.trackers.DNSBlockerService.onStartCommand(Unknown Source:2)
at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:4087)
... 8 more
Relevant screenshots
Solutions
Workaround
Possible fixes