Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KSXGitHub/f79c00af0855ef312203d2b3988dfa9a to your computer and use it in GitHub Desktop.
Save KSXGitHub/f79c00af0855ef312203d2b3988dfa9a to your computer and use it in GitHub Desktop.
notes: How to create best experience with SmartTube on Android x86 virtualization on virt-manager on Linux

Prerequisites

  • Host OS: Linux
  • Program: virt-manager
  • Intel Virtualization Technology (to enable OpenGL for good framerate)

OpenGL for good FPS

  1. Enable Intel Virtualization Technology in the BIOS.
  2. Add intel_iommu=on iommu=pt to your kernel parameters (of the host OS).
  3. Set Video QXL -> Video -> Model from QXL to Virtio. Skip this step if Video Virtio already exists.
  4. Set Display Spice -> Listen type to None.
  5. Enable Display Spice -> OpenGL, and change to dropbox under from Auto to the name of your GPU.

Native resolution

Assuming your monitor is 1920x1080.

  1. Boot into Android debug mode.
  2. Mount the boot partition (could be /dev/sda1 or /dev/vda1 or something else) to /mnt (don't worry if /mnt already have files).
  3. Use vi to open /mnt/boot/efi/android.cfg.
  4. Add set gfxpayload=1920x1080 to the load_theme function, under the set gfxmode command.
  5. Change set gfxmode={whatever} to set gfxmode=1920x1080.
  6. Save the android.cfg file, unmount /mnt, and then shutdown by poweroff -f.

Small quality of life tweaks

  • Wallpaper: Most wallpaper apps for Android assume potrait screen and crop your beautiful 1920x1080 landscape wallpaper, which lead you seeing only a blurred corner in the main screen. Except one app named Slideshow Wallpaper.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment