Skip to content

Instantly share code, notes, and snippets.

@AbhayF8
Created March 14, 2022 18:24
Show Gist options
  • Save AbhayF8/5351340e6aac6fa4fcefefd0dfc79a7c to your computer and use it in GitHub Desktop.
Save AbhayF8/5351340e6aac6fa4fcefefd0dfc79a7c to your computer and use it in GitHub Desktop.
anbox audio lag and video playback fix
Image Part(Skip for vanilla anbox-image)
1. First clone the aur package that you want to have the audio lag fix.
git clone https://aur.archlinux.org/anbox-image-houdini-magisk-xposed.git
2. cd into that directory and download this android_amd64.img which has audio patch.
<https://github.com/T2hhbmEK/anbox-image-builder/releases>
wget https://github.com/T2hhbmEK/anbox-image-builder/releases/download/v2021.10.15/android_amd64.img
3. edit the PKGBUILD and paste the md5sum of android_amd64.img. And then create package using
makepkg
4. then install this image using
sudo pacman -U anbox-image*.pkg.tar.zst
anbox-git Part
1. clone the aur package anbox-git
git clone https://aur.archlinux.org/anbox-git.git
2. edit the PKGBUILD and do the following things
(i)In sources, 1st line, replace original anbox git link to forked anbox link with audio patch
(git+https://github.com/anbox/anbox.git -> git+https://github.com/T2hhbmEK/anbox.git)
(ii)In prepare function, add this command after cd line
git checkout niek
(iii)save and run
makepkg
3. Install the package using
sudo pacman -U anbox-git*.pkg.tar.zst
Done enjoy using Anbox
For vanilla anbox-image
1.Install any anbox-image and just replace the android.img in /var/lib/anbox with the one that u downloaded with audio patch. but first stop anbox-container-manager and start it again after u have copied the android_amd64.img
sudo systemctl stop anbox-container-manager
sudo cp android_amd64.img /var/lib/anbox/android.img
sudo systemctl start anbox-container-manager
Notes
1. To fully remove anbox run the following commands
sudo pacman -Rns anbox-git anbox-image-houdini-magisk-xposed
sudo systemctl stop anbox-container-manager
sudo rm -r /var/lib/anbox
Source
1. https://github.com/anbox/anbox/pull/1034#issuecomment-944234164
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment