Skip to content

Instantly share code, notes, and snippets.

@crbyxwpzfl
Last active October 24, 2022 16:22
Show Gist options
  • Save crbyxwpzfl/be27c7fed20ab80ff55f62b68a95fbbc to your computer and use it in GitHub Desktop.
Save crbyxwpzfl/be27c7fed20ab80ff55f62b68a95fbbc to your computer and use it in GitHub Desktop.
virtualbox compact-bigsur-vdi android-custom-resolution

COMPACT BIGSUR VDI

  1. run this in terminal of virtual bigSur but change bs (blocksize in bits) and count (anzahl der zu schreibenden blöcke) to specify the amount of free space you want to Release dd if=/dev/zero of=file.of.zeros bs=67108864 count=1250
  2. shutdown the vm
  3. run this in comand promt VBoxManage modifymedium --compact "path\to\bigSur.vdi"
    (4. optional leave files.of.zero to prevent bigsur to reclaim the space)

This comment was very helpful for me.

ADD CUSTOM RESOLUTION (for android 9 only 32bit depth works)

"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" setextradata "android" "CustomVideoMode1" "360x640x32"

VERIVY THAT VIDEOMODE WAS ACAPTED

e (in boot menue)
e (to edit boot cmd)
vga=ask (append)
ESC
b (to boot)
ENTER (to view res options)
remeber hex video moode value (here 360)

SET RES PERMANTLY

debug mode
mount -o remount,rw /mnt
cd /mnt/grub
vi menu.lst
i (insert mode)
vga=(deciaml video mode value here 864)
ESC (exit insert mode)
:w (write)
:x (exit)
reboot -f

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment