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

Android Auto launcher not showing sideloaded OsmAnd for Android 11 and above #15400

Open
polarbearing opened this issue Oct 2, 2022 · 8 comments
Labels
Observed Needs more clarification, feedback, or research

Comments

@polarbearing
Copy link

polarbearing commented Oct 2, 2022

There are several discussions where OsmAnd (plus or not) does not show in the Android Auto launcher when not installed directly from G. Playstore, i.e. installed from other stores (Fdroid, Aurora, Amazon) or sideloaded.
The behaviour and workaround depend on the Android version, but in Android 11 and above it differs between VLC and OsmAnd.
I compared an Android 7 and an Android 11 device.
My problem is that currently I cannot test nightly builds of OsmAnd under AA in Android 11, and AA itself stops working in Android 7.


Android 7 with the last AA version that works under Android 7
Install without package installer name:

adb push VLC_for_Android_v3.3.0_armeabi-v7a.apk /data/local/tmp/tmp.apk
adb shell
$ pm install /data/local/tmp/tmp.apk                                                               
Success

Now the VLC is listed in AA, but does not show in the launcher
We simply reinstall the same file and set the package installer name:

$ pm install -r -i "com.android.vending" /data/local/tmp/tmp.apk                                   
Success

Now the VLC also shows in the Launcher.
The same way, OsmAnd used to work until summer 2022 in AA. It still shows in the Launcher.

Screenshot_20221002-104754_A7_AA7 listed sScreenshot_20221002-104946 A7 VLC_and_OSMAND_shown s

However now AA either throws timebombs, declaring things are too old, or throws communication error 14 claiming the clocks between car and phone were allegedly out of sync (which they are not)
Screenshot_20220910-133233 Error14 c


In Android 11, apparently the package installer name is not needed anymore.

  • AA version 8.0.623354, where AA has no app on the phone anymore, but a car screen only,
  • The VLC is the latest downloaded from the videolan.org website. We explicitly set the installer name to nonsense,
  • An Osmand nightly was installed previously with setting the playstore installer name:
adb push VLC-Android-3.5.2-arm64-v8a.apk /data/local/tmp/tmp.apk
adb shell
$ pm install  -i "bla.bla.bla" /data/local/tmp/temp.apk 
$ pm list packages -i |grep org 
package:org.videolan.vlc  installer=null
$ pm list packages -i |grep osm
package:net.osmand.plus  installer=com.android.vending

Now, while both VLC and OsmAnd+ are listed in the AA settings, only VLC is shown in the Launcher. Apparently, the installer name does not matter anymore.

AA developer setting "Unknown sources" is ticked. When I untick that, the VLC remains listed in AA, but disappears from the Launcher. I tick it again, it is back. Not so for OsmAnd.

Screenshot_20221002-100830_A11 AA8 listed sScreenshot_20221002-111744_VLC_shown s

While it is known that VLC and OsmAnd are in different categories, media and navigation, I see no reason why Google would it make easier for media apps to be sideloaded than for navigation apps.

Related Discussions:
#13514 OsmAnd+ (from Amazon App Store) does not connect to Android Auto
#3391 Android Auto ... in OsmAnd
Fdroid: Osmand~: 4.1.9 doesn't show up in Android Auto
microG + Android Auto fully working

@vshcherb vshcherb added the Observed Needs more clarification, feedback, or research label Oct 2, 2022
@vshcherb
Copy link
Member

vshcherb commented Oct 2, 2022

That's quite unfortunate cause now we're stuck to Beta-Release cycle on Google Play

@polarbearing
Copy link
Author

Unless we find the reason why a sideloaded VLC behaves different from a sideloaded OsmAnd.

@vshcherb
Copy link
Member

vshcherb commented Oct 3, 2022

You mentionned it's a media apps there were less strict and different perspective from the beginning. FOR a long time only waze and google was navigation only but vlc was already there

@UnlockAA
Copy link

Anyone who uses XPrivacyLua can unlock all apps for Android Auto with one hook. Currently I have created the hook for two versions. Maybe the other hooks are also interesting for you... https://github.com/UnlockAA/XPrivacyLuaHook

@kevinmcmurtrie
Copy link

Does the Play Store version support microSD card maps yet? I'm on F-Droid builds solely to avoid Google's monopolistic permissions rules.

@michaelblyons
Copy link

michaelblyons commented Feb 20, 2023

Root cause

The actual root cause is unclear, but Google is pretty explicit about what users should expect in Android Auto:

Important: Apps must meet the criteria listed in this page to qualify as an Android Auto or Android Automotive OS app on Google Play. Apps don't work with Android Auto unless they are installed from the Play Store or the ONE store.

Clearly this is not strictly followed for some apps, since people have had success sideloading messaging and media apps.

Workarounds

So far, I've only seen two major types of workaround.

Misrepresent the installer source

Since Google only allows this app when "installed from the Play Store," pretend that is the case. There are a couple ways to do this:

Patch Android Auto to allow your app

If your phone is rooted and XPrivacy is installed, @UnlockAA has a module that will do this.

@starbrights
Copy link

If I remember right this adb install trick works only on <=A11, right?

@flo-at
Copy link

flo-at commented Jun 12, 2023

If I remember right this adb install trick works only on <=A11, right?

I'm using Android 12 and I used adb to spoof the installer. In the app's details it sais that it was installed from the Play Store. It doesn't show up in Android Auto though. So I guess you're right, unfortunately. 😞

My phone is not rooted so I guess there aren't many options.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Observed Needs more clarification, feedback, or research
Projects
None yet
Development

No branches or pull requests

7 participants