Skip to content

Instantly share code, notes, and snippets.

@TommyJerryMairo
Created June 19, 2016 09:10
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 TommyJerryMairo/7601095f4f11457d58debe530d0fa793 to your computer and use it in GitHub Desktop.
Save TommyJerryMairo/7601095f4f11457d58debe530d0fa793 to your computer and use it in GitHub Desktop.
#!/bin/bash
export TRIGGER=FB_RecoveryLauncher/recovery.trigger.new
export LAUNCHER=FB_RecoveryLauncher/recovery.launcher
export RECOVERY=FB_RecoveryLauncher/recovery.zip
export OEMTRIGGER=/system/bin/logcat
export OEMCMD=stop_partitioning
fastboot flash /tmp/recovery.zip $RECOVERY
fastboot flash /tmp/recovery.launcher $LAUNCHER
fastboot oem start_partitioning
fastboot flash $OEMTRIGGER $TRIGGER
fastboot oem $OEMCMD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment