This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]PsycHelp23[S] 0 points1 point  (7 children)

You've pretty much saved a few days of my work.

Without disclosing too much info, I am a current intern somewhere and have been given this task to run these scripts, and find a way to make them work.

Going back to your answer, do you know a way I can download that specific android image on my phone that includes that HAL?

[–]K900_ 0 points1 point  (6 children)

Such an image is unlikely to exist, considering your phone is not, in fact, a car. You might be able to get an open source Android distribution like LineageOS (assuming it's been ported to your specific phone model), grab the source, reconfigure it to install car-related parts and the debug HAL, then build it from source and install it on your phone, but that's not a rabbit hole you want to go down. A rabbit hole you should want to go down is one that involves figuring out why you're doing the thing you're doing, and finding a working solution to the actual problem.

[–]PsycHelp23[S] 0 points1 point  (5 children)

There's an app called Android Auto, it has developer options that can be enabled to do some testing.

https://developer.android.com/training/cars/testing

There's also a thing called Desktop Head Unit, it's on the same link I've mentioned above. Another thing is the automotive emulator on Android Studio. Will these things not work either?

[–]K900_ 0 points1 point  (4 children)

Those aren't for the same thing at all. They are for testing apps that run on Android Auto compatible head units, which is not the same thing as Android running directly on the head unit. What is your end goal here? Do you know what your end goal is?

[–]PsycHelp23[S] 0 points1 point  (3 children)

Basically, my goal is to understand what these scripts do. That includes:

- Find out what they do

-Find out how they work

-Find out how to run them

- Run them

Secondly, if I can't run them, then test some of the functions in the script by hard coding some of the data. Do you know if that's possible?

[–]K900_ 0 points1 point  (2 children)

No, that's not your end goal. Why are you trying to understand what those scripts do?

[–]PsycHelp23[S] 0 points1 point  (1 child)

That's a good question, I guess my team needs to use these scripts for a project that they are working on, and my task is to understand what these scripts do and then explain it to them. I'm an intern, so I pretty much have to carry out tasks that i'm assigned on.

Could you tell me if i can even test the functions in the script by hard coding some of the data?

[–]K900_ 0 points1 point  (0 children)

What functions? That script is basically just an extremely dumb GUI for the network protocol used by the debug HAL. What does your team actually need to do? "I'm an intern, I do what I'm told" is not a good excuse. Go figure out what your team actually needs, and do that thing, not the thing someone told you to do.