Switchroot Wiki
HomepageGitLabDownloads
  • Home
  • Android
    • Android 14, 15
      • 14, 15 eMMC Boot Guide
      • 14, 15 INI Settings Guide
      • 14, 15 Power User Docs
      • 14, 15 Partition Docs
    • Android 11
      • 11 Setup Guide
      • 11 Build Guide
      • 11 eMMC Guide
      • 11 INI Settings Guide
      • 11 Partition Docs
    • Android 10
      • 10 Setup Guide
      • 10 eMMC Boot Guide
      • 10 Partition Docs
    • Android 8.1
    • Root Guide
  • Linux
    • L4T Linux Distributions
    • Linux Features
    • Linux Changelog
    • L4T Ubuntu Bionic 18.04 Install Guide
    • L4T Ubuntu Jammy 22.04 Install Guide
    • L4T Ubuntu Noble 24.04 Install Guide
    • L4T Fedora 39 Install Guide
    • L4T Fedora 41 Install Guide
    • L4T Lakka Install/Update Guide
    • Linux USB or eMMC Boot
    • Linux Boot Configuration
    • Linux Bootstack Documentation
    • Emulation
      • RetroPie
      • Box86
      • Box64
    • Miscellaneous informations
  • Documentation
    • Partition Docs
    • Terminology
  • SD Card Guide
  • FAQ
  • Common Issues
Powered by GitBook
On this page
  1. Android
  2. Android 14, 15

14, 15 Power User Docs

Utilities and sysfs nodes for those who need more

Previous14, 15 INI Settings GuideNext14, 15 Partition Docs

Last updated 4 months ago

CtrlK

Reboot 2 Payload while Booted

When already booted the above and more can be changed with the following sysfs controls (use ADB):

  • /sys/devices/r2p/action: Like above. 'ums' is also supported which reboots to USB Mass Storage mode.

  • /sys/devices/r2p/param1: Sets entry index to reboot to. If 'ums' is used at action, it selects which drive to mount.

  • /sys/devices/r2p/param2: If 'self' is used at action, it enables re-booting into an entry from ini folder.

Examples:

  • Reboot to 2nd (ASCII Order) boot entry from the /bootloader/ini folder

echo self > /sys/devices/r2p/action
echo 2 > /sys/devices/r2p/param1
echo 1 > /sys/devices/r2p/param2

Copy

  • Reboot to 3rd boot entry from /bootloader/hekate_ipl.ini

echo self > /sys/devices/r2p/action
echo 3 > /sys/devices/r2p/param1
echo 0 > /sys/devices/r2p/param2

Copy

  • Reboot to hekate menu

echo ums > /sys/devices/r2p/action
echo 0 > /sys/devices/r2p/param1
Will mount SD card to PC on reboot.
0: SD Card.
1: eMMC BOOT0.
2: eMMC BOOT1.
3: eMMC GPP.
4: emuMMC BOOT0.
5: emuMMC BOOT1.
6: emuMMC GPP.

echo bootloader > /sys/devices/r2p/action