yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi 6 Guides, News, & Discussion] bemolx:
[IMG="twrp_logo"]https://lh3.googleusercontent.com/2HtVAF5zfNMlmKhF0QYqCSr1rsstB1btNfdKl7WvGTcZkOSKCYNxdXwsSizx9VhiPg=w300[/IMG]

TWRP Recovery for Xiaomi Mi 6 (sagit)​

Hi all!

I would like to share with you TWRP for Xiaomi Mi 6, codenamed sagit, made by MIUI Polska Team. This is the zip archive containing TWRP image ready to be flashed using fastboot.

WARNING!!!

I have not tested this image. It is only for people who know what to do and what is it used for.

I AM NOT RESPONSIBLE FOR ANY DAMAGE YOU HAVE MADE TO YOUR PHONE. EVERYTHING YOU DO IS ON YOUR OWN.

How to install:

Make a full backup. Always!!

Reboot your phone into fastboot mode.

Flash using fastboot tools (ya know, fastboot flash...)

Reboot and enjoy.

After booting into recovery, TWRP will ask you to modify /system - don't allow it, otherwise your Mi6 might not boot.

Download:

This TWRP is hosted on MIUI Polska's AndroidFileHost profile.

AFH Download

All credit goes to MIUI Polska/Xiaomi.eu and it is only for sharing purposes. Let me know how it works.

Thanks
[Xiaomi Mi 6 Guides, News, & Discussion] engloa:
Thread cleaned

Lets try to stay on topic guys

A reminder that if you want to post in your native language you are free to do so BUT you must include an English translation
[Xiaomi Mi 6 Guides, News, & Discussion] zanone:
did anybody installed this on a Mi6 and can confirm if is working flawlessly ?
[Xiaomi Mi 6 Guides, News, & Discussion] zanone:
this is still the chinese version. i couldn't switch it to english.
[Xiaomi Mi 6 Guides, News, & Discussion] MuttleyMB:
I am also interested. Please, can someone explain how to proceed to have a working Recovery in english?

Thanks in advance for the replies.
[Xiaomi Mi 6 Guides, News, & Discussion] morpheus620:
https://multirom.me/read.php?tid=1713&fid=75&page=2#90707

https://drive.google.com/open?id=0B4d6gFePZwjDOHlzeGRjSVdldEk
[Xiaomi Mi 6 Guides, News, & Discussion] rizzkyy_baguss:
Nice :good:
[Xiaomi Mi 6 Guides, News, & Discussion] hoaithy92:
Thanks bro :highfive: :highfive:
[Lenovo P2 Questions & Answers] hendibudi:
Anybody there ever try or know how to relock bootloader?
[Lenovo P2 Questions & Answers] Undesirable:
It gives an error when you try doing it the normal way via fastboot oem lock.
[Lenovo P2 Questions & Answers] eried1:
Has anyone tried relocking by using third party apps (root) such as the Trickster Mod or tools like this one? It's a long shot, but an attempt nonetheless. I believe the Lenovo servers just register the request of unlocking, not the unlocking per se.
[Lenovo P2 Questions & Answers] pranavateja99:
Yes 15 day wait is request for unlock, it's don't mean device is unlocked.

Only carry-in guys see is bootloader screen and boot unlocked logo.

When someone can relock, then can claim warranty as like of those who requested unlock but not unlocked yet..

Only thing is Normal fastboot locking dont work.
[Lenovo P2 Questions & Answers] abhayruparel:
https://xdaforums.com/showthread.php?p=73356876

Check this out!
[General Topics] medellinrob:
Hello.

I've been helped by xda-developers and it's members a few times, specially in elf and kaiser subjects.

I'm sure there are lots of people who should get a donation, for my part This were the first 10 (max in a poll) I tought of:

Xda-developers site

POF

duttythroy

jcespi2005

ponch92

Swiftblade

sirsycho

nomelaseS (spanish elf rom)

LEO (creator of htc cube I use)

Chainfire

Sure I'm missing lots more.

What I want to do is this. You people vote who should I donate more. Each vote is $1USD. At the end I'll donate to these people according to your votes.

The more users that vote, the more the donation and in a democratic way.

Clauses:

- I'll donate minimum $100USD (I would use percentage)

- I'll donate maximum $300USD (I would use percentage times three) but may me more.

- If it's between those sums, the number of votes

- Poll Ends February 14 (almost a whole month)

- Donations on 15 perhaps as late as 20 of feb

- Just one vote per person (consider who deserves more recognition).

- Apart from votes I may add a bit more depending on my experience.

- If some one gets less than $15USD I may omit it. Not sure yet.

Please vote!!

And if you feel like donating too, please go ahead!

-

Rob

PS1. Sorry if $300 is a little (and splitted between 10, sorry).

PS2. You admins decide if it should be a sticky, more votes.
[General Topics] amp2k:
What about Xtriny? He should be on that list.
[General Topics] sonal_ram:
Hey folks, how can we forget the name of the person who gave it all for free...... rishi2504 .....for his Elf unlocking solution !!!
[General Topics] drdingo21:
Worst thread evar.
[General Topics] shogunmark:
I want to post this here also, i already made this post in the kaiser thread..
[General Topics] medellinrob:
Yes I know, many post like this will come, there are many people who has gave a lot to this community, many more than 10 which is the most the poll accepts. But I don't spend much time here and don't know well everybody's aportation.

In this particular case, (elf upgrading, etc), few would know nomaless, I wanted to flash a touch to spanish, Nomaless got it and he explained me how.

Well, i've did that once.

But you see... I feel like donating a lot to everybody... but I don't have a that much to donate. So I got to think how much to donate? Couldn't tell, so got this Idea which might make some one else donate too.

I believe all of those accepts donation, i see a lot of "if you like what I do please donate to a@example.com".
[General Questions and Answers] dipzxy:
My lenovo a3300 was flashed few months ago due to some rom problem by service center (and it was showing rooted while I checked using few apps).

Yesterday I tried to upgrade my firmware(available in phone update) but while restarting, it showed the boot screen and then I tried reboot now option. But then No command and a lied down android bot appeared.

None of the other option worked, and after 30-45min the screen became off and from then showed nothing. I have tried every possible button configuration but they failed.

I have inserted it into computer and system recognized it as a "MTP USB device" under portable device(win 8.1) .

But today it showed the start screen too(finally, hope :o) and I tried to reboot it by holding the power button. But the same screen returned after a vibration.[it used to vibrate when switching on]. When I right clicked the "MTP USB device" It was showing update driver, uninstall etc.

But after I tried to reboot(also after disconnecting and reconnecting it) , there are only one option i.e. "Scan for Hardware change". :confused:

I have the sp flash tool and the stock rom from xda site. I have also installed VCOM driver (android gadget vcom driver) but while flashing the download is not starting, though no error or popup showed.

How I can get my tab work again? pleaaaseee help :D

Thanks in advance
[Samsung Galaxy S8 & S8+ Cross Device Development] jesec:
Changelog:

STABLE:

VERSION 0.3, July 29th:

Merge AQG5 kernel updates from Samsung

Merge Linux 4.4.79

Merge BFQ-v8r12

Backport latest F2FS

Switch to latest Linaro GCC 7 toolchain with processor specific tunes.

Use -Ofast optimization.

VERSION 0.2.2, June 26th:

Merge AQF7 kernel updates from Samsung

Merge Linux 4.4.74

VERSION 0.2.1, May 27th:

Merge AQE5 kernel updates from Samsung

Merge Linux 4.4.69

Update system patches

VERSION 0.2, May 19th:

Updated to Linux 4.4.68

Full F2FS file system support (with latest driver backported from Linux 4.12) is added.

Possible kernel panic (random reboots) addressed.

Possible battery life improvements for CPU frequency boosts.

BFQ is added and set as the default I/O scheduler.

VoLTE & VoWiFi problem fixed. (verified by testers)

NOTE: VoLTE logo may not be an accurate indicator of VoLTE support.

VERSION 0.1, May 11th:

Initial Release.

SEMI-STOCK:

RELEASE 6, July 29th:

Merge AQG5 kernel updates from Samsung

Merge Linux 4.4.79

Backport latest F2FS

Switch to latest Linaro GCC 7 toolchain with processor specific tunes.

Use -Ofast optimization.

RELEASE 5, June 26th:

Merge AQF7 kernel updates from Samsung

Merge Linux 4.4.74

RELEASE 4, May 27th:

Merge AQE5 kernel updates from Samsung

Merge Linux 4.4.69

Update system patches

RELEASE 3, May 19th:

Updated to Linux 4.4.68

Switched to GCC 8.X

Full F2FS file system support (with latest driver backported from Linux 4.12) is added.

Possible kernel panic (random reboots) addressed.

VoLTE & VoWiFi problem fixed. (verified by testers)

NOTE: VoLTE logo may not be an accurate indicator of VoLTE support.

RELEASE 2, May 11th:

Storage and CPU performance problems fixed.
[Samsung Galaxy S8 & S8+ Cross Device Development] jesec:
Guides:

HOW-TO FLASH THIS KERNEL:

1. Make sure TWRP is installed. (https://xdaforums.com/showpost.php?p=72004368&postcount=3)

2. Download the flashable zip from download section in OP.

3. Transfer the zip to your phone.

4. Go to "Install" menu of TWRP and flash the zip.

(for devs) HOW-TO PROPERLY INTEGRATE THIS KERNEL TO YOUR ROM:

1. Download the flashable zip from download section in OP.

2. Rename the downloaded zip to "jesse-kernel.zip".

3. Delete original boot.img of your ROM.

4. Place the zip to kernel (create if not exists) folder of your ROM.

Example Structure:

->META-INF

->->com

->->...

->system

->->app

->->priv-app

->->...

->kernel

->->jesse-kernel.zip

->...

5. Delete original kernel flashing lines from installation script (META-INF/com/google/android/updater-script) of your ROM.

tip: usually start with package_extract_file("boot.img" after "ui_print("Extracting boot image...");".

6. Add these lines to the installation script of your ROM:

ui_print("Installing Jesse's Kernel...");
package_extract_dir("kernel", "/tmp/kernel");
run_program("/sbin/busybox", "unzip", "/tmp/kernel/jesse-kernel.zip", "META-INF/com/google/android/*", "-d", "/tmp/kernel");
set_perm(0, 1000, 0755, "/tmp/kernel/META-INF/com/google/android/update-binary");
run_program("/tmp/kernel/META-INF/com/google/android/update-binary", "3", "1", "/tmp/kernel/jesse-kernel.zip");
ui_print("Jesse's Kernel Installed");

(for devs) Tips about kernel compile: (Note: NO technical support for such things. Inquires will be ignored.)

1. There is a kernel build script in my kernel. (build_kernel.sh)

2. Two variables must be specified before you can run it.

export $KERNEL_TOOLCHAIN=/path/to/your-toolchain/bin/toolchain-prefix-

export $KERNEL_DTBTOOL=/path/to/dtbtool/dtbhtoolExynos

3. If you are building for Galaxy S8 (dreamlte), run it with "bash build_kernel.sh dreamlte".

If you are building for Galaxy S8+ (dream2lte), run it with "bash build_kernel.sh dream2lte".

4. Default output dir is "../kernel_out". "dt.img" and "Image" will be generated.
[Samsung Galaxy S8 & S8+ Cross Device Development] turilo:
That's what I'm talking about! Thank you!!
[Samsung Galaxy S8 & S8+ Cross Device Development] sswagonman:
Thanks [MENTION=6371894]jesec[/MENTION] for this and twrp. Without u development would be so far behind

sent from the R.I.C.E powered V8+
[Samsung Galaxy S8 & S8+ Cross Device Development] yash92duster:
Great work mate :fingers-crossed:
[Samsung Galaxy S8 & S8+ Cross Device Development] Tok11:
State-wide provider blackout the very second i flashed. No worries!
[Samsung Galaxy S8 & S8+ Cross Device Development] haifish9999:
Thanks for your hard work. Great job as always.
[Samsung Galaxy S8 & S8+ Cross Device Development] GreyFox777:
what is the difference between stock and semi stock?
[Samsung Galaxy S8 & S8+ Cross Device Development] redplate:
Got the same question.. I've installed it, but it doesn't seem to have any advanced governors, etc on board.

But still very nice to have the first kernel on!!!!! :cool:

Jesec, you're just great :svetius:

Btw: does the name Jesse's kernel was chosen on purpose or just a mistake? :eek:
[Samsung Galaxy S8 & S8+ Cross Device Development] christer12:
This kernel look like a basic kernel update from 4.4.13 to 4.4.66
[Samsung Galaxy S8 & S8+ Cross Device Development] samteeee:
[MENTION=6371894]jesec[/MENTION]

Awesome, thanks a lot bro!
[Samsung Galaxy S8 & S8+ Cross Device Development] tiho5:
Thank you for the first custom kernel

Can we expect a permissive kernel for this device soon?
[Samsung Galaxy S8 & S8+ Cross Device Development] cantenna:
Per github commit, the big news here is that this kernel is permissive!

[MENTION=1164188]jessec[/MENTION], you are totaly awesome:good:

Thank you for being here!

Update; appear kernel selinux is still enforcing
[Samsung Galaxy S8 & S8+ Cross Device Development] jesec:
It is SELinux permissive. That enforcing is fake actually. (just let userspace think status change is successful) ;)

Changelog: (May. 9th)

I fixed a bug of script. Now new build (May. 9th) should work fine on non-plus variants.
[Samsung Galaxy S8 & S8+ Cross Device Development] sille:
finally i can use ARISE completely. thx a lot :)
[Samsung Galaxy S8 & S8+ Cross Device Development] namfat:
Great one. Many thanks. I will try and report.
[Samsung Galaxy S8 & S8+ Cross Device Development] metuskale:
Feels good to see development here, used to love ur work on GS7.

One question, where can I get the Magisk Flashable? I got it when flashed the ROM but I cant flash the ROM over the kernel or I will lose the kernel :eek:
[Samsung Galaxy S8 & S8+ Cross Device Development] tiho5:
Great.

Thanks. That's what I've been waiting for.
[Samsung Galaxy S8 & S8+ Cross Device Development] beanbean50:
here it is:
[Samsung Galaxy S8 & S8+ Cross Device Development] Sams26:
8 hours SOT
[Samsung Galaxy S8 & S8+ Cross Device Development] cyruslam:
By any chance will this kernel increase gaming performance? As i found consistent lag with the stock
[Samsung Galaxy S8 & S8+ Cross Device Development] cantenna:
antutu would suggest, yes!
[Samsung Galaxy S8 & S8+ Cross Device Development] ounerkouks:
hi

you use semi stock or version 0.2 ?

thanks
[Samsung Galaxy S8 & S8+ Cross Device Development] Sams26:
Just version .20
[Samsung Galaxy S8 & S8+ Cross Device Development] intxeon:
Does Shealth work with this kernel?
[Samsung Galaxy S8 & S8+ Cross Device Development] white7561:
My sheath works fine. Using this kernel with systemless SuperSU
[Samsung Galaxy S8 & S8+ Cross Device Development] white7561:
Guys, I test my internal speed and it was so low. and i remember that [MENTION=6371894]jesec[/MENTION] change the IO scheduler to BFQ.. so i changed it to NOOP . and my speedtest flies.. i guess the BFQ is slower for battery saving? if yes. can you add SIO scheduler? as i think SIO is the best on balanced performance and battery saving... anyway im gonna edit this post and add the picture of my speedtest later.

The random speeds went nuts on Noop
[Samsung Galaxy S8 & S8+ Cross Device Development] otonieru:
I see no significant speed difference between bfq and noop

With noop, its around 800++Mb/s read , with BFQ it's 798MB/s

The write is around 202-206 MB/s
[Samsung Galaxy S8 & S8+ Cross Device Development] white7561:
See the post again. I updated it with pictures. See the random read IOPS. It went nuts..
[Samsung Galaxy S8 & S8+ Cross Device Development] Okarina26:
[MENTION=6371894]jesec[/MENTION]

is there a chance to insert performance gov....please...[emoji1]
[Samsung Galaxy S8 & S8+ Cross Device Development] jesec:
It is pretty normal for I/O benchmark not to be stable. Same as most of you, I probably get ~750 at first run, then it lower down to ~680 at second run, at third run, it jump to ~800. As long as it doesn't drop to 200/300, it should not be considered as "difference".

Also it is pretty inappropriate, and possibly, ridiculous to use benchmark software to reflect real world experience.

That's the reason why I set BFQ to default I/O scheduler despite that it may not perform significantly better than other schedulers in test scores.

Here is a video to show how BFQ improves real-world user experience under heavy loads and how ridiculous it is (for some users) to promote NOOP I/O scheduler.

https://youtu.be/ANfqNiJVoVE

In no scenario I will add things that I will not enable by default. Also I won't add those deprecated I/O scheduler or those failed to be merged to Linux mainline, SIO for example.
[Samsung Galaxy S8 & S8+ Cross Device Development] iamnotkurtcobain:
Why did you choose BFQ instead ROW?

Do you think it's ok to use your latest kernel on the AQE5 Base?
[Samsung Galaxy S8 & S8+ Cross Device Development] jesec:
Simply because it is deprecated. There is neither Linux mainline merge nor ongoing out of tree development of it.

Yes. Complete compatible.
[Samsung Galaxy S8 & S8+ Cross Device Development] iamnotkurtcobain:
I guess we get AQE5 or AQE7 kernel sources in the next days..
[Samsung Galaxy S8 & S8+ Cross Device Development] DimOsBar:
Can you add iptables support?
[Samsung Galaxy S8 & S8+ Cross Device Development] THATTON:
I am having issues with the .2 "stable" version of this kernel. It is making my phone feel stuttery/jittery/lagging all around. There is a lag present that I have not noticed since I rooted. I am running v2 of the Renovate ROM. Let me know what I can do to help. I switched back to BatStock for now since that one seems to keep my phone very smooth. I noticed the stutters in animations/transitions/scrolling the most. I have left all of the configurations default. If I can get a logcat or something similar that would help, please let me know!
[Samsung Galaxy S8 & S8+ Cross Device Development] haksancan:
Are you sure? There is no such thing as GCC 8.x and won't be until next year.
[Samsung Galaxy S8 & S8+ Cross Device Development] innit:
new kernel sources published http://opensource.samsung.com/reception/receptionSub.do?method=sub&sub=F&searchValue=sm-g955f
[Samsung Galaxy S8 & S8+ Cross Device Development] jesec:
I noticed that and I am working on it.

However, I don't think there will be any significant changes.

There is. I am using development branch.

It is compiled by myself so I don't have to wait for release.
[Samsung Galaxy S8 & S8+ Cross Device Development] iamnotkurtcobain:
New camera binaries in the kernel/ramdisk
[Samsung Galaxy S8 & S8+ Cross Device Development] maze00:
Thank you for this kernel. Great work !!

I am using the stock version, but i have some strange frequencies

In System tuner the big cores are om max 1.69 en the little on 455

In Kernel Adiutor it is displaying for the big cores 2314 en for the little 1690

Is it true that enforced mode is not possible to select ?

This will make the phone more responsive.

---------- Post added at 01:47 PM ---------- Previous post was at 01:38 PM ----------

Sorry,

It looks like system tuner only displays the little cores.

Don't know what this is.....
[Samsung Galaxy S8 & S8+ Cross Device Development] cantenna:
so can anyone confirm VOLTE is indeed working on mainline ver2? I thought it was initially but I see now that the icon in status is only visable briefly after boot. Also, I have no HD audio icon visible during a call.

just tried semi-stock from this thread, volte is there upon boot but disappears shortly there after. No HD call notification icon either in call.

just wondering if it's my. arrive that's the issue. :)

update; re-downloaded mainline from this thread (was using telegram pre-dates release) VOLTE is working now! HD notification in call as well:) :svetius:

edit 2: lost volte again... seem I have too reboot to get it back and it gets lost until a reboot if device enters a deep sleep. Maybe be my carrier?
[Samsung Galaxy S8 & S8+ Cross Device Development] KKLD:
Is there any way to overclock the CPU to more than 2.5 GHz? What about the small cores as well as changing the voltage?

