Skip to content

Commit

Permalink
[bass] update bootloader info
Browse files Browse the repository at this point in the history
  • Loading branch information
electrikjesus committed Jan 16, 2025
1 parent 3b72bfc commit 1dc62c0
Showing 1 changed file with 71 additions and 2 deletions.
73 changes: 71 additions & 2 deletions src/scripts/10_blissos
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ set -e
export TEXTDOMAIN=grub
export TEXTDOMAINDIR="${datarootdir}/locale"

CLASS="--class blissos --class android --class os"
CLASS="--class bassos --class android --class os"
OS="Android"
TITLE="BlissOS $(grep 'ro.bliss.version=' /system/build.prop | awk -F'=' '{print $2}')"
TITLE="BassOS a14 $(grep 'ro.bliss.version=' /system/build.prop | awk -F'=' '{print $2}')"

ADVANCED_ARGS=(
"Debug mode: DEBUG=2 androidboot.enable_console=1"
Expand All @@ -45,6 +45,47 @@ RECOVERY_ARGS=(
"BGRX_8888 color mode: androidboot.pixel_format=BGRX_8888"
)

DESKTOP_ARGS=(
""
"multi-display DesktopUI: splash=silent,fadein,fadeout logo androidboot.force.win_as_home=1 androidboot.bliss.window.animation.scale=0.1 HYBRID_PC_MODE=1 SETUPWIZARD=0 FFMPEG_OMX_CODEC=1 FFMPEG_CODEC2_PREFER=1 CODEC2_LEVEL=4 FORCE_DISABLE_NAV_HANDLE=1 loglevel=0 console=tty6 FORCE_DESKTOP_ON_EXTERNAL=1 PC_MODE=1"
"multi-display navigation & DesktopUI: splash=silent,fadein,fadeout logo androidboot.force.win_as_home=1 androidboot.bliss.window.animation.scale=0.1 HYBRID_PC_MODE=1 SETUPWIZARD=0 FFMPEG_OMX_CODEC=1 FFMPEG_CODEC2_PREFER=1 CODEC2_LEVEL=4 FORCE_DISABLE_NAV_HANDLE=1 loglevel=0 console=tty6 FORCE_DESKTOP_ON_EXTERNAL=1 FORCE_NAVBAR_ON_SECONDARY_DISPLAYS=1 PC_MODE=1"
"multi-display mouse, navigation & DesktopUI: splash=silent,fadein,fadeout logo androidboot.force.win_as_home=1 androidboot.bliss.window.animation.scale=0.1 HYBRID_PC_MODE=1 SETUPWIZARD=0 FFMPEG_OMX_CODEC=1 FFMPEG_CODEC2_PREFER=1 CODEC2_LEVEL=4 FORCE_DISABLE_NAV_HANDLE=1 loglevel=0 console=tty6 FORCE_DESKTOP_ON_EXTERNAL=1 FORCE_NAVBAR_ON_SECONDARY_DISPLAYS=1 FORCE_MOUSE_PRESENTATION=1 PC_MODE=1"
"multi-display IME & DesktopUI: splash=silent,fadein,fadeout logo androidboot.force.win_as_home=1 androidboot.bliss.window.animation.scale=0.1 HYBRID_PC_MODE=1 SETUPWIZARD=0 FFMPEG_OMX_CODEC=1 FFMPEG_CODEC2_PREFER=1 CODEC2_LEVEL=4 FORCE_DISABLE_NAV_HANDLE=1 loglevel=0 console=tty6 FORCE_DESKTOP_ON_EXTERNAL=1 FORCE_IME_ON_SECONDARY_DISPLAYS=1 PC_MODE=1"
"multi-display navigation, IME & DesktopUI: splash=silent,fadein,fadeout logo androidboot.force.win_as_home=1 androidboot.bliss.window.animation.scale=0.1 HYBRID_PC_MODE=1 SETUPWIZARD=0 FFMPEG_OMX_CODEC=1 FFMPEG_CODEC2_PREFER=1 CODEC2_LEVEL=4 FORCE_DISABLE_NAV_HANDLE=1 loglevel=0 console=tty6 FORCE_DESKTOP_ON_EXTERNAL=1 FORCE_NAVBAR_ON_SECONDARY_DISPLAYS=1 FORCE_IME_ON_SECONDARY_DISPLAYS=1 PC_MODE=1"
"multi-display mouse, navigation, IME & DesktopUI: splash=silent,fadein,fadeout logo androidboot.force.win_as_home=1 androidboot.bliss.window.animation.scale=0.1 HYBRID_PC_MODE=1 SETUPWIZARD=0 FFMPEG_OMX_CODEC=1 FFMPEG_CODEC2_PREFER=1 CODEC2_LEVEL=4 FORCE_DISABLE_NAV_HANDLE=1 loglevel=0 console=tty6 FORCE_DESKTOP_ON_EXTERNAL=1 FORCE_NAVBAR_ON_SECONDARY_DISPLAYS=1 FORCE_IME_ON_SECONDARY_DISPLAYS=1 FORCE_MOUSE_PRESENTATION=1 PC_MODE=1"
)

HYBRID_DESKTOP_ARGS=(
""
"multi-display DesktopUI: splash=silent,fadein,fadeout logo androidboot.force.win_as_home=1 androidboot.bliss.window.animation.scale=0.1 HYBRID_PC_MODE=1 SETUPWIZARD=0 FFMPEG_OMX_CODEC=1 FFMPEG_CODEC2_PREFER=1 CODEC2_LEVEL=4 FORCE_DISABLE_NAV_HANDLE=1 loglevel=0 console=tty6 FORCE_DESKTOP_ON_EXTERNAL=1"
"multi-display navigation & DesktopUI: splash=silent,fadein,fadeout logo androidboot.force.win_as_home=1 androidboot.bliss.window.animation.scale=0.1 HYBRID_PC_MODE=1 SETUPWIZARD=0 FFMPEG_OMX_CODEC=1 FFMPEG_CODEC2_PREFER=1 CODEC2_LEVEL=4 FORCE_DISABLE_NAV_HANDLE=1 loglevel=0 console=tty6 FORCE_DESKTOP_ON_EXTERNAL=1 FORCE_NAVBAR_ON_SECONDARY_DISPLAYS=1"
"multi-display mouse, navigation & DesktopUI: splash=silent,fadein,fadeout logo androidboot.force.win_as_home=1 androidboot.bliss.window.animation.scale=0.1 HYBRID_PC_MODE=1 SETUPWIZARD=0 FFMPEG_OMX_CODEC=1 FFMPEG_CODEC2_PREFER=1 CODEC2_LEVEL=4 FORCE_DISABLE_NAV_HANDLE=1 loglevel=0 console=tty6 FORCE_DESKTOP_ON_EXTERNAL=1 FORCE_NAVBAR_ON_SECONDARY_DISPLAYS=1 FORCE_MOUSE_PRESENTATION=1"
"multi-display IME & DesktopUI: splash=silent,fadein,fadeout logo androidboot.force.win_as_home=1 androidboot.bliss.window.animation.scale=0.1 HYBRID_PC_MODE=1 SETUPWIZARD=0 FFMPEG_OMX_CODEC=1 FFMPEG_CODEC2_PREFER=1 CODEC2_LEVEL=4 FORCE_DISABLE_NAV_HANDLE=1 loglevel=0 console=tty6 FORCE_DESKTOP_ON_EXTERNAL=1 FORCE_IME_ON_SECONDARY_DISPLAYS=1"
"multi-display navigation, IME & DesktopUI: splash=silent,fadein,fadeout logo androidboot.force.win_as_home=1 androidboot.bliss.window.animation.scale=0.1 HYBRID_PC_MODE=1 SETUPWIZARD=0 FFMPEG_OMX_CODEC=1 FFMPEG_CODEC2_PREFER=1 CODEC2_LEVEL=4 FORCE_DISABLE_NAV_HANDLE=1 loglevel=0 console=tty6 FORCE_DESKTOP_ON_EXTERNAL=1 FORCE_NAVBAR_ON_SECONDARY_DISPLAYS=1 FORCE_IME_ON_SECONDARY_DISPLAYS=1"
"multi-display mouse, navigation, IME & DesktopUI: splash=silent,fadein,fadeout logo androidboot.force.win_as_home=1 androidboot.bliss.window.animation.scale=0.1 HYBRID_PC_MODE=1 SETUPWIZARD=0 FFMPEG_OMX_CODEC=1 FFMPEG_CODEC2_PREFER=1 CODEC2_LEVEL=4 FORCE_DISABLE_NAV_HANDLE=1 loglevel=0 console=tty6 FORCE_DESKTOP_ON_EXTERNAL=1 FORCE_NAVBAR_ON_SECONDARY_DISPLAYS=1 FORCE_IME_ON_SECONDARY_DISPLAYS=1 FORCE_MOUSE_PRESENTATION=1"
)

RESTRICTED_LOCKDOWN_ARGS=(
""
"Single display: splash=silent,fadein,fadeout logo FORCE_DISABLE_NAVIGATION=false FORCE_DISABLE_NAV_HANDLE=false FORCE_DISABLE_NAV_TASKBAR=false FORCE_DESKTOP_ON_EXTERNAL=0 FORCE_NAVBAR_ON_SECONDARY_DISPLAYS=0 FFMPEG_OMX_CODEC=1 FFMPEG_CODEC2_PREFER=1 androidboot.bliss.bootmode=lockdown loglevel=0 console=tty6"
"Multi display with Primary Touch: splash=silent,fadein,fadeout logo FORCE_DISABLE_NAVIGATION=false FORCE_DISABLE_NAV_HANDLE=false FORCE_DISABLE_NAV_TASKBAR=false FORCE_DESKTOP_ON_EXTERNAL=0 FORCE_NAVBAR_ON_SECONDARY_DISPLAYS=0 androidboot.force.disable_external_display_focus=1 FFMPEG_OMX_CODEC=1 FFMPEG_CODEC2_PREFER=1 androidboot.bliss.bootmode=lockdown loglevel=0 console=tty6"
"Multi display with Dual Touch: splash=silent,fadein,fadeout logo FORCE_DISABLE_NAVIGATION=false FORCE_DISABLE_NAV_HANDLE=false FORCE_DISABLE_NAV_TASKBAR=false FORCE_DESKTOP_ON_EXTERNAL=1 FORCE_IME_ON_SECONDARY_DISPLAYS=1 FFMPEG_OMX_CODEC=1 FFMPEG_CODEC2_PREFER=1 androidboot.bliss.bootmode=lockdown loglevel=0 console=tty6"
"Multi display with Dual Touch (no navbar): splash=silent,fadein,fadeout logo FORCE_DISABLE_NAVIGATION=true FORCE_DISABLE_NAV_HANDLE=true FORCE_DISABLE_NAV_TASKBAR=true FORCE_DESKTOP_ON_EXTERNAL=1 FORCE_IME_ON_SECONDARY_DISPLAYS=1 FFMPEG_OMX_CODEC=1 FFMPEG_CODEC2_PREFER=1 androidboot.bliss.bootmode=lockdown loglevel=0 console=tty6"
"Multi display with Dual and mouse: splash=silent,fadein,fadeout logo FORCE_MOUSE_PRESENTATION=1 FORCE_DISABLE_NAVIGATION=false FORCE_DISABLE_NAV_HANDLE=false FORCE_DISABLE_NAV_TASKBAR=false FORCE_DESKTOP_ON_EXTERNAL=1 FORCE_IME_ON_SECONDARY_DISPLAYS=1 FFMPEG_OMX_CODEC=1 FFMPEG_CODEC2_PREFER=1 androidboot.bliss.bootmode=lockdown loglevel=0 console=tty6"
"Multi display with Dual Touch and mouse (no navbar): splash=silent,fadein,fadeout logo FORCE_MOUSE_PRESENTATION=1 FORCE_DISABLE_NAVIGATION=true FORCE_DISABLE_NAV_HANDLE=true FORCE_DISABLE_NAV_TASKBAR=true FORCE_DESKTOP_ON_EXTERNAL=1 FORCE_IME_ON_SECONDARY_DISPLAYS=1 FFMPEG_OMX_CODEC=1 FFMPEG_CODEC2_PREFER=1 androidboot.bliss.bootmode=lockdown loglevel=0 console=tty6"
)

RESTRICTED_ADMIN_ARGS=(
""
"Admin single display: logo FORCE_DISABLE_NAVIGATION=false FORCE_DISABLE_NAV_HANDLE=false FORCE_DISABLE_NAV_TASKBAR=false FORCE_DESKTOP_ON_EXTERNAL=0 FORCE_NAVBAR_ON_SECONDARY_DISPLAYS=0 FFMPEG_OMX_CODEC=1 FFMPEG_CODEC2_PREFER=1 androidboot.bliss.bootmode=admin loglevel=0 console=tty6"
"Admin Multi display with Primary Touch: logo FORCE_DISABLE_NAVIGATION=false FORCE_DISABLE_NAV_HANDLE=false FORCE_DISABLE_NAV_TASKBAR=false FORCE_DESKTOP_ON_EXTERNAL=0 FORCE_NAVBAR_ON_SECONDARY_DISPLAYS=0 androidboot.force.disable_external_display_focus=1 FFMPEG_OMX_CODEC=1 FFMPEG_CODEC2_PREFER=1 androidboot.bliss.bootmode=admin loglevel=0 console=tty6"
"Admin Multi display with Dual Touch: logo FORCE_DISABLE_NAVIGATION=false FORCE_DISABLE_NAV_HANDLE=false FORCE_DISABLE_NAV_TASKBAR=false FORCE_DESKTOP_ON_EXTERNAL=1 FORCE_IME_ON_SECONDARY_DISPLAYS=1 FFMPEG_OMX_CODEC=1 FFMPEG_CODEC2_PREFER=1 androidboot.bliss.bootmode=admin loglevel=0 console=tty6"
"Admin Multi display with Dual Touch (no navbar): logo FORCE_DISABLE_NAVIGATION=true FORCE_DISABLE_NAV_HANDLE=true FORCE_DISABLE_NAV_TASKBAR=true FORCE_DESKTOP_ON_EXTERNAL=1 FORCE_IME_ON_SECONDARY_DISPLAYS=1 FFMPEG_OMX_CODEC=1 FFMPEG_CODEC2_PREFER=1 androidboot.bliss.bootmode=admin loglevel=0 console=tty6"
"Admin Multi display with Dual Touch and mouse: logo FORCE_MOUSE_PRESENTATION=1 FORCE_DISABLE_NAVIGATION=false FORCE_DISABLE_NAV_HANDLE=false FORCE_DISABLE_NAV_TASKBAR=false FORCE_DESKTOP_ON_EXTERNAL=1 FORCE_IME_ON_SECONDARY_DISPLAYS=1 FFMPEG_OMX_CODEC=1 FFMPEG_CODEC2_PREFER=1 androidboot.bliss.bootmode=admin loglevel=0 console=tty6"
"Admin Multi display with Dual Touch and mouse (no navbar): logo FORCE_MOUSE_PRESENTATION=1 FORCE_DISABLE_NAVIGATION=true FORCE_DISABLE_NAV_HANDLE=true FORCE_DISABLE_NAV_TASKBAR=true FORCE_DESKTOP_ON_EXTERNAL=1 FORCE_IME_ON_SECONDARY_DISPLAYS=1 FFMPEG_OMX_CODEC=1 FFMPEG_CODEC2_PREFER=1 androidboot.bliss.bootmode=admin loglevel=0 console=tty6"
"Debugging Admin: logo FFMPEG_OMX_CODEC=1 FFMPEG_CODEC2_PREFER=1 androidboot.bliss.bootmode=admin androidboot.enable_console=1 DEBUG=2"
)

disk="$(prepare_grub_to_access_device "$GRUB_DEVICE")"

# Extra indentation to add to menu entries in a submenu. We're not in a submenu
Expand Down Expand Up @@ -112,6 +153,34 @@ done
echo "}"

TITLE=$old_title
echo "submenu '$(echo "Bass boot options" | grub_quote)' --class submenu ${CLASS} \$menuentry_id_option '$OS-${TITLE// /_}-Bassboot' {"

echo "submenu '$(echo "Hybrid-Desktop boot options" | grub_quote)' --class submenu ${CLASS} \$menuentry_id_option '$OS-${TITLE// /_}-HDesktop' {"
for arg in "${HYBRID_DESKTOP_ARGS[@]}"; do
entry "${arg%:*}" ${arg#*:}
done
echo "}"

echo "submenu '$(echo "Desktop boot options" | grub_quote)' --class submenu ${CLASS} \$menuentry_id_option '$OS-${TITLE// /_}-Desktop' {"
for arg in "${DESKTOP_ARGS[@]}"; do
entry "${arg%:*}" ${arg#*:}
done
echo "}"

echo "submenu '$(echo "Lockdown boot options" | grub_quote)' --class submenu ${CLASS} \$menuentry_id_option '$OS-${TITLE// /_}-Lockdown' {"
for arg in "${RESTRICTED_LOCKDOWN_ARGS[@]}"; do
entry "${arg%:*}" ${arg#*:}
done
echo "}"

echo "submenu '$(echo "Lockdown Admin boot options" | grub_quote)' --class submenu ${CLASS} \$menuentry_id_option '$OS-${TITLE// /_}-Lockdownadmin' {"
for arg in "${RESTRICTED_ADMIN_ARGS[@]}"; do
entry "${arg%:*}" ${arg#*:}
done
echo "}"

echo "}"

echo "submenu '$(echo "Advanced options for $TITLE" | grub_quote)' --class submenu ${CLASS} \$menuentry_id_option '$OS-${TITLE// /_}-Advanced' {"
for arg in "${ADVANCED_ARGS[@]}"; do
entry "${arg%:*}" ${arg#*:}
Expand Down

0 comments on commit 1dc62c0

Please sign in to comment.