yashsingh1/xdaforums huggingface dataset:
[Android General] cebailey:
I'm trying to get this working on a 2020 Ridgeline. I wrote up an explanation in the Civic thread:

https://xdaforums.com/t/guide-how-t...ic-and-now-root-install-apps.3621582/page-160

TLDR: Has anyone gotten a 2019 or 2020 Ridgeline into USB Device Mode somehow?
[Android General] tribuno80:
Any news with the root?
[Android General] zaooza:
Does anybody know how to enter "USB role settings" on 2018 Pilot HU? I hold "Home" button being in dev menu (serial, fan settings, etc), but nothing happens. Other buttons and their combinations don't work either. I want to change usb role from Host to device to be able to run HondaHack tool or enter adb.
[Android General] rayyesboulous:
I installed honda hack and was able to install autokit from install online but it's from 2019.. i tried to install the newest apk but always have failure. The app is not recognizing my carlinket at all might that be the apk? Which apk u r using?
[Android General] lucky_lucyan:
I changed the wheels and I get an error on the TPMS board. I used to be able to reset the TPMS, but now I have an android unit.

Does anyone know how to reset or disable the TPMS on the Honda Civic 2019?

Thanks!
[Android General] lucky_lucyan:
I have honda hack but it doesn't work on android.
[Android General] ericlus15:
Thanks for the info. I just found the part number and will order one when anekin confirms it works. Does anyone know how do we program the vin into the new black box. I know the radio checks for the correct vin when turned on.
[Android General] bornwilder:
Hi guys, i too have been searching high and low for a solution to this player lock issue. I am too quite a avid rom flasher for my mobile but i know peanuts about programming. After reading threads after threads i think maybe we can unlock the player if somebody can create a kernel with root access preloaded. Again sorry if i said anything silly.
[Android General] purespin:
I think this is the breakthrough that everyone is waiting for:

[YOUTUBE]tvszWtxXpAI[/YOUTUBE]

[YOUTUBE]mwGEX2Y-vHw[/YOUTUBE]

I will post all the info tonight after work :)
[Android General] enyce9:
You sir, are the man!???
[Android General] TWINTRBO:
Wow! This is amazing news! I'm assuming Waze is using a tether to a phone for data connection?
[Android General] jersacct:
I've been spamming refresh for hours.......duuuuuuuuuuude. Give us your secrets :).
[Android General] enyce9:
Second this
[Android General] purespin:
Sorry Jersacct! Just posted it :)
[Android General] jersacct:
So fantastic. I was going to go in another direction when I got more time over the Xmas break. Glad you figured out the signature check!

I'll look into ways to use USB storage to expand APK installation space - likely some custom scripts can be used to bind mount extra storage in the system partition.

Great work, many thanks!!!
[Android General] moralesd66:
Awesome work gents. No need for Carplay/AA now if I can stream Kodi[emoji12] . This is sick!
[Android General] bornwilder:
Wow.... really great news. But seems like really complicated. Hopefully soon there will be a much more simple way to get it done. Fingers crossed
[Android General] jersacct:
To you and others concerned about complexity:

Would it be beneficial to have a script (Linux script or Windows batch file) that takes an input of APK to be installed, and the script makes the whitelist modifications accordingly and installs the desired APK? I anticipate this to be a straightforward process.

Script inputs: IP address of device, APK to install

Steps:

Connect to device over ADB

Check for root (can install root here if needed)

Create backup of current whitelist

Download current whitelist

Identify signature & permissions of APK to be installed

Modify whitelist appropriately

Copy new whitelist to device

Reboot device

Wait for device to reconnect

Issue install command to install new APK

Thoughts? I may be able to work on this over the next few days to make rooting & APK installation a simpler process.

Thanks again to purespin - really great work here.
[Android General] bornwilder:
I think that would help a lot and would have a higher success rate if everything is compiled into a zip file. Something like chainfire's 1 click root zip. Thanks jersacct
[Android General] enyce9:
That would be greatly appreciated
[Android General] timaelabu:
less complex a script would be great.

being a iphone user i need to find out how to aquire waze, etc apks.

thank you purespin and Jesseract.
[Android General] purespin:
Hi Jersacct,

All my USB sticks are mounted as these:

d---rwxr-x system media_rw 1969-12-31 16:00 usb4

looks like it is mounted as rw:

/dev/block/vold/8:1 /mnt/usb4 vfat rw,dirsync,relatime,uid=1000,gid=1023,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0

But none of the apps can write to the USB, except the "rooted" ES File Explorer. Any idea how to fix this?
[Android General] jersacct:
Easy rooter/installer

I'll update the main post as well, but I've attached scripts that I hope will serve to make the entire process a bit easier. That said, be careful, use these at your own risk, etc.

Extract zip file to some folder then open up a command prompt in that folder. Also drop the APKs you wish to install to that folder.

Type OnceClickInstall.bat [YourHeadUnitIP] [APKToInstall.apk]

The script will root your device if it's not already, then go ahead and perform steps necessary to install the APK (one reboot required if already rooted).

This basically performs the steps described in purespin's post to get a signature of the APK, download and modify the whitelist XML file, upload it back, reboot, then install the APK.

There's one prompt in the script that asks you too look things over - pay attention here, if any issues crop up at this point damage can be avoided, continuing in a bad state will have undefined results.

I'll look into using some USB storage to expand our room as I find the time.

Cheers!

Edit - removed attachment from this post, see attachment in first post.
[Android General] jersacct:
I might get some time to play with this tonight, but my thought would be to do what's called a bind mount to transparently grow the /data partition onto a USB flash drive. Some reading here:

http://android.stackexchange.com/questions/38263/mount-a-folder-from-external-sd-as-data

I'd plan on looking to do something less permanent than moving all of /data off the internal storage.
[Android General] purespin:
Wow! That's really quick! Really amazing shell scripting skills!!!

I will check it out! Thx!
[Android General] enyce9:
will this make a backup of the original whitelist xml?

and if so what will it do if you run it for a second time?

will it backup the modified xml file from first run?

My concern is I would like to have a backup of the original xml file available
[Android General] purespin:
It probably doesn't backup the original whitelist but it can be easily added to the script.

Anway, here is the original whitelist file.
[Android General] jersacct:
I forgot to make an on-device backup, but you can retrieve your original whitelist after first run of this script. It downloads "whitelist.xml" from /data/system, then creates a whitelist-new.xml which is then uploaded and copied over, so the original "whitelist.xml" file can be saved off if you like.
[Android General] enyce9:
Thanks, appreciate it. Only one problem, I own a 2017 Ridgeline..... The head units are almost identical. I also have a feeling other Ridgeline owners will stumble across this thread....
[Android General] TWINTRBO:
Looks like I'm going to have to refresh on my rooting skills and be super careful here.

Not sure anyone answered yet, can we install apps at this point that need data to operate like gas buddy, slacker, etc...?
[Android General] jersacct:
You can tether the head unit to your phone if your phone supports it (as in your phone is sharing it's data connection over a WiFi hot spot).
[Android General] TWINTRBO:
You guys are awesome, seriously. I'm going to give it a while for those that know to field test this and then I'm going for it :)
[Android General] enyce9:
So if I understand you correctly, the script saves a copy on your computer in the folder with the script?
[Android General] jersacct:
Correct, though each run of the script downloads another copy, so it's a fresh file only on the first run.
[Android General] enyce9:
Gotcha, thanks. I'm very tempted to try this right now......
[Android General] ammarbukhari:
Just a quick Question. This means that we can now install Google Maps on our Honda Pilot 2016. And it will work too. And what about making our android phones connect to the head unit to make Android Auto work. Is that possible too
[Android General] jersacct:
I haven't tried installing Google Maps, but it may be possible. Likely it's going to require Google Play Services to get installed, plus maybe some other stuff, so I'm not sure of the work required there. Waze installs & works just fine.

For AA, there's some software required to run on the head unit. I've seen some mentions of AA and CarPlay in some of the decompiled system stuff, not sure yet if it's something that can be switched on, or if we just need to use something like this:

http://xdaforums.com/general/paid-software/android-4-1-headunit-android-auto-t3125252

Also, purespin pointed out that I wasn't correctly handling APKs with more than one signature. I've updated the attachment on the main post to correct that and produce backups of the whitelist on each run. I deleted the attachment from a few posts back and will only be updating the first post as required. Thanks purespin!
[Android General] enyce9:
Dont know whats wrong but not working......

Edit: I did not have adb in the same folder as the script...

could that be the problem?

ridgeline Files\root script and apk installer\OneClick-11-27-2016\OneClick>.\bin\bash.exe .\OneClickInstall.sh 192.168.1.36 Sirius.apk

Usage: ./OneClickInstall.sh ipaddress My.apk

Example: ./OneClickInstall.sh 192.168.1.100 Waze.apk

Disconnecting other adb devices\n

.\OneClickInstall.sh: adb: command not found

Connecting to 192.168.1.36\n

.\OneClickInstall.sh: adb: command not found

Checking for root...

.\check_root.sh: adb: command not found

No root yet, addressing the situation

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

.\OneClickInstall.sh: adb: command not found

.\OneClickInstall.sh: adb: command not found

.\OneClickInstall.sh: adb: command not found

.\OneClickInstall.sh: adb: command not found

.\OneClickInstall.sh: adb: command not found

.\OneClickInstall.sh: adb: command not found

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

