Coder Social home page Coder Social logo

android_device_xiaomi_surya_twrp's Introduction

Device Tree for building TWRP for POCO X3 NFC (karna/surya)

Features

Works: - Click to open

  • ADB
  • Decryption of /data (MIUI Android 12/Custom rom Android 12-13 FBEv1)
  • Screen brightness settings
  • Vibration support
  • Correct screenshot
  • Correct date/battery level/temperature
  • MTP
  • Flashing (opengapps, roms, images and so on)
  • Backup/Restore to internal/microSD
  • Backup/Restore to/from adb (https://gerrit.omnirom.org/#/c/15943/)
  • USB OTG
  • Fasbootd
  • Sideload (adb sideload update.zip)
  • Reboot to bootloader/recovery/system/fasbootd
  • F2FS/EXT4 Support, exFAT/NTFS where supported

Compile

First checkout minimal twrp with aosp tree:

repo init -u https://github.com/minimal-manifest-twrp/platform_manifest_twrp_aosp.git -b twrp-12.1
repo sync

Then add these projects to .repo/manifest.xml:

<project path="device/xiaomi/surya" name="brigudav/android_device_xiaomi_surya_twrp" remote="github" revision="android-12.1" />

Finally execute these:

. build/envsetup.sh
lunch twrp_surya-eng
mka recoveryimage ALLOW_MISSING_DEPENDENCIES=true # Only if you use minimal twrp tree.

To test it:

fastboot boot out/target/product/surya/recovery.img

Other Sources

Using precompiled stock kernel.

android_device_xiaomi_surya_twrp's People

Contributors

brigudav avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

android_device_xiaomi_surya_twrp's Issues

Decryption seems to be broken.

As the title states, I have tested the TWRP build that was released by GitHub Actions here in this repo and decryption doesn't work on that, it only works on the build from November 7th meaning that something broke shortly after that build, seeing as how a build from November 25th didn't have working decryption, although in this issue we can see a build that's different from the one released in November 7th, which does have working decryption, seeing as how the size of the Internal Storage partition is being reported while it wouldn't if decryption wasn't working (it would simply display 0MB if it didn't work).

I've been attempting to get my own OrangeFox build and while I was able to fix the padding and such, I wasn't able to fix decryption and I'm still looking into it, though I find it very likely that something broke in TWRP and that the tree now has to account for.

I tried reverting a few things in the tree itself to how they were at the time of the build from November 7th and that didn't do it.

Update: It would seem that decryption was always broken on the official sources or had been since last year, still no idea on how to get it to work.

No Decryption

TWRP itself works for installing ROM, but the /data is not decrypted. There is no windows for password when TWRP starts.
I recognized the version is shown as 3.7.0_12-0 on the device, but 'Manifest: twrp-12.1' in the releases here on github. Tried to update within TWRP and with fastboot with no error, but the version stays old.

Decrypt failed

Decrypting /data doesn't work on my X3 NFC, saying Password failed, please try again after entering the pin in recovery. (Failed to decrypt user 0). Should the phone pin be used or something else?

Just a Question

Hi thanks for this, i have Xiaomi Poco X3 NFC A11 MIUI 12.5, now i have the twrp-3.6.2_11-1-surya-27.08.img all work, just from curious this is the latest version of twrp for surya with Android 11?

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.