PINE64
Use Android as navigation system - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PINE A64(+) (https://forum.pine64.org/forumdisplay.php?fid=4)
+--- Forum: Android on Pine A64(+) (https://forum.pine64.org/forumdisplay.php?fid=5)
+--- Thread: Use Android as navigation system (/showthread.php?tid=1173)



Use Android as navigation system - JulianM - 05-26-2016

Hi together!

I just tried to create an automated system with Android for navigation.

Model: Samsung Galaxy S4 Mini
ROM: I9195XXUCNE6 (Android 4.4.2)
Rooted: Yes (needed for AutomateIt Pro)

The device will boot on charge (I had to edit the file /system/lib/lpm) and if booting is done, AutomateIt Pro will activate Bluetooth, GPS and HERE Maps (in drive mode).
The device will also shutdown automatically after disconnect the power charger.



What is the "Drive mode" in HERE Maps?
- Normally you will just see your position in HERE Maps after starting the app.
- Starting the "Drive mode" will show you your speed, elapsed time and more.
- Usually you have to start this mode for yourself, but don't use your fingers on your phone if you drive!
- So, I found a way to start the app (via intent) in "drive mode" per default with AutomateIt Smile

How to find out a way to start apps in specific modes? You need the "intents" of the app!
- Download .apk file of the app (I created a backup of the app and copied it to my pc).
- Rename the .apk to .zip.
- Unpack the archive and take a look into manifest.xml.
- Search there for the "intents".
- Find the correct intent (just trys & error).

It was a little bit difficult, but not impossible Smile


I'll try to create a tutorial for Pine64 also, if you're interested in my solution.
Please let me know your feedback and questions!


Best regards
Julian


RE: Use Android as navigation system - Luke - 05-26-2016

That is pretty cool!


Use Android as navigation system - Eole - 05-27-2016

So cool,

I'll check your improvement,
On my side, I'm interested in building a Car PC with it.

Kind Regards,
Eole


RE: Use Android as navigation system - ajsullivan - 05-30-2016

That is super cool. I would love to try this on my Pine if instructions are available!


RE: Use Android as navigation system - JulianM - 05-30-2016

Alright. I'll take a look into it for Pine64 if I have received my 2 boards (atm still "Ready to ship).


RE: Use Android as navigation system - JulianM - 06-04-2016

I just added some information into my first post.
Maybe it will help you for some other projects Smile


RE: Use Android as navigation system - dkryder - 06-04-2016

what does pine64 use for gps?


RE: Use Android as navigation system - JulianM - 06-04-2016

There will be a gps module available in next time Wink


RE: Use Android as navigation system - kidler - 11-30-2017

@JulianM Can You share lpm file?


RE: Use Android as navigation system - JulianM - 12-06-2017

@kidler:
No, sorry.
I've sold my S4 Mini a few months ago.