Git Product home page Git Product logo

autoflash's Introduction

autoflash

My tiny update script for my phone

Magisk

To enable magisk, add MAGISK=true to $HOME/.autoflash/$DEVICE.conf

Why

Because doing it manually got annoying

What does it do?

Download, install and update:

  • Latest vendor image, if supported
  • Latest TWRP
  • Latest LineageOS
  • Latest F-Droid privileged OTA
  • Latest addon su for LinageOS
  • Latest OpenGApps pico

Note that the last 4 items get updated by doing a full re-flash of the system partion (takes longer than just flashing them individually, but this keeps the system partion cleaner)

Other nice features:

  • Parallel flashing: Add the ANDROID_SERIAL=<your-serial> parameter in front of the command to safely flash multiple phones in parallel
  • Backups: Before every flash a backup of the data partition is taken
  • Robust and well tested: Used in production for over a year. My devices are living proof that this script won't brick yours!

What is supported?

Currently the following devices are supported:

  • Google Nexus 5x (bullhead)
  • Google/Asus Nexus Player (fugu)
  • OnePlus One (bacon)

Coincidently they also happen to be the devices I own ;) (All of those are tested to work with this script)

Feel free to add your own devices via PRs, but don't create device request issues as I can't test any of those devices.

Why publish?

Some people may find it useful for themselves.

FAQ

Why does it attempt to unlock the device multiple times?

Sometimes a device won't properly unlock on first try (such as the bacon). Therefore unlocking will be tried 3 times before really giving up.

Why doesn't it detect my device immediatly?

Sometimes the adb server won't detect a device. This can be usually solved by re-starting the adb server on the host computer as root with adb kill-server && sudo adb devices. No idea why.

autoflash's People

Contributors

mkg20001 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

moriedan

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.