Giter Site home page Giter Site logo

droidian's Introduction

Droidian

Droidian is a GNU/Linux distribution based on top of Mobian, a Debian-based distribution for mobile devices. The goal of Droidian is to be able to run Mobian on Android phones.

This repository is the canonical place to get Droidian images.

Which image to get?

There are two different types of images:

  • Fastboot-flashable image
  • Recovery-flashable zipfile

Fastboot-flashable images are, instead, the recommended way to install Droidian. These images are device specific, so if you want one for your device you should create one yourself. Fastboot-flashable images support Full Disk Encryption, and make use of the whole userdata partition.

The recovery flashable zipfile needs to be flashed via a suitable Android recovery (such as TWRP). Recovery flashable zipfiles are generic, and are useful to test drive Droidian or in early device porting stages. You should pick up the correct zipfile for your specific device:

  • Device with an Android 9 vendor: api28
  • Device with an Android 10 vendor: api29
  • Device with an Android 11 vendor: api30
  • Device with an Android 12/12.1 vendor: api32
  • Device with an Android 12/12.1 vendor: api33

If you're in doubt, and there is a fastboot-flashable image available for your device, it's recommended to use that.

Recovery-flashable zipfile: bundles

Recovery flashable zipfiles support the addition of bundles, which allow to add functionality directly during the flashing process.

Currently available bundles:

  • Devtools: Useful development tools for porters, not available in nightlies as they're embedded in the rootfs
  • Adaptation bundle: Device specific bundle (containing kernel, device-specific settings, etc)

Keep in mind that is still recommended using fastboot-flashable images if available for your device.

Fastboot-flashable image: installation instructions

Preparations

If your device is A/B device, it is necessary to have both slots on same Android version.

Ensure you have fastboot installed.

Installation

Extract the downloaded archive, then run:

./flash_all.sh

You might need to execute that at root depending on how your system is configured.

Finalizing installation

The device will reboot automatically. When the device has booted, you can unlock the device with the default passcode 1234.

Recovery-flashable zipfile: installation instructions

Preparations

If your device is A/B device, it is necessary to have both slots on same Android version.

Then, boot your favourite Android recovery.

Installation

From recovery open adb sideload mode (under advanced on TWRP) and run following commands on your computer replacing ARCH_YYYYMMDD with the version of Droidian and vendor-device with the vendor and device codenames:

  • adb sideload droidian-OFFICIAL-phosh-phone-rootfs-apiXX-ARCH-VERSION_DATE.zip

If you want to sideload devtools:

  • adb sideload droidian-devtools-ARCH_YYYYMMDD.zip

If you want to sideload an adaptation bundle:

  • adb sideload droidian-adapatation-vendor-device-ARCH_YYYYMMDD.zip

Note that you have to restart the sideload mode by tapping back and starting sideload again before every adb sideload command.

Finalizing installation

Now, you have to reboot the device. It should boot to phosh (a graphical user interface used by Droidian) after rebooting once more automatically. When the device has booted, you can unlock the device with the default passcode 1234.

Troubleshooting

If the image does not boot and your userdata is not an ext4 partition, you might try formatting it. Note that this is a destructive operation, you cannot recover files from userdata afterwards!

  • fastboot format:ext4 userdata

droidian's People

Contributors

g7 avatar r3vn avatar fakeshell avatar erikinkinen avatar bellegarde-c avatar bettehem avatar

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.