AeThex-OS/patch_boot.ps1
MrPiglr b3c308b2c8 Add functional marketplace modules, bottom nav bar, root terminal, arcade games
- ModuleManager: Central tracking for installed marketplace modules
- DataAnalyzerWidget: Real-time CPU/RAM/Battery/Storage widget (unlocked by Data Analyzer module)
- BottomNavBar: Navigation bar for Projects/Chat/Marketplace/Settings
- RootShell: Real root command execution utility
- TerminalActivity: Full root shell with neofetch, sysinfo, real Linux commands
- Terminal Pro module: Adds aliases (ll, la, h), command history
- ArcadeActivity + SnakeGame: Pixel Arcade module unlocks retro games
- fade_in/fade_out animations for smooth transitions
2026-02-18 22:03:50 -07:00

25 lines
838 B
PowerShell

# Patch init_boot.img using Magisk's built-in tools on-device
# Magisk APK contains magiskboot binary and boot_patch.sh script
$apkPath = "/data/app/~~4lVCgUEbEYnxj9kD_oZqlQ==/com.topjohnwu.magisk-hIwVOn1enaIVx92YiPqzSw==/base.apk"
$workDir = "/data/local/tmp/magisk_work"
Write-Host "Setting up Magisk patching environment on device..."
# Create work directory and extract needed files from APK
$cmds = @"
rm -rf $workDir
mkdir -p $workDir
cd $workDir
cp $apkPath magisk.apk
unzip -o magisk.apk 'lib/arm64-v8a/*' 'assets/*' -d . 2>/dev/null
ls -la lib/arm64-v8a/ 2>/dev/null
ls -la assets/ 2>/dev/null
"@
adb shell $cmds 2>&1 | Write-Host
Write-Host ""
Write-Host "Listing extracted files..."
adb shell "ls -la $workDir/lib/arm64-v8a/ 2>/dev/null" 2>&1 | Write-Host
adb shell "ls -la $workDir/assets/ 2>/dev/null" 2>&1 | Write-Host