Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

suddenly "Lock" #680

Open
wjcarpenter opened this issue Sep 16, 2024 Discussed in #678 · 189 comments
Open

suddenly "Lock" #680

wjcarpenter opened this issue Sep 16, 2024 Discussed in #678 · 189 comments

Comments

@wjcarpenter
Copy link
Contributor

Discussed in #678

Originally posted by wjcarpenter September 1, 2024
I started tinkering with CS about a month or so back. I fired it up and used my mouse to operate it while displaying over HDMI. Everything looked pretty cool and stable. I got a nice touchscreen, bolted my RPi 3B+ to it and repeated the experiment. It worked great, and the touchscreen stuff worked just dandy. I plugged in my phone (Pixel 6a) and up came AA. It behaved the way I expected.

Time went by while I was waiting for additional mail order parts, 3D printing a case, and doing unrelated things. With everything in hand a couple days ago, I repeated my experiments, including plugging in my phone for the first time in a few weeks. CS reacted by throwing up the word "Lock" in the upper left corner and ignoring touches or mouse clicks on the screen. When I unplug my phone, CS goes back to its normal responsive self.

Thinking I might have tweaked something the wrong way, I started over with a freshly downloaded image file. Same "Lock" symptoms. I also locally built the image and got the same "Lock" symptoms. I know the generic advice is to check my USB cable. I've tried about a half dozen different cables between my phone and CS, but I don't really think that's the problem.

I'm just starting my spelunking in the source code, but I wonder if someone has already been down this path and figured it out. (I'm not providing any logs at the moment because I don't want to bother someone into spending time on this unless it's something they already have ideas about. I can provide them if desired.) My hypothesis at the moment is something changed in an Android monthly update, and now the handshaking between my phone and CS is getting something confused. Things definitely get as far as CS recording my phone info into the /tmp/android_device file.

@MatthewOnTour
Copy link

Same problem here.

@das-nirmal
Copy link

Facing the same problem (with both wired and wireless connection), when I used crankshaft today after a couple of weeks.

Also phone screen showed a message, something like installed app in Android auto does not work with wired connection...

@DJFliX
Copy link

DJFliX commented Sep 18, 2024

