yashsingh1/xdaforums huggingface dataset:
[ZenFone 2 Android Development] Shafwan7:
so next release will be for z008 ? with a z008 fingerprint itself.
[ZenFone 2 Android Development] themonyo666:
thanks for your answer.. hope someone would do but i still wait. :)
[ZenFone 2 Android Development] hacktek:
Anyone else getting error createtarfork with number 255 when trying to create a backup? I'm not sure what's up but this started a few days ago and it's still going on.

EDIT: By the way, this is only happening when trying to back up the system partition, does not matter what options I select (compression, no compression, etc).
[ZenFone 2 Android Development] TheSSJ:
Do you backup system or system_image?
[ZenFone 2 Android Development] hacktek:
Duh, I was trying to backup system!

system_image does appear to backup successfully but is much larger than I would expect a system image to be (2+ GB). Is this OK? Will I be able to restore successfully with only system_image?

Thanks!
[ZenFone 2 Android Development] TheSSJ:
Actually I was just asking which partition you were backing up, no implications from my side xD

Both methods should work actually.

Which phone model do you have? Also are you coming from stock or cm?
[ZenFone 2 Android Development] TheSSJ:
And the link is in the OP now for the Z008
[ZenFone 2 Android Development] troy5890:
Question: has anyone used flashfy to flash the twrp img to see if it will flash properly?

Sent from My ZE550ML
[ZenFone 2 Android Development] TheSSJ:
http://xdaforums.com/zenfone2/devel...-zenfone-2-t3123532/post61510786#post61510786

I would say flashify doesn't work ^^
[ZenFone 2 Android Development] troy5890:
Oh darn, thanks for letting me know though:D:thumbup:

Sent from My ZE550ML

---------- Post added at 07:14 PM ---------- Previous post was at 06:50 PM ----------

This may sound crazy, but in having a hard time installing twrp on my variant

Sent from My ZE550ML
[ZenFone 2 Android Development] TheSSJ:
Well if you already say you have a hard time, then you could tell me what you did to come to this conclusion. Did you use any of my methods mentioned in the OP? Is your bootloader unlocked?
[ZenFone 2 Android Development] troy5890:
Yes sir, my boot loader is unlocked. I actually am about to flash it via PC, my mistake. I wanted to do it the lazy way via through rashr but its incompatible:rolleyes::D

Sent from My ZE550ML
[ZenFone 2 Android Development] TheSSJ:
You can do it via terminal emulator on the phone itself ;)

su

dd if=/location/of/img of=/dev/block/by-name/recovery

Tadaaaaa, done
[ZenFone 2 Android Development] troy5890:
Thank you very much, looks like I won't need my PC ?. I really appreciate.

Sent from My ZE550ML

---------- Post added at 07:49 PM ---------- Previous post was at 07:39 PM ----------

It was a success! Now time for some cm12.1 up in here!!

Sent from My ZE550ML
[ZenFone 2 Android Development] jeanne8fr:
So I had a problem with SIM card 1 not working after restoring. I have now installed the 2.0 version but before I tried again I wanted to ask which partitions I should backup?

Has anyone successfully backed up and restored?

Thanks

Jeannette
[ZenFone 2 Android Development] chobztopz:
Did you already try to reboot it again after sim card 1 problem?

I never have problem with backup and restore until now.

only cache partition that I never backup. always back up all partition, and only restore the partition that I need (sometimes I restore all)
[ZenFone 2 Android Development] hacktek:
Hehe XD I've got a ZE551ML, 4 GB, 2.3 Ghz.

Thanks for confirming.
[ZenFone 2 Android Development] Shafwan7:
ayyee thank you [MENTION=2388665]TheSSJ[/MENTION]? at this moment, i'll stock on z00a twrp first until we have own cm build for z008 later. great job. will report anything later ?
[ZenFone 2 Android Development] ligu:
[MENTION=2388665]TheSSJ[/MENTION], I flashed your v20 image, and noticed "system_image" option along with "system" on the backup list. Would you mind explaining what is " system_image" for? Do we need to backup both system_image and system for full backup?

