[Guide][MicroG + Android Auto][Without Root][With Navigation Apps Working]

This guide explain how to install Android Auto (AA) on ROM with built in MicroG support without root and make navigation Apps work.
This process is tested with e/os 2.9-s (Android 12) on Galaxy S8 and Galaxy S7 Edge devices.
I have tried AA flashing along with clean ROM flash. I have not tested dirty AA flash.

The official e/os AA setup guide “How to setup Android Auto with /e/OS?” is for e/os+Android 13 and talking about setting up with real Google Apps. Real Google Apps not required if you use the 3 stubs explained below.

Please take care of all your data, backup etc. in case if anything breaks.

Flashing ROM and Android Auto

e/os with Android 12

  • Use TWRP to flash the ROM.
  • Flash the modified NikGapps Android auto add-on suitable for Android version (Check this guide)

e/os with Android 13 or higher

  • AA is already included. So no need to flash AA.

Start and setup the phone. Enable developer mode and USB debugging. Check “Always allow” the USB debugging authorization when prompted on phone.

Install Google App Stubs

  • Install the Google, Google Map and Google TTS stubs using adb so you don’t have to install actual Google stuffs (Check this guide).

Setup Android Auto

  • Provide all necessary Permission and Notification access to AA.
  • Enable AA developer mode and check “unknow sources”
  • It is recommended to disable the “Wireless” AA and remove the Internet access for AA. You can use wired AA without any problem and avoid sending any data to Google.

With above setup, AA should be working without any problem except the 3rd party navigation apps like OSMAND. Navigation Apps must be installed as Play Store (com.android.vending) to make them work. Only way to archive this is by modifying the /data/system/packages.xml which was achieved by this AlterInstaller Magisk module. We have 2 problems updating this file without root and our solutions also mentioned

  • (Problem 1) /data/system/packages.xml file is not accessible without root.
    (Solution 1) We will access this in recovery.
  • (Problem 2) /data/system/packages.xml file is not human readable. Its an Android binary XML (ABX) file.
    (Solution 2) We will covert this to text XML file using abx2xml, edit it and convert back to ABX using xml2abx.

Setup Navigation Apps

Below is the process need to be followed carefully. It works with both e/os and TWRP recovery. Make sure you “Enable ADB” after booting into e/os recovery mode.

  • In System mode (Normal OS running)
adb devices
adb reboot recovery
  • In Recovery mode
adb devices
adb shell mount -o rw /data
adb pull /data/system/packages.xml # Keep a backup of this original packages.xml file just in case
adb reboot
  • In System mode (Normal OS running)
adb devices
adb push packages.xml /sdcard/Download/
adb shell abx2xml /sdcard/Download/packages.xml /sdcard/Download/packages_text.xml
adb pull /sdcard/Download/packages_text.xml

Now open the packages_text.xml file in Notepad++ or any other text editor on your PC. Find your app package and modify these two properties:
installer="com.android.vending" installInitiator="com.android.vending"
Then save the file and continue

adb shell rm /sdcard/Download/packages.xml
adb push packages_text.xml /sdcard/Download/
adb shell xml2abx /sdcard/Download/packages_text.xml /sdcard/Download/packages.xml
adb pull /sdcard/Download/packages.xml
adb reboot recovery
  • In Recovery mode
adb devices
adb shell mount -o rw /data
adb push packages.xml /data/system/
adb shell 
cd /data/system/
chmod 644 packages.xml
exit
adb reboot

After reboot, check AA launcher. The Apps modified in the XML must be visible now and will work with AA.

If the Apps (modified in the XML) are update again, then manual XML changes will be gone and the above prcocess need to be repeated again. Better to disable to Auto-update for the those Apps.

Note

I am not Android or adb expert. I just got this process working on my two Samsung devices.
Please feel free to suggest improvements.

Regain your privacy! Adopt /e/OS the deGoogled mobile OS and online servicesphone

2 Likes

Hi a_p_v

Great to hear that you’ve found a way to make navigation apps to work with stubs.

For some reason I’m not able to complete the instructions you’ve shared.

The issue is packages.xml file. First I had issues with accessing, but that I managed to sort out with adb root. But the second issue was bigger. I’m not able to find packages.xml anywhere. It feels that it just doesn’t exist on my phone.
Any ideas where to look for it? Could there be an alternative location for it? Or maybe it’s named differently.

I’m using Samsung S9 (starlte) /e/os 2.9 (A13) community build.

Perhaps you could make clear at the beginnging of the guide what the differences are compared to How to setup Android Auto with /e/OS?

(Works with Android 12 if needed, only requires Google App stubs instead of full Apps … anything else?)

Hi AnotherEl’k,
The guide “How to setup Android Auto with /e/OS?” is for e/os+Android 13 and talking about setting up real Google Apps.
Real Google Apps not required if you use the 3 stubs.

Hi SalmonSnake,
How exactly you are searching for packages.xml ? By adb or by using File explorer App ?
/data/system/ directory won’t be visible in ordinary file explorer.
If you are using adb, try these:

adb shell 
cd /data/system/
ls

Check if packages.xml is listed there.

Yes, that’s what I saw and wrote, but perhaps this could be cleared up in your guide at the start before users get confused about the different guides.

“This guide explain how to install Android Auto (AA) on ROM with built in MicroG support without root and make navigation Apps work.” applies to the official /e/OS guide, too. The differences only come later in the text and might not be obvious especially for inexperienced users.

Ok. I added a note there.

1 Like

Okay, I maybe figured out what the issue is.

In your instructions you are mentioning TWRP but I’m using the official eRecovery.
In system mode I’m able to see packages.xml but not in recovery mode.

It works with both e/os and TWRP recovery. Make sure you “Enable ADB” after booting into e/os recovery mode.

That not the case actually. I have tried & tested this process using both e/os recovery and TWRP recovery. In e/os recovery mode, there is no visual file explorer (like in TWRP). So you have to access everything by adb commands. Please make sure you first mount /data using
adb shell mount -o rw /data
Then only you can access everything in /data/system/

Yes, I’m able to mount data and access it, but the content of the folder is totally something different compared to when I access the folder in system mode.

Recovery mode:

starlte:/ # mount -o rw /data
starlte:/ # cd data/system
starlte:/data/system # ls
+1ZE3O14qNLybsGlVcrU4D                  Yk9bRdIJYf7XqoYxue8bzD
+bT7RKZfsY+k+hONLQaiT3191uA             ZMw3JRWBHwqrvmgWwj0CS0BM65F
1CMuUwZl24T,7bLb0bEs+A                  ZSSwhlYOavOObvObRCEsCC
1LzW+xMxDTaYxIi9KLmGpEryssx8JsC+        _gJ5cyihr6ZHivn+crkcDfmKNMwol5uLR
2,fabRQH+rha1OuXVnbnsmq7RVXQxWiT        e5QKETnqZmka,82Ef0j1W6QxWzG
2,znqQKnpj32emnbDblh2lJJBHG             esq+o+cbPzpMM4hqPJeaHTKrCKM
2YM3RJZAOHg5ubZGARQ8WA                  fvN15fv0J3gLopQPH7XGwQUVLdkRQkH6
2svLLVwbSFw5NXlJDsM6qhbHUDvDrFrZZSJqLC  gjFdyhDuJPwOem7nqEyVm4b3tocg9Rkz
6DiuSTT2L1sZCMMYXuSO1D                  hxXXTfyEKmt4QvEYFDPHJC
7CuLfd38Ro6bj5ruIoYzJXzQUvObb86H        i7uT0tRf6tiGFochWDxCTA
8Fv3XTVt7r6MOzpR5Tk8LA                  k0XtBQKnGx4xjklCUwGGLD
8yQBNgY1ojCcBG0V5zBh8DWvkQf0gPHg        k3OYOwPtBQG6gh7YjExf0E+NbcO
9t3BE4w3Rjum0lQxa1S+lD                  lTnh7HO6NWN9EeOE+cVbqRCDmSB
A4PF42NEnbv2+QeGZ5JAkC                  lpEQI88BpuI8QAd9Y4VxaA
BgxasMp8Q,,qiLM9caep3D                  mZZ8tmLLlcGokKSA1F+FJ7sYAnHr64cxh6rBTD
GEl9Qq6ZDJG3JjU370dozB                  mum5WdpJg2XwktpssnsImD
HlBNiemJi,RTNX29ig9p+A                  naxYqz08DcRJOGNB0vR4glZ1kYO
IMLRdWXmCF5doXLUun3heB                  oOAt0qS41gLZKf25QRb6LD
IkpSdKmskHnEoN19y2EH+C                  oTfpKFqONcxWtpmhsWRCAxCe05J
JRov4Lp8zmlKobPeSdAg+C                  pdpTFTiazOpWgiPwc7u+aC
JjD5c96HuVf,eiLd3r4ToC                  qq+gYcr9Qe8XQ6oAagi78B
KmPArIUpiS8c9Z91LT5hVzjVD+8wG1xp        sjhdQmXh,OJoBCU6NHnfkA
OqdO38eNJIWztTXh1WMA8A                  t2wNdLa9iy5Kj5lDJNZOpZ,43hD
QZXI8vjRbqIhVL0sthv9frhgTOA             tOKzNnO++Fp6WZItFQdFWA
QhrFiORbYkOUFPgjT1poyv3wduE             tRTpXf3GPCr,xkCr9t8gWB
QyZvmapTp7RU6KmOry9CkB                  tYbwdcJJhUfUxSZGXQNG6B
SAPWW,zS9JltI7eDBuvMHB                  tnh64smxhLOLqXXxuM0xxA
SkUxBylyz,Jxwi7iV6a9bC                  txeA9,xDmAPYLf3max99OD
T9q9Tn7ohg+2NBi6Y5uJb3oFVe3Qsk0N        uAoOG93G0Vv8r1lLrkRJfqmR1uE
V2mQLACU0aHO2hBfV0wANA                  uQbVGxLGJmlh0aLiNNnDIB
VRZQXicIy0LBRmFTqNyOvA                  uTHCZLFVR1Bgcr+XskExWEhG4NP
VUhCis4dIUJPcB07H9wOiD                  ufbOCa3nL6f7rvQTDYNx7zGBpHG
Xu8rgWU0icRxnSDTqM5YdQtzuj0A41bN        ukFNx9AQ2cO76HeikPdF0A
YZzexwtHVRq+cT1YsR,cKB                  wY4RFAzzRZRKWpGhPmY+uC
YbvxMa7u1D7K99K6WsMoAD                  xbe2kUn9Ey3eDNK+B7L8LVoIHiUR7P2h
YgAdskVuc4TRnVgjJT72FDbMWbO             y3blWI0UygcDKLbpyuYUBC
YhPfqj+wt+C,VB7b9IpdSB                  zDwppC7J6NCiKEOW557RqC

System mode:

starlte:/ # cd data/system                                                     
starlte:/data/system # ls pac*.xml                                             
package-watchdog.xml  packages-warnings.xml  packages.xml

Well, yesterday I bought a used AAwireless dongle which is on its way, so maybe I’m able to use navigation apps by the end of the week :smiley:

Thanx anyway @a_p_v for trying to help me out :pray:

@a_p_v thanks a lot, this worked for me on my Galaxy S8+. The possiblity to use Maps in AA has been on my want list for a long time.

I have TWRP recovery installed on my device and I was not able to access recovery with adb so I had to use the built in file manager in TWRP.

Below, I have updated the guide for other people having the same problem with TWRP:

  • In System mode (Normal OS running)
adb devices
adb reboot recovery
  • In Recovery mode

– Use the built in file manager to copy the file /data/system/packages.xml to /sdcard/Download/
– reboot system

  • In System mode (Normal OS running)
adb devices
adb shell abx2xml /sdcard/Download/packages.xml /sdcard/Download/packages_text.xml
adb pull /sdcard/Download/packages_text.xml

Now open the packages_text.xml file in Notepad++ or any other text editor on your PC. Find your app package and modify these two properties:
installer="com.android.vending" installInitiator="com.android.vending"
Then save the file and continue

adb shell rm /sdcard/Download/packages.xml
adb push packages_text.xml /sdcard/Download/
adb shell xml2abx /sdcard/Download/packages_text.xml /sdcard/Download/packages.xml
adb reboot recovery
  • In Recovery mode

Use the built in file manager to

– move the file /sdcard/Download/packages.xml back to the folder /data/system/
– navigate to the moved file /data/system/packages.xml and press it.
– Press the “chmod” button in the opened window and type “644”

– reboot system

1 Like

Glad it worked for you. Android auto is not meaningful without navigation.

Can OP(Original Poster) or someelse please comment on this statement?
I have /e/OS U (14) 2.9 installed however I do not think AA is pre-installed…
Unless it is hidden from the apps interface. I do know that it is available in the App Lounge.
Anyone know if this works with AA from the App Lounge?

Anouther question regarding properties in packages.xml, is this for every app you would like to appear such as NewPipe, or just the Navigation app you would like to use such as Magic Earth?

Thank you OP

The official way: How to setup Android Auto with /e/OS, else see opening post.

Anouther question regarding properties in packages.xml, is this for every app you would like to appear such as NewPipe, or just the Navigation app you would like to use such as Magic Earth?

Only for navigation Apps. Other apps has no issues working with AA if they designed to work with AA.

Google restricts navigation apps to favor its own Google Map and Waze. Please read original post.

With above setup, AA should be working without any problem except the 3rd party navigation apps like OSMAND. Navigation Apps must be installed as Play Store (com.android.vending) to make them work.