AutoTools Turn GPS on when in Google Maps, turn it off otherwise (No Root!)

Discussion in 'AutoApps' started by toooob, Oct 27, 2016.

  1. toooob

    toooob New Member

    Joined:
    Oct 27, 2016
    Messages:
    10
    Likes Received:
    0
    I am having trouble getting access to autosecure setting and completing the process and described on the web.
    I am using Samsung S7 connected to a mac
    I have enabled developer mode, enabled USB debugging, installed ADP on my mac.

    The problem arises when I connect my phone via USB to my MAC- (I am connecting to my mac using Android File transfer)
    There is no prompt asking me to allow my phone to be debugged. A MTP connection is established instead
    When I type in adb shell pm etcetc I receive an error
    -bash: adb: command not found

    Can you please help??
     
  2. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    You probably need to click on the notification and then -> Debug through USB or something similar. Let me know if it works!
     
  3. toooob

    toooob New Member

    Joined:
    Oct 27, 2016
    Messages:
    10
    Likes Received:
    0
    I have done this already ....please see screen shot
     

    Attached Files:

  4. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Hmm, maybe you need drivers for it to work on a mac? Have you tried installing S7 drivers on it?
     
  5. toooob

    toooob New Member

    Joined:
    Oct 27, 2016
    Messages:
    10
    Likes Received:
    0
    Last login: Thu Oct 27 23:19:11 on ttys000

    Davids-iMac:~ toooob$ adb shell pm grant com.joaomgcd.autotools android.permission.WRITE_SECURE_SETTINGS

    -bash: adb: command not found

    Davids-iMac:~ toooob$
     
  6. toooob

    toooob New Member

    Joined:
    Oct 27, 2016
    Messages:
    10
    Likes Received:
    0
    with Android File transfer app there are no additional drivers......
    I am manually typing the commands not copy pasting them???
     
  7. toooob

    toooob New Member

    Joined:
    Oct 27, 2016
    Messages:
    10
    Likes Received:
    0
    Have I installed ADB correctly?

    p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco; color: #000000; background-color: #ffffff} span.s1 {font-variant-ligatures: no-common-ligatures}

    Changed directory to /Users/toooob/Desktop/Android

    Moving ADB

    mv: rename Mac/adb_Mac to /usr/bin/adb: No such file or directory

    ADB Moved to /usr/bin/adb

    moving Fastboot

    mv: rename Mac/fastboot_Mac to /usr/bin/fastboot: No such file or directory

    Fastboot moved to /usr/bin/fastboot

    You may now run Android Debug Bridge and Fastboot commands

    Have a nice day.

    Davids-iMac:~ toooob$
     
  8. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    you probably need to be in the same folder as the adb executable when you run the command. The shell is complaining that it can't find the adb executable. Sorry I don't have a mac myself to check the process...
     
  9. toooob

    toooob New Member

    Joined:
    Oct 27, 2016
    Messages:
    10
    Likes Received:
    0
    Sorry I am a newbie...what do you mean... the android zip and extracted files are on my desktop as described....what does it mean that I need to be in the same folder????please explain step by step I really want this to work without root
     
  10. toooob

    toooob New Member

    Joined:
    Oct 27, 2016
    Messages:
    10
    Likes Received:
    0
    the issue is that in mac El Capitan the /usr/bin is inaccessible thus the files cannot be moved into the /usr/bin
    Can you change the script to move to /usr/bin/local ?
    Alternatively I need to disable System integrity Protection
     
  11. toooob

    toooob New Member

    Joined:
    Oct 27, 2016
    Messages:
    10
    Likes Received:
    0
  12. toooob

    toooob New Member

    Joined:
    Oct 27, 2016
    Messages:
    10
    Likes Received:
    0
    I have managed to get the adb and fastboot into the /usr/bin.....Now the error message is that"your device is offline"
     
  13. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Make sure that you enabled USB debugging on your device and that you allow debugging of that specific PC when it tries to connect :)
     
  14. toooob

    toooob New Member

    Joined:
    Oct 27, 2016
    Messages:
    10
    Likes Received:
    0
    This issue is finally solved for mac El Capitan!!!
    i) System Integrity Protection must be disabled
    ii) Make sure that the adb and fastboot files are in the /usr/bin folder after install - this can only be done once step i has been done
    iii) Use a powered usb hub to connect andorid to Mac
    iv) Once successfully uploaded to the android phone, reenable the System Integrity Protection
     
  15. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Nice! :) Glad you finally got it!
     
  16. pablo216

    pablo216 New Member

    Joined:
    Jan 12, 2017
    Messages:
    3
    Likes Received:
    0
    Hey guys, I've been doing this with secure settings for a long time but now I prefer Autotools. I have a question...
    Sometimes I need to go back to Whatsapp, calls, Spotify, etc and leave waze or Maps running in the background. But when I leave the app then the exit command kicks in and turns off the GPS. So when I come back to Maps it need to go through the entire GPS lock process again. Any ideas on how to check if the program is still opened in the background and avoid the turning off of the location?
     
  17. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    There's no way to do that as far as I know :) What you can do is make it wait like 1 minute before turning the GPS off so you can do quick stuff like that and it doesn't turn off right away :)
     
  18. pablo216

    pablo216 New Member

    Joined:
    Jan 12, 2017
    Messages:
    3
    Likes Received:
    0
    Thanks for your reply!
    Yes this was an option.... but as soon as I open whatsapp the counter starts ticking and I quickly go back to Maps. After a minute, if I'm still in the program it turns off anyway.
    I guess I'll stay with my current solution in lack of any other alternatives. I have a task that checks everytime I turn on the screen if any of my navigation programs is opened and then, if none are open, it turns off the location. I just wanted a cleaner way.
     
  19. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    In the task that waits for 1 minute you need to check if the map app is not open at that time before turning off the GPS ;) That should fix it.
     

Share This Page