.\OneClickInstall.sh: adb: command not found

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
[Android General] jersacct:
Yep - these scripts assume you have a working ADB installation, as well as an up to date Java runtime for APK installation stuff.
[Android General] wpg_moe:
Thank you so much everyone!

I ran this last night and successfully rooted and installed waze on my head unit. I did notice that waze didn't have any audio when I installed with the OneClick script and that must be due to the "<controlData>" block used in the OneClickInstal.sh

<controlData>
<withAudio>without</withAudio>
<audioStreamType>null</audioStreamType>
<regulation>null</regulation>
<revert>no</revert>
</controlData>

I had to use the "<controlData"> which was used earlier in the thread to get audio working with Waze AND set waze to use "phone's speaker" in the configuration.

<controlData>
<withAudio>with</withAudio>
<audioStreamType>STREAM_ADA_GUIDE</audioStreamType>
<regulation>null</regulation>
<revert>yes</revert>
</controlData>

A few problems with Waze.. The audio was pretty low so I found myself upping the volume to a much higher value to hear what was being said. Waze's audio isn't mixed with any other audio source (XM, BT, etc) are stopped when Waze runs when using the code above.

I'll try and keep testing today to see if I can figure something out.

On the AndroidAuto front I notice that AA v2.0 is Android 5+ only so I don't think we can install the APK on the head unit as it's Android 4.x. I had purchased HeadUnit Reloaded before AndroidAuto was updated to work without a compatible car. I installed the HeadUnit Reloaded app on my headunit in hopes that I can get AA to run on my phone and send it's display to the headunit via Wifi. I only tested this for about 10-15min last night and couldn't get it to work. I'll test again some more today.

I haven't installed GoogleMaps on the HeadUnit but that sounds like a good idea - I'll try and test it later. If someone gets around to doing this before me please post your results! :)

Once again, thanks SO SO MUCH to everyone in this thread - this has breathed new life into my 2016 Pilot! I can't thank you all enough!

Moe
[Android General] enyce9:
gotcha thanks

i am going to pull the abd files from this thread and insert them into the script folder

http://xdaforums.com/showthread.php?t=2317790
[Android General] wpg_moe:
Yeah, I installed JDK 8.x on my laptop and had to copy over "adb.exe" and "AdbWinApi.dll" over to the extracted OneClick.zip folder (extracted from the zipfile uploaded earlier in this thread).

The OneClick script seemed to get stuck on the Waze.apk I was using. It showed the Waze.apk signature and was getting stuck on the getting permissions (aapt). I'm not sure why because I can run the aapt command manually and it works fine with that APK.

In any case I didn't wait around for the script to return so I CTRL-C and terminated it. I edited the "whilelist-new.xml" manually (to make sure it was correct), uploaded the "whitelist-new.xml", rebooted the HeadUnit and installed the APK all by using the ADB commands provided in the "OneClickInstall.sh" script.

Clearly the above approach is only for people that know what they are doing and are really careful. I'm not too sure why the script hung for me... I'll do some more testing when time permits.

Moe
[Android General] bornwilder:
Great stuff guys. A lot of development is such short time. However i am unable to try it out as i do not know how to mess around in adb side load. I did try to catch up here but i feel that i am missing a few steps. Do i have to put our player into some kind of download mode or recovery mode to proceed? And [MENTION=3242718]jersacct[/MENTION] u mentioned something about our device ip? Where do i locate that?

Hopefully really soon 1 of u guys can make a video walk-through for the rest of us (i hope i am not the only one here who is lost):confused:

Again thanks guys and really great work.
[Android General] wpg_moe:
[MENTION=3242718]jersacct[/MENTION] perhaps we should start a GitHub project where people can download the latest working scripts, dependencies and instructions?

That way we can all contribute to it and it would be a single goto location for the latest approach.

Moe
[Android General] ammarbukhari:
Just go to the Settings->BT/WIF->wifi information

you will get the ip of your HU

---------- Post added at 10:27 PM ---------- Previous post was at 10:23 PM ----------

D:\OneClick>o 192.168.43.44 waze.apk

D:\OneClick>.\bin\bash.exe .\OneClickInstall.sh 192.168.43.44 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.43.44\n

connected to 192.168.43.44:5555

Checking for root...

Rooted successfully!

Already rooted!

Okay, getting signature of waze.apk

Signature: a lot jibberish here

Getting package information <- Stuck here

What am i missing on this. I am trying to install WAZE. Can any guide or help.
[Android General] TWINTRBO:
No, you're not lol. I'm waiting for it all to calm down and then I'll figure out what I need to do to get where I want to be. Once the pros figure out what to do they can explain it to this dummy :)
[Android General] wpg_moe:
Mine was stuck in the same spot. I had to manually add Waze to the whitelist XML an send it to the head unit, reboot and then install the APK afterwards. Im not sure why it hangs there...
[Android General] wpg_moe:
Well I just tested Waze on a ride and it works great. I was wrong about the audio volume issue. Do NOT configure Waze to use "phone's speaker". It works just fine with the default setting.