Same! Pi 4, Galaxy Flip 6, AA-Wireless (but also doesn't work with a direct USB connection to the phone). Tried a clean install of crankshaft-ng without any additional changes with the same result. I'll try to see some logs as soon as I can find the time to take my pi within range of my home wifi to run some diagnostics over ssh.

Note: the Lock isn't necessarily a problem: this occurs during the "handshaking" process between Crankshaft and Android Auto on the phone. But the fact that it keeps showing and disappearing in a loop is an issue.

Edit2: I've bumped my Android Auto app version to 12.9.143734-release.daily but this didn't change a thing (unfortunately). Curious to see if a downgrade would would work. What version are y'all using?

@pyditn2
Copy link

pyditn2 commented Sep 18, 2024

Same with Samsung Galaxy S24 Ultra/ RPi3B+.
However the issue seems to only be affecting the video, audio comes through just fine.

@wjcarpenter
Copy link
Contributor Author

audio comes through just fine.

I hadn't even thought to try that, but audio comes through for me, too. In fact, if I play a Youtube video on my phone, the audio from that comes through to the Crankshaft device.

Somewhere in my travels (but which I have now lost track of), I saw a reference to turning on "allow videos while driving". If I ever find that again, I'll try it since the AA projection is just some sort of video stream (I think).

@wjcarpenter
Copy link
Contributor Author

wjcarpenter commented Sep 18, 2024

 Curious to see if a downgrade would would work. What version are y'all using?

I'm was also on Android Auto app version to 12.9.143734-release.daily, but just now I took an upgrade to 12.9.143804-release.daily. No change for this problem.

Have you tried downgrading yet?

image

@wjcarpenter
Copy link
Contributor Author

wjcarpenter commented Sep 18, 2024

The logcat on my phone when trying to connect to Crankshaft includes this line:

09-17 11:29:36.463 18018 20271 W CAR.VALIDATOR: Package DENIED; Should not run on HU [2018 Crankshaft-NG Universal null] [com.honda.hondalink.connect]

I don't know what it means or what to do about it, but it seems like it's probably significant.

FWIW:

09-17 11:29:36.169 18018 20257 I CAR.GAL.GAL.LITE: Car requests protocol version 1.1
09-17 11:29:36.170 18018 20257 I CAR.GAL.GAL.LITE: Requested protocol version 1.1, negotiated protocol version 1.7 (STATUS_SUCCESS)

@pyditn2
Copy link

pyditn2 commented Sep 18, 2024

I have disabled the Android Auto app on my phone and then deinstalled all updates. At the same time I also completely reinstalled crankshaft on the Pi.
I dont know what exactly fixed it, but now everything is working fine again.
AA App version: 12.7.643414-release

@wjcarpenter
Copy link
Contributor Author

That encouraging!

AA App version: 12.7.643414-release

I wonder how you got to that version instead of one of the 12.9.* versions that I have. I was in the beta program for AA, but leaving the beta program still left me with the 12.9.* version I reported earlier. If I remove all updates for the AA app, it leaves me with something that identifies itself as a "stub" that can't connect to anything until you follow its prompt to update it. I figured that's something that Google changed when they made AA a hidden app a while back.

My phone is a Google Pixel 6a. What's yours?

@wjcarpenter
Copy link
Contributor Author

Ho ho! I guess normal app activity is that it wouldn't update to an earlier version just because I left the beta program. I uninstalled updates to AA and then applied fresh updates, leaving me at 12.6.643244-release. When I plugged into Cranskshaft, it worked, at least as far as prompting me to set up, etc. Woo-hoo!

For others who had the same problem, what AA versions were you using?

@wjcarpenter
Copy link
Contributor Author

FWIW, I reported this in the AA community help forum, but I don't know if that will get any attention.

@dcolecpa
Copy link

I uninstalled the Android Auto updates and it is working again too. I'm back to 12.6.643244 on Android Auto and so far so good.

@wjcarpenter
Copy link
Contributor Author

@dcolecpa Were you on the app beta before you uninstalled the AA updates?

@dcolecpa
Copy link

No. I was on "2022-09-11-crankshaft-ng-66525ef-pi2.img".

@wjcarpenter
Copy link
Contributor Author

@dcolecpa I meant the beta channel of the AA app on your phone, not Crankshaft.

@dcolecpa
Copy link

Sorry, I misunderstood. No I wasn't on beta for the Android Auto.

@correctomundo79
Copy link

I had the same issue since about a week. Out of the blue, didn't change a thing that might have caused issues.

After removing the updates of the Android Auto app I'm also back on 12.6.643244 and now all is working fine again. It looks like something changed in the 12.9 version that crankshaft didn't like?

@pree
Copy link

pree commented Sep 21, 2024

Same for me, running crankshaft for years and it broke this week. Let's see if we can fix this somehow

@flewber
Copy link

flewber commented Sep 22, 2024

Same here. Many-year user. Just broke recently. My AA version that broke it was 12.7.643414. At the time my girl still had 12.6.643254, and her phone still worked consistently.

Her phone has since updated to 12.8.643614 and no longer works either.

@pree
Copy link

pree commented Sep 22, 2024

Pressing "uninstall" in the play Store removed updates and that made it work again for now. Quick solution for now, but not for the long term

@pree
Copy link

pree commented Sep 22, 2024

The folks at Bluewave Stuidos (OpenAuto Pro) also seem to have this issue, as they stopped selling it and locked down the forum.

@DJFliX
Copy link

DJFliX commented Sep 22, 2024

I figured that was the reason. I was actually considering purchasing a license if their forks of openauto/aasdk would have been more up to date than the public ones. But alas that was not the case.

I tried building opendsh to see if that would work for me. So far no luck (but this has to do with my unfamiliarity with the project as well as my lack of time since I became a dad).

For now I'm driving without only audio nav over bluetooth, but I hope I can retry opendsh and get a working build to try this time...

@Geekyadz
Copy link

Geekyadz commented Sep 23, 2024

Add me to the list of "latest AA not working for me".

Multiple phones:
Pixel 7A
Pixel 4A
Motorola Moto G30

Found it wasn't working for my pixels; crankshaft would say it's connected but wouldn't go into android auto.

Motorola wasn't up to date at the time so it worked, then I updated AA on it and then had the same issues. Uninstalled updates and wanted to do the first time setup.

Uninstalled updates on my pixel 7A (this is my main phone) and it started working again like it's a new car, then said something about updates which I did and has been working since.

App details Screenshot_20240923-225123.png

@wjcarpenter
Copy link
Contributor Author

My phone updated to 12.7.643414-release, and now Crankshaft is broken in this way again. Things still work with my factory AA headunit (via an AAwireless dongle).

@DJFliX You mentioned opendsh. I built and tried that. Same symptoms as for Crankshaft, which is not surprising since it uses the same openauto substrate AFAICT.

@TheLastMillennial
Copy link

I'm going to chime in and say I have the same issue. I had to downgrade to Android Auto 12.4.6. I'm running Android 11 on a Sony Xperia 5 II.

I'm willing to provide any logs and test any configurations. I loved this project for years and want to keep using it!

@DJFliX
Copy link

DJFliX commented Sep 25, 2024 via email

@wjcarpenter
Copy link
Contributor Author

lack of reports of AA being broken for Opendsh users 

It seems odd to me, too. I suspect there may be more to it than just the AA app version, like maybe some other dependent library or something that varies from phone to phone.

am experiencing frequent disconnects. Since I'm using AAWireless

For the last couple months (not sure how long) my factory AA headunit, which I also use with AAwireless, occasionally stalls with some message about losing bluetooth connectivity. It resumes after a few seconds. It's been rare enough that I just put up with it.

(Before I learned more about how AA works, I blamed a lot of things on the firmware inside my head unit. Now that I know about AA projection, it seems like almost every glitch has to be in the AA app on the phone.)

@TheLastMillennial
Copy link

I make a point to disable auto updates as much as possible. I also haven't changed any crankshaft settings in months. So there's only two things that could have changed on my phone to break things.

  1. Updating Android auto (of course).
  2. Google Services (like Google Play Services and Google Services Framework) since I can't prevent those from auto updating.

I only noticed crankshaft broke when I manually updated AA but it's possible changes in Google services play a role in the incompatibility.

@younsj97
Copy link

I also have same issue

I used wireless Android auto using CS few months ago. And I tried to connect again yesterday, it didn't works.
So i removed update of AA(12.8.xxx) and installed old version(12.4.xxx), now it works well.

@gshab2
Copy link

gshab2 commented Dec 22, 2024

You're running this on what exactly?

Raspberry Pi 2 Model B

With a USB WiFi adapter, right?

Using it with this one . Just plug it in and It handles wireless AA.

@kemkem
Copy link

kemkem commented Dec 22, 2024

Hello everyone

Impressive how you managed to locate the issue origin and all the work done..

Like everybody else, I had the lock issue with my one plus 8t (android 14).

For a weeks weeks, it worked nicely when Android auto was downgraded to 12.6.633244
But a few days ago, Android Auto refused to connect without upgrading.
(Of course, when 13.3.xxx version is installed, it does not connect)

I've just tried the SonOfGib release on my pi4.. No luck so far.

I also have an older one plus 5t, android 10 : android auto 13.3.644654 is able to connect !

Any suggestion ? Does the SonOfGib release works for you guys on android 14 ?

Thanks

@SonOfGib
Copy link
Contributor

Any suggestion ? Does the SonOfGib release works for you guys on android 14 ?

Android 14 is what I tested on. I haven't tested it lately as I've been working on updating Crankshaft to bookworm. But when I did that original testing I used AA 13.1 and android 14.
#680 (comment)

@Geekyadz
Copy link

Hello everyone

Impressive how you managed to locate the issue origin and all the work done..

Like everybody else, I had the lock issue with my one plus 8t (android 14).

For a weeks weeks, it worked nicely when Android auto was downgraded to 12.6.633244
But a few days ago, Android Auto refused to connect without upgrading.
(Of course, when 13.3.xxx version is installed, it does not connect)

I've just tried the SonOfGib release on my pi4.. No luck so far.

I also have an older one plus 5t, android 10 : android auto 13.3.644654 is able to connect !

Any suggestion ? Does the SonOfGib release works for you guys on android 14 ?

Thanks

Google Pixel 7a Android 15 here and using a raspberry pi 3b and all working with latest updates of android auto

@kemkem
Copy link

kemkem commented Dec 22, 2024

Maybe an oldest version of AA like 13.1.xx ?

@kemkem
Copy link

kemkem commented Dec 22, 2024

Tried some AA 13.1 and 13.2
edit : not working either

Don't want to switch to one of these chinese headunit ; I just (this summer) bought a new touchscreen LCD and 3d-print a good looking adapter for my car...

That's so frustrating !

@gshab2
Copy link

gshab2 commented Dec 26, 2024

@SonOfGib
Really sorry for being so annoying, but is there any chance of getting the wireless functionality back in your build?

Also I've noticed that when i uncheck the music so it comes from the phone, every couple of restarts it puts the ticks back in the checkboxes.

@SonOfGib
Copy link
Contributor

I never had working wireless AA. I commented earlier (somewhere, don't remember where) that I was under the impression that the only form of wireless AA with crankshaft was to use the headunit server stuff mentioned in the wiki. If you had it working some other way then that was not a feature I was aware of (unless you are talking about openauto pro, which was a separate project from crankshaft.)

I am not currently looking into the wireless stuff, and I don't have much time (or skill tbh) to devote to this stuff, so I work at a snail's pace :)

@gshab2
Copy link

gshab2 commented Dec 26, 2024

I never had working wireless AA. I commented earlier (somewhere, don't remember where) that I was under the impression that the only form of wireless AA with crankshaft was to use the headunit server stuff mentioned in the wiki. If you had it working some other way then that was not a feature I was aware of (unless you are talking about openauto pro, which was a separate project from crankshaft.)

I am not currently looking into the wireless stuff, and I don't have much time (or skill tbh) to devote to this stuff, so I work at a snail's pace :)

I really appreciate you efforts 🙏

To get Wireless I just plugged this thing in one of the USBs of the Pi and It just worked.
Didn't need to mess with any of crankshaft's settings...

@SonOfGib
Copy link
Contributor

Ok, yeah I don't know why there would be any issues with one of those dongles, but I don't have one to mess with sorry.

@devdetj
Copy link

devdetj commented Dec 28, 2024

Good news. I had an idea about open source aawireless and I came across someone who already thought of this. Repository: https://github.com/nisargjhaveri/WirelessAndroidAutoDongle.
I thought of emulating the usb otg and routing it to an emulated usb so I could use it on the same pi3b+.Well, @KreAch3R thought first.(thanks). There is progress it seems. It may be interesting to recover wireless android auto in crankshaft-ng.
nisargjhaveri/WirelessAndroidAutoDongle#226

@KreAch3R
Copy link

I'm the one on that Issue.

And I can confirm I have a working setup where the dongle is running on the same pi as OpenAuto-Pro. I'm finalizing my details and will post everything I needed to make it work. :)

@TobiasDeBruijn
Copy link

To get Wireless I just plugged this thing in one of the USBs of the Pi and It just worked.
Didn't need to mess with any of crankshaft's settings...

I struggeled with the AA Wireless (Generation 1). I could get AA to work, but it semes there was no 'network'. Google maps would get stuck on loading a route and YouTube Music wouldn't player anything. What firmware version of the AAW are you using?

@wjcarpenter
Copy link
Contributor Author

I struggeled with the AA Wireless (Generation 1). I could get AA to work, but it semes there was no 'network'.

Just double checking ... Your phone was on mobile data, right? AAwiteless is talking to your phone over a private Wi-Fi hotspot.

@TobiasDeBruijn
Copy link

Yes!

Before AA did their update it worked amazing. Something in between the new AA version and crankshaft broke something.

@devdetj
Copy link

devdetj commented Dec 29, 2024

@KreAch3R add new important commits (thanks). i try burn a https://github.com/SonOfGib/crankshaft/releases/tag/v2024.10.30.1 in my sd card @SonOfGib (thanks). and I will follow the steps described in the new readme. https://github.com/KreAch3R/aa-proxy-oap

@KreAch3R
Copy link

@KreAch3R add new important commits (thanks). i try burn a https://github.com/SonOfGib/crankshaft/releases/tag/v2024.10.30.1 in my sd card @SonOfGib (thanks). and I will follow the steps described in the new readme. https://github.com/KreAch3R/aa-proxy-oap

Yes guys, I have updated my repo. I installed my test sdcard into my car and it works. Check the screenshots and the photos on the repo.

The only thing missing is to follow my own guide with the former sdcard and check if I miss something, which I will do in the next days.

FYI, my method specifically targets the closed-sourced OpenAuto-Pro installation. For the opensource Crankshaft here, someone should really implement the necessary wireless changes into the crankshaft code itself, it's a shame that the code exists but it's not mainlined yet.

@russnash
Copy link

@KreAch3R add new important commits (thanks). i try burn a https://github.com/SonOfGib/crankshaft/releases/tag/v2024.10.30.1 in my sd card @SonOfGib (thanks). and I will follow the steps described in the new readme. https://github.com/KreAch3R/aa-proxy-oap

Yes guys, I have updated my repo. I installed my test sdcard into my car and it works. Check the screenshots and the photos on the repo.

The only thing missing is to follow my own guide with the former sdcard and check if I miss something, which I will do in the next days.

FYI, my method specifically targets the closed-sourced OpenAuto-Pro installation. For the opensource Crankshaft here, someone should really implement the necessary wireless changes into the crankshaft code itself, it's a shame that the code exists but it's not mainlined yet.

Good to see you here since the OpenAuto Pro forums went down. My truck has been off the road for the past two months with a blown engine, I finally got it back yesterday only to find that the old version of Android Auto that had been working was now forcing an update.

Your AA-Proxy-OAP project looks promising, going to give it a try. Thank you for all of your work!

Russ.

@russnash
Copy link

russnash commented Dec 30, 2024

@KreAch3R add new important commits (thanks). i try burn a https://github.com/SonOfGib/crankshaft/releases/tag/v2024.10.30.1 in my sd card @SonOfGib (thanks). and I will follow the steps described in the new readme. https://github.com/KreAch3R/aa-proxy-oap

Yes guys, I have updated my repo. I installed my test sdcard into my car and it works. Check the screenshots and the photos on the repo.

The only thing missing is to follow my own guide with the former sdcard and check if I miss something, which I will do in the next days.

FYI, my method specifically targets the closed-sourced OpenAuto-Pro installation. For the opensource Crankshaft here, someone should really implement the necessary wireless changes into the crankshaft code itself, it's a shame that the code exists but it's not mainlined yet.

@KreAch3R I've tried to apply the two patches included with your aa-proxy-oap project with both:

patch -p0 < ../0001-Backport-and-apply-patches-for-Android-Accessory-mod.patch

...and...

patch -n -p0 < ../0001-Backport-and-apply-patches-for-Android-Accessory-mod.patch

but I always get:

patch: **** Only garbage was found in the patch input.

I've also tried "git apply" but that gives "unrecognized input".

Any thoughts on what I'm missing?

Thanks!

@SonOfGib
Copy link
Contributor

Sure I'll work on getting prs up to the repos. Looks there are a few issues people have been experiencing which is why I didn't initially. I wonder if the changes I made for the wifi service interfere with the aa wireless dongles (as reported above.) I could pretty easily add a config option to disable the bluetooth and wifi services in openauto.

@matt2005
Copy link
Contributor

@SonOfGib I've pr'ed a few recent changes and added you to the dev team.

@KreAch3R
Copy link

KreAch3R commented Jan 1, 2025

@KreAch3R add new important commits (thanks). i try burn a https://github.com/SonOfGib/crankshaft/releases/tag/v2024.10.30.1 in my sd card @SonOfGib (thanks). and I will follow the steps described in the new readme. https://github.com/KreAch3R/aa-proxy-oap

Yes guys, I have updated my repo. I installed my test sdcard into my car and it works. Check the screenshots and the photos on the repo.
The only thing missing is to follow my own guide with the former sdcard and check if I miss something, which I will do in the next days.
FYI, my method specifically targets the closed-sourced OpenAuto-Pro installation. For the opensource Crankshaft here, someone should really implement the necessary wireless changes into the crankshaft code itself, it's a shame that the code exists but it's not mainlined yet.

@KreAch3R I've tried to apply the two patches included with your aa-proxy-oap project with both:

patch -p0 < ../0001-Backport-and-apply-patches-for-Android-Accessory-mod.patch

...and...

patch -n -p0 < ../0001-Backport-and-apply-patches-for-Android-Accessory-mod.patch

but I always get:

patch: **** Only garbage was found in the patch input.

I've also tried "git apply" but that gives "unrecognized input".

Any thoughts on what I'm missing?

Thanks!

Happy New Year guys.

I uploaded new commits to the repo that should adress your patching issue. I am also working on somehow bundle it all in release package to be easier to adopt.

@KreAch3R
Copy link

KreAch3R commented Jan 4, 2025

Just for anyone listening here about my aa-proxy-oap, I just uploaded prebuilt binaries for everything, so now if one wants, installing is simply copy-pasting for Raspberry Pi 4B hosts.

Check the new instructions in the repo: https://github.com/KreAch3R/aa-proxy-oap

I tried to find a way to bundle the kernel into a .deb file but the raspberrypi-kernel situation is a bit hacky and all over the place because of the fat32 boot partition, so there is no simple solution to bundle the files. So manual install it is.

Let me know if you run into issues. And please, backup first!

@CoordinatedEffort
Copy link

I saw the new release for 20250104 and I was wondering which binaries we should be using for different Pi boards?

@KreAch3R
Copy link

KreAch3R commented Jan 5, 2025

I saw the new release for 20250104 and I was wondering which binaries we should be using for different Pi boards?

Which other board are you using? Raspberry Pi 3/3+? I can try to build those as well.

@CoordinatedEffort
Copy link

CoordinatedEffort commented Jan 5, 2025

I saw the new release for 20250104 and I was wondering which binaries we should be using for different Pi boards?

Which other board are you using? Raspberry Pi 3/3+? I can try to build those as well.

I have 3B+. Thanks! What board are the 20250104 releases for?

@matt2005
Copy link
Contributor

matt2005 commented Jan 5, 2025

try 20250105 use the armv7 for pi2, armhf for everything else

Matt

@KreAch3R
Copy link

KreAch3R commented Jan 5, 2025

I saw the new release for 20250104 and I was wondering which binaries we should be using for different Pi boards?

Which other board are you using? Raspberry Pi 3/3+? I can try to build those as well.

I have 3B+. Thanks! What board are the 20250104 releases for?

I'm not sure now if you were talking about Crankshaft or my modification/hack, because we have almost same date releases.

In order to not confuse the users that follow this mailing list, I'll just say that I have built the rpi3 kernel blindly and I uploaded to my repo with instructions.

If someone from here wants to use it, please come over to that repo and post an issue there, to keep the threads separate.

@CoordinatedEffort
Copy link

I saw the new release for 20250104 and I was wondering which binaries we should be using for different Pi boards?

Which other board are you using? Raspberry Pi 3/3+? I can try to build those as well.

I have 3B+. Thanks! What board are the 20250104 releases for?

I'm not sure now if you were talking about Crankshaft or my modification/hack, because we have almost same date releases.

In order to not confuse the users that follow this mailing list, I'll just say that I have built the rpi3 kernel blindly and I uploaded to my repo with instructions.

If someone from here wants to use it, please come over to that repo and post an issue there, to keep the threads separate.

Sorry for the confusion, I was talking about the Crankshaft release.

@matt2005
Copy link
Contributor

This is expected to be resolved in 20250111

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests