yashsingh1/xdaforums huggingface dataset:
[Android General] cward0625:
Hi, I am trying to get android auto working on mine and I do not know much about this process. My understanding was that after I use the oneclick to root, I install the apk for Headunit Reloaded. I am having trouble getting this to install. This is what I see in the command prompt:

C:\Users\C\Desktop\OneClick>oneclickinstall.bat 192.168.1.63 gb.xxy.hr.43.ap

k

C:\Users\C\Desktop\OneClick>.\bin\bash.exe .\OneClickInstall.sh 192.168.1.63

gb.xxy.hr.43.apk

Usage: ./OneClickInstall.sh ipaddress My.apk

Example: ./OneClickInstall.sh 192.168.1.100 Waze.apk

Disconnecting other adb devices\n

* daemon not running. starting it now at tcp:5037 *

* daemon started successfully *

disconnected everything

Connecting to 192.168.1.63\n

connected to 192.168.1.63:5555

Checking for root...

Rooted successfully!

Already rooted!

Okay, getting signature of gb.xxy.hr.43.apk

Exception in thread "main" java.lang.UnsupportedClassVersionError: Main : Unsupp

orted major.minor version 52.0

at java.lang.ClassLoader.defineClass1(Native Method)

at java.lang.ClassLoader.defineClass(Unknown Source)

at java.security.SecureClassLoader.defineClass(Unknown Source)

at java.net.URLClassLoader.defineClass(Unknown Source)

at java.net.URLClassLoader.access$100(Unknown Source)

at java.net.URLClassLoader$1.run(Unknown Source)

at java.net.URLClassLoader$1.run(Unknown Source)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)

Signature:

Getting package information

Package name: gb.xxy.hr

Retrieving current whitelist...

.\OneClickInstall.sh: [100%]: command not found

Preparing replacement whitelist

Okay - all set to replace the whitelist. Below are the final steps:

1. Backup existing whitelist to /data/local/tmp/

2. Upload whitelist to head unit

3. Reboot head unit

4. Install APK normally

Please review the below items carefully - if anything doesn't look right, ABORT

NOW!\n

Root status: rooted

APK signature NOT obtained (bad!)

Have package name: gb.xxy.hr

Original whitelist.xml size seems okay

Package name is present in new whitelist

Would you like to proceed? (y/n):

I then stopped due to the message 'APK signature NOT obtained (bad!)' message. What do I need to do differently? Also what apps have people found work well and worth installing?

Thank you
[Android General] cward0625:
I tried the steps in post #404 and still can't get an apk to install. I tried the exact waze apk in the post and figured if I could get that to work then I would try headunit reloaded again. I am still getting errors. Appreciate any help, thanks:

C:\hondahack\OneClick>oneclickinstall.bat 192.168.1.63 waze.apk

C:\hondahack\OneClick>.\bin\bash.exe .\OneClickInstall.sh 192.168.1.63 waze.apk

Usage: ./OneClickInstall.sh ipaddress My.apk

Example: ./OneClickInstall.sh 192.168.1.100 Waze.apk

Disconnecting other adb devices\n

* daemon not running. starting it now on port 5037 *

* daemon started successfully *

Connecting to 192.168.1.63\n

connected to 192.168.1.63:5555

Checking for root...

Rooted successfully!

Already rooted!

Okay, getting signature of waze.apk

Exception reading waze.apk

java.util.zip.ZipException: error in opening zip file

Signature:

Getting package information

W/zipro ( 4980): Error opening archive waze.apk: Invalid file

ERROR: dump failed because no AndroidManifest.xml found

Package name:

Retrieving current whitelist...

Preparing replacement whitelist

Okay - all set to replace the whitelist. Below are the final steps:

1. Backup existing whitelist to /data/local/tmp/

2. Upload whitelist to head unit

3. Reboot head unit

4. Install APK normally

Please review the below items carefully - if anything doesn't look right, ABORT

NOW!\n

Root status: rooted

APK signature NOT obtained (bad!)

Did not get package name (bad!)

Original whitelist.xml size seems okay

grep: (standard input): Not enough space

Package name is NOT present in new whitelist (bad!)

Would you like to proceed? (y/n):

n

Okay - aborting
[Android General] surface13:
Looks like you need to update Java. https://java.com/en/download/manual.jsp
[Android General] cward0625:
Installing other Java versions fixed it. However now with headunit reloaded installed, my rear hdmi in the rear entertainment for the Honda pilot is not working. When I do blu Ray it works, and I can get the audio of the hdmi input but no video like I had before. I am setting my audio source as hdmi video, and have pressed the rear power button as I normally do.

Has anybody had that issue? How do I uninstall or revert back to factory if needed to confirm this is the cause?

Also in using Android auto and headunit reloaded I found the navigation to be very slow and Android auto just closed mid navigation about 10 minutes in to our drive. I installed the latest version of AA and headunit reloaded. Is there a smoother or more stable version to use?

---------- Post added at 11:43 PM ---------- Previous post was at 11:07 PM ----------

disregard, I think when the transmission ATF warmer was repaired by Honda yesterday some settings got messed with as my rear hdmi in is working fine, I had to reset it in the home screen under rear audio, not just under the regular audio source input. I haven't had to do that since getting the car I guess.

So I do have Android Auto working via Headunit Reloaded, I am just experiencing the app working very slow however I have not used this app before in another car. I can't imagine this is normal. Even the navigation, I will make a turn and then 4-5 seconds later it will realize the turn is made. On just my phone the navigation is more accurate and not laggy like this. I tried waze as well as google maps for this on android auto and got similar results. The interface in general seems laggy. Are the additional updates that need to be done to make this run smoother?

Thanks
[Android General] surface13:
I install Torque Pro. It loads fine and I'm able to set a profile and it saves fine. The one problem I have is that the Bluetooth OBD2 tool doesn't connect to my HU. They see each other, attempt to connect, then promptly disconnects since it's not a phone. I wonder if there is a way to get the 2 connected to each other. Anyone have input or insight?

Other than VLC, what apps do you guys have installed that are useful? I already have AA working with Waze by default with the HU
[Android General] slider2828:
Hey Guys

I had also a old version of java. I fixed that but I think there are bad entries in my whitelist.xml

How do I reset and wipe my whitelist.xml or just reset.

I tried adb pulling the whitelist.xml but I can never get it to go. List adb pull /data/system/whitelist.xml c:

Any help please
[Android General] surface13:
[MENTION=2758989]slider2828[/MENTION] I had the same issue, and fixed it. Here is the post on what I did to fix it, just 5 or 6 posts higher than yours

https://xdaforums.com/showpost.php?p=74197892&postcount=633
[Android General] slider2828:
I don't have a copy of it.... I tried adb pulll but it wasn't work...... any help on that?
[Android General] surface13:
Use the one that is in the OneClick folder. It's the one that was pulled from your car
[Android General] slider2828:
Hey Surface,

Thank you so much for your help...

So here was what I screwed up on... I know enough linux to be dangerous... but not help myself.... ugh...

So I was issuing Adb shells and doing all the commands on the head unit... Stupid...

What I needed to do is do all the commands from my laptop and not adb shell INTO the headunit cause that resets all the time.

Secondly... to help EVERYONE out.... the left usb port is /mnt/usb3/ so you can do all your file copies and stuff there....

What I did also is not us the mv command to "move" the /mnt/usb3/whitelist.xml to /data/system/ but rather use cp instead.

Mv just moves the symbolic link, that means it forces the system to point to another file. What you want to do is keep those links and do a cp /data/system/

But once I found /mnt/usb3/ as the usb drive on the headunit, that symplified everything!

Thanks EVERYONE! and Surface13 for giving me some hints and stuff.
[Android General] ispofe:
Hi slider2828, I had the same problem with a messed up system/whitelist.xml file, editing and replacing the system file did not resolve my issue.

If you have ES explorer with root enabled, you can use that to pull and transfer the edited whitelist file to the system folder. If you don't, you need some adb + shell + SU commands to get it done.

It seems the way to go is do a factory reset of the HU, after putting back the ORIGINAL factory_reset.sh file back in the HU as /system/etc/factory_reset.sh and then reset the HU. This is what worked for surface13 and I.

Then start from scratch with the oneclickinstall file and all should be fine.

See the posts referenced above by surface13, if you need help with pushing the original factory_reset.sh to the HU.
[Android General] yb8438:
Thank Moe for mentioning Headunit Reloaded. I installed HUR and it works great on my 2016 Pilot. Overall the experience has been smooth and the interface is responsive. I had one force close but then it worked fine for about 40min. Glad I did not pay extra for 2017 model.
[Android General] slider2828:
I wish we could get it to remember defaults.... My wife would hate doing that everytime attaching the phone.....
[Android General] wpg_moe:
I'm slowly working on this, just haven't had the time to dedicate to it for the past week. I'll try and revisit soon... I know it has to do with the system being mounted RO.

If someone else has time this is what I'm working on:

The Android system keeps a list of the default applications/activities in a block in a file located at /data/system/users/0/package-restrictions.xml called as <preferred-activities></preferred-activities>

When you tell it to remember it would add the settings in that file. My theory is that since the partition is RO and the file can't be written to that is why the settings are not retained.

The approach is:

1. Backup the config file before we experiment.

2. Use adb to remount the partition to RW temporary while we attempt to save the preference.

3. Ensure file permission on the XML is world writable. (chmod). The file is owned by system:system. Take note of the previous permissions so we can return to normal.

4. Ensure that the directory is world writable and executable (we can restore the permissions later). Take note of the previous permissions so we can return them to normal later.

5. Plugin phone and go through the two pop-ups for Headunit reloaded. Checking remember my preference to force the save.

6. Observe any changes to the configuration file! Hopefully new values are added to the Headunit reloaded node in the XML.

7. Report back here with findings...

Anyone who has more time to experiment can try the above and let me know if they get it working. :)

Moe
[Android General] ga_114:
I also had nice experience with headunit reloaded except google play music. It will just play for few seconds and keeps pausing. Did anyone experience that?
[Android General] TWINTRBO:
So the consensus is HUR works well to Port over Android auto? I really want to install it and I'm already rooted but I don't want some laggy junk that will make me regret bothering.
[Android General] wpg_moe:
Mine works fine... it only stops music if it's running PRIOR to Headunit Reloaded starting Android Auto. I just hit play again and it continues on...

---------- Post added at 01:01 AM ---------- Previous post was at 12:55 AM ----------

It's worth using... I've switched from Waze to HUR. I now use Waze inside Android Auto on a daily basis while I listen to music over google play music. I take and make phone calls without any problems as well.

Make sure you're running the latest version of HUR from XDA Labs... Emil did an awesome job with this app. Worth every penny!

Check it out.. I doubt you'll be disappointed.

Moe
[Android General] DipRip:
i really wish someone could do a very clear step by step guide on how to root, get headunit reload working, and then android auto working. I was very close to buying a 2017 headunit just to get android auto/waze but i saw this and cannot figure it out.
[Android General] kaliathecrow:
Post #404 give clear details

Post #404 gives you very clear details.
[Android General] mezabx:
I tried the method in post # 404, I got near the end when you enter the script (OneClickInstall.bat 192.168.1.200 waze.apk) to root and install Waze, however I'm not sure if I did it right so I did not continue. According to the output it says I am

not

rooted.

See below for the output I am getting, is this right? Do I continue or stop and try something different?

Question #2: Post #404 is instructions on how to upload WAZE, however I want Android Auto. What do I do differently to upload Android Auto instead??

c:\hondahack\OneClick>.\bin\bash.exe .\OneClickInstall.sh 192.168.1.106 waze.apk

Usage: ./OneClickInstall.sh ipaddress My.apk

Example: ./OneClickInstall.sh 192.168.1.100 Waze.apk

Disconnecting other adb devices\n

Connecting to 192.168.1.106\n

connected to 192.168.1.106:5555

Checking for root...

No root yet, addressing the situation

Attempting to push payloads to /data/local/tmp/rootme\n

mkdir failed for /data/local/tmp/rootme, File exists

1 KB/s (60 bytes in 0.031s)

99 KB/s (10964 bytes in 0.108s)

10 KB/s (835 bytes in 0.079s)

56 KB/s (133472 bytes in 2.324s)

Exploiting dirtycow to replace factory_reset.sh with our own\n

warning: new file size (60) and file old size (1155) differ

size 1155

[*] mmap 0x4022a000

[*] exploit (patch)

[*] currently 0x4022a000=732f2123

[*] madvise = 0x4022a000 1155

[*] madvise = 0 1048576

[*] /proc/self/mem 1211105280 1048576

[*] exploited 0x4022a000=732f2123

Okay - should be all set, initiate factory reset and hope for the best!

Go to Home ->Settings->System->Factory Data Reset (scroll all the way down) and ititiate factory reset, press enter when unit has rebooted & reconnected to WiFi

y

Okay - checking for successfull root\n

unable to connect to 192.168.1.106:5555

error: device not found

.\OneClickInstall.sh: Hmm, didn't get root. Aborting further operations.: command not found
[Android General] slider2828:
Woah that is so weird. I never got anything like that.....

Did you download android sdk and install everything?

Did you download the latest Java?

I also used my cellphone hotspot to do everything through because the wifi in the headunit is really crappy if you are just outside your house.....

Let us know.

---------- Post added at 01:26 AM ---------- Previous post was at 01:25 AM ----------

I just gave it a try and I remounted /system. Also made sure that permission file is chmod 777.... Then did all the default device setting but it never kept. I wonder if I have to edit that permissions file manually? What do you think?

-Ken
[Android General] wpg_moe:
I tried my steps a few times a few days ago and also attempted with 777 but it didn't make a difference.

I learned that the system partition isn't where the users home directory lives, it was under /data which is mounted RW.

In the home directory I can see a USB filename created and updated each time you click on the "always open with" dialog box and click remember this setting.

It seems to write to the same file over and over again and writes the same values.

I believe the intent is to remember settings and on next reboot the system for some reason doesn't load in the values. The file is still there but for some reason it seems to be ignored.

Here is the file...

/data/local/tmp/usb_device_manager.xml:

<?xml version='1.0' encoding='utf-8' standalone='yes' ?>
<settings>
<preference package="gb.xxy.hr">
<usb-device vendor-id="6353" product-id="11520" class="0" subclass="0" protocol="0" />
</preference>
<preference package="gb.xxy.hr">
<usb-device vendor-id="6353" product-id="20193" class="0" subclass="0" protocol="0" />
</preference>
</settings>

Moe
[Android General] kaliathecrow:
Hi, I did go by the steps given with Win 7, Made sure all are into C:\Pilot\OneClick location including the bin folder. then C:\Pilot\OneClick> OneClickInstall.bat 192.168.1.200 waze.apk (Put in correct ip seen in car), made sure the apk is in same folder. Waze should be of version 4.2+ arm arch. I had issue in getting the keystore value. But rooting should come before that.
[Android General] christhegreek:
2018 Accord Marshmallow

Hi. I have read every single post now on this thread hoping to hear something about the 2018 Accord. I just purchased one and would like to side load Chrome and Waze.

Since no one has posted (prob. because its Pilot thread) I wanted to ask, can I use the same method of gaining root? I ask because my 2018 Accord came with Android 6.

As a side note, I was able to enable developer options immediately with no Honda password on the '18. It acts just like a phone EXCEPT the option to allow from unknown sources is greyed out.

Thanks.
[Android General] abacusHX:
Does the guide in #404 work for 2017 Pilot?

I am a bit late to the game. Does the guide work for 2017 Pilot without any change? How can I install Google Map on it? Thanks!
[Android General] bighamma:
VLC question

Is there a way when I start VLC that it will automatically switch to the correct audio output?
[Android General] elviso33:
I also just picked up my 2017 Pilot and while I don't need the AA or CP since the car has it, I would love to get rid of the cannot do stuff while driving and install a few apps. Do I understand correctly that if I use Oneclick and install ESFileExplorer to start, it will root, make the necessary changes to the white-list, install and get rid of the safety while driving block? I guess even before that I should backup the factory_reset.sh, correct? Lastly, if I install youtube, will it work if I have the phone connected to the android auto port or do I need to setup a hotspot with the phone and connect to it using the car's wifi?

Thanks

Elvis
[Android General] kruuth:
Guys, this is fantastic. I just got a 2017 Civic EX and was hoping it would work on there. Has someone done it? My main goal is to get Poweramp on there b/c I hate the built-in MP3 player.
[Android General] ispofe:
Hi Kruuth, the Civic head unit has also been rooted, see this post for the information if you have not already stumbled onto it.

https://xdaforums.com/android/general/guide-how-to-enter-developer-mode-2017-t3621582

They needed a different way to access the HU, and then used the jersacct hack to modify and install APPs.
[Android General] elviso33:
Dear All,

Does anyone have Sygic working off of a usb drive (mounted at /mnt/usb4 formated to FAT32)? I would like add all the maps but as we are aware the HU doesn't have enough space. I read that the platform.xml file could be modified to the following below so I did so uploaded it to /data/local/tmp, did chmod 777 and moved it to /system/etc/permissions/ folder. When I look at the file properties it remains at rwx and for root so it seems to be correct, however when I try to move the maps, etc from Sygic to the usb, the usb is not recognized and does not show as an option. Any help would be greatly appreciated.

<permission name="android.permission.READ_EXTERNAL_STORAGE" >

<group gid="sdcard_r" />

<group gid="media_rw" />

</permission>

<permission name="android.permission.WRITE_EXTERNAL_STORAGE" >

<group gid="sdcard_rw" />

<group gid="media_rw" />

</permission>
[Android General] krazyflipj:
Which version of Waze are people using?
[Android General] surface13:
Since AA started allowing Waze to be a 3rd party app, I have since stopped using the Waze on my HU. The version I was using was an older one. I know if you search this thread, you will find the newest version people are using, and the link to apkmirror, if I remember correctly.
[Android General] TWINTRBO:
Guys I keep getting this error, any ideas why? Ive already installed waze but I never have luck using the script, help!

C:\honda\OneClick>oneclickinstall.bat 192.168.43.226 head.apk

C:\honda\OneClick>.\bin\bash.exe .\OneClickInstall.sh 192.168.43.226 head.apk

Usage: ./OneClickInstall.sh ipaddress My.apk

Example: ./OneClickInstall.sh 192.168.1.100 Waze.apk

Disconnecting other adb devices\n

Connecting to 192.168.43.226\n

connected to 192.168.43.226:5555

Checking for root...

Rooted successfully!

Already rooted!

Okay, getting signature of head.apk

Signature: 3082040930820.........................a138fdb7

Getting package information

Package name: gb.xxy.hr

Retrieving current whitelist...

Preparing replacement whitelist

Okay - all set to replace the whitelist. Below are the final steps:

1. Backup existing whitelist to /data/local/tmp/

2. Upload whitelist to head unit

3. Reboot head unit

4. Install APK normally

Please review the below items carefully - if anything doesn't look right, ABORT NOW!\n

Root status: rooted

APK signature obtained

Have package name: gb.xxy.hr

Original whitelist.xml size seems okay

Package name is present in new whitelist

Would you like to proceed? (y/n):

y

Backing up whitelist to /data/local/tmp/whitelist-15-01-2018--12-32-14.xml

Uploading whitelist

237 KB/s (41687 bytes in 0.171s)

Rebooting head unit

Press enter when head unit has rebooted and is connected to WiFi

Issuing APK installation command - this may take a while depending on APK size

connected to 192.168.43.226:5555

171 KB/s (3665824 bytes in 20.886s)

pkg: /data/local/tmp/head.apk

Failure [INSTALL_FAILED_INTERNAL_ERROR]

All done - hope you enjoy!