PhilZ Touch recovery for Galaxy S4 LTE-A with f2fs-support - Galaxy S 4 i9506 Android Development

/* Info */
This is a portion of hlte's PhilZ Touch recovery for Galaxy S4 LTE-A.
All features are confirmed to be working properly.
Its kernel is based on my arter97 kernel with full f2fs support.
Users can switch to f2fs if they are planning to use arter97 kernel.
/* Downloads */
http://www.arter97.com/browse/s4/recovery/
/* Switch to f2fs */
This step includes a full factory wipe!
Backup your data prior to switch!
You may use arter97 recovery to back-up previous ext4 data to an external storage
and restore it to newly formatted f2fs storage.
Your /system partition(ROM) will stay unwiped at ext4
for no compatibility issues what-so-ever.
You may install any ROM that fits your taste.
1. Install normal ClockworkMod(or PhilZ) recovery
2. Put arter97 recovery on you SD card
3. Enter recovery
4. Flash recovery
5. Reboot recovery
6.1 Select "Mounts and Storage"
6.2. Select "toggle f2fs <-> ext4 migration"
6.3. Select "format /cache"
6.4. Select "f2fs"
6.5. Select "Yes - Format device"
7.1. Select "format /data and /data/media (/sdcard)"
7.2. Select "Yes - Format"
7.3. Select "f2fs"
7.4. Select "Yes - Format device"
8. Reboot

only works on kitkat

@arter97 something goes wrong when trying to do this from philz touch cwm 6.0.3.7, downloaded from your site.
It really just stops on Samsung logo as mentioned earlier.
Edit: above is just nonsense, stupidity of me, just put 4.4 grade bootloader and you're flying.

jonte28 said:
only works on kitkat
Click to expand...
Click to collapse
Trying to say at you need 4.4 bootloader?
Didn't work on 4.3, wondering might that be the reason for not working?
Edit: yes problem truly was bootloader, now on 4.4 bootloader and this works flawlessly.
Thanks @arter97 !

do backup and restore function work well?

breakingstorm said:
do backup and restore function work well?
Click to expand...
Click to collapse
I think so.
Sent from my SHV-E330S using XDA Free mobile app

breakingstorm said:
do backup and restore function work well?
Click to expand...
Click to collapse
Yes, haven't seen or encouraged any bugs.

download link says "forbidden".

edmund321 said:
download link says "forbidden".
Click to expand...
Click to collapse
Here is correct link.
https://s.basketbuild.com/devs/arter97/S4/recovery

Related

[RECOVERY][MOD][O2X][02-Nov-2011] Clockwork 5.0.2.7.111102

First of all, this is not my work. I only compiled it.
This is the usual ClockworkMod recovery, version compiled from the CM7 sources with additions/modifications by j_r0dd. What I've done is only to compile it for the LG Optimus 2X. For details, check out the link to j_r0dd's original thread for the Nexus S.
The credits go to Koush for the recovery itself and to j_r0dd for most of the modifications.
j_r0dd said:
This is based on the latest CM7 source which I modified for myself. I take no credit for the recovery whatsoever, but I will take all the blame for my mods . We all know this is Koush's hard work. Just some things were driving me crazy personally. First was the confirmation menu. I really got sick of scrolling through all those "No"s just to flash something, so i changed it for me personally and just thought I would share. I also created a proper wipe menu. I got sick of some wipes in the main menu and the rest in the "advanced" menu. I made this more Amon_RA like. See the attached screenshot for my changes. That change has led to a few others by me. flash with fastboot or flash_image. THESE ARE NOT IN ROM MANAGER. Also if you have an issue with this take it up with me NOT Koush.
Click to expand...
Click to collapse
Original Nexus S thread with changelog here.
Download:
recovery-clockwork-5.0.2.7.111102-j_r0dd_mod-p990.zip
(old) recovery-clockwork-5.0.2.7.111027-j_r0dd_mod-p990.zip
Change log:
02-Nov-2011 (v5.0.2.7):
Merged 5.0.2.7 sources from CM7 repo again (some bugfixes)
Added option to wipe cache partition and dalvik cache at the same time
27-Oct-2011 (v5.0.2.7):
Merged 5.0.2.7 sources from CM7 repo (support for internal/external sdcard in backup/restore)
Now that Koush added backup support for internal/external sdcard I'll only build onw version (exernal sdcard in file lists) If you really want one build for internal sdcard, let me know and I'll do it.)
07-Oct-2011 (v5.0.2.6):
Rearranged wipe menu to avoid accidental factory wipes
Added "Reboot Bootloader"
Moved SD Card partitioning into a function of its own for both int/ext SD card
Merged 5.0.2.6 sources from CM7 repo
Added a menu choice of ext2/ext3/ext4 when partitioning SD card
As of this version, I'll only be providing one img file. It seems 5.0 has native support for internal/external SD card. Need confirmation of this, as I don't have this phone myself.
25-Sep-2011 (v5.0.2.3):
Updated to j_r0dd's 5.0.2.3 version. Currently no changes made by myself.
17-Jun-2011 (v4.0.0.5):
Moved the "Wipe data/factory reset" to the bottom of the wipe menu to reduce the risk of accidental factory wipes.
19-Jun-2011 (v4.0.0.5):
Added "Reboot bootloader" option in advanced menu.
Added the ext4 modifications kindly supplied by roalex. Needs testing. Please make a proper nandroid backup with a proven working recovery version before trying this.
20-Jun-2011 (v4.0.0.5):
Added "Show log" in the advanced menu. This can help when reporting errors here. Use it.
21-Jun-2011 (v4.0.0.5.z110621):
Reverted and correctly added roalex's ext4 additions.
Modified recovery.fstab for ext4 support on some devices.
23-Jun-2011 (v4.0.0.5.z110623):
Reverted back to ext3 for the meantime, since I didn't get ext4 working. Any suggestions are welcome!
06-Jul-2011 (v4.0.0.5.z110706):
Added "Advanced backup". Now you can backup/restore individual partitions.
Some other commits from other devs in github
Changed file limit from 10000 to 50000 in unyaffs. Should help when restoring large data partitions fails.
17-Jul-2011 (v4.0.1.0.110717):
Rebased completely on j_r0dd's 4.0.1.0 source and removed roalex's ext4 additions, as it wasn't working for everyone. Now trying with the original ext4 support which is included in CWM.
20-Jul-2011 (v4.0.1.4.110720):
Bug fixes
Two versions. One for internal storage and one for external microSD card (same zip file)
Disclaimer
These recoveries are compiled using the latest commits from koush, j_r0dd and others. That means they haven't been thoroughly tested and might have minor/major issues. I take no responsibility for any damages this thing might cause, but most things should work as intended. If you want something guaranteed to work, I think you should stick with one of the older versions.
Source code available here.
This recovery bricked my phone
Hell_97 said:
This recovery bricked my phone
Click to expand...
Click to collapse
Anybody with same problem?
Hell_97 said:
This recovery bricked my phone
Click to expand...
Click to collapse
How did you install it? Can you still boot into whatever ROM you were running before? What happens when you start to phone now? Exactly what did you do? Please be a bit more specific so we might have a chance of helping you fix the problem.
Sent from my Nexus S using Tapatalk
Updated recovery.fstab to allow ext4. Might work better. Try at your own risk.
zyonee said:
How did you install it? Can you still boot into whatever ROM you were running before? What happens when you start to phone now? Exactly what did you do? Please be a bit more specific so we might have a chance of helping you fix the problem.
Sent from my Nexus S using Tapatalk
Click to expand...
Click to collapse
I tried to change kernel and the device is locked on the LG screen, I solved with smartflash.
that's not even related to this recovery mod.... I had the same problem with "original" 4.0.0.5 and after flashing vorkernel had the same problem.... I solved it with restoring nandroid backup. The kernel does not work for me with CM latest nightlies.
So can someone please test the newest recovery version? I'd like to know if ext4 works as it should.
Sent from my Nexus S using Tapatalk
klubipiff said:
that's not even related to this recovery mod.... I had the same problem with "original" 4.0.0.5 and after flashing vorkernel had the same problem.... I solved it with restoring nandroid backup. The kernel does not work for me with CM latest nightlies.
Click to expand...
Click to collapse
I installed vork kernel with "original" 4.0.0.5 on CM53 without problem.
To have ext4 you also need a kernel with ext4 support (correct me if im wrong) So which kernel has the ext4 support?
Sent from my Optimus 2X using XDA App
peewster said:
To have ext4 you also need a kernel with ext4 support (correct me if im wrong) So which kernel has the ext4 support?
Sent from my Optimus 2X using XDA App
Click to expand...
Click to collapse
Please stay on topic. This thread is about the modified ClockworkMod recovery and possibly its ability to work with ext4, not about custom ROMs or kernels...
Sent from my Nexus S using Tapatalk
If you've changed recovery.fstab, then it should be OK with EXT4, that's all I had to do with my releases to get it working.
zyonee said:
Please stay on topic. This thread is about the modified ClockworkMod recovery and possibly its ability to work with ext4, not about custom ROMs or kernels...
Sent from my Nexus S using Tapatalk
Click to expand...
Click to collapse
Just asking because it looks nice but then i need to know wich kernels i can use?
Sent from my Optimus 2X using XDA App
Just flashed the recovery, all ok. The confirmation menu is much better now with just 1: no line
Sent from my Optimus 2X using XDA App
peewster said:
Just flashed the recovery, all ok. The confirmation menu is much better now with just 1: no line
Sent from my Optimus 2X using XDA App
Click to expand...
Click to collapse
Very glad to hear it. Wipe, nandroid backup/restore and ext4, did you test all these?
Sent from my Nexus S using Tapatalk
peewster said:
Just asking because it looks nice but then i need to know wich kernels i can use?
Sent from my Optimus 2X using XDA App
Click to expand...
Click to collapse
Well, see, the problem isn't really which zips you can or cannot flash. It's more about whether you can flash at all or if ext4 works properly. If nandroid backup and restore works or not. I'm fairly certain that all kernels can be flashed, but how well they work is something that I don't see would be affected by this recovery.
Sent from my Nexus S using Tapatalk
Hmm doesnt seem to wipe correctly...after doing a clean install of CM7 I still have all my old apps and settings. That said I did install it in an odd way (replaced Paul's recovery with it and ran his .bat script). What is the easiest method to flash recovery?
That is the easiest way.
xAdaM-- said:
Hmm doesnt seem to wipe correctly...after doing a clean install of CM7 I still have all my old apps and settings. That said I did install it in an odd way (replaced Paul's recovery with it and ran his .bat script). What is the easiest method to flash recovery?
Click to expand...
Click to collapse
Exactly how did you wipe? Did you use the "format" commands in "mounts and storage" or did you use "clear data/factory reset"? I'm starting to think that the format command is not working.
zyonee said:
Exactly how did you wipe? Did you use the "format" commands in "mounts and storage" or did you use "clear data/factory reset"? I'm starting to think that the format command is not working.
Click to expand...
Click to collapse
Didn't go near the format command in mount and storage. In the specific "Wipe" menu --> tried factory reset etc/cache partition...all seemed to work way to quickly to actually be doing anything. Like I'd select wipe data/factory reset, hit yes and it would say completed after like 1 second (usually takes more than 5 with regular recovery). And then of course when I rebooted my device my data was still there, nothing wiped (except perhaps dalvik, but who knows).

[HOWTO] Changing Filesystem to F2FS on the Sprint S4

This guide is for the Sprint Galaxy S4 only and as of now it is only compatible with two kernels: KToonsez S4 Kernel 4.4 AOSP (4/17 or later) and PoKernel 1.7 F2FS ONLY Build. This guide CANNOT be used on Touchwiz or Android 4.3 yet. I will update it when and if that becomes possible
*Disclaimer: You are doing this to your phone under your own consent. This is an experimental procedure and may not work on some hardware revisions or on devices where certain conditions are not met. You assume all the risk by flashing any of the software below or changing your filesystems. I am not responsible if your phone does not work based on the method I am describing below. Modify at your own risk.
This guide had to be updated in order to correct misinformation. The guide will follow KT's instructions explicitly until it gets to the formatting of the system partition
***If you want to format your /system partition to F2FS please read that section first as it requires steps to be taken from your currently working AOSP rom!***
First, go this link download the file:TWRP-KT.ALL-IN-1.zip
http://goo.gl/HLz4al
Formatting Data and Cache to F2FS
NOTE: Follow these steps EXACTLY, do NOT add or remove any steps, period!!!!
1. Backup everything from your internal SD to your PC or external SD, since the entire internal SD is going to get wiped out with format!!!!!!!!!!
2. Download the files from the folder that you got these instructions from (Ignore the OLD WAY folder) and SAVE TO THE EXTERNAL SD!!!
3. ONLY DO THIS STEP IF YOU ARE ON AN OLD VERSION OF MY TWRP. Flash TWRP-KT.ALL-IN-1.zip (this is what gives us the ability to format using F2FS)
4. Reboot recovery
5. Go to "Settings" and check the box to force F2FS for data and cache (you can also check the box to include /system partition if you want to convert your ROM's zip to use that too)
6. Go to "Wipe->Advanced" option and wipe the "Cache" partiton
7. Go to "Wipe->Format Data" option (THIS WIPES YOUR ENTIRE INTERNAL SD CARD, all files and folders, all gone so make a backup to your external SD or PC!!!!!!!!!!!!!)
8. This step you have 2 choices:
A. Flash your ROM/gapps to start completely fresh
B. Go to restore option and ONLY restore your "Data" (you can also restore /system if you are doing the f2fs conversion on /system partition too)
9. ONLY DO THIS STEP IF YOU INSTALLED A NEW ROM. Flash my newest kernel (needs to be a kernel dated 05.05.2014 or newer)
10. DONE!!!!!!!!!!!!!
11. KTweaker has a new option under "Tools" screen to "Get Partition info" to double check your work.
Formatting System Partition with F2FS (Required: KT SGS4 Kernel 4/28 or later!)
Steps:
1.) Before doing any F2FS conversion with the above instructions, use your currently working AOSP ROM to grab the AOSP 4.4 Kernel from HERE (4/28 or later only!) and save it to your external memory card
2.) Once it is saved reboot to recovery and install it (Flashing a kernel in TWRP is Install -> Folder where kernel is -> Click KT 4/28 kernel -> Swipe to install -> Clear cache/dalvik -> Main menu -> click advanced -> Fix Permissions -> Reboot to system)
3.) After you are back in your working AOSP ROM with KT 4/28 kernel installed, download the AOSP rom you want to use and save it to your external sd card (You can leave the filename as it is, the program will rename it for you)
4.) Open KTweaker and click "Tools" and at the very bottom choose "F2FS: Convert ROM ZIP"
5.) It will ask you to locate the file, ask if you're sure, and then it will do the conversion; upon completion the zip file that was created will have "-F2FS.zip" at the end of it
6.) Now you can follow the steps above, but when you get to step 9A you will use the "-F2FS.zip" file instead of the standard ROM file
This procedure is necessary because KTweaker changes your favorite ROM to pass the command mkfs.f2fs so that your system partition is formatted to F2FS before the files are installed. I did this myself to verify and it works a treat. One crucial step to remember though is that after you install your F2FS converted ROM you absolutely must install KT's kernel so your phone will boot.
Returning to EXT4
NOTE: Follow these steps EXACTLY, do NOT add or remove any steps, period!!!!
1. Backup everything from your internal SD to your PC or external SD, since the entire internal SD is going to get wiped out with format!!!!!!!!!!
2. Download the files from the folder that you got these instructions from (Ignore the OLD WAY folder) and SAVE TO THE EXTERNAL SD!!!
3. ONLY DO THIS STEP IF YOU ARE ON AN OLD VERSION OF MY TWRP. Flash TWRP-KT.ALL-IN-1.zip (this is what gives us the ability to format using F2FS)
4. Reboot recovery
5. Go to "Settings" and uncheck the box to force F2FS for data and cache (If you checked the box to include /system partition uncheck it first)
6. Go to "Wipe->Advanced" option and wipe the "Cache" partiton
7. Go to "Wipe->Format Data" option (THIS WIPES YOUR ENTIRE INTERNAL SD CARD, all files and folders, all gone so make a backup to your external SD or PC!!!!!!!!!!!!!)
8. This step you have 2 choices:
A. Flash your ROM/gapps to start completely fresh
B. Go to restore option and ONLY restore your "Data" (you can also restore /system if you are doing the f2fs conversion on /system partition too)
9. ONLY DO THIS STEP IF YOU INSTALLED A NEW ROM. Flash my newest kernel (needs to be a kernel dated 05.05.2014 or newer)
10. DONE!!!!!!!!!!!!!
11. KTweaker has a new option under "Tools" screen to "Get Partition info" to double check your work.
FAQ
Q: Why can't I use this on Touchwiz?
A: It has been developed for the most recent Linux kernel 3.8 and has been implemented in kernels built for 4.4.x OSP builds. This isn't to say it cannot be used on Touchwiz, it is a filesystem and as long as there is a kernel that offers support for reading it installed on your device it should theoretically work on your hardware. However, this can be proven/disproven by the devs here and I will update this answer if it cannot be implemented in a backwards fashion.
Q: Are there advantages to using F2FS?
A: It is built and intended for use on flash filesystems which our devices run exclusively. So since it was developed for flash memory there will be a benefit to using it as it matures. However, this does not imply that benchmarks will increase or your whole phone will become more responsive, its intent is to have files be accessed and written more efficiently. It is supposedly also built for the long-term user who does not constantly reformat their devices because it is supposed to handle large amounts of old files and cleaning more effectively that EXT4. Source: https://www.kernel.org/doc/Documentation/filesystems/f2fs.txt
Q: Will this trip Knox?
A: No more than installing a custom recovery would. So if you already had a custom recovery (Read: TWRP, PhilZ, CWM) in place you are safe following this guide. For now of course; I do not know if there will be another iteration of Samsung software that locks down the device futher.
Q: Can I clear Cache and Dalvik to troubleshoot after changing my filesystem?
A: I tried this myself and the answer is yes. As long as you are using the F2FS custom recovery made by KToonsez you can wipe Cache and Dalvik from recovery and it will rebuild your system. Something I did notice is that first boot will stay on the splash screen longer with F2FS than with EXT4. I saw it hang on the splash screen of my Liquid rom for an extra minute before actually booting and showing cache rebuild. **Your Mileage May Vary**
Q: Why isn't the System Partition formatted into F2FS?
A: This can be done now with KTweaker. See section above.
Q: What ROMs can I use with this filesystem?
A: Any 4.4.x rom (most are 4.4.2 now) that is compatible with either KToonsez S4 AOSP kernel or Pokernel 1.7 F2FS Only.
Q: In Advanced Wipe, Preload has been added to the options of things to wipe. Should I?
A: Ktoonsez answer found HERE was that he has never wiped preload. So I suggest against it unless you know what you are doing.
Thanks
Linux, Google, and Samsung (all this neat stuff comes from those communities)
TWRP Team for their custom recovery and its updates
Ktoonsez for his awesome kernel and the modified recoveries
CPA Poke for his awesome kernel that has F2FS support baked in
LuigiBull23 for edits and reminding me to add content
XDA for giving us a place to host experimental phone procedures
The XDA Devs for all the work they do for us with their time
The XDA community for providing feedback and making this a great place to hang out
If I forgot anyone specifically please let me know and I will update this section or any section
Enjoy and let us know how it works on your device!
Great guide my friend!
delete
Thanx great guide
Sent from my SPH-L720 using XDA Premium 4 mobile app
Great guide OP! Always nice to have a thread to link to.
I'm sure it's been talked about but your posts doesn't mention the ramdisk files. They're listed but not talked about. Now I'm somewhat limited myself in understanding everything there is to know about these things but are those files to do with eventually formatting the system partition to f2fs?
May be worth putting a little note in there regarding those files... You know how some folks go flash crazy once in recovery lol
Sent from my SCH-I545 using Tapatalk
Mistertac said:
Great guide OP! Always nice to have a thread to link to.
I'm sure it's been talked about but your posts doesn't mention the ramdisk files. They're listed but not talked about. Now I'm somewhat limited myself in understanding everything there is to know about these things but are those files to do with eventually formatting the system partition to f2fs?
May be worth putting a little note in there regarding those files... You know how some folks go flash crazy once in recovery lol
Sent from my SCH-I545 using Tapatalk
Click to expand...
Click to collapse
Hello again.. Lol
The ramdisk mod is now obsolete as it's already included in the kernel zip, which will automatically determine whether you're still on EXT4 or F2FS and make the required changes to the ramdisk accordingly. So no need to flash anything but the kernel as usual after following the steps.
OK yea I figured it was either to do with what I said or to do with the kernel obviously. Just figured I'd ask anyways
Sent from my SCH-I545 using Tapatalk
I'll be the first to admit that I wasn't entirely sure what the ramdisk files were for. I knew they might have been for advanced users considering they were offered, but not listed in the instructions. I didn't know for sure and I didn't want to use the word "obsolete" because, well, I was so wrong before
I am glad LuigiBull23 jumped in and answered that for us. I'll get it added into the the guide so future users know what they are or are not used for. Keep the questions coming, I love learning about this stuff!
I'll be the first to admit that I wasn't entirely sure what the ramdisk files were for. I knew they might have been for advanced users considering they were offered, but not listed in the instructions. I didn't know for sure and I didn't want to use the word "obsolete" because, well, I was so wrong before
I am glad LuigiBull23 jumped in and answered that for us. I'll get it added into the the guide so future users know what they are or are not used for. Keep the questions coming, I love learning about this stuff!
Click to expand...
Click to collapse
I understand. A lot of people were and still are confused about these files..
In short, during the testing phases of F2FS, KT compiled a separate zip for changes to the ramdisk that in turn would reflect the EXT4/F2FS mount points as a means to avoid possible bootloops and such. It was indeed a success and as a result was included in his kernel.
Now, upon flashing the kernel it is able to determine which partitions are formatted as EXT4 or F2FS and mod the ramdisk accordingly. He only left the files on his server in case he ever needed them again. So they are most definitely OBSOLETE. You certainly wouldn't have gone wrong using the term in this case.
Updated the guide for KT's new all-in-one TWRP recovery that will allow you to switch back and forth between F2FS and EXT4. I used his exact instructions from his guide in all areas except for the system formatting section which I wrote. If you are using his custom TWRP recovery go ahead and grab the new one so you can use it in the future!
F2FS with CM11 Nightly
When I used KTweaker to convert my latest CM 11 nightly, it came back and said that it was done but could not find all the lines to modify. Is this ok?
mwilder817 said:
When I used KTweaker to convert my latest CM 11 nightly, it came back and said that it was done but could not find all the lines to modify. Is this ok?
Click to expand...
Click to collapse
I know it has been forever since you posted this and I apologize for the late answer, but I imagine that if you received that error you got a bad download of CM11. I've personally converted the snapshot and several nightlies of CM11 and they all passed nicely.
So for anyone getting this, if you get a similar error message: Re-download the ROM you are converting
to bad its still not possible with touchwiz, love to use f2fs on a stock rom for my sgs4-lte.
is it possible in the near future that we can use f2fs on those devices with a Samsung stock rom, using another kernel is no problem.
or is this hard to tell ?
Hello, I've been trying to use this to change my filesystem because I'm coming from CM12 and I'm trying to flash a GPE rom on my S4. But after flashing I am rebooting straight to recovery. Also I'm using the latest TWRP.
RealMikeyTaylor said:
Hello, I've been trying to use this to change my filesystem because I'm coming from CM12 and I'm trying to flash a GPE rom on my S4. But after flashing I am rebooting straight to recovery. Also I'm using the latest TWRP.
Click to expand...
Click to collapse
Make sure you are using a version of TWRP that support F2FS. I don't think the standard issue TWRP does. @AntaresOne has one that does support F2FS and is based on the latest version (2.8.3.0). That's the one I use. Of course, I'm hooked on his CM12 ROM as well. He does really good work!!
mwilder817 said:
Make sure you are using a version of TWRP that support F2FS. I don't think the standard issue TWRP does. @AntaresOne has one that does support F2FS and is based on the latest version (2.8.3.0). That's the one I use. Of course, I'm hooked on his CM12 ROM as well. He does really good work!!
Click to expand...
Click to collapse
But doesn't it have to be in EXT4 for it to work for a GPE ROM?
RealMikeyTaylor said:
But doesn't it have to be in EXT4 for it to work for a GPE ROM?
Click to expand...
Click to collapse
You are probably right. I haven't tried the GPE ROM yet.
Sent from my SPH-L720 using XDA Free mobile app
RealMikeyTaylor said:
But doesn't it have to be in EXT4 for it to work for a GPE ROM?
Click to expand...
Click to collapse
Yup gpe uses ext4 on all partitions because it uses tw framework

[Guide][WIP] To ALL-F2FS

WIP​looks like the oficial TWRP 2.8 dose not support F2FS yet>> fyi its a bug
you must use multirom TWRP 2.8 witch has F2FS support​
This is what you need:
OTG-cable
USB drive
Alright chaps get ready for awesomeness
1.Recovery
You will need TWRP recovery
download the latest one
after you did that flash it with Rashr
2.ROM/Gapps/Kernel
now download Gapps,and the ROM that you want that is ALL-F2FS to your usb drive
and a ALL-F2FS kernel if the ROM you chose did not have a ALL-F2FS kernel
3.Backup
now backup anything! you dont want to lose to your computer or usb drive
And do try to do a nandroid backup to your USB drive if you can
4.Formating
Or watch https://www.youtube.com/watch?v=obwJCFzlh4w&feature
Reboot in recovery
- Tap Wipe
- Tap Advance Wipe
- Tap All if you want to have clean setup
- Swipe to Wipe
- Back
- Tap System
- Tap Repair/Change File Format
- Tap F2FS
- Swipe to Change
- Back, Back
- Tap Cache
- Tap Repair/Change File Format
- Tap F2FS
- Swipe to Change
- Back, Back
- Tap Data
- Tap Repair/Change File Format
- Tap F2FS
- Swipe to Change
- Back, Back, Back
5.Flashing
Now
-Tap mount
Mount your USB drive in recovery
-back
-Tap install
-Tap Storage:
-Tap USB Storage
Now tap the ROM you downloaded
Swipe to flash
Do the same with the kernel if you downloaded one
Then reboot and your done cheers
If you don't have an OTG-cable or a USB drive
What you need is a
Computer
mini USB cable. aka the one you use to connect your n7 to your computer.
First back up every thing you don't want lose
And download the ROM that is f2fs and kernel if the ROM you chose did
Not have a f2fs kernel to your computer
1. Download NexusRootToolkit
2. Install NexusRootToolkit
3. Launch NexusRootToolkit
4. It will update the Recovery Images
5. In Advance Utilities Click Launch
6. In Boot/Flash Image, tick Flash Permanently
7. Click Recovery
8. Click Latest TWRP
9. Then reboot to TWRP
10. Start Formatting to ALL-F2FS
Or watch https://www.youtube.com/watch?v=obwJCFzlh4w&feature
- Tap Wipe
- Tap Advance Wipe
- Tap All if you want to have clean setup
- Swipe to Wipe
- Back
- Tap System
- Tap Repair/Change File Format
- Tap F2FS
- Swipe to Change
- Back, Back
- Tap Cache
- Tap Repair/Change File Format
- Tap F2FS
- Swipe to Change
- Back, Back
- Tap Data
- Tap Repair/Change File Format
- Tap F2FS
- Swipe to Change
- Back, Back, Back
11. Now all of your files are gone
12. Now back to NexusRootToolkit
13. In Flash Zips
14. Add Zips to Flash
15. Click Add Zips to Flash and browse for the ROM you downloaded and the kernel
16. Click Confirm Operation
17. After that reboot to recovery
18. Tap Install and you will see a folder !ReadyToFlash
19. If you don't see any files or folder just keep on FlashZips until you see that folder.
20. If you see the rom and kernel then start flashing
credit to @SmaRkieS
..
Thank you for the guide, you really helped me.
I flashed the 03/08 Carbon ROM using the USB OTG method (because of driver issues) and it works well.
Tonttunator said:
Thank you for the guide, you really helped me.
I flashed the 03/08 Carbon ROM using the USB OTG method (because of driver issues) and it works well.
Click to expand...
Click to collapse
Cheers
Thanks!
Had to remember my XDA login to hit Thanks! I haven't used my Grouper for some time (kids think it belongs to them). I decided to start carrying it for work and realized just how slow it seemed. I'm so thankful for resources like XDA to tell me about things like F2FS, but I didn't really know where to start. So I read about 100 pages of a dozen threads and finally found this post.
Finding your video on how to format F2FS in a step by step method really made it easy.
I don't have an OTG cable, and don't always trust tool kits, so I just used
Code:
adb push CARBON-KK-UNOFFICIAL-20140803-1733-grouper.zip /sdcard/!ROMS/CARBON-KK-UNOFFICIAL-20140803-1733-grouper.zip
&
adb push 7-29_GApps_Standard_4.4.4_signed.zip /sdcard/!ROMS/7-29_GApps_Standard_4.4.4_signed.zip
Thanks again!
Thanks to you @USBhost. Method in post #2 work perfect for me. My tablet feel a lot faster!
mana4.com said:
Thanks to you @USBhost. Method in post #2 work perfect for me. My tablet feel a lot faster!
Click to expand...
Click to collapse
cheers
nice but hard to find a perfect kernel.im running liquidsmooth kitkat previouly with franco.but its kinda frustrating that it causes ramdom freezes.then i tried mkernel which was very impressive when i was using jellybean.but frustrating again cuz it causes problem of the screen out of order(not sensitive enough).after all of this i change back to the original kernel of the rom.faint
look like i need to update this for the new twrp 2.8
USBhost said:
look like i need to update this for the new twrp 2.8
Click to expand...
Click to collapse
Certainly looks that way [emoji1]
Is it possible to create a compatible PhilzTouch Cwm recovery?
k4bbe said:
Certainly looks that way [emoji1]
Is it possible to create a compatible PhilzTouch Cwm recovery?
Click to expand...
Click to collapse
Dont know
i have the latest twrp but when i try to change to f2fs i dont have that option just fat and the ext ones how do i fix this
robgee789 said:
i have the latest twrp but when i try to change to f2fs i dont have that option just fat and the ext ones how do i fix this
Click to expand...
Click to collapse
Hmm i have all the options
Try deleting the twrp config file
USBhost said:
Hmm i have all the options
Try deleting the twrp config file
Click to expand...
Click to collapse
where is that mate?
robgee789 said:
where is that mate?
Click to expand...
Click to collapse
In the root of your internal storage
/TWRP/.twrps
USBhost said:
In the root of your internal storage
/TWRP/.twrps
Click to expand...
Click to collapse
i dont have a twrp folder???
edit i booted to twrp then rebooted and its there so i deleted it and the setting is still not there ??
---------- Post added at 04:33 PM ---------- Previous post was at 04:22 PM ----------
i just flashed 2.7.1.1 and the option is there lol
robgee789 said:
i dont have a twrp folder???
edit i booted to twrp then rebooted and its there so i deleted it and the setting is still not there ??
---------- Post added at 04:33 PM ---------- Previous post was at 04:22 PM ----------
i just flashed 2.7.1.1 and the option is there lol
Click to expand...
Click to collapse
O ok
Looked like you had an old recovery lol
Good you got it working
USBhost said:
O ok
Looked like you had an old recovery lol
Good you got it working
Click to expand...
Click to collapse
i started with an old version the updated to 2.8.0.0 and thats when i tried to change to f2fs but the option wasnt there but it is on 2.7.1.1
robgee789 said:
i started with an old version the updated to 2.8.0.0 and thats when i tried to change to f2fs but the option wasnt there but it is on 2.7.1.1
Click to expand...
Click to collapse
Flash is one
Rename it to img

F2fs for Zuk z1

F2fs for zuk z1 is here.
This mod works only on cm 14.1 based roms.
The below file contains patched fstab.qcom so you can convert /data and /cache partition to f2fs.
Warning!!!!!!!
Converting /data to f2fs will wipe out entire data partition.
Make sure to backup your entire internal storage partition.
Me or xda will not be held responsible for any of your loss after proceeding with the below instructions.
Requirements:-
1) A rom based on cm 14.1 running Radioactive-kernel 3.20
2) Zuk z1
3)make sure you are on the stock boot image of your rom. If you flashed supersu, restore back to original boot image or dirty flash your rom
4) Proceeding with below instructions will reset your device. Make sure to keep rom zips on pc and backup internal storage.
I can't make it more clear that I'll not be held responsible for the losses due to hou not reading the entire instructions properly.
Instructions :-
1) Download the kernel attached below.
2) Download TWRP (Official 3.1.0-0) and flash it
3) Install the kernel zip i provided.
4) If you want to change only Cache partition to f2fs, boot into twrp, go to wipe, select advanced wipe, select Cache, change fs, select f2fs, swipe to confirm.The rom will be compatible with both ext4 (existing) and f2fs. So you can choose if you want only cache partition or both cache and data
5) If you want to convert data partition, boot to twrp, go to wipe, select advanced, wipe select data, change fs, select f2fs.
6) if you want supersu, make sure to flash it after flashing this kernel. Else your device might bootloop.
Enjoy faster read and write speeds.
Credits :-
All the devs on xda,
Especially @acuicultor and @OrdenKrieger who brought nougat to this device Nd team nuclear
i forgot from where I edited the fstab.
Plz pm me if i forgot anyone's name
Edit :-
Source code
https://github.com/Yrahate7/Radioactive-kernel-HAM
ADDICTEDYASH said:
F2fs for zuk z1 is here.
This mod works only on cm 14.1 based roms.
The below file contains patched fstab.qcom so you can convert /data and /cache partition to f2fs.
Warning!!!!!!!
Converting /data to f2fs will wipe out entire data partition.
Make sure to backup your entire internal storage partition.
Me or xda will not be held responsible for any of your loss after proceeding with the below instructions.
Requirements:-
1) A rom based om cm 14.1 running Radioactive-kernel 3.20
2) Zuk z1 [emoji14]
3)make sure you are on the stock boot image of your rom. If you flashed supersu, restore back to original boot image or dirty flash your rom
4) Proceeding with below instructions will reset your device. Make sure to keep rom zips on pc and backup internal storage.
I can't make it more clear that I'll not be held responsible for the losses due to hou not reading the entire instructions properly.
Instructions :-
1) Download the kernel attached below.
2) Download TWRP (Official 3.1.0-0) and flash it
3) Install the kernel zip i provided.
4) If you want to change only Cache partition to f2fs, boot into twrp, go to wipe, select advanced wipe, select Cache, change fs, select f2fs, swipe to confirm.The rom will be compatible with both ext4 (existing) and f2fs. So you can choose if you want only cache partition or both cache and data
5) If you want to convert data partition, boot to twrp, go to wipe, select advanced, wipe select data, change fs, select f2fs.
6) if you want supersu, make sure to flash it after flashing this kernel. Else your device might bootloop.
Enjoy faster read and write speeds.
Credits :-
All the devs on xda
Click to expand...
Click to collapse
Mate why you open a thread with Radioactive kernel on tittle? Also why you used my kernel without asking permission first? You should make a flashable zip with the modded fstab without my kernel inside. Please do it that way or i will report.
Sent from my Nuclear OnePlus3T
acuicultor said:
Mate why you open a thread with Radioactive kernel on tittle? Also why you used my kernel without asking permission first? You should make a flashable zip with the modded fstab without my kernel inside. Please do it that way or i will report.
Click to expand...
Click to collapse
Sorry man.
I wanted to make sure that you read it.
I'll change it right away.
And regarding the kernel, I've compiled my own kernel based on your source. It has a few mods which u didn't include.
Currently i didn't have a name. So much sorry about it. I i havent uploaded the source as i didn't have any new name.
ADDICTEDYASH said:
Sorry man.
I wanted to make sure that you read it.
I'll change it right away.
And regarding the kernel, I've compiled my own kernel based on your source. It has a few mods which u didn't include.
Currently i didn't have a name. So much sorry about it. I i havent uploaded the source as i didn't have any new name.
Click to expand...
Click to collapse
You know that you are breaking gpl? And why your zip looks exactly same like mine? I can help you if you need just pm me.
Sent from my Nuclear OnePlus3T
acuicultor said:
You know that you are breaking gpl? And why your zip looks exactly same like mine? I can help you if you need just pm me.
Click to expand...
Click to collapse
Yes i know that. But currently i don't have enough internet plan to upload it. I'll upload it asap as my exams are over. I. E. After 12th may
ADDICTEDYASH said:
Yes i know that. But currently i don't have enough internet plan to upload it. I'll upload it asap as my exams are over. I. E. After 12th may
Click to expand...
Click to collapse
You made a fork of Radioactive kernel, right? Then push to github your commits, that's not a lot of data consuming,then share the link here.
Sent from my Nuclear OnePlus3T
This thread is a clear violation of the GPL.
Please upload the source and contact me. I will re-open it then.
As for now thread closed.
Edit: Thread re-opened.

[Recovery][Exynos][Unofficial] Upstreamed TWRP Android-8.1

Unofficial TWRP Upstream for hero2lte
- TWRP 3.3.0-0
- Built on top of latest kernel source and upstreamed to 3.18.138
- Support for Samsung ROMs and can mount data after using them
- Code was cleaned up a lot and it should be more stable.
Credits to Ivan Meler for kernel and device sources and exynos-linux-stable for the upstreaming of linux kernel for our devices.
Instructions:
How to install TWRP recovery.img
1. Boot into an existing TWRP build
2. Download recovery image.
3. Copy TWRP image to your device
3. Click the 'Install' button
4. Click the 'Install Image' button
5. Navigate to where you downloaded the image and click on it
6. Select 'Recovery' partition option from the list, and swipe to confirm flash
7. Reboot back into recovery and you'll be in the updated recovery.
--
How to install Odin recovery.tar
1. Download Odin3 v3.13.1
2. Download Odin flashable
4. Restart your device in to Download mode (by holding Vol- & Home & Power)
5. Connect your device to your computer
6. Click 'AP' and select the .tar image you downloaded
7. Click the 'Start' button to flash the recovery
8. Reboot into recovery (by holding Vol+ & Home & Power) after successful flash.
Downloads:
16-04-19
————-
TWRP recovery.img
Odin recovery.tar
Sources: https://gitlab.com/developerlukeroms/twrp-hero
​
Thank you! I'm already using Tkkg1994's moded version but I guess you made some updates and improvments on it.
gonna flash it later.
edit: No freezing while changing time zone and language. Working really smooth. I think it's also faster while getting back-up and creating diggest.
Adding it to my signature since many people asking about mount data problems on custom rom threads. Once again thank you for the great work.
is there quota support like tkkg1994-version?
I flashed this version and everything went ok but i only noticed that battery level is always lower in twrp but not a big deal,thanks.
dangerhouse said:
is there quota support like tkkg1994-version?
Click to expand...
Click to collapse
Yep
Can I use it while having an android pie rom?(confused after reading the title that says android 8.1)
Champ16 said:
Can I use it while having an android pie rom?(confused after reading the title that says android 8.1)
Click to expand...
Click to collapse
I'm using it on pie port, working great. you can take it as Android 8.1+
Champ16 said:
Can I use it while having an android pie rom?(confused after reading the title that says android 8.1)
Click to expand...
Click to collapse
Yes, android 8.1 means the twrp base, not what rom it works for. it works perfectly on pie roms
huge thank you dude!!
turbolukex5 said:
Unofficial TWRP Upstream for hero2lte ​
Click to expand...
Click to collapse
Is there a way to make TWRP settings permanent? It reset to default after some time. (It's like that with official one too) also anychance to have it without Official TWRP app? I uninstall it but after 1st recovery boot it comes back again. Have to keep it disabled.​
The settings for twrp saved in internal sdcard... Don't delete the TWRP folder
wurstherpes said:
The settings for twrp saved in internal sdcard... Don't delete the TWRP folder
Click to expand...
Click to collapse
That really helped Thank you!
rroyy said:
Is there a way to make TWRP settings permanent? It reset to default after some time. (It's like that with official one too) also anychance to have it without Official TWRP app? I uninstall it but after 1st recovery boot it comes back again. Have to keep it disabled.
Click to expand...
Click to collapse
You can't if you wipe internal storage, plus theres an option to uncheck installing twrp app in the recovery.
Is it possible to add f2fs data and cache
Good working ty so much
Nice work
But can it keep data decrypted after I install magisk?
Currently using root with supersu
gupt07ash said:
Nice work
But can it keep data decrypted after I install magisk?
Currently using root with supersu
Click to expand...
Click to collapse
As long as dm-verity is disabled, it will keep decrypted, without this twrp it wouldnt mount to twrp although being decrypted
turbolukex5 said:
As long as dm-verity is disabled, it will keep decrypted, without this twrp it wouldnt mount to twrp although being decrypted
Click to expand...
Click to collapse
This worked like a charm. I can read internal partition over magisk now. But I'm getting an error while making a backup. the recovery says "E: recv error on uevent". this error does not interrupt the backup progress and the backup can still be completed but its an error I keep getting.
gupt07ash said:
This worked like a charm. I can read internal partition over magisk now. But I'm getting an error while making a backup. the recovery says "E: recv error on uevent". this error does not interrupt the backup progress and the backup can still be completed but its an error I keep getting.
Click to expand...
Click to collapse
E: recv error on uevent is harmless message, no need to worry about it.
turbolukex5 said:
E: recv error on uevent is harmless message, no need to worry about it.
Click to expand...
Click to collapse
Bruh if you made this, you're a legend!
I can finally use root hide and make full backups
Thanks :good:

Categories

Resources