This is GRUB Configuration for Android on PC detection for Linux
Works with Android x86, not tested with ARM ROM like PrimeOS, LineageOS,...
yay -S grub-android-prober
# or
paru -S grub-android-prober
# or
pamac install grub-android-prober
# or any aur helper you got
Alternatively, you can use the following method for distros that don't have official package
Make sure you have superuser permission (sudo su
or doas su
) and /usr/local/bin is in your $PATH
wget -O /etc/grub.d/30_android-prober https://github.com/shadichy/grub-android-x86/raw/master/30_android-prober
wget -O /usr/local/bin/grub-android-prober https://github.com/shadichy/grub-android-x86/raw/master/grub-android-prober
chmod +x /etc/grub.d/30_android-prober /usr/local/bin/grub-android-prober
Or with curl
curl -Lo /etc/grub.d/30_android-prober https://github.com/shadichy/grub-android-x86/raw/master/30_android-prober
curl -Lo /usr/local/bin/grub-android-prober https://github.com/shadichy/grub-android-x86/raw/master/grub-android-prober
chmod +x /etc/grub.d/30_android-prober /usr/local/bin/grub-android-prober
These are configurations of grub-android-prober .
Those can be set in either /etc/defaults/grub
or /etc/grub-android.conf
Default values are in file grub-android-prober
Specify which filesystems contains Android or the ones this program will try to search for Android on
Note: by default, Android initramfs don't support btrfs and some other filesystems, but BlissOS does support btrfs
GRUB_ANDROID_SUPPORTED_FS="ext2 ext3 ext4 vfat exfat ntfs"
Specify which paths will be excluded during search
Note: path must start with a slash, and be separated by "," (comma) ending slashes are not needed
GRUB_ANDROID_EXCLUDE_SEARCH="/bin,/boot/efi,/dev,/lib,/lib64,/proc,/run,/sbin,/sys,/tmp"
Specify which files/folders will be search for/detecting
GRUB_ANDROID_SEARCH="system system.img system.sfs system_a.img"
Specify max recursive directory search limit
GRUB_ANDROID_SEARCH_DEPTH=5
First clone the repository
git clone https://github.com/shadichy/grub-android-x86
cd ./grub-android-x86
makepkg -si
dpkg-buildpackage