jinsen47 / PokeFaker

An Xposed plugin to play Pokemon Go freely.
MIT License
39 stars 11 forks source link

App crashes on open #10

Open Johnpeter69 opened 7 years ago

Johnpeter69 commented 7 years ago

When i try to open the app it instantly closes with "unfortunately pokefaker has stopped" I'm not sure how to get the error but it isn't in the exposed logger. I'm on android 6.0.1

jinsen47 commented 7 years ago

Sorry for that. It’s a bug.

Please open the Mock Location options in Developer Settings, and grant PokeFaker to mock locations.

Github: https://github.com/jinsen47 https://github.com/jinsen47/ jinsen47@gmail.com

在 2016年7月20日,上午4:34,Johnpeter69 notifications@github.com 写道:

When i try to open the app it instantly closes with "unfortunately pokefaker has stopped" I'm not sure how to get the error but it isn't in the exposed logger. I'm on android 6.0.1

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jinsen47/PokeFaker/issues/10, or mute the thread https://github.com/notifications/unsubscribe-auth/AEsXVMtzFhWJwixJVpHTrXiSJvOlov97ks5qXTTSgaJpZM4JQJEr.

Johnpeter69 commented 7 years ago

I found that out after reading the logs, now when I set my location and open pokemon it crashes with this com.github.jinsen47.pokefaker.app.LocationService.addAlertWindow(LocationService.java:165)

Com.github.jinsen47.pokefaker.app.LocationService.access$200(LocationService.java:34)

com.github.jinsen47.pokefaker.app.LocationService$1.run(LocationService.java:79)

jinsen47 commented 7 years ago

Ops. Seem you don't grant PokeFaker with pop-up window permission.

Johnpeter69 commented 7 years ago

There isn't a option to give it

jinsen47 commented 7 years ago

The option is in your own permission manager, I don't have the time to adapt all roms in the world, so I wrote it in the readme.

Johnpeter69 commented 7 years ago

Indeed I've checked my permissions although there is only this https://imgur.com/eVLSO7L is there an additional app to give this permission?

jinsen47 commented 7 years ago

Wired. Commonly, there will be a toggle button in Application permission page. You can go to App Info page and find if there is an access to permission manager.

Johnpeter69 commented 7 years ago

That's what the image is of. Me in the permissions manager for the app.

jinsen47 commented 7 years ago

Sorry can't help you, I never met a rom without this permission toggle button... Perhaps you can try someone else's phone and have a look, pop-up window permission is for all applications.

acocalypso commented 7 years ago

I am facing the same issue. Oneplus 2 with Oxygen 3.0.2 Pokefacer is autoclosing In Permissionmanager i don't have any option to enable pop up for pokefacer

jinsen47 commented 7 years ago

Perhaps it's an bug on M, I will do some research.

Albirew commented 7 years ago

I don't know if related but on my oneplus one CyanogenOS13 android M, there is no problem when starting PokeFaker 1.0.1 but when switching on Pokemon Go, it switch to the fake place, PokeFaker crash twice then Pokemon Go map go back to real place (if fake place is near real one, sometimes it remains in fake place even after PokeFaker has crashed twice).

thatmann00b commented 7 years ago

On android M you have to go under settings>apps> click the gear icon and hit draw over other apps and the click pokefaker and enable that fixes the force close issues

thatmann00b commented 7 years ago

And as far as switching back to original location I fixed mine on my nexus by downloading disable services and disabling fused locations.

Albirew commented 7 years ago

Thanks, I believe this one needs to be wrote down inside README.md

jinsen47 commented 7 years ago

@thatmann00b I mock locations with GPS and network signals, theoretically fused provider relies on GPS and network. However, it seems not on your phone. Wired enough. Thanks for your advice. It will be added.