yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy Note 9 (Exynos) ROMs, Kernels, Reco] omnimj:
Install TWRP on rooted Note 9 [Q] with magisk v20.3

Hello,

Following the procedure I patched the AP file of Android 10 stock ROM by using Magisk manager and installed the Q ROM to my Note 9 using Odin.

Now I have rooted N9 running Q. Everything works perfect.

I would like to install working TWRP now.

According to my unpleasant experience with Q ROM, Magisk 20.3 (both stable and canary) and TWRP 3.3.1-r3.7-q (boot-loop, missing system partition etc.) , I would not like to come back to the situation to spoil everything, since I had to flash the stock Q ROM several time until I came to this stage that my phone is running well as I described at the beginning.

Please give me an advice how to install TWRP on the safe way using the new TWRP 3.31-r3.8-q or some other more reliable.

Is this realistic in this moment or should I wait for a more stable TWRP?

Thank you very much in advance.
[Samsung Galaxy Note 9 (Exynos) ROMs, Kernels, Reco] Montero7o:
Hello [MENTION=6205834]omnimj[/MENTION]

You will never be able to install the TWRP, once you have started Android 10, it will permanently lock the mounting of partitions by TWRP from the start of initialization.

I advise you to read and understand my tutorial which was duplicated at post # 341

If you don't understand what you need to do, you will never get there.

I can not help if you do not follow this tutorial and respect the "IMPORTANT" phases mentioned.

cordially
[Samsung Galaxy Note 9 (Exynos) ROMs, Kernels, Reco] dr.ketan:
Why are you messing up by doing all steps that even doesn't requires for N9 which is not true SAR like s10/N10

Here very simple steps to get twrp and root on Note9 with Android 10

- Flash stock Q

- oem bootloader unlock

- flash twrp - reboot to twrp - flash latest stable magisk

- reboot twrp

- flash dm - verity disable force encrypt (link below)

- reboot twrp - format data (that you need to confirm by typing 'yes'

Reboot to system and done!

Here already I have explained on how to root thread

https://xdaforums.com/showpost.php?p=81754803&postcount=588
[Samsung Galaxy Note 9 (Exynos) ROMs, Kernels, Reco] Montero7o:
Hello @ dr.ketan

If your procedure works with your customn rom that I tried, this is not the case of stock roms, under TWRP certain partitions are not accessible in R / W

My procedure allows the backup and restoration of the 11 partitions.

cordially
[Samsung Galaxy Note 9 (Exynos) ROMs, Kernels, Reco] dr.ketan:
Your procedure? What is your procedure?

And this is not my procedures nor my ROM have custom partition table that is different from stock

And I never had issue in backup /restore when I make it

I can't understand my procedure and your procedure, provide me some technical point what is wrong in said procedure. What technically you have found different in my rom and stock rom that twrp works differently?
[Samsung Galaxy Note 9 (Exynos) ROMs, Kernels, Reco] omnimj:
Hello [MENTION=1915241]montero7[/MENTION]0, thank you for your quick reply.

I've already passed through the procedure that you described in the post # 324 from 06 February 2020.

Unfortunately I didn't manage to get TWRP that works well. I got boot-loop, missing partitions, I couldn't restore, my phone stocked several times etc.

I have also tried other suggested procedures, but no positive result.

I realized that in this stage is not possible to get TWRP properly working with the available tools and decided to root my N9 following the tread [Guide] Root Note 9 (Exynos) Android 10 (Q) With/Out Custom Recovery posted by Zer0De8th, Junior Member on 24th January 2020.

So I got into the current situation of having a rooted N9 on Q, which works fine. But, I'm still missing TWRP and I wouldn't give up.

I will listen to your suggestion and try again instructions that you gave at # 341 post. I saw the twrp-3.3.1-r3.8-Q-crownlte has been published in a mean time. Shall I try it instead the twrp-3.3.1-r3.7-Q-crownlte that you suggested in #341?

---------- Post added at 01:46 PM ---------- Previous post was at 01:40 PM ----------

Hello dr.ketan. Thank you for the reply.

As I have already described to Montero70 how I came into this situation and I wouldn't repeat myself.

I'll try yours and his procedure and I guess one will manage to get TWRP that works fine.

All the best.
[Samsung Galaxy Note 9 (Exynos) ROMs, Kernels, Reco] dr.ketan:
I have read it, but you need to understand. With Android Q N9 is converter to SAR but yet it is far different from SAR with those devices, which born as SAR

So situation is zip (may be it ROM, some modes or scripts) you are flashing should be compatible with twtp you are using.

There are two twrp there one based on Q base and another older one (by gieti which made on Pie based)

All recoveries are stable but you needs to use which developer of zip recommends. For example my rom script based on old recovery (when I have released my first Q rom which was based on Q beta, that time there was no Q based twrp was available) so I recommended it. But if any rom have script based on sar, you needs to use newer twrp

Now regarding, backup and restore, you should know that since SAR, if you restore any backup that you made in form of non image like system, vendor etc, will break rootfs and device will bootloop. Don't blame rom or twtp for this, it's Google, who made this.

So, if you make backup with img format like system.img vendor.img on Android Q and restore it, it should work as it should, weather you use old or new twrp, it doesn't matter..

Another thing, what should you backup?

Normally we does modify, system, vendor, data, csc and boot and these are the components mostly any custom rom contains. If you backup those files, hardly you get any trouble.

Hope this helps
[Samsung Galaxy Note 9 (Exynos) ROMs, Kernels, Reco] omnimj:
Thank you for the additional explanation.

Since I'm not the expert in those things, I would like to ask you for some clarifications. Maybe it will sound stupid from your point of view and sorry for that.

First of all, what is SAR?

Second - the older twrp based on Pie you are mentioning is twrp-3.2.3-0-crownlte_UNOFFICIAL.tar.md5 or similar?

- the two based on Q beta are twrp-3.3.1-r3.7-q-crownlte and twrp-3.3.1-r3.8-q-crownlte?

- for the custom Q rom N960FXXU4DSLA (21 January 2020) I should use the last twrp that I mentioned above?

Third, the magisk that I should use is magisk canary or magisk stable 20.3?

And the fourth, the explanation regarding the format of system, vendor etc. is the most important for me, since the previous questions are more/less clear and I just need the confirmation - are the components like system, vendor, data, csc and boot regularly in the .img format and not in any other format that may break root and cause bootloop and other unwanted behavior of the phone?
[Samsung Galaxy Note 9 (Exynos) ROMs, Kernels, Reco] dr.ketan:
1.System as root, implemented on N9 since Q

2.yes, any of three should work but myself yet not get chance to use newer and only tested 3.2.3 Pie based

3. I Always using latest stable 20.3

4.if you have made backup as system/vendor instead of system.img or vendor.img and you restore such non img backup, it will cause bootloop. Device doesn't boot so no question of additional behaviour
[Samsung Galaxy Note 9 (Exynos) ROMs, Kernels, Reco] omnimj:
Thanks for the clarifications.

Regarding 4. how can i be sure i will make a backup as system.img or as vendor.img and not as non-img backup? What components such are system, vendor, data, csc, boot etc. should i check when i do backup or restore?
[Samsung Galaxy Note 9 (Exynos) ROMs, Kernels, Reco] 3arthur6:
Using this twrp, don't care about .img or not, restore doesn't cause bootloop.

Not sure but I think it's related to twrp not builded with sar config flag, as geiti94 one.

So don't care about .img backup, check all partitions when you do a backup if unsure.

Regarding your trouble to flash twrp, you probably missed a step somewhere.

After odin twrp flash and before rebooting to system, format data partition, flash magisk, DM-verity and forceencrypt disabler and you should be good.
[Samsung Galaxy Note 9 (Exynos) ROMs, Kernels, Reco] 3arthur6:
One more release ;)

.New kernel base

.It should be even more compliant with custom roms
[Samsung Galaxy Note 9 (Exynos) ROMs, Kernels, Reco] dr.ketan:
Sorry I haven't yet tried this one so might missed that. This happens to all available N10 twrp because it breaks rootfs.
[Samsung Galaxy Note 9 (Exynos) ROMs, Kernels, Reco] omnimj:
Than you for the very useful explanations.

