Finder icon indicating copy to clipboard operation
Finder copied to clipboard

Galaxy S4 mini

Open AndroidUserwithMiuiu opened this issue 5 years ago • 25 comments

Hello,

the Samsung S4 Galaxy S4 Mini with Android 4.4.2 wont be enable GPS automatically. I have execute the ADB-Command "adb shell pm grant ru.seva.finder android.permission.WRITE_SECURE_SETTINGS" and after this i have enable the Option. But it not works. If i enable GPS manual, it work. What can i do to enable GPS automatically with a SMS-Request?

AndroidUserwithMiuiu avatar Mar 01 '20 21:03 AndroidUserwithMiuiu

Hello, yes this feature sometimes has problems on some devices (but on certain it works normal). I have checked it on android 4.4 emulator... and it really not works! We have discussing it here and contributor (@domkrm) is there too. Moreover, such problem appeared on S7 too. In logcat now it looks like app ghas not enough permissions, despite the fact that they are granted. I will try to solve it

Seva-coder avatar Mar 02 '20 20:03 Seva-coder

I also have checked it on an Android 4.4 emulator and it seems for older Android versions is an additional permission needed android.permission.WRITE_SETTINGS. Tomorrow I will check if this has any impacts on newer Android versions. Then I will make a pull request to fix this issue.

domkrm avatar Mar 03 '20 19:03 domkrm

it would be great if so! @domkrm, thanks for support)

Seva-coder avatar Mar 03 '20 19:03 Seva-coder

I'm curious. Thanks for the work

Am 03.03.2020 20:49 schrieb Sevastyanov Nikita:

it would be great if so! @domkrm [1], thanks for support)

-- You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub [2], or unsubscribe [3].

Links:

[1] https://github.com/domkrm [2] https://github.com/Seva-coder/Finder/issues/33?email_source=notifications&email_token=AIO4ZOHP4RRABCITWFAAM3TRFVNLDA5CNFSM4K7IMZ4KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENU4SHY#issuecomment-594135327 [3] https://github.com/notifications/unsubscribe-auth/AIO4ZOBSAU3SXFXKDCYLFJDRFVNLDANCNFSM4K7IMZ4A

AndroidUserwithMiuiu avatar Mar 04 '20 08:03 AndroidUserwithMiuiu

added this new right to the manifest and when requesting rights - GPS now turns on automatically (19 API). But there are problems with sending SMS twice (only when GPS is automatically turned on). May be it is because of emulator, but more likely due to my bad code ;) I will try to fix

Seva-coder avatar Mar 04 '20 20:03 Seva-coder

I solved this problem - new permission "android.permission.WRITE_SETTINGS" added only to manifest, so it really grants only on API<23 (on new versions it should be granted via special window in system manually by user). Also I got a strange bug in android 4.4 emulator - after calling method removeUpdates locations still gets to the listener.. Emulator send second location data with pause 10-20 ms since first, and it looks like removeUpdates is too slow, and it leads to second adding coordinates to SMS. I created boolean to skip such situation, and now it work reliable (I tested on 4.4, 6 and 8.0) create release to F-Droid?

Seva-coder avatar Mar 09 '20 15:03 Seva-coder

Offtopic - but second build cycle in logs of F-droid ends with "could not bring up vm 'builder_default'" Other apps also have such message. I looked here

Seva-coder avatar Mar 09 '20 15:03 Seva-coder

What do you mean?

Am 9. März 2020 16:41:34 schrieb Sevastyanov Nikita [email protected]:

Offtopic - but second build cycle in logs of F-droid ends with "could not bring up vm 'builder_default'" Other apps also have such message. I i looked here

-- You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub: https://github.com/Seva-coder/Finder/issues/33#issuecomment-596607781

AndroidUserwithMiuiu avatar Mar 09 '20 20:03 AndroidUserwithMiuiu

I meant that F-Droid build new versions very slow due to its internal errors..

Seva-coder avatar Mar 10 '20 17:03 Seva-coder

You mean, in fdroid comes a new version with the fix?

