[Android Auto General] Jen94:
Dedicated to Galaxy S9 owners with Android 9 and all other people who get a black screen with AAM

After updating Android, trouble came to our devices - AAM stopped working and instead of a SurfaceView mirror it shows only a black screen.

I can please you: the solution is found.

This is a historical obsolete text, the actual method is located below. To see this, just go to the bottom - to "More simple solution".

It is formed by combining two programs:

1. https://play.google.com/store/apps/details?id=info.dvkr.screenstream

Launches a live broadcast of the device screen on port 8080

An open source tool, thanks so much to dkrivoruchko (many thanks).

2. https://github.com/slashmax/AABrowser/tree/master/apk

Browser for Android Auto, displays this broadcast

So, how to get a mirror if you have a black screen on AAM:

1. Install ScreenStream by link 1 above

2. Install AABrowser by reference 2 above

3. Unlock AABrowser in AAPP, connect one time to car or emulator

4. Edit the file /data/data/com.github.slashmax.aabrowser/shared_prefs/com.github.slashmax.aabrowser_preferences.xml

In the parameters "home page" and "last page" we register:

http://127.0.0.1:8080

The easiest way is to edit the file by copying it somewhere, and then replacing the existing one.

5. Launch ScreenStream, disable “wi-fi only” in the settings

When connecting to the machine, do the following:

1. Launch ScreenStream, click "Enable Broadcast"

2. We connect to the car

3. Run AABrowser

This solution displays a complete mirror out of the box, without the support of a touch and a consistent sound to which we are used to AAM. It is planned to make a version based on the method described above, with the support of all these buns. If who wants - make it please :) In the meantime, use video is better than black screen.

Note: this solution is worse than direct capture of the screen used by AAM, since it introduces a delay of ~ 1s when displaying a picture on the screen. S9 is a powerful device, the delay is very small, a second or less. I don’t know what will happen to others, but the problem seems to be so far only Samsung 9 android, which has nothing to do with weak devices.

Upd. This manual is for any device, who can't use standart AAM, but I test it only on Galaxy S9.

upd. I test it in motion. Navigator has no delay or It is not noticeable when you look: at the phone next to the multimedia system, there is no difference. I have a resolution of 720 and 1080 in the settings.

But in menu I have very little delay

Updated

A modified version of AAM is available, based on this method, with all the goodies from the original AAM.

Everything is simplified a bit with her, no need to mess around with AABrowser.

For full-fledged work after installation, it must be made systemic, otherwise the screen settings are not applied until know why (some rights are not enough).

And then everything is simple - we start the broadcast, run AAM_mod instead of AABrowser, enjoy.

More simple solution

Note. If ScreenStream not work, try ScreenStream v2

Update!

Unexpectedly for me, many were outraged by the new decision due to the fact that the picture is displayed in full screen, but has a small indent. “We have tiny displays already!”, - they shouted :)

These requests were heard, the problem was eliminated.

The problem turned out to be in ScreenStream, for its elimination it is enough to replace the data / assets / index.html file in apk, and the holiday will come again to our street.

It did it for version 3.0.16, but if you want to do for the latest version, it is very easy through the ApkEditor program. Recorded a video about rebuilding the package and publish index.html, but if you are not a geek, just put the attached files and enjoy :)

The frames are removed in ScreenStreamMod! In AAM, only the shift of the wheelbarrow is fixed.

In general, the latest version of the alternative mirror is enclosed in these files (remove previous versions)

aam_mod2.apk: https://xdaforums.com/attachment.php?attachmentid=4717719&stc=1&d=1551874248

ScreenStream_mod.apk: https://xdaforums.com/attachment.php?attachmentid=4717718&stc=1&d=1551874248

ScreenStream v2 mod (previous version, some like it more): https://xdaforums.com/attachment.php?attachmentid=4720342&stc=1&d=1552215688

If you use the AAM "Ajust ratio on focus" option, you first need to run AAM on the machine and only then start the broadcast

Solving problems with screen cutout: https://xdaforums.com/showpost.php?p=79084489&postcount=484