Coder Social home page Coder Social logo

redmi-fire-devs / twrp_device_xiaomi_fire Goto Github PK

View Code? Open in Web Editor NEW
5.0 3.0 6.0 32.39 MB

TWRP Device Tree for Xiaomi Redmi 12

Home Page: https://twrp.me/xiaomi/xiaomiredmi12.html

License: GNU General Public License v3.0

Makefile 25.42% C++ 63.94% C 10.64%
12 mt6768 redmi redmi12 twrp twrp-device-tree twrp-recovery

twrp_device_xiaomi_fire's People

Contributors

antarcticshaurant avatar shub876 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

twrp_device_xiaomi_fire's Issues

Fix PRODUCT_STATIC_BOOT_CONTROL_HAL

when i run ``lunch twrp_fire-eng`; this error message appears :

lunch twrp_fire-eng In file included from build/make/core/config.mk:313: In file included from build/make/core/envsetup.mk:312: In file included from build/make/target/product/telephony_vendor.mk:24: device/xiaomi/fire/device.mk:24: error: PRODUCT_STATIC_BOOT_CONTROL_HAL is obsolete. Use shared library module instead. See https://android.googlesource.com/platform/build/+/master/Changes.md#PRODUCT_STATIC_BOOT_CONTROL_HAL. 19:08:42 dumpvars failed with: exit status 1 Device fire not found. Attempting to retrieve device repository from TeamWin Github (http://github.com/TeamWin). Found repository: android_device_xiaomi_fire Checking branch info Traceback (most recent call last): File "/home/mahdi/twrp/vendor/twrp/build/tools/roomservice.py", line 317, in <module> main() File "/home/mahdi/twrp/vendor/twrp/build/tools/roomservice.py", line 296, in main fallback_branch = detect_revision(repository) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/mahdi/twrp/vendor/twrp/build/tools/roomservice.py", line 234, in detect_revision result = json.loads(urllib.request.urlopen(githubreq).read().decode()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/urllib/request.py", line 216, in urlopen return opener.open(url, data, timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/urllib/request.py", line 525, in open response = meth(req, response) ^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/urllib/request.py", line 634, in http_response response = self.parent.error( ^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/urllib/request.py", line 563, in error return self._call_chain(*args) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/urllib/request.py", line 496, in _call_chain result = func(*args) ^^^^^^^^^^^ File "/usr/lib/python3.11/urllib/request.py", line 643, in http_error_default raise HTTPError(req.full_url, code, msg, hdrs, fp) urllib.error.HTTPError: HTTP Error 403: rate limit exceeded In file included from build/make/core/config.mk:313: In file included from build/make/core/envsetup.mk:312: In file included from build/make/target/product/telephony_vendor.mk:24: device/xiaomi/fire/device.mk:24: error: PRODUCT_STATIC_BOOT_CONTROL_HAL is obsolete. Use shared library module instead. See https://android.googlesource.com/platform/build/+/master/Changes.md#PRODUCT_STATIC_BOOT_CONTROL_HAL. 19:08:45 dumpvars failed with: exit status 1 In file included from build/make/core/config.mk:313: In file included from build/make/core/envsetup.mk:312: In file included from build/make/target/product/telephony_vendor.mk:24: device/xiaomi/fire/device.mk:24: error: PRODUCT_STATIC_BOOT_CONTROL_HAL is obsolete. Use shared library module instead. See https://android.googlesource.com/platform/build/+/master/Changes.md#PRODUCT_STATIC_BOOT_CONTROL_HAL. 19:08:46 dumpvars failed with: exit status 1

** Don't have a product spec for: 'twrp_fire'
** Do you have the right repo manifest?

`

How to flash it after unlocking the phone?

Uh... hello. So I'm working on a project of mine which I will try to port postmarketOS to Redmi 12... and I need some help about flashing the TWRP image for Xiaomi Redmi 12 in your previous repository.

Now I flashed TWRP before but it was on a completely different device ( A Samsung J7 Prime specifically) and I tried to flash an Android 14 gsi on the Redmi 12 but I got the phone pretty much bricked and got a replacement phone. I don't want to do the same mistake again.

I would pretty much appreciate clear instructions on how to flash properly after unlocking the phone.

ADB Sideload Issue? "Devices on super may not mount until rebooting."

Describe the bug
Hello, sorry to bother, but I encountered an issue with the adb sideload feature while using both the original version that fixed the touchscreen issue and the newest version. When I try to sideload a rom, I get the message:
"Devices on super may not mount until rebooting recovery. To flash additional zips, please reboot recovery to switch to the updated slot." on TWRP and then in the terminal,
[ C:\platform-tools>adb sideload lineage-21.0-20240318-UNOFFICIAL-cupid.zip

  • daemon not running; starting now at tcp:5037
  • daemon started successfully
    Total xfer: 0.00x ]

I'm not sure if this is because of TWRP or the rom being potentially incompatible, or if there's a workaround on my end, because I tried switching slots before, both in TWRP and through fastboot and the same message keeps coming up. Thanks in advance.

Touchscreen not working: Failed to load firmware focaltech_8725_fw.bin

The touch screen does not work in recovery. The logs show that the firmware file could not be found:
(0)[137:kworker/u16:1]fts_ts spi2.0: Direct firmware download for focustech_8725_fw.bin failed with error -2
I solved the problem by adding focustech_8725_2_fw.bin, focus_ft8725_2_hx.ini files to the vendor/firmware. Now the touchscreen works

Some issues

I've tried your twrp now, it works but I found a few errors. The battery bar sometimes goes crazy and only shows 1% when you flash something via the TWRP, it doesn't matter whether the option is on or not, it is on A and B. The cell phone cannot be switched off using the power function in the TWRP. ADB has sideload Doesn't work, error keeps coming, I have to test it again myself to see what the problem is. To reproduce the Bug do fastboot flash twrp and try to go to reboot section Power Off. For the battery,Its a random Thing.

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.