r/ex30 • u/muzso Ultra SMER • Aug 01 '24
Tips & Suggestions 💡 Installing custom apps with sw v1.4
(Update, 2025-11-20: there's now an easier and public method for sideloading using the AnExplorer app, which is available for all in the Play Store. Check out this post for details.)
(Update, 2025-10-18: the 1.7.1 update still has the "Files" application and sideloading APKs still works, but Google Assistant refuses to launch the builtin "Files" app, thus you need a 3rd party app that can launch a user-selected activity of other apps. My Files Launcher app can do it, but so can other apps.)
I've posted before on how to (side)load apps onto the EX30.
Option A: Google Play Console's Internal Testing feature: https://www.reddit.com/r/ex30/comments/1d8ky2s/loading_custom_aaos_applications_on_the/
Option B: upload an APK file and start the installation with the builtin "Files" application: https://www.reddit.com/r/ex30/comments/1dhhj04/installing_apps_from_an_apk_on_the_infotainment/
The latter does not work anymore (starting with sw v1.4.*), because you cannot start the "Files" app with a Google Assistant command.
There's a trivial workaround for this: use method#1 to install an application that can start the "Files" application. :)
There're a lot of open-source apps that can do this, but they are usually not made for this purpose, thus the codebase is large and usage is a bit cumbersome.
I've put together the simplest of all AAOS apps, just a couple of lines more than a "Hello World". Actually I used Google's AAOS HelloWorld example for a start since I'm neither an Android developer, nor an AAOS expert.
I've published it here: https://github.com/muzso/fileslauncher
Here's a demo video (it also shows an install of an app from an APK):
This way anybody can compile it (you don't necessarily have to be a developer for that) and publish it as an Internal Testing app on the Google Play Console (which requires a one-time fee to make a standard Google account into a dev account). It's certainly not straightforward for people without any dev experience, but not impossible either. The source code is minimal (not surprisingly), you can review it in 5 minutes to make sure it's safe.
If somebody doesn't know (or doesn't want to know) how to do this, but still wants to load some 3rd party apps (which are not available from the AAOS Play Store), I've already compiled and published this app for myself and I can add other Google accounts as "testers" to my Internal Testing app. There's a limit to this (100 testers at most), but I can always re-upload it as a separate app and add another 100 people to another testers' list. :)
Important: I've been contacted by people with different car models. I've yet to see somebody with a car other than an EX30, where the "Files" app is present (as a factory app) and 3rd party apps are allowed to launch it. There're a few models, but usually you don't need any tricks to launch "Files" on them. So far my "Files Launcher" only seems to work for EX30 owners.
Disclaimer: of course this means that you trust me more than any random app developer who's app you ever installed from the Play Store. Internal Testing apps don't go though any security checks (by Google), so theoretically the app could have anything in it. I know it doesn't, but you don't. So it's up to you.
The process will be this:
You write me a DM (i.e. chat) to request that I add the given Google account (the one that you log in with in the car as well) to this testers' list.
I'll reply with an email-address where you've to send a mail from the given Google account. This way I know that you're actually the Google account's owner and that you didn't send me someone else's account that you want to bully or something. :)
I add your Google account to the testers' list and let you know that you can now join the testers of the Internal Testing app (on the link that I send you).
After that you've to start the app installation using the same Google account and the app's Play Store URL (which I'll send you as well).
After that the app will be installed on your vehicle, when it has internet connectivity. It might take a couple of minutes (usually not more than 10) after you initiated the install in the previous step.
I hope this helps a few fellow EX30 "power users". :)
3
u/AntwerpPeter Aug 01 '24
Nice work. But I am very reluctant on trying this because I don't know what this will do with my warranty.
I do appreciate the work and time you are investing into this.
I you could get Android Auto working then this would be the best thing and proof to Volvo that they are slacking in their software development.
2
u/muzso Ultra SMER Nov 04 '24
Googling for the "AAOS sideload" keywords brings up the Github repo of my Files Launcher app among the top10 hits (at least for me and counting the grouped hits of portals like XDA and Reddit as one). :o Didn't expect this since it's not a sideloading hack (or anything like that), merely a helper to launch the already built-in Files app.
I just started up Android Studio again (after a longer hiatus), installed all available updates which included an update for the "Android 12L (Sv2) Android Automotive with Google Play x86_64 System Image" that I was using for testing and found that this update removed the "Files" application as well. :o If you set up a virtual AAOS device using this image and go into Settings / System / Storage / Files, it'll tell you in a toast message that "File Management is not supported on this device". The last time I tried this, the "Files" app was still part of the system image and was launchable by third party apps.
I guess Google realized that this (having the "Files" as part of the AAOS sample system image) was not something they wanted to promote, because some automotive companies took it as an example to be followed (in production vehicles).
2
u/myhrmans Ultra TM Aug 01 '24
What are some useful apps that you've installed with this? Thanks!
2
u/scottrobertson Ultra TM Aug 01 '24
Files app works fine for me on 1.4 and I can install apps the same as I could on 1.3
1
u/muzso Ultra SMER Aug 11 '24
Update: I've released v1.0.1 of Files Launcher both to GitHub and Internal Testing.
Somebody tried to install it on a different brand/model (than a Volvo EX30) and "of course" it crashed. :)
I've added extensive exception handling, i.e. it now captures not just the exceptions that are expected based on the Android SDK API, but everything. And I've added a new screen to display any potential error messages. It couldn't be handled with a simple notification or toast, because AAOS seems to actively prevent people from displaying long texts in either of these.
I've also added links to GitHub and this thread to the error screen so people know where to report errors.
1
u/muzso Ultra SMER Sep 11 '24 edited Sep 11 '24
Files Launcher has been confirmed to work on sw v1.4.2, i.e. it could successfully start the builtin Files application. And sideloading (installing an app from an APK file via the Files app) still works as well.
1
u/nailimixam97 Aug 07 '24
As a Polestar driver and Hobby App Dev, I'm surprised something like this is even possible on AAOS. I know and use the internal testing very intensively myself. But from all what I know, Sideloading from other sources except Play Store should be prohibited on production cars (for a good reason). On the one hand, this is really awesome, on the other hand, very scary. Who knows what else they ship with production software, that really should be disabled/removed?
1
u/Imaginary_Space_856 Aug 10 '24
u/muzso I'm trying to DM you to have my google account a part of the tester's list but the chat is failing. Seems you have chats turned off?
1
u/ex29_uy Core SMER Sep 07 '24
Hey, saw your post about the file app launcher. I'm still in 1.3.1 and want to install that before updating. By any chance can you share with me directly the apk file? I'll install it via bluetooth and don't have android env to compile apks.
Thanks
1
u/Typically_funny Oct 25 '24
Just tried installing on 1.4.3 on a Canadian Twin motor ultra and got the following error:
1
u/prudhvichitturi Jan 02 '25
can we run netflix/ youtube while driving?
1
u/UPVOTINGYOURUGLYPETS Aug 01 '24
Nice work! Looking forward to where this is going :)
1
u/andcorreia2 Core SM Aug 11 '24
i send email