What would happen in my situation when I have rooted N9 Q and I use Flashify.apk to flash Recovery image? Maybe is this a shorter way to get TWRP rather to go again from the beginning with Odin?
[Samsung Galaxy Note 9 (Exynos) ROMs, Kernels, Reco] 3arthur6:
Not to go to the beginning, just flash twrp thought odin.

Make some search dude, there is a lot of guide about how to install twrp.
[Samsung Galaxy Note 9 (Exynos) ROMs, Kernels, Reco] omnimj:
Maybe you missed my first post, but I already have rooted my N9Q using magisk patching method. Is it safe and possible now just to flash the twrp throught Odin?
[Samsung Galaxy Note 9 (Exynos) ROMs, Kernels, Reco] 3arthur6:
Yes it's safe.

But follow step by step a dedicated guide, and be sure to understand a bit what you are doing and what you have to do.
[Samsung Galaxy Note 9 (Exynos) ROMs, Kernels, Reco] omnimj:
Ok if it is safe to flash twrp, bu what about Disable_Dm-Verity_ForceEncrypt_01.19.2020.zip? Should I flash it through the twrp once I flash the twrp via Odin?
[Samsung Galaxy Note 9 (Exynos) ROMs, Kernels, Reco] zadox:
Starting from [MENTION=3931450]dr.ketan[/MENTION] 's beta Q version it was never easy for me to upgrade to Q/Q04 (I was with [MENTION=4259991]3arthur6[/MENTION] 's TWRP). Took me days, followed guides and advice and I am now back at zero, which is a progress considering that I was at minus (being with a bootlooping system/non-system-mounting TWRP smartphone). I don't even remember now how on earth I managed to return to the previous, working state (Dr.Ketan's Q03) - downloading stock ROMs at 15KB/s from greedy sites didn't help things anyway. I think I am going to stay here (Q03) for a while, I don't have too much free time right now.
[Samsung Galaxy Note 9 (Exynos) ROMs, Kernels, Reco] Montero7o:
Hello [MENTION=4259991]3arthur6[/MENTION]

Thank for the new version of Twrp (v9) for Android 10

Good job
[Samsung Galaxy Note 9 (Exynos) ROMs, Kernels, Reco] omnimj:
Hello Montero70, related to my posts #361- 365 do you have any idea what to do with Disable_Dm-Verity_ForceEncrypt_01.19.2020.zip in my case? Should I flash it through the twrp once I flash the twrp via Odin? What to do with Magisk since the phone has been already rooted before flashing twrp?
[Samsung Galaxy Note 9 (Exynos) ROMs, Kernels, Reco] vaib:
AFH/gdrive link please? Can anyone please reupload?
[Samsung Galaxy Note 9 (Exynos) ROMs, Kernels, Reco] 3arthur6:
GDrive mirror is on upload, it will be here in few minutes.
[Samsung Galaxy Note 9 (Exynos) ROMs, Kernels, Reco] Detonatte:
3arthur6 with version r7 twrp backup and restore work perfect in Android 10. With r8 fail. With r9 work? Tested?

Trimis de pe al meu SM-N960F folosind Tapatalk
[Samsung Galaxy Note 9 (Exynos) ROMs, Kernels, Reco] Montero7o:
Hello

With v8 or v9 work very good
[Samsung Galaxy Note 9 (Exynos) ROMs, Kernels, Reco] 3arthur6:
I didnt get bad feedback.

And no problem on my side (even with r8?) so yes it works.
[Samsung Galaxy Note 9 (Exynos) ROMs, Kernels, Reco] ghembuls:
Work with LoS 17.1

Successfully flashed LoS 17.1 build 29 Feb 2020 with TWRP 3.3.1 v3.9 For Q
[Samsung Galaxy Note 9 (Exynos) ROMs, Kernels, Reco] tamim.aleter:
Note 9 sm-N960N android 10

Hello , please can someone help with Note 9 SM-N960N have official android 10 to install twrp and root it , i spend 2 days and unsuccessful , please steps with file links

and how i can install different ver like n960F for dualsim ....

Thanks
[Samsung Galaxy Note 9 (Exynos) ROMs, Kernels, Reco] sak0071:
Restroe bootloop 3230

