Package Details: aasdk-git r90.a483733-1

Git Clone URL: (read-only, click to copy)
Package Base: aasdk-git
Description: Library to build AndroidAuto headunit
Upstream URL:
Licenses: GPL3
Conflicts: aasdk
Provides: aasdk
Submitter: parkerlreed
Maintainer: parkerlreed
Last Packager: parkerlreed
Votes: 1
Popularity: 0.000000
First Submitted: 2018-02-27 02:03 (UTC)
Last Updated: 2020-10-20 16:06 (UTC)

Latest Comments

TimonGaertner commented on 2022-01-13 22:17 (UTC) (edited on 2022-01-13 22:19 (UTC) by TimonGaertner)

@brilthor you have to change




on line 53 in the /src/USB/USBHub.cpp file, you can just do that by cloning, running makepkg and replacing the line, while the build is in progress

StS commented on 2021-04-08 00:28 (UTC)

This patch helped me for this: USBHub.cpp:53:103: error: invalid conversion from ‘int’ to ‘libusb_hotplug_flag’ error.

brilthor commented on 2021-03-09 17:15 (UTC) (edited on 2021-03-09 17:16 (UTC) by brilthor)

Build issue on two up to date arch systems

In file included from /home/john/.cache/pikaur/build/aasdk-git/src/aasdk-git/include/f1x/aasdk/USB/IUSBWrapper.hpp:24,
                from /home/john/.cache/pikaur/build/aasdk-git/src/aasdk-git/src/USB/USBHub.cpp:20:
/home/john/.cache/pikaur/build/aasdk-git/src/aasdk-git/src/USB/USBHub.cpp: In lambda function:
/home/john/.cache/pikaur/build/aasdk-git/src/aasdk-git/src/USB/USBHub.cpp:53:103: error: invalid conversion from ‘int’ to ‘libusb_hotplug_flag’ [-fpermissive]
    |                                                                                           ^~~~~~~~~~~~~~~~~~~~~~~
    |                                                                                           |
    |                                                                                           int