Thanks for the great work, BTW.
[ZenFone 2 Android Development] TheSSJ:
Ooops, almost oversaw your post:

Following entries should be ticked:

boot

system

data

config

This should fix the problem of the SIM 1 not working after coming back to stock from CM, got a few confirmations of it working but never had that problem myself (as I am still on stock ROM with my kernel)

Well, both should have the same effect. system saves your files in tar format (thus you *could* open it up and modify it or extract files out of it), whereas system_image creates an img file out of your system partition (the same format as you boot partition is stored as). I thought to include this entry for update zip flashing entire imgs instead of the single files, so if anyone is thinking about this kind of flashing, my recovery will be compatible to do so.
[ZenFone 2 Android Development] cangcan:
anyway, just wanna share, previously i still face simcard 1 undetected problem when i restore old backup in twrp..and i think it was also because of i ticked and mounted config partition..so for flashaholic like me, i suggest to do a whole back to stock rom, backup it including config partition, and delete old rom backups that you have trouble in detecting simcard unless you know it was safe to restore it..

and before flashing rom, dont tick config partition in mount menu, i never experience any simcard 1 undetected anymore, except the first boot of fresh cm installation which there is a bug of simcard1 undetected stated in CM OP, which can be fixed after a reboot..

now that there a plenty of custom rom surfacing on zf2, let the party begin!!

p/s: i did tried official twrp 2.8.7.2, but i dont know why it feels confusing to use it, also the advance wipe option partition list are not sorted as in usual twrp, i also accidentally wiped my internal storage once before because of my finger muscle memory without checking the right tick option on advance wipe menu..anyway both twrp are awesome, as long as they still support and improve our device!
[ZenFone 2 Android Development] social-design-concepts:
[MENTION=2388665]TheSSJ[/MENTION] a better explanation of why one should / would want to back up system as an image
[ZenFone 2 Android Development] Ashtrix:
I was experiencing some wierd issues with the version before twrp_v20 - After flashing Prism ROM I got a system symlink fail error too on the earlier version (< twrp_v20 ), I'm thinking might be an after effect from uninstalling SuperSU from the ROM before I had installed & Dees_troy's build too like the reboot thing doesn't work at all (be it any type - after flash, reboot menu, bootloader, after color change. Stuck on the screen), flashed on top of version before twrp_v20. Later I flashed the latest version, did a fastboot erase cache too btw to be safe, maybe I should erase the cache from fastboot command before switching recoveries (?)

No SIM card with me for now, no idea abt any SIM related issues.

But the theme color is not changeable. like If I change the color into something from blue, it stays the same.

On a side note, OT : Can't get the Aroma filemanager working, some binary scrpit error it says, tried replacing the update-binary (from superzen rom) but nope it won't and instead it messed the system, had to make a flash from SuperZen13 and wipe everything thus the above issues...:silly:

Thanks a ton for making the TWRP possible on ZenPhone2 :good:
[ZenFone 2 Android Development] oXydead:
I've done all the steps right.

When i try to enter recovery, it skips it and puts me into bootloader again.

Any advises?
[ZenFone 2 Android Development] TheSSJ:
That *strongly* sounds like your BL still isn't unlocked? Do you have a black or a white splash screen? If you unlocked your BL, which method did you use?
[ZenFone 2 Android Development] oXydead:
The 1 click method to unlock it, then flashed the twrp.img via fastboot.

but even before that, I couldn't enter recovery.

I even installed it with TWRP from Google Play and it said "Recovery successfully installed"

I can't enter recovery at all.

The black stock splashscreen.

Oh and i am on 2.19.40.22
[ZenFone 2 Android Development] oXydead:
I had to wipe the cache of recovery and then instal 1 click unlock.

All good, thanks for helping.
[ZenFone 2 Android Development] J M L:
Tethered booting official 2.8.7.2

I needed to tether boot the official 2.8.7.2 img, because my bootloader is locked. The 2.8.5.0 zip in this thread will not install a zip when encryption is enabled, and 2.8.7.0 zip from this thread cannot mount the encrypted partition or "cancel" to continue without mounting it. The official 2.8.7.2 cannot mount the encrypted partition either, but using "cancel" will get past the attempt. It can then install a zip, SuperSu in this case (the fastboot method of getting root left me with a boot loop).

To do that I downloaded the official img and extracted it using abootimg. Then I extracted the initrd.img using "gunzip -d initrd.img | cpio -i". Then I copied the META-INF directory from the 2.8.7.0 zip in this thread into what I'd extracted. Then I zipped it back up to create the new recovery.zip. I dropped that into the tethered recovery package in the first post, and it booted into tethered 2.8.7.2 without any problem.

I've attached the recovery.zip I created to this post, in case anybody else wants to do a tethered boot with official 2.8.7.2. (The original one I created I forgot to use --symlinks when I ran zip, so it ended up being 156MB, and that's the one I used. So the one here is untested.)

If there's a simpler way to accomplish what I did, I'm happy to hear about it. If I can provide any debugging information on getting the encrypted partition to mount, I'm happy to do that, too.
[ZenFone 2 Android Development] Tiongkia:
i searched the thread and didn't see this. not sure if i missed. if so, i apologise in advance.

does anyone have this issue of charging your battery and unable to use twrp? I can go into twrp recovery but it will shutdown my phone after awhile. same when i backup my phone. anyone?

thanks masters / gurus / experts in advance
[ZenFone 2 Android Development] coubi64:
I installed twrp 2.8.7.0 from this thread, and now i'd like to install 2.8.7.2.

I then installed CM 12.1 nightly, so i'm not in stock rom anymore.

Can I do this directly with TWRP manager frol Playstore? The path shown by twrp manager is /dev/block/by-name/recovery: is it ok or not?

I don't want to brick my phone so I prefer ask before...
[ZenFone 2 Android Development] TheSSJ:
Can't say, as the app has nothing to do with this recovery and I don't use twrp Manager
[ZenFone 2 Android Development] thuynin9:
Can you help me to install TWRP on my Zen 2 1.8ghz, 4gb ram (China ver). I try to install TWRP but it's not successful.
[ZenFone 2 Android Development] TheSSJ:
You need to be more specific - what did you do exactly, which error message did you get, did you properly unlock your bootloader? Which TWRP method do you want to use (tethered or untethered? )
[ZenFone 2 Android Development] thuynin9:
I'm using CN ver converted to WW. I try to using twrp of WW version but when I reboot phone to recovery, it only shows fastboot. I still choose Recovery Mode but it can't show the rec I installed. Can you help me to creat a version TWRP for Zen 2 China Ver. Thank you so much!
[ZenFone 2 Android Development] TheSSJ:
Sounds like your Bootloader is still locked? Would explain why you always boot to fastboot
[ZenFone 2 Android Development] thuynin9:
I was successful for installing twrp & rom Zen19 [emoji1] Thank you!
[ZenFone 2 Android Development] jejemc:
Hello everyone, I have a question how to recover the original recovery? Thank you ;)
[ZenFone 2 Android Development] ilos:
by flashing it in fastboot
[ZenFone 2 Android Development] jejemc:
Would you have the original recovery a link? Thank you;)
[ZenFone 2 Android Development] ilos:
take the one inside the folder 2.19.40.22 here

https://mega.nz/#F!k4MHiAgL!dVuOKeH3eokcwPSNI79ffw
[ZenFone 2 Android Development] jejemc:
So after I boot into fastboot mode and flash recovery.img?;)
[ZenFone 2 Android Development] ilos:
yes

fastboot flash recovery recovery.img
[ZenFone 2 Android Development] jejemc:
Walking impeccable thank you I had forgotten a "recovery" in the command line;)
[ZenFone 2 Android Development] viaimpedita:
And for Z008 what stock recovery i need to flash? I try with 2.19.40.23 and .12 but when reboot in recovery i have got only error

