Giter Club home page Giter Club logo

droidian-violet-guide's Introduction

Droidian for the Xiaomi Redmi note 7 pro

A collection of tips on how to install and use Droidian on the Xiaomi Redmi note 7 pro (violet)

Requirements

  • A computer with fastboot and adb access to the phone
  • Unlocked bootloader
  • Backup all your data, as your phone will be WIPED
  • It is also recommended to take a note of your Acces Point Name in Android Settings before starting the procedure (you will need it for setting up mobile data)

Installation

0. Download files

1. Flash Boot,Recovery and Vendor

  • Boot to fastboot mode by pressing the Vol- and Power buttons until the phone vibrates
  • unzip the recovery zip package and get the recovery.img file ,
  • then move the recovery.img boot.img and vendor.img to a sub-directory and open terminal in their.
  • Check that the phone is recognized by running fastboot devices
  • Now we can flash Boot vendor and recovery using the command
fastboot flash recovery recovery.img && fastboot flash vendor vendor.img && fastboot flash boot boot.img && fastboot reboot recovery 

2. Install Droidian in Recovery

Recovery:

  • Go to Wipe and Format data (type yes)

PC:

  • Connect the phone via USB
  • The internal storage is now available over MTP from the PC
  • Copy the downloaded files to the internal storage of the phone

Note: if you are having trouble with mtp, run the following command from the folder containig the droidian zip adb push droidian-rootfs-api28gsi-arm64*.zip /data/ droidian-rootfs-api28gsi-arm64 && adb push fw_violet_miui_VIOLET_9.9.3*.zip /data/fw_violet_miui_VIOLET_9.9.3*.zip

  • Install firmware zip file
  • Install zip file: droidian-rootfs-api28gsi_arm64_YYYYMMDD.zip
  • Install zip file: droidian-devtools_arm64_YYYYMMDD.zip(if you are not using nightly)
  • install zip file: droidian-recovery-flashing-adaptation-violet.zip

and reboot

  • The first boot may take longer, and at least one spontaneous reboot is expected during the process
  • If all goes well, your phone will boot to the Droidian lock screen, the unlock code is 1234
  • Installation is complete we can see droidian lock screen now

Notes

Porting status

testing ...

Applications

You can find a list of mobile-friendly Linux applications at LinuxPhoneApps

Update to bookworm

You can upgrade to the latest bookworm version of Droidian after doing all available updates from the Software application. Run this on the device itself:

sudo apt install droidian-upgrade-bookworm
sudo apt update
sudo apt upgrade
sudo apt update
sudo apt dist-upgrade
sudo apt clean
systemctl reboot

`

if you like to review the adaptation package or something were to fail make changes manually

Disable crashing services

  • on pc open terminal
  • conncet to recovery by running adb shell
  • now paste the following lines:
mkdir /tmp/mpoint
mount /data/rootfs.img /tmp/mpoint
chroot /tmp/mpoint /bin/bash
export PATH=/usr/bin:/usr/sbin
systemctl mask systemd-journald
systemctl mask systemd-resolved
systemctl mask systemd-timesyncd

and reboot the device

Udev rules

we need to regenerate udev rule

  • login to droidian using the following line (the password is 1234):
  • run the following command to generate udev rule
sudo -s

DEVICE=violet # replace with your device codename
cat /var/lib/lxc/android/rootfs/ueventd*.rc /vendor/ueventd*.rc | grep ^/dev | sed -e 's/^\/dev\///' | awk '{printf "ACTION==\"add\", KERNEL==\"%s\", OWNER=\"%s\", GROUP=\"%s\", MODE=\"%s\"\n",$1,$3,$4,$2}' | sed -e 's/\r//' >/etc/udev/rules.d/70-$DEVICE.rules

and reboot

wifi

connect device to pc then ssh [email protected]

touch /etc/resolv.conf && nano /etc/resolv.conf

  • and paste the following and save.
nameserver 1.1.1.1
nameserver 1.0.0.1
  • reboot

Credit

mathew-dennis

mardy

Droidian

Mobian

UBports

For further assistance, visit the Droidian Telegram groups.

droidian-violet-guide's People

Contributors

mathew-dennis avatar thomashastings 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.