What about the GPU?
[Samsung Galaxy S8 & S8+ Cross Device Development] royalbloodvi:
can i use this for batstock rom without any issues?
[Samsung Galaxy S8 & S8+ Cross Device Development] white7561:
I wanted the same . But [MENTION=6371894]jesec[/MENTION] said he will NOT add those features. Even though I'll love those features lol
[Samsung Galaxy S8 & S8+ Cross Device Development] KKLD:
Did he give any reasons for not adding those features?
[Samsung Galaxy S8 & S8+ Cross Device Development] poczynek:
Search button
[Samsung Galaxy S8 & S8+ Cross Device Development] Lodix:
With summer coming I think it is more favourable to be able to underckock a bit to reduce throttling instead of getting a 9% increase in single core for a few seconds at 2'5GHz before it goes down.
[Samsung Galaxy S8 & S8+ Cross Device Development] d.cortez:
are you on ATT? i'm testing VoLTE using the stock kernel for the same reasons you mention above. with stock kernel i see VoLTE icon all the time. with Jesse's kernel i don't see the VoLTE icon but i know it's working because the 4G/LTE icon is continuously displayed on phone calls. i saw an "HD" icon only once with Jesse's kernel, have not seen it with stock kernel. my conclusion is Jesse's kernel supports VoLTE but icon is not displayed. will defer to Jesse for confirmation. going to flash back to Jesse's kernel when i return home from my current business trip.
[Samsung Galaxy S8 & S8+ Cross Device Development] cantenna:
I'm on Optus network, Australia.

Sounds good!, very happy with the overall performance :laugh:
[Samsung Galaxy S8 & S8+ Cross Device Development] mookkaiah:
Cannot install NEMESIS Rom please help me
[Samsung Galaxy S8 & S8+ Cross Device Development] zaleks13:
Using Nemesis ROM with Jesse's kernel with pleasure.

Install steps:

1.Install ROM with full wipes

2.Flash kernel

3.Flash Magisk or SUPERSU as writen in 1st post.
[Samsung Galaxy S8 & S8+ Cross Device Development] ajai_dev:
Trying this on a normal S8 have reached a stable 2.5Ghz overclock that I am testing but there is a small problem individual cores dont go to offline mode anymore they stay at the min Freq and also the phone goes to Doze properly but there is no automatic offline mode anymore for individual core.

Edit: For whatever reason the Antutu score seems to be more or less the same at around 171K
[Samsung Galaxy S8 & S8+ Cross Device Development] white7561:
He wanted this kernel to be as "close" to stock.
[Samsung Galaxy S8 & S8+ Cross Device Development] waqsuk:
Is anyone having issues with Bluetooth media audio books with this kernel?
[Samsung Galaxy S8 & S8+ Cross Device Development] cantenna:
care to elaborate?

no issues here. I have recently noticed, at least on my end, bluetooth reception is improved with NFC disabled.
[Samsung Galaxy S8 & S8+ Cross Device Development] THATTON:
How did you get VoLTE working on AT&T? Do you see the option in settings? I can't get it to work. I also can't get Visual Voicemail to work. Please let me know!
[Samsung Galaxy S8 & S8+ Cross Device Development] jesec:
New builds released.

VERSION 0.2.1:

https://www.androidfilehost.com/?fid=673368273298957840

SEMI-STOCK RELEASE 4:

https://www.androidfilehost.com/?fid=745425885120735048

This is a small update.

Changelog:

1. Merge AQE5 kernel updates from Samsung.

2. Merge Linux 4.4.69

3. Update system patches
[Samsung Galaxy S8 & S8+ Cross Device Development] cantenna:
great update! Works well Jese:svetius:
[Samsung Galaxy S8 & S8+ Cross Device Development] ErdinYK:
is that working without broken my phonme
[Samsung Galaxy S8 & S8+ Cross Device Development] chantak:
Would it run on the 128GB 6GB ram variant of G955N?

Thanks.
[Samsung Galaxy S8 & S8+ Cross Device Development] teknoman17:
It works like a charm
[Samsung Galaxy S8 & S8+ Cross Device Development] white7561:
[MENTION=6371894]jesec[/MENTION] hey.. can you look into Energy Aware Scheduling? Its like happening now at xda. they say its better in battery and performance. can you check into that? and if u can port it into here? it might save a lot of battery . :) Thanks

---------- Post added at 01:05 PM ---------- Previous post was at 12:56 PM ----------

Also [MENTION=6371894]jesec[/MENTION] . I just saw your kernel thread on S7 and I saw a lot of tweaks. Also overclocking on CPU nor GPU? anyway. I hope u can add those tweaks etc to our S8 kernel. Thank you so much