>>>Restroe work on r3.9 ?
[Samsung Galaxy Note 9 (Exynos) ROMs, Kernels, Reco] omnimj:
Backup/restore work on r.3.9
[Samsung Galaxy Note 9 (Exynos) ROMs, Kernels, Reco] sak0071:
Install aroma rom work for 3.3.1 r3.9 ?

(Ketan rom super stable devbase )
[Samsung Galaxy Note 9 (Exynos) ROMs, Kernels, Reco] omnimj:
I'm on Note 9 exynos , firmware ROM: N960FXXS4DTA5.

I flashed twrp 3.3.1-r3.9, rooted with Magisk 20.3 and Disable_Dm-Verity_ForceEncrypt_02.02.2020.zip and for me everything is working fine.

The only thing that I noticed is when I uninstall the unnecessary system apks (I don't use Linkedin, Dictionary, Facebook App installer, Facebook services) the phone boot in download mode. Is that usual for Android 10?
[Samsung Galaxy Note 9 (Exynos) ROMs, Kernels, Reco] Fishballs:
Delay??

Sorry if it has already been replied to before

I used this TWRP Recovery to change my Phone's Filesystem to F2FS, and noticed that it isn't Booting up within a Certain amount of time (roughly 5 mins)

There is a Known Bug with Boot Delay? Boot Delay for the Recovery? or the System? How long is this Delay? Does F2FS even work for Note 9?

Am using the Beta build of Zeus Kernel for Android Q and the S5DTB6 Devbase

Am way too new to this
[Samsung Galaxy Note 9 (Exynos) ROMs, Kernels, Reco] Synt4x.93:
I assumed you modified the stock vendor fstab for f2fs?
[Samsung Galaxy Note 9 (Exynos) ROMs, Kernels, Reco] Fishballs:
No clue what that is or how am i going to edit/modify it but i think i figured it out after a little bit of reading about the kernel

Seems f2fs support needs to be on the rom too?? (making a guess)

Ty for the input
[Samsung Galaxy Note 9 (Exynos) ROMs, Kernels, Reco] Synt4x.93:
if you didnt, obviously it wont boot.

stock fstab mounts data as ext4 only, before Q the fstab was in ramdisk (in the kernel) now it is in vendor/etc

very simple you just need to add 1 line for each partition you want f2fs instead of ext4.

edit-

saw you update your post, just go to vendor/etc with rootexplorer and edit fstab and add the needed f2fs lines.
[Samsung Galaxy Note 9 (Exynos) ROMs, Kernels, Reco] Fishballs:
:confused: What are f2fs lines? I can do this using any Rom after adding the lines?
[Samsung Galaxy Note 9 (Exynos) ROMs, Kernels, Reco] 3arthur6:
Hey

Use this fstab.samsungexynos9810

I'm currently giving a try to f2fs with with fstab.

Measurable performance gain with a slight increase in battery consumption.
[Samsung Galaxy Note 9 (Exynos) ROMs, Kernels, Reco] Detonatte:
Use twrp-3.3.1-r3.9_q-crownlte.tar but why no mark System in Mount???

Try this:

wipe-advanced wipe select system - Repair or Change Files System - Change File System - Select F2FS - Swipe to Change

wipe-advanced wipe select system - Repair or Change Files System - Change File System - Select EXT4 - Swipe to Change

After restart my phone enter in bootlop :(
[Samsung Galaxy Note 9 (Exynos) ROMs, Kernels, Reco] 3arthur6:
Not sure to understand..

Changing file system will format the partition, so if you just restart after that yes you can not boot.

Follow f2fs conversion guide.

No need to go to f2fs for system partition, benefits of f2fs come from better write operations and system partition is read only. Data and cache is enough.
[Samsung Galaxy Note 9 (Exynos) ROMs, Kernels, Reco] 3arthur6:
You can now go to official release.

Or switch to OrangeFox recovery which I will still maintain.

This thread will be closed.
[Samsung Galaxy Note 9 (Exynos) ROMs, Kernels, Reco] karapoutsoglou:
orange fox all the way
[Samsung Galaxy Note 9 (Exynos) ROMs, Kernels, Reco] xanthrax:
Thanks for letting us know and for your work, keep it up :good:

thread closed
[Samsung Galaxy Note 9 (Exynos) ROMs, Kernels, Reco] 3arthur6:
:confused:

With F2FS data?

Could you provide a last_kmsg from /proc ?
[Samsung Galaxy Note 9 (Exynos) ROMs, Kernels, Reco] osk4rin:
Does this TWRP is for the Exynos SM N960F?

Thanks!
[Samsung Galaxy Note 9 (Exynos) ROMs, Kernels, Reco] bober10113:
please read OP and thread title.

thanks
[Samsung Galaxy Note 9 (Exynos) ROMs, Kernels, Reco] karapoutsoglou:
holy shhhh, my phone is N960F!!! and i have installed this recovery
[Samsung Galaxy Note 9 (Exynos) ROMs, Kernels, Reco] azZA_09:
Beside all trolls, yes. It is. But read op everytime.
[Samsung Galaxy Note 9 (Exynos) ROMs, Kernels, Reco] osk4rin:
My bad*

Thanks for clarify!
[Samsung Galaxy Note 9 (Exynos) ROMs, Kernels, Reco] bober10113:
id like to report weirdness
[Samsung Galaxy Note 9 (Exynos) ROMs, Kernels, Reco] bober10113:
also wiping cache or formatting cache never actually deletes anything...
[Samsung Galaxy Note 9 (Exynos) ROMs, Kernels, Reco] karapoutsoglou:
also i formatted to f2fs using endurance kernel for pie with dr ketan latest rom and nothing changed. still ext4
[Samsung Galaxy Note 9 (Exynos) ROMs, Kernels, Reco] bober10113:
well im on f2fs( frankly not seeing any advantages, disk access actualy dropped compared to ext4) but my main issue is that cache dosen't get wiped. not sure for dalvik.

what leads me to belive this is:

when wiping and refreshing it always shows 14 mb instead of 0 when it was on ext4.

and when i reboot phone i dont get the " optimizing x of y apps" upon reboot where when i was on ext4 it would do that like every other android phone ive had in the past 5 years.

what am i missing? is this by design?
[Samsung Galaxy Note 9 (Exynos) ROMs, Kernels, Reco] 3arthur6:
Sorry for that... It is doubtless because of the changes I started for allowing internal backup, but I totally changed the way to do this. So next update will fix it. But I'm not sure that the internal backup will be possible with it.
[Samsung Galaxy Note 9 (Exynos) ROMs, Kernels, Reco] karapoutsoglou:
thank you for your hard work. i dont understand. why is internal backup so crucial? if you want f2fs you do a clean install after you formatted data and cache.
[Samsung Galaxy Note 9 (Exynos) ROMs, Kernels, Reco] 3arthur6:
Absolutly not crucial. But I would like to have that :p

I will upload a clean release in few hours. With or without that
[Samsung Galaxy Note 9 (Exynos) ROMs, Kernels, Reco] 3arthur6:
Sorry I postpone the update because twrp 3.3.1 just get out and the latest commits seem to fix the previous backup restoration issue with pie platform.

I have to rebase my build platform. One day more needed.
[Samsung Galaxy Note 9 (Exynos) ROMs, Kernels, Reco] bober10113:
take your time.

looking forward to test out new rebase.
[Samsung Galaxy Note 9 (Exynos) ROMs, Kernels, Reco] 3arthur6:
A simple system backup/restore just confirmed it :good:
[Samsung Galaxy Note 9 (Exynos) ROMs, Kernels, Reco] bober10113:
i took a backup but didn't have time to restore.

is it possible that the mounting point for preload dosent match the right path? or name?

attached pictures show mounting error and in the partition list the name seems to be dqmdbg
[Samsung Galaxy Note 9 (Exynos) ROMs, Kernels, Reco] 3arthur6:
I removed preload (or hidden) "partition" as it's a part of system. So totaly useless.

Dqmdbg is probably a part of boot, or at least related to boot. It his needed when upgrade (and downgrade?) system.
[Samsung Galaxy Note 9 (Exynos) ROMs, Kernels, Reco] bober10113:
ok but its strange how doing a cache wipe will throw that preload not found message.

also i just restaured a full backup and i had a bootloop. uppon 2nd reboot i got to home screen and all by magisk modules are not working. and also my sd card if now popping up as if it was a new one that i just inserted. its seems to be intact though so not much of an issue.
[Samsung Galaxy Note 9 (Exynos) ROMs, Kernels, Reco] Kingvtt:
Thank you ! Great work
[Samsung Galaxy Note 9 (Exynos) ROMs, Kernels, Reco] tycoon78[stoner]:
Yeah. I'm using f2fs on both data n cache. Here is the file u asked for.
[Samsung Galaxy Note 9 (Exynos) ROMs, Kernels, Reco] 3arthur6:
Haven't you a previous backup containing this preload partition? This could explain that since after a wipe lot of twrp datas are refreshed and this warning could be shown.

For the rest I didn't get such issue, and honestly it's probably more related to twrp code than to this compilation.

Edit: But if you have a logcat of this strange boot or kmsg I would take a look!
[Samsung Galaxy Note 9 (Exynos) ROMs, Kernels, Reco] bober10113:
yeah one of my backups had a 100% backup incl preload.

so that probably explains it.

also, ive been playing around with odm and efs partitions (mainly changing csc region as i regularly do) and it seems my scripts cant mount and wipe them as it once worked.

any ideas?
[Samsung Galaxy Note 9 (Exynos) ROMs, Kernels, Reco] 3arthur6:
Without any log difficult... But partitions are well mountable so strange that your script fails.

I'm now verifiying possible selinux attributes mismatches, which could explain your previous boot issue.
[Samsung Galaxy Note 9 (Exynos) ROMs, Kernels, Reco] bober10113:
i restored back odm and efs and went back to ext4 and everything seems to be working now.

what is weird is that my scripts logs were not indicating any issues. so i just dont understand what was going on.

i mount wipe and extrac files, then modify some and then apply permissions.

maybe it was on the permissions function that it was failing. but again i did not find any clues that it was failling....weird
[Samsung Galaxy Note 9 (Exynos) ROMs, Kernels, Reco] Gandicela:
[MENTION=4259991]Arteush[/MENTION], can we just extract the img file out and flash it as "recovery" inside TWRP itself?
[Samsung Galaxy Note 9 (Exynos) ROMs, Kernels, Reco] Da-BOSS:
Yes, you can.. always make sure to choose (recovery) partition :) when flashing recovery.img file ;)
[Samsung Galaxy Note 9 (Exynos) ROMs, Kernels, Reco] SammyTRK:
Sweet. Looking forward to testing this out again when I get a chance. :good:

I have some questions about F2FS. Which partitions should I change to f2fs just system and cache? What about the external sdcard, should I convert that to f2fs? Are there any drawbacks to changing to f2fs? Do I have to do a clean install after changing or can I restore a backup? I don't think I've said f2fs enough in one post sooo... F2FS. :silly:
[Samsung Galaxy Note 9 (Exynos) ROMs, Kernels, Reco] bober10113:
i heard that cache should not be converted.

ive had issues whith the whole thing anyways.

wish there was a standard 3.3.1.0 twrp with regular default ext4 support.
[Samsung Galaxy Note 9 (Exynos) ROMs, Kernels, Reco] 3arthur6:
F2FS should give better i/o speed, especially write speed. So having data and cache in F2FS could give better overall experience.

But as system is a read-only partition and read speed are not better in F2FS than EXT4, there is no real reason to convert it to F2FS ;)

And using a microSD with F2FS may be ok, but lot of system (Windows for exemple if I'm not mistaken) don't support it natively.

And the most important thing, you need a kernel which support F2FS!

Please if you do not know let others give the answer.... Rather than peddle rumors.

It full support F2FS formatting and mounting. The only one issue, as far as I know, is a twrp boot delay, around 10sec.

There is absolutly no difference with a TWRP which don't support F2FS. This F2FS ability is only related to the kernel part of this recovery.

So it supports both EXT4, F2FS, EXT3, EXT2, FAT, exFAT, NTFS and some others, in the same way.

And as explained in the first post, it's still a beta.