I can't play SXM, FM or BT music while Waze is running however.

Moe
[Android General] ericlus15:
Great job guys , I just installed waze and it works. Is there anyone that can create a whitelist file with signatures for google music app and tune in radio and post it here or just the signatures and I'll post it into the whitelist file. I don't know how to obtain the signatures for the apk. Thank you

---------- Post added at 09:35 PM ---------- Previous post was at 09:07 PM ----------

Same I can't play music from FM, satelite, BT, usb drive when waze is running. Is there anyway to change that? Thanks
[Android General] enyce9:
cant get past this step. unit does not reboot

.

.

D:\Dropbox\Ridgeline Files\root script and apk installer\OneClick-11-27-2016\OneClick>.\bin\bash.exe .\OneClickInstall.sh 192.168.1.36 sirius.apk

Usage: ./OneClickInstall.sh ipaddress My.apk

Example: ./OneClickInstall.sh 192.168.1.100 Waze.apk

Disconnecting other adb devices\n

disconnected everything

Connecting to 192.168.1.36\n

connected to 192.168.1.36:5555

Checking for root...

Rooted successfully!

Already rooted!

Okay, getting signature of sirius.apk

Signature: 308201f33082015ca00302010202044bec4d80300d06092a864886f70d0101050500303e310b3009060355040813024f4e3110300e06035504071307546f726f6e746f311d301b060355040a1314517569636b506c6179204d6564696120496e632e301e170d3130303531333139303533365a170d3335303530373139303533365a303e310b3009060355040813024f4e3110300e06035504071307546f726f6e746f311d301b060355040a1314517569636b506c6179204d6564696120496e632e30819f300d06092a864886f70d010101050003818d0030818902818100843b31b8e1d5cc634120f4fff51e426354e15bf13a3d3b1bda4dad2796a90fb10403f0173a2a9bf9dd212a052b73d02ea97a990d8be05ce0bdb2b42d5a7804193499cfaa3ec0b1789136c6e826accf375a1fff197f450819742bd48344882f53b18d562a17723cd4784694280abc82b640b0f940d5e0198103db81bad4a374a50203010001300d06092a864886f70d010105050003818100053e87b2997e5714e92a552d097b3b81c005da97f822cdc1a4fd7605ff1025210913c53e63b518e758d4f9570bb8571b6cf35f85793f7b28945273c90b447fab5203548611ccae849e181143a84e0b6acf8f76b59da4b651887a7a83896af5247386eace83f87c0b561c272832f271f2439ded57ba524a36c72276b8d8675c43

Getting package information

Package name: com.sirius

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 obtained

Have package name: com.sirius

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-27-11-2016--17-08-30.xml

Uploading whitelist

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

Rebooting head unit

Press enter when head unit has rebooted and is connected to WiFi
[Android General] krazyflipj:
i'm going to try this on my Accord. Anyone know how to do so with a Mac?
[Android General] wpg_moe:
I'm hoping it has to do with the <audioStreamType>. Anyone know what the other types are? And what does "regulation" and "revert" do?

<controlData>
<withAudio>with</withAudio>
<audioStreamType>STREAM_ADA_GUIDE</audioStreamType>
<regulation>null</regulation>
<revert>yes</revert>
</controlData>
[Android General] ericlus15:
I was able to install tunein radio, iheart radio and pandora and all 3 play when using waze. I even installed google maps 9.0 which works without google play services but I can't pull any of my favorite locations but radio plays in the background when using google maps. So far I'm loving this ability to install apps but now I am running out of space.
[Android General] enyce9:
Regulation null means there is no regulations when the app can function. In the whitelist there are speed regulations and park regulations. Meaning the app will only function when in park. Not sure what speed does

---------- Post added at 09:02 PM ---------- Previous post was at 08:59 PM ----------

Can anyone clue me in as to why I'm getting this error at the end of the script.

Uploading whitelist

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

Rebooting head unit

Press enter when head unit has rebooted and is connected to WiFi
[Android General] wpg_moe:
Interesting... I wonder if Google Play Music works with Waze? :)
[Android General] jersacct:
Cheers - GitHub project set up and linked to in the first post.

https://github.com/jersacct/2016PilotOneClick.git

I'll also add for those experiencing problems - these do assume that you have the Android Software Development Kit installed. That could likely be the problem resulting in hanging on "Getting Package Information". I did include the "aapt" executable in the bin directory, but it may not be getting pulled in for some reason.
[Android General] enyce9:
I don't think anyone has asked this question yet. How can we return to factory from this point?....