Am 10. März 2020 18:33:51 schrieb Sevastyanov Nikita [email protected]:

I meant that F-Droid build new versions very slow due to its internal errors..

-- You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub: https://github.com/Seva-coder/Finder/issues/33#issuecomment-597216528

AndroidUserwithMiuiu avatar Mar 11 '20 06:03 AndroidUserwithMiuiu

Of course, after testing this changes on some android versions, I marked it as a release for android. (but it still not updated there) Yesterday I had asked them about problem with autoupdates of apps (in their gitlab), they know about it. I hope they fix this and apps began build normally

Seva-coder avatar Mar 11 '20 17:03 Seva-coder

Ans when is the new version available in the fdroid store?

Am 11. März 2020 18:29:42 schrieb Sevastyanov Nikita [email protected]:

Of course, after testing this changes on some android versions, I marked it as a release for android. (but it still not updated there) Yesterday I had asked them about problem with autoupdates of apps (in their gitlab), they know about it. I hope they fix this and apps began build normally

-- You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub: https://github.com/Seva-coder/Finder/issues/33#issuecomment-597766168

AndroidUserwithMiuiu avatar Mar 11 '20 19:03 AndroidUserwithMiuiu

I looked now build log - build successfull! Now wait for deploy, and I think may be tomorrow app will be available on their official site (in f-droid's app it can be available earlier) Latest version now is v2.2 Also, now I read about how to add Travis CI - this service can build opensource apps after every commit. It may be faster in such cases

Seva-coder avatar Mar 11 '20 19:03 Seva-coder

f-droid updated it! If you will test new version - please, give feedback about how it works/not works (GPS auto enable)

Seva-coder avatar Mar 12 '20 18:03 Seva-coder

Ok. Thank you. And when its the update available in google play store?

Regards

Am 12. März 2020 19:46:46 schrieb Sevastyanov Nikita [email protected]:

f-droid updated it! If you will test new version - please, give feedback about how it works/not works (GPS auto enable)

-- You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub: https://github.com/Seva-coder/Finder/issues/33#issuecomment-598358104

AndroidUserwithMiuiu avatar Mar 12 '20 20:03 AndroidUserwithMiuiu

Unfortunately, google changed its rules for apps. Now (after spring 2019) apps with SMS_SEND permission must be an app for messaging, default app in system for sms. Finder was published before this changes in Play store, but then has been deleted by google.. Changes described here - https://play.google.com/about/privacy-security-deception/permissions/ and https://support.google.com/googleplay/android-developer/answer/9047303#intended It seems that we can try use exception - "Physical safety / emergency alerts to send SMS", but next saying that "Family or device locator" won't be permitted... This event gone unnoticed by users, only developers felt it on itself. Google even held a webinar, when it happened. But it wasn't nothing useful in their answers :) I think, I can try to publish our app to amazon store, yandex, samsung and may be xiaomi with huawei. But F-droid is the best, because its users can better describe (or even fix!) bug witch they faced. When most of bugs fixed, it is time to expand.

Seva-coder avatar Mar 13 '20 20:03 Seva-coder

ok. i understand. Then i downloaded over f-drod. Thank you.

Regards

Am 13.03.2020 21:02 schrieb Sevastyanov Nikita:

Unfortunately, google changed its rules for apps. Now (after spring 2019) apps with SMS_SEND permission must be an app for messaging, default app in system for sms. Finder was published before this changes in Play store, but then has been deleted by google.. Changes described here - https://play.google.com/about/privacy-security-deception/permissions/ [1] and https://support.google.com/googleplay/android-developer/answer/9047303#intended [2] It seems that we can try use exception - "Physical safety / emergency alerts to send SMS", but next saying that "Family or device locator" won't be permitted... This event gone unnoticed by users, only developers felt it on itself. Google even held a webinar, when it happened. But it wasn't nothing useful in their answers :) I think, I can try to publish our app to amazon store, yandex, samsung and may be xiaomi with huawei. But F-droid is the best, because its users can better describe (or even fix!) bug witch they faced. When most of bugs fixed, it is time to expand.

-- You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub [3], or unsubscribe [4].

Links:

[1] https://play.google.com/about/privacy-security-deception/permissions/ [2] https://support.google.com/googleplay/android-developer/answer/9047303#intended [3] https://github.com/Seva-coder/Finder/issues/33#issuecomment-598890077 [4] https://github.com/notifications/unsubscribe-auth/AIO4ZOCLA23JSLZTXEEC7I3RHKGOVANCNFSM4K7IMZ4A

AndroidUserwithMiuiu avatar Mar 14 '20 09:03 AndroidUserwithMiuiu

I've a redmi note 7 with lineageos 17.1 and magisk without gapps or microg. Installed the app (version 2.3) from f-droid the GPS auto enable doesn't work. The responding message says that the GPS is disabled

darhma avatar Aug 12 '20 18:08 darhma

I've a redmi note 7 with lineageos 17.1 and magisk without gapps or microg. Installed the app (version 2.3) from f-droid the GPS auto enable doesn't work. The responding message says that the GPS is disabled

Do you have followed the instructions in the README for auto activating GPS?

https://github.com/Seva-coder/Finder#activate-location-automatically

domkrm avatar Aug 12 '20 18:08 domkrm

@domkrm Yes but I've used a root terminal to give the command and not adb. The command was 'pm grant ru.seva.finder android.permission.WRITE_SECURE_SETTINGS' and after that I can select the option 'turn location on automatically' (previously it cannot be selected)

darhma avatar Aug 12 '20 18:08 darhma

Hello,

the handy is not rooted. I have set following command via adb: 'pm grant ru.seva.finder android.permission.WRITE_SECURE_SETTINGS'

After this i have enabled the gps setting under settings.

Thank you for your support.

Regards

Am 12. August 2020 20:32:39 schrieb Dario Martines [email protected]:

@domkrm Yes but I've used a root terminal to give the command and not adb. The command was 'pm grant ru.seva.finder android.permission.WRITE_SECURE_SETTINGS' and after that I can select the option 'turn location on automatically' (previously it cannot be selected)

-- You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub: https://github.com/Seva-coder/Finder/issues/33#issuecomment-673039926

AndroidUserwithMiuiu avatar Aug 12 '20 19:08 AndroidUserwithMiuiu

@AndroidUserwithMiuiu The GPS auto enabling option works for you?

darhma avatar Aug 12 '20 19:08 darhma

The option is enabled. But it doesnt work for me. See first mail..

Regards

Am 12. August 2020 22:00:02 schrieb Dario Martines [email protected]:

@AndroidUserwithMiuiu The GPS auto enabling option works for you?

-- You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub: https://github.com/Seva-coder/Finder/issues/33#issuecomment-673080622

AndroidUserwithMiuiu avatar Aug 13 '20 05:08 AndroidUserwithMiuiu

Any ideas? I have no miuiu.

Regards

Am 13. August 2020 07:09:46 schrieb [email protected]:

The option is enabled. But it doesnt work for me. See first mail..

Regards

Am 12. August 2020 22:00:02 schrieb Dario Martines [email protected]:

@AndroidUserwithMiuiu The GPS auto enabling option works for you?

-- You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub: https://github.com/Seva-coder/Finder/issues/33#issuecomment-673080622

AndroidUserwithMiuiu avatar Aug 14 '20 12:08 AndroidUserwithMiuiu

No solution for this Situation??

Regards

Am 14. August 2020 14:00:16 schrieb [email protected]:

Any ideas? I have no miuiu.

Regards

Am 13. August 2020 07:09:46 schrieb [email protected]:

The option is enabled. But it doesnt work for me. See first mail..

Regards

Am 12. August 2020 22:00:02 schrieb Dario Martines [email protected]:

@AndroidUserwithMiuiu The GPS auto enabling option works for you?

-- You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub: https://github.com/Seva-coder/Finder/issues/33#issuecomment-673080622

AndroidUserwithMiuiu avatar Aug 29 '20 15:08 AndroidUserwithMiuiu