EDIT - I need to clear cache with fastboot now its ok
[ZenFone 2 Android Development] AL_IRAQI:
Hi buddy

Can you please try to port MultiRom ? ?

I tried to download CM12 source but things didn't work out ?

I'm sorry if it rude to request it ?
[ZenFone 2 Android Development] TheSSJ:
Of course it isn't rude don't worry :)

Unfortunately this is nothing I have any knowledge of...I'll search for explanations how it works (could take a while though)
[ZenFone 2 Android Development] Abdl:
please someone should mirror the twrp.img asap I am having problem downloading from google druve
[ZenFone 2 Android Development] LethalOne:
Is there any way to make TWRP skip SKU check during installing firmware, so WW firmware can be installed on CN phone without playing with droidboot, just booting to TWRP?

Thanks for any help :)
[ZenFone 2 Android Development] TheSSJ:
Hi, there is nothing twrp can influence, it just executes the updater binary which then does the parsing of the updater-script.

Cheers
[ZenFone 2 Android Development] LethalOne:
Really? So why we can install custom ROMs with TWRP and not with stock recovery on many Android phones?

I heard of some way to disable SKU check in TWRP.
[ZenFone 2 Android Development] mrfaggio:
Hi,

there is the possibility to add format and support to F2FS filesystem (faster than ext3/4)?

thank you.
[ZenFone 2 Android Development] krasCGQ:
Already implemented. However, it doesn't really usable without any ROM/kernel that supports F2FS.

Sent from my ASUS_Z00AD
[ZenFone 2 Android Development] mrfaggio:
yes, but if i didn't read wrong there is a kernel with f2fs support for zenfone 2:

for 551ml

http://xdaforums.com/zenfone2/development/project-t-custom-kernel-zenfone-2-t3150822

for 550ml

http://xdaforums.com/zenfone2/development/kernel-project-t-zenfone-2-ze550ml-t3160785
[ZenFone 2 Android Development] TheSSJ:
To make it official, as the TWRP kernel didn't support F2FS I uploaded now v21 for Z00A and Z008 with kernel side F2FS support
[ZenFone 2 Android Development] rex_perfect:
V21

I cannot find the link of v21 .....first page link is of v20..
[ZenFone 2 Android Development] TheSSJ:
Sorry, fixed DL link to point to the folder now, thanks for the info
[ZenFone 2 Android Development] xgneilx:
Hi TheSSJ,

I upgraded to the latest v21 TWRP. For some reason, using this version doesn't allow me to flash other ROMS, it gives an error of "this is for devices Z00A and Z008. your device is Zenfone2". In your older version and the official versions, flashing other ROMs work.
[ZenFone 2 Android Development] TheSSJ:
Maybe I changed the default.prop unintentionally and didn't change it back...will check and upload a fixed build soon
[ZenFone 2 Android Development] xgneilx:
Thanks.
[ZenFone 2 Android Development] TheSSJ:
Should be fixed now, v21a is out (it was indeed the build.prop file tests I didn't roll back :silly: )
[ZenFone 2 Android Development] mrfaggio:
thank you very much!
[ZenFone 2 Android Development] wifestealer:
Sorry for this stupid question but what is untethered twrp? How different is this from official twrp? And what is f2fs?
[ZenFone 2 Android Development] jmot205:
Thanks!
[ZenFone 2 Android Development] TheSSJ:
Tethered (=after a reboot everything is back to normal)

Untethered (=permanent recovery)

Link to F2FS: http://www.phoronix.com/scan.php?page=news_item&px=MTI1OTU
[ZenFone 2 Android Development] wifestealer:
I didn't get F2FS part cause it went over my head but it doesn't matter cause I know you guys whatever do, do best for us. :good:
[ZenFone 2 Android Development] TheSSJ:
v22 is out, now with native exFat driver
[ZenFone 2 Android Development] Tiongkia:
Thanks so much.

Is it a common issue that we are unable to backup in twrp when charging?
[ZenFone 2 Android Development] 29y6145:
twrp v21 bug mount F2FS

how to fix

I thing twpr support F2FS no good

Iam use Galaxy s6 and philZ touch recovery support F2FS very good and stable

Gửi từ SM-G925F của tôi bằng cách sử dụng Tapatalk
[ZenFone 2 Android Development] TheSSJ:
I feared that this wouldn't work properly...will upgrade to newest F2FS driver and check the TWRP code to see if it supports mounting F2FS partitions.

Do you have any link to a TWRP supporting F2FS?
[ZenFone 2 Android Development] jrior001:
If you want f2fs take it straight from the source... *https://git.kernel.org/cgit/linux/kernel/git/jaegeuk/f2fs.git

Mounting f2fs in twrp does you no good unless you are also running a kernel/ramdisk for your ROM that supports f2fs also though....
[ZenFone 2 Android Development] 29y6145:
Iam thing philZ touch run F2FS stable

You can see in changelog and source code

http://xdaforums.com/showpost.php?p=39433612&postcount=2

Same my deivces galaxy S6

http://xdaforums.com/galaxy-s6/sams...development/arter97-kernel-galaxy-s6-t3171246
[ZenFone 2 Android Development] AL_IRAQI:
i tried to wipe /cache and /data to f2fs, i used your binaries with v22 twrp

but it didnt work i get error and partitions size became 0MB
[ZenFone 2 Android Development] TheSSJ:
Yep, did already take it for my Project T, I just forgot to add CONFIG_F2FS_FS_SECURITY in my config. I already tested formatting cache and data to f2fs and it works now (fstab just holds auto as file system types), so the recovery is prepared now [MENTION=5299788]29y6145[/MENTION], really :)

