Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save nicholaschum/3786acce42750971449c7d5fa73176a1 to your computer and use it in GitHub Desktop.
Save nicholaschum/3786acce42750971449c7d5fa73176a1 to your computer and use it in GitHub Desktop.

ADB Commands for USB Sound Card/DAC Installations.

If you do not have ADB downloaded and installed: https://dl.google.com/android/repository/platform-tools-latest-windows.zip

After downloading, hold down Shift and Right Click inside the folder (any blank spot) and click Open PowerShell window here.

Please note: After typing adb on each command, press Tab if your PowerShell is erroring out to complete the execution step, and then type the rest of the command.

You will have to connect your screen to a Wifi source, and a computer to the same Wifi source. Obtain the IP from Settings -> Wifi -> YOUR WIFI NAME -> Advanced -> IP Address

adb connect IP:5555
adb root
adb disable-verity
adb reboot

adb connect IP:5555
adb root
adb remount
adb pull /system/build.prop

Edit your build.prop using Notepad++, then paste this at the very bottom.

# Safe Media Bypass for External USB Sound Cards
audio.safemedia.bypass=true

This allows the Safe Media Bypass warning adjustment to disable resetting your volume from 100% to 30% when your screen reboots.

Save your changes.

Push your modified build.prop back into the device

adb push build.prop /storage/emulated/0/
adb shell
mv /storage/emulated/0/build.prop /system/build.prop
chmod 644 /system/build.prop
reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment