yashsingh1/xdaforums huggingface dataset:
[Moto G7 Power Guides, News, & Discussion] arkansawdave74:
Hello, all. For those of you running Linux, I made a bash script to consolidate all the fastboot commands required to flash the stock firmware into one command. The command to run the script. After downloading, you may have to run

chmod +x flashscript.sh

to make it executable. Just place it in the directory of all the firmware files, make it executable and run it with

./flashstock.sh

Watch it in action here. https://youtu.be/g-ss1qKO7Vg

Well XDA says invalid file when I try to upload it, so here's the file in text form.

Enjoy.

Starts on the next line with #! and runs to the end. Make into .txt file, make executable, place in stock firmware directory and run with ./flashstock.sh

#!/bin/bash

fastboot oem fb_mode_set

fastboot flash partition gpt.bin

fastboot flash bootloader bootloader.img

fastboot flash modem_a NON-HLOS.bin

fastboot flash fsg_a fsg.mbn

fastboot erase modemst1

fastboot erase modemst2

fastboot flash dsp_a adspso.bin

fastboot flash logo_a logo.bin

fastboot flash boot_a boot.img

fastboot flash dtbo_a dtbo.img

fastboot flash system_a system.img_sparsechunk.0

fastboot flash system_a system.img_sparsechunk.1

fastboot flash system_a system.img_sparsechunk.2

fastboot flash system_a system.img_sparsechunk.3

fastboot flash system_a system.img_sparsechunk.4

fastboot flash system_a system.img_sparsechunk.5

fastboot flash system_a system.img_sparsechunk.6

fastboot flash system_a system.img_sparsechunk.7

fastboot flash system_a system.img_sparsechunk.8

fastboot flash system_a system.img_sparsechunk.9

fastboot flash system_b system_b.img_sparsechunk.0

fastboot flash system_b system_b.img_sparsechunk.1

fastboot flash system_b system_b.img_sparsechunk.2

fastboot flash vendor_a vendor.img_sparsechunk.0

fastboot flash vendor_a vendor.img_sparsechunk.1

fastboot flash oem_a oem.img

fastboot flash oem_b oem_other.img

fastboot erase userdata

fastboot erase DDR

fastboot oem fb_mode_clear

fastboot reboot bootloader
[Moto G7 Power Guides, News, & Discussion] roadkill42:
Try this change the zip to bat
[Moto G7 Power Guides, News, & Discussion] roadkill42:
https://mega.nz/file/uFpmBCpI#Ntr8gegku2TxsZiebK-C6sfQxWG7Fl9_J0fCqHLMFmw or this
[Moto G7 Power Guides, News, & Discussion] cortez52:
I have the Verizon model , will this script work with my phone ?
[Moto G7 Power Guides, News, & Discussion] roadkill42:
That I don't know good question though have u checked on tellagram group some one in there might know
[Moto G7 Power Guides, News, & Discussion] cortez52:
Just so u guys know , I've seen the Verizon model on eBay romed an rooted so the bootloader can be unlocked !
[Moto G7 Power Guides, News, & Discussion] roadkill42:
Somebody apparently some one hasn't released on how might be that they used a program to refashe hole thing with different factory imge to gei it done
[Moto G7 Power Guides, News, & Discussion] WoKoschekk:
Have a look inside your firmware.zip, there is a flashfile.xml which contains all commands you must use with your phone.
[Treble-Enabled Device Questions and Answers] sachinwadhwa46:
Hello everyone!

I tried booting smartisan Q gsi on oneplus 7 pro but it get sticked at boot logo.

Other gsi booting fine in the procedure I did.

Here are the logs from logcat !

Please help !
[Treble-Enabled Device Questions and Answers] varund7726:
You need to set selinux to permissive .you are having tons of selinux errors. Disable selinux or set it to permissive while building
[Treble-Enabled Device Questions and Answers] sachinwadhwa46:
Sir. Changed to permissive. Still stuck at logo.

New logs attached !
[X Style (Pure) Original Android Development] chrmhoffmann:
Unofficial builds for Moto X Style (clark)....

Download: https://www.androidfilehost.com/?fid=10763459528675594482 - Version 2020-11-30

Lineage Recovery: https://www.androidfilehost.com/?fid=10763459528675582393 - Version 2020-11-12

TWRP (unofficial): https://www.androidfilehost.com/?fid=10763459528675598925 - Version 2020-12-06.II

What doesn't work (yet).

- Google camera

- Camera: QC reader sometimes doesn't auto-focus (sometimes rotating camera back and forth helps)

- Powerdrain when display on

- Powerdrain when display off could also be better

- You tell me :)

Sources:

Kernel: https://github.com/chrmhoffmann/android_kernel_motorola_msm8992/tree/staging/rebase/lineage-17.1 [*]

Device: https://github.com/chrmhoffmann/android_device_motorola_clark/tree/staging/lineage-17.1 [**]

Vendor: https://github.com/chrmhoffmann/proprietary_vendor_motorola/tree/staging/lineage-17.1 [***]

Eng version: https://www.androidfilehost.com/?fid=8889791610682927582 - only to be used if the normal ROM crashes on startup

Requirements:

Clark with Nougat (N) bootloader

[*] The kernel sources have already been merged into official lineage repos, but add-ons might come first here. Gerrit contributions are thus open.

[**] Device tree is in gerrit.

[***] Will upload at some point to lineage muppet, but....

Older downloads: Download: https://www.androidfilehost.com/?fid=8889791610682878064
[X Style (Pure) Original Android Development] B4oE:
I need your help, bro. I was running the last Nougat update released for the device and did a full factory reset before flashing via TWRP your Lineage OS update and GApps. However, the device had not powered on yet. It simply stays on the Lineage booting phase. What do I do?
[X Style (Pure) Original Android Development] camcho1:
thanks soon i will install it
[X Style (Pure) Original Android Development] chrmhoffmann:
I suppose logcat doesn't show anything?

Do you know how to flash boot.img with fastboot?

Chris
[X Style (Pure) Original Android Development] Fabiett83:
Hi [MENTION=361777]chrmhoffmann[/MENTION]

thank you for putting so much work in our old devices,

this weekend i upgraded TWRP to 3.4.0-0 and dirty flashed your UNOFFICIAL_20200625 build over the latest LineageOS 14.1 build for Nougat BL.

It's my son "wifi only" youtube/games device so i cannot test cellular data but everything else it's working.

Photos are 21MP, with correct rotation and camera works if called from apps (tested with hangouts and ghost observer)

The only strange thing is that, while audio is generally working, most games are completely silent.

I first had the impression that was the landscape rotation but happens even on portrait ones.

My son found that even while games are silent, ADS has sounds..

If you need something (logcat, ecc.) let me know, i can also try wiping data if you want.

Thank you,

Fabio
[X Style (Pure) Original Android Development] moviefirst:
Hello, flashed this rom today coming from stock 7.0.

It booted nice, setup no problems.

Everything is quite smooth, camera working fine.

The handwave gesture to wake up screen is a bit buggy. (Wakes up to late)

Anyway, verry happy to see our old moto running lineage 17.1

Thx for your efforts chrmhoffmann , you did a great job, keep up this great work!
[X Style (Pure) Original Android Development] B4oE:
Please provide me with the instructions on how to flash LineageOS 17.1. Apparently, I am doing something wrong. I was on originally on CLARK_RETUS_7.0_NPH25.200-22. Then I flashed TWRP 3.4.0-0. Afterwards, I flashed via TWRP the LineageOS 17.1 from this thread, along with GApps 10.0 micro (ARM64) and Magisk v20.4. Then I rebooted the device. Now the devices just stays on the Lineage loading stage. Please help.
[X Style (Pure) Original Android Development] moviefirst:
I flashed latest twrp 3.4.0-0 then booted in twrp did a factory reset then I flashed lineage/ gapps nano/ wipe cache/ reboot system. No magisk. Maybe first reboot into system and then try install magisk?
[X Style (Pure) Original Android Development] B4oE:
Should System be mounted on TWRP?
[X Style (Pure) Original Android Development] moviefirst:
I didn't touch system.
[X Style (Pure) Original Android Development] B4oE:
After factory reset, do I immediately reboot and let it begin and THEN go back to TWRP to flash? Or do I just factory reset and flash LineageOS immediately after?
[X Style (Pure) Original Android Development] moviefirst:
Install twrp

Reboot into twrp

Factory reset

Flash lineage and gapps nano

Wipe cache

Reboot system, in twrp uncheck install twrp then do not install
[X Style (Pure) Original Android Development] chrmhoffmann:
Hi,

Which game for example? I tried candy crush and that has sound :)

Chris
[X Style (Pure) Original Android Development] B4oE:
Bro... THANK YOU SO MUCH!! It finally worked.

So far, I noticed that the stock camera app is not auto focusing.
[X Style (Pure) Original Android Development] moviefirst:
Glad you have succeeded, auto focusing isn't working smooth all the time, maybe the dev will figure it out.
[X Style (Pure) Original Android Development] B4oE:
It now seems that I cannot flash via TWRP Magisk v20.4. When I do, TWRP freezes and forces a reboot into my device. Any ideas?

UPDATE: Now it seems that anything I do via TWRP is forcing it to freeze and reboot. I just wiped my cache only and it happened.
[X Style (Pure) Original Android Development] Fabiett83:
With this games i have no sound/music:

Archero, Art of war: Legions, Bottle flip 3d, Burrito Bison: Launcher, Cell 13, Crazy Shopping, Hunter assassin, Kick the Buddy, Toca Life World, and others i had no time to test.

Strangely Candy Crush Saga and Ghost Observer has working audio..

I did a backup in twrp-3.4.0-0 but every time i tried to wipe data it rebooted without wiping, thinking that was caused by the F2FS filesystem (same thing happened to my daughter's Serranoltexx from LOS16 to LOS17.1) i changed the internal storage to ext4, reconfigured my son's account and tested the games again, still no audio!

So i restored the twrp backup but since it was a F2FS backup restored in a ext4 partition some games are damaged, i will fix it somehow..

This evening i will save a logcat and see if i can find something useful.

Thank you

Fabio

Edit: Since you are working with the kernel, can you limit CPU freq/cores based on temperature? the phone get really hot, more than in 14.1, and during tests yesterday i lost all battery in like 1 hour.

i don't know how thermald/core control works on clark, but i know that SD810/808 are overheating easily, so it's not an easy task.

i know i's a totally different cpu but was thinking about this commits from Serrano:

https://review.lineageos.org/c/LineageOS/android_kernel_samsung_msm8930-common/+/275733

https://review.lineageos.org/c/LineageOS/android_kernel_samsung_msm8930-common/+/275736
[X Style (Pure) Original Android Development] chrmhoffmann:
Try the new build.

Audio: should be audible now - but is not 100% great yet (cracking noises).

Heat: Well, maybe this works better if thermanager starts now :)

I also added the Lineage Recovery download link. I hope this can be used instead by people who experience issues with flashing the ROM with TWRP.
[X Style (Pure) Original Android Development] Fabiett83:
Thank you, as you said audio now works in all games tested, the cracking/stuttering is sometimes present but i'ts not game breaking.

I don't know how removing thermanager service definition could fix the thermanager service but looks like it's working better, too early to see battery life, but at least the temperature seems to be under control.

Since i wanted to keep the good twrp backups i have not tested the new Lineage Recovery.

Fabio
[X Style (Pure) Original Android Development] moviefirst:
Hello, just a feedback about this rom. I never expected to get Lineageos 17.1 on our old Moto x style. Even the moto actions are built in, the camera functions properly. It would be great if this build became official. I would like to thank the dev very much for his work and dedication so that we can use our reliable moto x style for a long time to come.
[Xiaomi Mi 9 Questions & Answers] nunu00:
H, since I updated from miui 10 to miui 11 and even now that I have miui 12 I have noticed that the battery doesn't last as long as before. I state that since I purchased the phone (July 2019) I have always charged the battery in the best way trying to never go below 20% and trying not to go beyond 80% so I don't think a battery can lose more than 30% of its real capacity in less than a year of life. Starting to investigate I found that the battery does not charge at its real capacity i.e. 3300 mAh but at around 2200/2300 mAh. To verify all this I have carried out several tests and the easiest way to verify it is to look at the battery characteristics through the AIDA64 app (screenshot below). From these tests it seems that the device limits the real battery capacity by not allowing it to be charged to its maximum capacity. A reply to what I wrote can be found by looking at some system files that are located in /sys/class/power_supply/battery. In particular, looking at the file called charge_full (screenshot below) you can see how the value of the file is much lower than the real battery capacity. I hope someone more competent than I can understand how to solve this hateful problem and I also invite you to check the value to try to better understand the cause of this problem.
[Xiaomi Mi 9 Questions & Answers] huahua0413:
I'm using miuimix 12.0.2 stable and the capacity is not 3300, either.

---------- Post added at 10:03 AM ---------- Previous post was at 09:59 AM ----------

And sorry i don't know how to post a picture, mine is 2943.
[Xiaomi Mi 9 Questions & Answers] Quyta:
I know that batteries won't be forever and are always decreasing during the year but I think Xiaomi do a good job. I have some devices from 4 years ago and they reduced their batteries just a little. In the case of Mi 9 I have it since March 2019 and my battery still being the same. I charge it from 10-25% to 100% just some times I charge it until 80-90%, maybe every month I let it to 0% I wait for a while and charge it again to 100%. View attachment 5048281
[Xiaomi Mi 9 Questions & Answers] nunu00:
From the photo you posted it doesn't seem that your battery is fully charged .. we have done other research and we have discovered that most likely Xiaomi has inserted in the kernel a sort of programmed obsolescence on the battery.
[Xiaomi Mi 9 Questions & Answers] cippi21:
Can you disclose some of the research you done on the kernel it seems interesting. I have checked with Aida64 my battery before and it never charges to 3300 even if you leave the phone plugged in the value will keep increasing but once you plug it out it drops...still getting about 5 hrs sot so not bad...I wonder if you change that value in the full charger screen you posted what will happen?
[Xiaomi Mi 9 Questions & Answers] ToneLa:
"From these tests it seems that the device limits the real battery capacity by not allowing it to be charged to its maximum capacity. "

Actually it's better for battery life longterm to keep the device in the middle - never 0, never 100

I've certainly lost no battery life in the year + I've had the Mi 9
[Xiaomi Mi 9 Questions & Answers] onolox:
You are doing a good job of using the phone in the 20 to 80% range. But do you charge it at the lowest possible temperature? Temperature is a battery's worst enemy. Wireless charging is a joke. It's a glued heater in the battery.

I for instance, almost all the times charge it in front a mini fan. With this I can charge it 5ºC below normal temp charge.

And like [MENTION=7797655]cezikos[/MENTION] said, use quickcharge only on emergencies. Use at max a 1.5Amps charger. Quick charge is a marketing thing. The chemistry of the batteries are almost the same in this 10 years.

Mi mi9 have one year and the battery is 100%.
[Xiaomi Mi 9 Questions & Answers] cezikos:
The important thing that you should precise is a type of charger that you are using. Do you use Quick Charge? If Yes, then battery capacity will be dramatically degrated. I use 5V 0.5-1.5A charger, it depends how fast I need to charge the Phone.

The next thing is a battery temperature, not Only while charging the Phone but also when you are using it. I`m using CPU Monitor and it's overlay to see the battery temp, you can also configure alerts when battery is starting to overheat.

Heavy Gaming decreases the life of the battery, there are a lot of variables that you have to cobsider, not only "programmed obsolescence"
[Xiaomi Mi 9 Questions & Answers] :
I had the same problem. Hopefully the battery could make 3 hours of screen, the strange thing was that suddenly it began to last very little, and I was with that problem for a couple of weeks, so I decided to calibrate the battery hoping to have some results and now the battery lasted again approximately 7 hours of screen. Try to make the battery run out from 100% to 0%. The system will not let you start because it calculates that it has no battery, so what I did was leave it in recovery mode and with the screen always active, until it turns off completely, then with a 5V 1A charger. With the phone turned off, charge it until it reaches 100%. I did it three times and the battery was back to the way it was before. You could try to do the same and I hope you can solve that problem.

Sorry for bad English
[Xiaomi Mi 9 Questions & Answers] onolox:
I tested, I put the phone to play videos until it turned off. In 1% I cleared battery stats.

Then plugged the charger and entered the TWRP and unplugged. Put the backlight to maximum, and the phone stayed on more than an hour!

Then I plugged the charger 1.5A and let it charge to max.

It worked, now the phone has a steady discharge, not discharge 100% to 80 in an hour.

I will do this procedure from time to time. not the best for the battery, but is needed in mi9...

It's an absurd that this problem exists in 2020, my galaxy S2 don't have such harsh problems with something so simple and basic like battery management!
[Xiaomi Mi 9 Questions & Answers] Tvrdi76:
Battery on my Mi9 (mildly used in one year) lost 500 mAh.
[Xiaomi Mi 9 Questions & Answers] onolox:
Confirmed, with this trick, in doing it ONE time, I have the phone running well again, more than 8h screen on.

0.5 discharge in sleep.

.eu 20.3.19
[Xiaomi Mi 9 Questions & Answers] PatrickBateman:
Thanks! I just don't know how to clean the battery status...
[Xiaomi Mi 9 Questions & Answers] onolox:
You will need root.

Then are several apps that can do it. Like l speed or adiutor.
[Xiaomi Mi 9 Questions & Answers] onolox:
And now again confirming, in one month the phone is completely lost regarding battery again, just 3h SOT from 80 to 20. There's some pretty **** up code regarding battery in xiaomi android.
[Xiaomi Mi 9 Questions & Answers] 4r44444:
I have no problems at all using it since release.

newest xiaomi eu.
[Xiaomi Mi 9 Questions & Answers] bluefish007:
I also have problems with battery drain... :(
[Xiaomi Mi 9 Questions & Answers] Lykos95:
Hello guys, just want to share with you a little trick that just helped me get better SoT. First of all, I just want to mention that I'm on the newest xiaomi.eu rom (20.8.13) and that AccuBattery is showing that my battery is at 2500mAh estimated capacity. (That might be different in reality, because it's only after one charging, so don't believe it that much). Lately I noticed a significant drain while the phone was idle (screen turned off). It was draining like 1-2% every hour and I could barely get over 5h SoT. So I investigated a little bit, and found a solution on reddit. The thing was that I had many apps on autostart. If you want to check them and turn it off then open Settings > type 'autostart' in the search bar > open it > 3 dots > show system apps > turn off every unnecessary app that you think don't need that option. I turned off every app, except: Gmail, GPay, Google Photos, Clock, Calendar, Bank app, Weather app and the app called 'safety system addon' - it might be called different because I'm not on english language on my phone. I left them on just in case to have notifications/synchronization, though i don't know if it's necessary. After that there was almost 0% idle drain over the day. Now I'm on 5h4m SoT and still have 25% of battery left. The result might be even better, cause I did this trick just today while my phone was on 90-85%.

Give it guys a try, hope it will improve your daily experience with Mi 9.

P.S. Let me know guys If I could turn off the before mentioned apps and still get notifications and sync from them.
[Xiaomi Mi 9 Questions & Answers] Oxezz:
Mine reports 2800mah, debloated with Szaki tool all autostart apps disabled also did factory reset after miui12 update.

Really sad how bad miui12 has turned for me. Im having way worse battery life compared to miui11 the idle is mostly the same its just the battery doesn't last as it used to last with miui11.
[Xiaomi Mi 9 Questions & Answers] Vitabis:
I can confirm this. AIDA64 said my battery was at 2550mah capacity when fully charged. I followed this procedure and now after being fully charged, it says 3125 mah, which is much better.

I'm curious about the screen on time now. Me happy. Thanks!
[Redmi Note 8 Pro Questions & Answers] david_z:
My RN8P Currently has:

MIUI global 11.0.4 Stable QGGMIXM

Android 10 QP1A.190711.020

I only want to root so i can install 2-3 apps the need rooting.

I don't want to flash Roms or even have use for twrp.

Which root guide should i follow?

Do in need to Downgrade to Android pie?

will i be able to get OTA updates when rooted?
[Redmi Note 8 Pro Questions & Answers] x2138:
buddy the best bet for not hard/soft bricking is to downgrade to android 9 and install preloader and then root/install recovery.

if you want you can search "konah begonia guardian" on YouTube. he has quite nice guides.

regards
[Redmi Note 8 Pro Questions & Answers] dsanhao:
FYI this device is really easy to brick that one single misstep can brick your phone and mostly the only way to restore it is via service center. So you must really pay attention to each instruction on the guides. Most root guide need to flash custom recovery first so I guess its inevitable. In order to flash custom recovery, you need to downgrade to Android 9 or Pie, more higher version than that will brick your phone.

In order to root this phone, you first need to unlock the bootloader, refer to here for the guide. (Warning, just follow the unlock bootloader guide since the flashing twrp and rooting guide from there are kinda outdated and not recommended to follow)

Then you need to flash factory firmware (preloader and lk) so you can unbrick your phone in case you brick it, refer to Megathread for guide how to do it. After that you can flash custom recovery, then you can flash magisk via custom recovery to root your phone.
[Redmi Note 8 Pro Questions & Answers] Thisnameisepic:
This guy does a ice job explaining a simple root method for Android 10 on youtube
[Redmi Note 8 Pro Questions & Answers] david_z:
thanks :good:

one more thing , in all methods , after flashing twrp recovery and booting into it the guides say to delere a file called "recovery-from-boot.p".

i saw on telegram channel describing the same mathod but it also said that if i skip the deletion of that file the original recovery will remain , the phone will be rooted

and be able to OTA update.

does anyone know if its ok to do that?
[Redmi Note 8 Pro Questions & Answers] gaban05:
I rooted from Android 10, and same with you, I only need to root to remove ads and install a few apps only.

I used this guide

https://xdaforums.com/redmi-note-8-pro/how-to/guide-unlock-bootloader-flash-twrp-root-t3995919

Make sure that the twrp is the one that compatible with android 10, otherwise it won't boot to recovery.

Have mi flash app and android stock rom ready on your PC so that if you find problem you can always flash the stock ROM.