Please note that only data and cache will be able to be mounted as f2fs in twrp

Try v23
[ZenFone 2 Android Development] AL_IRAQI:
Awesome!!, it works fine with Project T v90 with edited fstab :)

ill try to wipe /system as f2fs also

Edit:

i dont know why it sill ext4 :P, ill format it again
[ZenFone 2 Android Development] TheSSJ:
no, please don't, as I did not allow it for system on purpose (it needs to run stable and with journaling from what I researched)
[ZenFone 2 Android Development] jrior001:
F2fs is faster in random writes mainly, and since nothing writes to system ever, its. a wasted effort to make system compatible.
[ZenFone 2 Android Development] AL_IRAQI:
thats better :P, i dont have to edit updater script :D

i changed both /data and /cache to f2fs but after boot up to system it revert back to ext4

and i installed some apps it didnt remove it also
[ZenFone 2 Android Development] TheSSJ:
Try to convert the filesystem by using TWRP itself:

Click on wipe, then advanced wipe, then check the partitions you want to convert (cache and/or data) and click "Change or repair filesystem", there you can convert the file system to F2FS for example, should work hopefully
[ZenFone 2 Android Development] Emblema:
Guys can I update the recovery with recovery or I need fastboot??

Sent from my Asus Z00A
[ZenFone 2 Android Development] AL_IRAQI:
i did this before but same result
[ZenFone 2 Android Development] wifestealer:
You can do with rashr tool also
[ZenFone 2 Android Development] jrior001:
Does that work on zenfone 2 now? It didn't last time I tried, but its been a month or so.
[ZenFone 2 Android Development] TheSSJ:
If I recall correctly flasify was not working,whereas rashr had not the best UI and flashed to boot as default
[ZenFone 2 Android Development] Bastaerd:
Rashr works, I used it to flash this recovery (because it is the most lazy way).
[ZenFone 2 Android Development] crpalmer:
It is even supposed to be slower in read centric workloads, which is why I don't like enabling it for cache either.
[ZenFone 2 Android Development] wifestealer:
It works because i did yesterday with rashr tool and flashed your recovery v22

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

Ofcourse it works :)
[ZenFone 2 Android Development] Emblema:
I'd flash v23 whit the old version, without problem. But miscrosd doesn't works?

Sent from my Asus Z00A
[ZenFone 2 Android Development] TheSSJ:
Which file system do you have?
[ZenFone 2 Android Development] Dan_Jacques:
Apparently the TRWP isnt formatting /data into F2FS. After reboot, /data continues in ext4, with all files untouched.

EDIT:

There is a official TWRP 2.8.7.2 for Z00A, but without your commits (and without F2FS). Can you update the sources to 2.8.7.2?
[ZenFone 2 Android Development] 29y6145:
You format then plus phone into pc run

# adb shell

# mount -o rw /system

# cp /sbin/fsck.f2fs /system/bin/

# cp /sbin/mkfs.f2fs /system/bin/

# chmod a+x /system/bin/*f2fs*

Then reboot devices . Good luck

Gửi từ SM-G925F của tôi bằng cách sử dụng Tapatalk
[ZenFone 2 Android Development] Dan_Jacques:
there is no fsck.f2fs or mkfs.f2fs in /sbin.
[ZenFone 2 Android Development] TheSSJ:
I just need to include a flag to get the binaries compiled.

In the meantime I have compiled them statically:

https://drive.google.com/file/d/0B0mn6OUqIDzBTU9Cd1lOUnZTaDg/view?usp=sharing

https://drive.google.com/file/d/0B0mn6OUqIDzBTXRiOEVYb20ycTA/view?usp=sharing

Next release will include these as part of TWRP (although I have seen the binaries in sbin...odd)
[ZenFone 2 Android Development] jrior001:
So I'm curious....

What are you guys doing on stock ROMs to modify the ramdisk to support f2fs partitions within the ROM? Having recovery change to f2fs is only half the battle.....
[ZenFone 2 Android Development] TheSSJ:
I'm just providing the tools (kernel support, working formatting in TWRP) - a ROM cook needs to do the rest :eek:

But normally the fstab just needs to be modified to mount partition xy as f2fs, if this is sufficient is out of my knowledge though...
[ZenFone 2 Android Development] jrior001:
You really want ROM devs messing with your kernels ramdisk?

Just to be clear here for those following along and jumping to experiment, without a kernel/ramdisk combo built to run f2fs you will not be able to boot a stock ROM with f2fs partitions. The fstab in stock ramdisk calls for ext4 partitions and if the are not detected, they will be reformatted to match fstab.
[ZenFone 2 Android Development] TheSSJ:
Well, it's not like the ramdisk is protected by copyright - whoevery wants to modify the ramdisk is free to do so. I will stay on a stock based EXT4 system anyways (until CM is considered stable at least)

But at least a very useful info that the partitions will be automatically formatted if they don't match what is expected!
[ZenFone 2 Android Development] jrior001:
[MENTION=2388665]TheSSJ[/MENTION], the trick is to setup fstab dynamically on kernel flash. Were just not quite there yet on Intel devices. You will need an "any kernel" style flashable zip installer built for Intel kernels.

CM and other aosp ROMs are simpler to work with, tools have been added to support multiple fstab entries for each partition. But your gonna have to be creative to make f2fs work on stock ROMs.
[ZenFone 2 Android Development] TheSSJ:
Uploaded a small version for Z00A version, as the Stock ROM flashing (the original full firmware from Asus) failed as I forgot to re-add the ro.build.asus.sku flag.n Z008 is not affected

Nothing changed with the functionality - but jrior001 sent me a really valuable PM on how to convert fstabs on the fly to use F2FS

For the guys wanting to experiment:

The fstab entries need to be changed to F2FS before converting the partitions to this filesystem as otherwise the phone will just reformat the partitions according to the fstab entries (this should be the reason why some folks thought the recovery wouldn't be able to format partitions to F2FS although this works)
[ZenFone 2 Android Development] jrior001:
Keep in mind this is related to stock ROMs, CM based aosp ROMs handle this internally and can manage ext4/f2fs conversion if built properly.

The important part is the fstab is packed in the kernel and needs to be updated before attempting to boot. So either a boot.img w/corrected f2fs fstab needs to be flashed or the theSSJ or I needs to get a proper anyKernel zip for Intel devices to rebuild kernels on the fly in recovery. WIP, more on this when we get it together.