In file included from /home/john/.cache/pikaur/build/aasdk-git/src/aasdk-git/src/USB/USBHub.cpp:20:
/home/john/.cache/pikaur/build/aasdk-git/src/aasdk-git/include/f1x/aasdk/USB/IUSBWrapper.hpp:76:108: note:   initializing argument 2 of ‘virtual f1x::aasdk::usb::HotplugCallbackHandle f1x::aasdk::usb::IUSBWrapper::hotplugRegisterCallback(libusb_hotplug_event, libusb_hotplug_flag, int, int, int, libusb_hotplug_callback_fn, void*)’
76 | ugCallbackHandle hotplugRegisterCallback(libusb_hotplug_event events, libusb_hotplug_flag flags, int vendor_id, int product_id, int dev_class,
    |                                                                       ~~~~~~~~~~~~~~~~~~~~^~~~~

make[2]: *** [CMakeFiles/aasdk.dir/build.make:641: CMakeFiles/aasdk.dir/src/USB/USBHub.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:115: CMakeFiles/aasdk.dir/all] Error 2
make: *** [Makefile:149: all] Error 2
==> ERROR: A failure occurred in build().

mbromilow commented on 2020-02-28 22:19 (UTC)

Yeah, I've been waiting for the OTAs before I try the 11 previews, so I'm still on 10. My play services version is still on 20.04.14 (120400-294335909).

parkerlreed commented on 2020-02-28 20:46 (UTC)

Must be where I'm on 11 DP1. Switched cables, forgot all cars, etc. Still the same result.

parkerlreed commented on 2020-02-28 20:18 (UTC)

Strange. Pixel 3 XL here.

version 5.1.500644-release

What about Play Services? That's caused issues in the past.

version 20.06.16 (120400-296104215)

I'll redo the setup on this laptop and see if it's just something weird there.

mbromilow commented on 2020-02-28 19:41 (UTC)

Works fine for me on a somewhat fresh Arch install, using a Pixel 2 on the latest OS with Android Auto 5.1.500644-release - been using it for a good 10 minutes or so pressing buttons and messing with resolutions, and I've not seen any unstability at all, so not sure what the issue could be there?

parkerlreed commented on 2020-02-28 17:19 (UTC)

It completely broke after the latest Android Auto update. Doesn't even start now.

[parker@stealth ~]$ autoapp 
[2020-02-28 12:17:57.798398] [0x00007f6aebac9300] [warning] [OpenAuto] [RecentAddressesList] failed to read configuration file: openauto_wifi_recent.ini, error: openauto_wifi_recent.ini: cannot open file. Empty list will be used.
[2020-02-28 12:17:57.893602] [0x00007f6ae92bd700] [info]    [OpenAuto] [App] Waiting for device...
[2020-02-28 12:17:58.015291] [0x00007f6ae37fe700] [info]    [OpenAuto] [App] Devices enumeration result: true
[2020-02-28 12:18:17.396185] [0x00007f6ae37fe700] [info]    [OpenAuto] [App] Device connected.
[2020-02-28 12:18:17.398496] [0x00007f6aebac9300] [debug]   [OpenAuto] [AudioInput] create.
[2020-02-28 12:18:17.404909] [0x00007f6aebac9300] [debug]   [OpenAuto] [QtVideoOutput] create.
[2020-02-28 12:18:17.487755] [0x00007f6ae37fe700] [info]    [OpenAuto] [AndroidAutoEntity] start.
[2020-02-28 12:18:17.487772] [0x00007f6ae37fe700] [info]    [OpenAuto] [AudioInputService] start.
[2020-02-28 12:18:17.487837] [0x00007f6ae37fe700] [info]    [OpenAuto] [AudioService] start, channel: MEDIA_AUDIO
[2020-02-28 12:18:17.487853] [0x00007f6ae37fe700] [info]    [OpenAuto] [AudioService] start, channel: SPEECH_AUDIO
[2020-02-28 12:18:17.487860] [0x00007f6ae37fe700] [info]    [OpenAuto] [AudioService] start, channel: SYSTEM_AUDIO
[2020-02-28 12:18:17.487867] [0x00007f6ae37fe700] [info]    [OpenAuto] [SensorService] start.
[2020-02-28 12:18:17.487876] [0x00007f6ae37fe700] [info]    [OpenAuto] [VideoService] start.
[2020-02-28 12:18:17.487888] [0x00007f6ae37fe700] [info]    [OpenAuto] [BluetoothService] start.
[2020-02-28 12:18:17.487896] [0x00007f6ae37fe700] [info]    [OpenAuto] [InputService] start.
[2020-02-28 12:18:17.493011] [0x00007f6ae8abc700] [info]    [OpenAuto] [AndroidAutoEntity] version response, version: 1.5, status: 0
[2020-02-28 12:18:17.493021] [0x00007f6ae8abc700] [info]    [OpenAuto] [AndroidAutoEntity] Begin handshake.
[2020-02-28 12:18:17.518106] [0x00007f6ae8abc700] [info]    [OpenAuto] [AndroidAutoEntity] Handshake, size: 2282
[2020-02-28 12:18:17.519463] [0x00007f6ae8abc700] [info]    [OpenAuto] [AndroidAutoEntity] continue handshake.
[2020-02-28 12:18:17.530676] [0x00007f6ae3fff700] [info]    [OpenAuto] [AndroidAutoEntity] Handshake, size: 51
[2020-02-28 12:18:17.530758] [0x00007f6ae3fff700] [info]    [OpenAuto] [AndroidAutoEntity] Auth completed.
[2020-02-28 12:18:17.535437] [0x00007f6ae37fe700] [info]    [OpenAuto] [AndroidAutoEntity] Discovery request, device name: Android, brand: Google Pixel 3 XL
[2020-02-28 12:18:17.535466] [0x00007f6ae37fe700] [info]    [OpenAuto] [AudioInputService] fill features.
[2020-02-28 12:18:17.535477] [0x00007f6ae37fe700] [info]    [OpenAuto] [AudioService] fill features, channel: MEDIA_AUDIO
[2020-02-28 12:18:17.535485] [0x00007f6ae37fe700] [info]    [OpenAuto] [AudioService] fill features, channel: SPEECH_AUDIO
[2020-02-28 12:18:17.535491] [0x00007f6ae37fe700] [info]    [OpenAuto] [AudioService] fill features, channel: SYSTEM_AUDIO
[2020-02-28 12:18:17.535497] [0x00007f6ae37fe700] [info]    [OpenAuto] [SensorService] fill features.
[2020-02-28 12:18:17.535505] [0x00007f6ae37fe700] [info]    [OpenAuto] [VideoService] fill features.
[2020-02-28 12:18:17.535513] [0x00007f6ae37fe700] [info]    [OpenAuto] [BluetoothService] fill features
[2020-02-28 12:18:17.535520] [0x00007f6ae37fe700] [info]    [OpenAuto] [InputService] fill features.


parkerlreed commented on 2020-02-28 02:06 (UTC) (edited on 2020-02-28 02:13 (UTC) by parkerlreed)

@mbromilow Thanks! Updated both packages and it is working again! Huzzah.

EDIT: Dangit. Worked for a little bit but after going to 720p and messing around it likes to crash hitting the "Home" button (Or seemingly at random for any other button)

mbromilow commented on 2020-02-27 21:27 (UTC)

Ah sorry, they're needed for openauto, my bad!

parkerlreed commented on 2020-02-27 21:25 (UTC)

Are they needed for this or openauto? openauto-git I already have gst-libav on.

If they're needed here I'll be sure to get that added.

Thanks a ton for the patch!

mbromilow commented on 2020-02-27 21:16 (UTC) (edited on 2020-02-27 21:17 (UTC) by mbromilow)

Here's a patch to add compatibility for boost 1.70+


diff --unified --recursive --text aasdk-git/src/Channel/ServiceChannel.cpp
--- aasdk-git/src/Channel/ServiceChannel.cpp
@@ -38,7 +38,7 @@

 void ServiceChannel::send(messenger::Message::Pointer message, SendPromise::Pointer promise)
-    auto sendPromise = messenger::SendPromise::defer(strand_.get_io_service());
+    auto sendPromise = messenger::SendPromise::defer(strand_.context());
     io::PromiseLink<>::forward(*sendPromise, std::move(promise));
     messenger_->enqueueSend(std::move(message), std::move(sendPromise));
diff --unified --recursive --text aasdk-git/src/USB/AccessoryModeQueryChain.cpp
--- aasdk-git/src/USB/AccessoryModeQueryChain.cpp
@@ -58,7 +58,7 @@

-                             std::make_shared<USBEndpoint>(usbWrapper_, strand_.get_io_service(), std::move(handle)),
+                             std::make_shared<USBEndpoint>(usbWrapper_, strand_.context(), std::move(handle)),

diff -u PKGBUILD:

@@ -14,8 +14,10 @@
+  boost_1.70_fixes.patch
+         'SKIP'

 pkgver() {
@@ -26,6 +28,7 @@
 prepare() {
   cd $pkgname
   patch --forward --strip=1 --input="${srcdir}/promise.patch"
+  patch -N -p 1 -i "${srcdir}/boost_1.70_fixes.patch"

 build() {

It's also worth noting that I had to install gstreamer and gstreamer-plugins-bad; maybe these should be added as dependencies?

parkerlreed commented on 2019-12-23 00:58 (UTC)

@jesseFrey yeah it's broken at the moment.

Main upstream disabled all issues so it's up to the forks to fix stuff :(

jesseFrey commented on 2019-12-23 00:39 (UTC)

Build failed for me. got lots of errors saying "regenerate this file with a newer version of protoc" and then failed later on

parkerlreed commented on 2019-03-08 02:32 (UTC)

@urizen Updated. Thanks!

urizen commented on 2019-03-08 02:20 (UTC)

Got it to build with theses changes to the PKGBUILD:

diff --git a/PKGBUILD b/PKGBUILD
index 1e3f4bc..1e8c94e 100644
@@ -11,14 +11,23 @@ provides=($_pkgname)
 depends=('libusb' 'protobuf' 'openssl' 'boost-libs')
 makedepends=('cmake' 'boost' 'git')
+  "$pkgname::git+"
+  promise.patch
+  )
+          'SKIP')

 pkgver() {
   cd $pkgname
   printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"

+prepare() {
+  cd $pkgname
+  patch --forward --strip=1 --input="${srcdir}/promise.patch"
 build() {
   cd $pkgname
   mkdir -p aasdk_build

And promise.patch :

diff --git a/include/f1x/aasdk/IO/Promise.hpp b/include/f1x/aasdk/IO/Promise.hpp
index 9f5e222..646b258 100644
--- a/include/f1x/aasdk/IO/Promise.hpp
+++ b/include/f1x/aasdk/IO/Promise.hpp
@@ -20,6 +20,7 @@

 #include <functional>
 #include <boost/asio.hpp>
+#include <boost/core/noncopyable.hpp>
 #include <f1x/aasdk/Error/Error.hpp>
 #include <f1x/aasdk/IO/IOContextWrapper.hpp>

I also commented on the issue upstream.

parkerlreed commented on 2019-02-06 16:15 (UTC)

Build errors out currently. Ticket submitted upstream.

parkerlreed commented on 2018-07-20 21:38 (UTC)


parkerlreed commented on 2018-07-20 21:33 (UTC)

Yeah I just noticed a comment on git from the dev saying releases need to be on master (because stuff in dev can break). I'll update it now.

xnick commented on 2018-07-20 21:31 (UTC) (edited on 2018-07-20 21:31 (UTC) by xnick)

aasdk and openauto gits are set to checkout the development branch by default. I was unable to build openauto because of this. Maybe add a git checkout master before building these packages?

parkerlreed commented on 2018-07-18 11:57 (UTC) (edited on 2018-07-18 11:58 (UTC) by parkerlreed)

You are free to create RPi versions. I don't have the hardware to test and the build instructions change quite a bit. I felt the GitHub pages already had ARM covered. I wanted an easy way to test x86(_64) packages since that's the hardware I own.

xamindar commented on 2018-07-18 05:12 (UTC)

Why create this package and restrict it from armv7h when this is most likely to be used on a Raspberry Pi because it's a dependency of openauto? The mind boggles. Thanks for the attempt I guess?

parkerlreed commented on 2018-02-27 02:15 (UTC) (edited on 2018-03-10 05:55 (UTC) by parkerlreed)

EDIT: Unfucked both PKGBUILDs. Now they only copy the needed files and are a ton smaller after compiling.

aasdk (including the whole source folder) is copied into /opt/aasdk after building.

openauto build points to the /opt/aasdk in the cmake and also gets put in /opt/openauto

Shell script is placed at /usr/bin/autoapp which points to /opt/openauto/bin/autoapp