Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App crash right after applying location. #62

Open
shom13 opened this issue Apr 27, 2023 · 9 comments
Open

App crash right after applying location. #62

shom13 opened this issue Apr 27, 2023 · 9 comments

Comments

@shom13
Copy link

shom13 commented Apr 27, 2023

Describe the bug
App crashes right after applying selected location

Information:

  • OS: Android 12
  • FakeTraveler version: 1.9.1

To Reproduce
Steps to reproduce the behavior:
After selecting desired location, click on apply and the app crashes.

@shom13 shom13 closed this as completed Apr 28, 2023
@shom13 shom13 reopened this Apr 28, 2023
@Albuslund
Copy link

The same problem happened to me as well.

Android 13, One UI 5.1

The most recent version of the app.

Cheers everyone, and thank you for all your invaluable efforts!

@adam-leitgeb
Copy link

adam-leitgeb commented Jun 21, 2023

Same problem on Android 13 (Graphene OS). Crashed after applying fake location.

Stack trace:

type: crash
osVersion: google/panther/panther:13/TQ3A.230605.012/2023061402:user/release-keys
package: cl.coders.faketraveler:9
process: cl.coders.faketraveler
processUptime: 7396 + 310 ms

java.lang.IllegalStateException
	at android.os.Parcel.createExceptionOrNull(Parcel.java:3029)
	at android.os.Parcel.createException(Parcel.java:3005)
	at android.os.Parcel.readException(Parcel.java:2981)
	at android.os.Parcel.readException(Parcel.java:2923)
	at android.location.ILocationManager$Stub$Proxy.addTestProvider(ILocationManager.java:2169)
	at android.location.LocationManager.addTestProvider(LocationManager.java:2131)
	at android.location.LocationManager.addTestProvider(LocationManager.java:2106)
	at android.location.LocationManager.addTestProvider(LocationManager.java:2080)
	at cl.coders.faketraveler.MockLocationProvider.<init>(MockLocationProvider.java:28)
	at cl.coders.faketraveler.MainActivity.applyLocation(MainActivity.java:257)
	at cl.coders.faketraveler.MainActivity$1.onClick(MainActivity.java:81)
	at android.view.View.performClick(View.java:7542)
	at android.view.View.performClickInternal(View.java:7519)
	at android.view.View.-$$Nest$mperformClickInternal(Unknown Source:0)
	at android.view.View$PerformClick.run(View.java:29476)
	at android.os.Handler.handleCallback(Handler.java:942)
	at android.os.Handler.dispatchMessage(Handler.java:99)
	at android.os.Looper.loopOnce(Looper.java:201)
	at android.os.Looper.loop(Looper.java:288)
	at android.app.ActivityThread.main(ActivityThread.java:7937)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
	at com.android.internal.os.ExecInit.main(ExecInit.java:49)
	at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
	at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:355)
Caused by: android.os.RemoteException: Remote stack trace:
	at com.android.internal.util.Preconditions.checkState(Preconditions.java:215)
	at com.android.internal.util.Preconditions.checkState(Preconditions.java:200)
	at com.android.server.location.LocationManagerService.addLocationProviderManager(LocationManagerService.java:350)
	at com.android.server.location.LocationManagerService.getOrAddLocationProviderManager(LocationManagerService.java:342)
	at com.android.server.location.LocationManagerService.addTestProvider(LocationManagerService.java:1319)


@imongithubnow
Copy link

same here, only when I set "how many time you want to mock the location?" to zero.

redmi note 8 rooted with crDroid 9.7 (A13)

time: 1690019752784
msg: java.lang.IllegalArgumentException: cl.coders.faketraveler: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.
Strongly consider using FLAG_IMMUTABLE, only use FLAG_MUTABLE if some functionality depends on the PendingIntent being mutable, e.g. if it needs to be used with inline replies or bubbles.
stacktrace: java.lang.IllegalArgumentException: cl.coders.faketraveler: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.
Strongly consider using FLAG_IMMUTABLE, only use FLAG_MUTABLE if some functionality depends on the PendingIntent being mutable, e.g. if it needs to be used with inline replies or bubbles.
at android.app.PendingIntent.checkFlags(PendingIntent.java:401)
at android.app.PendingIntent.getBroadcastAsUser(PendingIntent.java:671)
at android.app.PendingIntent.getBroadcast(PendingIntent.java:658)
at cl.coders.faketraveler.MainActivity.setAlarm(MainActivity.java:318)
at cl.coders.faketraveler.MainActivity.applyLocation(MainActivity.java:270)
at cl.coders.faketraveler.MainActivity$1.onClick(MainActivity.java:81)
at android.view.View.performClick(View.java:7542)
at android.view.View.performClickInternal(View.java:7519)
at android.view.View.-$$Nest$mperformClickInternal(Unknown Source:0)
at android.view.View$PerformClick.run(View.java:29487)
at android.os.Handler.handleCallback(Handler.java:942)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:201)
at android.os.Looper.loop(Looper.java:288)
at android.app.ActivityThread.main(ActivityThread.java:7930)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:854)

@m-anshuman2166
Copy link

getOrAddLocationProviderManager

I think I can fix this issue 🙂

@424778940z
Copy link

same issue here, any fix?

@ascshank
Copy link

Also have problem in Android 9.

@h-h-
Copy link

h-h- commented Apr 5, 2024

getOrAddLocationProviderManager

I think I can fix this issue 🙂

@m-anshuman2166 Did you find the time to work on this?

@TeomanOFF
Copy link

did anyone make a method to fix or a other version to download to fix if yes tell it to me ty -Teoman

@Deleted-Account404
Copy link

Did anybody come thru with the fix to this? Obviously it's a common issue. Is there a common fix? App crashes right after applying location. I've got to find a PC. TCL throwaway

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants