yashsingh1/xdaforums huggingface dataset:
[ZenFone 2 Android Development] lordpipa:
Just to let u know that TWRP 2.8.7 has a problem with encrypting and wiping on some devices. It is fixed on 2.8.7.1
[ZenFone 2 Android Development] arrosen:
Easy Peasey, Lemon Squeezy. Unlocked bootloader, custom recovery, just waiting for CM!! Absolutely amazing that this is all so easy just a few days after the unlock exploit was discovered. You devs are amazing!
[ZenFone 2 Android Development] XneofuX:
CM will probably take a few weeks ;) I'd hope at first for stock ROMs with less bloat preinstalled ^^
[ZenFone 2 Android Development] TheSSJ:
can't find it on their githubs :(

github.com/omnirom/

github.com/TeamWin/

Do they have another repository? It gets confusing with TeamWin if they continue to spread their code everywhere :D
[ZenFone 2 Android Development] vampirefo:
That might not be that hard, the problem I have ran into is finding a Linux way to deodex Lollipop for x86, I have another intel device that I have removed a lot of stuff from, just looking for a way to deodex it.
[ZenFone 2 Android Development] XneofuX:
Can't you just install a virtual machine with some windows? As far as I've seen, there are tools for it. :)
[ZenFone 2 Android Development] karmacoma7:
Exfat USB Drive works like a charm!

Would you be so kind to look into NTFS support if you have time ?
[ZenFone 2 Android Development] Mononon:
Heck, I just want AOSP, in all honesty.
[ZenFone 2 Android Development] TheSSJ:
The only thing I can think of is modifying my fstab file to mount the usb_otg partition as auto instead of vfat. Also I have to check if the kernel is able to mount ntfs drives natively or if I have to insmod tntfs.ko first.

Will test to see if and what works
[ZenFone 2 Android Development] ultramag69:
Agreed, you can't drop a little sweet like that then hold back where to get... How about sharing the love?:p
[ZenFone 2 Android Development] quadeur06:
Hello :)

I want flash my rom based on the version 2.19.40

I am actually in 2.19.40

I go to twrp

I make the full wipe

But when i want flash my rom i have this error" E: error executing updater binary in zip'/external-_sd/rom/zenitude.zip"

I put my rom in external sd because i make a full wipe :)

What is the problem??Thank you :)
[ZenFone 2 Android Development] TheSSJ:
You need to make sure that the updater-binary is made for x86. You can use the update-binary from the stock OTA zip for example. Seems you used a binary made for ARM maybe?
[ZenFone 2 Android Development] quadeur06:
Yeah i use the update-binary from the stock ota :)

Hmm i read in the updater binary i can delete the line 1-5 and 6 no ??:)
[ZenFone 2 Android Development] Harfainx:
I have no idea what "zenitude" is, but you should go into your folder and figure out what's wrong with that zip. That looks to be your problem.
[ZenFone 2 Android Development] quadeur06:
Zenitude it's the name of my rom :p:p

and thank for the answer :)
[ZenFone 2 Android Development] Harfainx:
If you leave the getprop and asserts, it will error if everything isn't identical to what it should be. Removing those first lines before the extract firmware (ifwi?) lines, will bypass the getprop and assert.

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

Ahh, my apologies. I searched on Google to see what it was because I hadn't heard of it. I understand now. :p
[ZenFone 2 Android Development] quadeur06:
I will try thank :) and yeah i am french and it's a good name for a french rom ;)
[ZenFone 2 Android Development] grorg:
View recovery log, it sold show you status error cod. By this cod you can figured out what's wrong with your zip
[ZenFone 2 Android Development] TheSSJ:
Hi,

unfortunately I could enable only the partial write support to NTFS devices (no folder or file creation, only file overwriting). Full RW is not possible with the kernel as it seems. I read a lot about ntfs-3g module which builds on fuse, but this is nothing to be achieved in one day for me (I am not that skilled on a hardware level).

Is NTFS read support of any use? It's enabled on my test twrp at least
[ZenFone 2 Android Development] karmacoma7:
perhaps this could be of any help ?

http://xdaforums.com/zenfone2/development/ntfs-support-otg-drives-t3094398

RO is good for restoring, RW is much better though :)
[ZenFone 2 Android Development] TheSSJ:
Is there a recovery which support ntfs otg? If you could link it i could check how it's done there
[ZenFone 2 Android Development] karmacoma7:
http://xdaforums.com/showthread.php?t=2380100
[ZenFone 2 Android Development] quadeur06:
How i can see the recovery log please?

I found move recovery log to sd :) is that ?
[ZenFone 2 Android Development] TheSSJ:
Yes, you will find the log in the root of your internal sd card then
[ZenFone 2 Android Development] quadeur06:
When i have the error i put the log in the sd card and after i will see the problem?
[ZenFone 2 Android Development] TheSSJ:
its a normal text file which you can open and then search for any error which you may encounter
[ZenFone 2 Android Development] DIXES:
Does it also support 1st gen. ZenFone series, like ZenFone 6 (A600CG)?

ZenFone 6 is able to use "IntelAndroid-FBRL-05-16-2015-PTR" via "T4".

EDIT: I tried your TWRP v2.8.7.0 on my ZenFone 6 (A600CG) and it works, including MTP.

Thanks a lot for your work.
[ZenFone 2 Android Development] quadeur06:
I found the problem :) in the rom it missed the ifwi.zip

But now when i want install the rom it's blocked on " Updating IFWI... and after

failed to mount/dev/block/by-name/system at /system : Device or resource busy

Why x)??
[ZenFone 2 Android Development] knoneNull:
Try to check the link under my signature i already managed to fix permanent twrp for zenfone 6 by helping of one member of xda for testing for twrp for zenfone 6 :)
[ZenFone 2 Android Development] lukenova:
I used the un-tethered method. I have this running on my phone now. Very nice! I was hoping that there would be a bootloader unlocking exploit that came out for this phone sooner than later. Now we have that an a custom recovery. Bring on the ROMs!
[ZenFone 2 Android Development] Abhishek1108:
Is it stable enough to use as a permanent recovery?

Well I can flash stock recovery anytime (I have the 2.19 pre root img) but still and what's the mtp bug listed?

Edit: Successfully flashed twrp and created a nandroid backup. No problems yet.
[ZenFone 2 Android Development] XneofuX:
"MTP" is the usb data connection to the pc. When it works you can see your phone as a device in the explorer on windows (or whatever system you use).
[ZenFone 2 Android Development] ilos:
which model do you have ?

500 or 551 ? coz for 551 there is already a bootloader unlock method
[ZenFone 2 Android Development] TheSSJ:
I tried to get mtp to work...edited default.prop to mtp,adb and made sure the usb functions were correctly set in init.rc,still no luck. Oddly the recovery log file shows that mtp service is running,but the phone doesn't show up at all...it seems that the tethered twrp shows the phone xD
[ZenFone 2 Android Development] lukenova:
Perhaps I was not clear in my original post. I have the unlocked bootloader on my phone now. I have installed TWRP, and I have installed a custom ROM. The ROM is just stick with a lot of bloatware removed, but it's a start for sure.
[ZenFone 2 Android Development] Harfainx:
Might it be one of the USB configuration options in the init.platform.usb.rc?

I'm not sure what it mounts as while in recovery.
[ZenFone 2 Android Development] vampirefo:
I am sure even a windows version running in vm would cost money, anyway I got it done on my Linux took sometime to do it, I had to write my own scripts, even then some manual work, app and priv-app was done via my script easy enough, framework took manual work, plus scripts, all in all it work out.

http://xdaforums.com/android/development/deoxed-nxa8qc116-rom-nextbook-ares-8-t3144989
[ZenFone 2 Android Development] XneofuX:
For developers, there is the "enterprise edition" for which you just have to register on windows live. Wouldn't have proposed it otherwise. But since you found a way ^^
[ZenFone 2 Android Development] mario1634:
I can't installed no mods with the recovery is that normal for right now because its still being work on
[ZenFone 2 Android Development] vampirefo:
Post what you are trying to install, so it can be looked at.
[ZenFone 2 Android Development] mario1634:
I was trying to installed the new viper dark but the update binary error keep coming up like on all the other mods. I just was testing to see if it was just that one or the recovery
[ZenFone 2 Android Development] cemanie:
is there another link or mirror?in OP was deleted,,need to try,,thanks
[ZenFone 2 Android Development] vampirefo:
You need x86 update binary, plus you need to make sure mod supports x86.
[ZenFone 2 Android Development] mario1634:
Ok thanks
[ZenFone 2 Android Development] borisku:
I flashed TWRP like described, but i always get into bootloader mode, cant get to recovery mode? what dd i do wrong?
[ZenFone 2 Android Development] TheSSJ:
It seems you didn't unlock your bootloader properly - did you have the white splashscreen after unlock?

After signature verification the bootloader rejects the TWRP as the calculated hash doesn't fit what it should be, indicating BL is still locked.

Just a guess, though ^^
[ZenFone 2 Android Development] borisku:
i bought it as "entsperrt", maybe that was not the bootloader... splash screen was black... What to do now? Can anybody help, please? Do i have a nice paperweight?

...
[ZenFone 2 Android Development] TheSSJ:
"Entsperrt" is referring to the fact, that every SIM card is able to be used (SIM Lock free). Just follow the instructions in my first post for "untethered" to unlock BL and then the recovery will work right away :)
[ZenFone 2 Android Development] borisku:
unlocking bootloader in the link you have friendlywise given to us requires 2.19 ... mine is 2.18, ist this a problem? I think ive read that you need 2.19 ... Without recovery, i cant update to 2.19?
[ZenFone 2 Android Development] TheSSJ:
Follow this guide for preparing your phone: http://xdaforums.com/zenfone2/help/unlock-bootloader-read-fix-t3138837
[ZenFone 2 Android Development] borisku:
After this:

adb shell (press enter)

su (press enter)

getprop ro.isn > /factory/asuskey ( press enter)

reboot bootloader ( press enter )

i get the folling message:

update failed,

splash screen ist still black, but it is booting into system...
[ZenFone 2 Android Development] TheSSJ:
Did you manually flash the 2.19 droidboot? without it the key cannot unlock your BL. The thread I linked to described how to do this if you can't upgrade to 2.19

@ All: Although I made a poll if I should create a CWM recovery for zenfone 2, there is sad news:

http://xdaforums.com/nexus-6/help/clockworkmod-t2997360

CWM stopped being supported. On the Cyanogenmod github some code is being carried on, but only as "simple recovery", which doesn't include backup/restore functionality at all (I compiled several versions and wasted a lot of time). I was wondering why the cm12 branch just seems to be a castrated version of a recovery :(

Man, so much time....:(

Guess I will close the poll then as there is no way to get CWM working on Lollipop code (and I don't want to repo sync the kitkat repo in order to provide a CWM
[ZenFone 2 Android Development] borisku:
Yes, i did manually flash 2.19 droidboot and for me it seemed to be ok... should i repeat this operation? My device ist rootet... should i repeat rooting after updating droidboot to 2.19?

edit: adb doesn´t recognize the phone anymore: "adb devices" does not list a phone anymore :(
[ZenFone 2 Android Development] borisku:
Is it you on Android-hilfe.de? :)
[ZenFone 2 Android Development] vampirefo:
CM11 is the only way to get working cwm recovery, carliv source is for cmw touch recovery, which is what I use on some devices.
[ZenFone 2 Android Development] TheSSJ:
Sorry to hear that :(

Doesn't adb recognize the phone after you typed "reboot bootloader" (which would be normal, as you then need to use the fastboot binary)? normally when you are in the normal system nothing should have changed.

Yes indeed :)

I gave up on this dream as I really don't like to mess with my codebase right now ;)

But I achieved a big breakthrough here - USB OTG works also with NTFS drives!

I created a new boardconfig flag and implemented it in the TWRP source. I called it TW_NTFS_WA as it is just a workaround using ntfs-3g driver to get rw access to a usb drive.
[ZenFone 2 Android Development] vampirefo:
Sounds good, you don't really need CWM, I need cwm on some devices as recovery space is small, anyway sounds like you are good to go.
[ZenFone 2 Android Development] Maddhadder90:
Zip

Is there a mirror for the download? It tells me it was taken down or disabled.
[ZenFone 2 Android Development] TheSSJ:
http://xdaforums.com/devdb/project/?id=10167#downloads
[ZenFone 2 Android Development] moore.bryan:
Anyone else having the problem of not being able to get into recovery? I'm rooted, unlocked, etc. and all the commands complete without error, but I can't get into recovery; every time I select "Recovery Mode," it brings me back to the menu...
[ZenFone 2 Android Development] chubby65:
Try this works everytime

https://play.google.com/store/apps/details?id=phongit.quickreboot
[ZenFone 2 Android Development] moore.bryan:
No dice, just takes me to the dead robot.
[ZenFone 2 Android Development] chubby65:
Looks like you are still on stock recovery
[ZenFone 2 Android Development] TheSSJ:
As I tried to explain, when you are in the fastboot mode, it is completely

normal

that adb doesn't find any device.

If you type fastboot devices (in the assumption there is an executable named fastboot.exe) you will see a device there.

So do the following in order to unlock your BL:

1.Downloaded the2.19 ota manually here: http://fota.asus.com/delta_package/...W_Z00A-20150612/WW_551_0529_0612_20150612.zip

2. open the zip and extract droidboot.img out of it to the directory where adb and fastboot.exe are located

3. When your phone is turned on, connect it via usb and reboot to Bootloader mode (command: adb reboot-bootloader)

4. Then you will see the robot laying on the ground (ADB does NOT work here and this is completely normal). Type here CAREFULLY:

fastboot flash fastboot droidboot.img

5. Then type: fastboot reboot to have the phone boot normally into system again

6. Do the unlocking then (you need to search for the thread for the unlocking)

See this thread, as I just copied the instructions from there: http://xdaforums.com/zenfone2/help/unlock-bootloader-read-fix-t3138837
[ZenFone 2 Android Development] Harfainx:
You can get the stock 2.19 droidboot.img here:

https://drive.google.com/open?id=0B2OJIWJ3yAeBWFV5YzVETzZrMHM&authuser=0

That doesn't include anything else. I named it 19droidboot.img so I know which one it is, because I keep a repository of the img files.
[ZenFone 2 Android Development] borisku:
I followed all the steps you said, including step 5

Now should follow step 6:

1. Update to 2.19.40 (Cant do that for i cant get to recovery, but if i understood right, that has been done with step 2, so i will cancel that)

2. root it (my phone is still rootet, should i root it again? qickboot is running same with Titanium BU))

3. make sure adb is insatlled and working (i assume its working, but how to controll that??)

4. enter the following commands in cmd

adb shell (press enter)

su (press enter)

getprop ro.isn > /factory/asuskey ( press enter)

reboot bootloader ( press enter )

Phone will restart in bootloader and after updating itself phone will restart again and ASUS splash screen will be white ( locked bootloader has black screen, you will see difference by yourself)

btw: I dont know, how often to say thank you to you (Thank you)³
[ZenFone 2 Android Development] borisku:
after typing "adb shell" i get "error: device not found"... ??
[ZenFone 2 Android Development] borisku:
This is the screen, when i try to type the adb command...

the last blue line says complete: " continue the fastboot process"
[ZenFone 2 Android Development] Harfainx:
You need to use fastboot commands there. Can't use adb commands.
[ZenFone 2 Android Development] borisku:
Do i understand right: the adb command does not run... so i type "fastboot shell" or what shall i do there to get on??
[ZenFone 2 Android Development] Harfainx:
http://xdaforums.com/showpost.php?p=61610216&postcount=466
[ZenFone 2 Android Development] borisku:
i have done this as you see here:
[ZenFone 2 Android Development] borisku:
I do this all on a windows 8.1 64bit... maybe this is a prob? Should i try with win7?
[ZenFone 2 Android Development] rafyvitto:
I did it on the same system as you, works perfectly.
[ZenFone 2 Android Development] borisku:
wanted to thank to you, but i m limited to 8 thx per day... since when this is here, i dont know... i wonder too about hthe new thankmeter... ich had over 200 thanks in the old system... now 4? hmm... but doesnt matter..
[ZenFone 2 Android Development] TheSSJ:
For me it seems that the flashing of the 2.19 BL worked.

So now you should be able to do the getprop ro.isn thing
[ZenFone 2 Android Development] cangcan:
[MENTION=2388665]TheSSJ[/MENTION], does your TWRP support flashing .img files? because it only show boot option in the recovery, for example when i tried to flash twrp.img it does not showing flash to recovery option..
[ZenFone 2 Android Development] chankalson:
anyway to not let Asus firmware update overwrite the TWRP recovery?

As i'm in the beta program and after i update, it will go back to stock recovery and I have to reflash TWRP..
[ZenFone 2 Android Development] vampirefo:
Depends how fast are you? If you are fast enough and know the hardware key combo to get into recovery, then yes you can stop twrp from being overwritten.
[ZenFone 2 Android Development] TheSSJ:
Does any recovery support this function out of the box? The stock TWRP never had such a menu to flash a recovery AFAIK.

If there exists such a recovery, could you provide me a link as I'd be curious to know how it was implemented

Or do you want a flashable zip for flashing img files which you could flash with the install zip button? Wouldn't be that hard, but will definitely confuse people using the tethered zip files...
[ZenFone 2 Android Development] yakub234go:
i have flashed img files from twrp before
[ZenFone 2 Android Development] vampirefo:
I would have to say yes, provided it was either backed up or placed in a backup folder with correct checksum, and the recovery has it's path in recovery.fstab.
[ZenFone 2 Android Development] yakub234go:
there is a toggle button for img/zip bottom right
[ZenFone 2 Android Development] vampirefo:
I just got done building my CWM For Nextbook Ares 8, just did a backup.

CWM backs up recovery.img as well as boot.img

61f1921f6c2bc5d4c77fb1feadceb5be boot.img
49cdb92d12dd51b6703c2ba93f49de3f recovery.img
d41d8cd98f00b204e9800998ecf8427e system.ext4.tar.gz
b9a6ca1293c9e460062440ed57bdfbd0 system.ext4.tar.gz.a
d41d8cd98f00b204e9800998ecf8427e data.ext4.tar.gz
e3acba5927decfbc73aedc3ab35780e0 data.ext4.tar.gz.a
d41d8cd98f00b204e9800998ecf8427e cache.ext4.tar.gz
00a0e46d6bf80dbbe7f4198e0ebd6154 cache.ext4.tar.gz.a
[ZenFone 2 Android Development] TheSSJ:
Now I understand!

I thought there was a button implemented in TWRP where you can choose a recovery.img and it would flash it for you (for easy upgrades to newer versions etc.).

So cangcan was referring to the fact that the recovery doesn't get

backed up

...

Yes, I turned that off (just removed the "canbebackedup" flag from fstab file) as I couldn't think of a case where that might be useful.

If you guys want I can set that flag again?

Rethinking this after having seen [MENTION=4251771]yakub234go[/MENTION]'s post :D

I have never noticed such a function, but I think this is still related to the recovery.fstab entries+flags which are set for recovery (can't recall if I have left the recovery partition there as I thought it is rather useless). There's no problem for me in fixing this if you guys want
[ZenFone 2 Android Development] cangcan:
yep..it exists in that img/zip button, but actually my question is for example, on my twrp for samsung s3 before, we can upgrade twrp to newer version just by flashing .img on twrp recpovery, but if we need to flash twrp, it should be on 'recovery' partition, but in your twrp there'a only one partition/option shown there, only the boot partition, so we cant upgrade/replace to newer version of twrp..

sorry for my bad english heh, its kinda hard to explain these question..and it should be really useful to have .img file flashable in your twrp IMO :D
[ZenFone 2 Android Development] yakub234go:
you need to only add recovery in partition in recovery.fstab(twrp.fstab) thats it

/recovery emmc /dev/block/by-name/recovery

that should do it

& its very useful to be able to flash recovery via recovery itself (u know for testing new version of recovery)
[ZenFone 2 Android Development] vampirefo:
Just flashed back to twrp, this function is already built into twrp, you just need to allow twrp to backup recovery. To see this function you have to select install then click images and then navigate to where boot.img or recovery.img is located.

---------- Post added at 09:53 AM ---------- Previous post was at 09:52 AM ----------

I see this on my twrp now, before I was in cwm so could see it.
[ZenFone 2 Android Development] TheSSJ:
New version is out, thanks to all involved! Check the changelog ;)
[ZenFone 2 Android Development] sebx_g1:
So this is stable version - rom backup and restore is safe and working ? What about flashing stock asus roms is it possible with twrp ?
[ZenFone 2 Android Development] TheSSJ:
Try it :)

I have adjusted the values of default.prop to pass the assertions. The script was aborting after line 1 (less_than_int ) if I am not mistaken
[ZenFone 2 Android Development] BOSSPDA:
Correct if I'm wrong. We can flash stock roms from Asus, from this TWRP, the new one, from today, but only in .img file, ok?

It's not possible to instal stock rom .zip or using adb sideload. Is that ok, or not?

Thansk for you efforts na good work.
[ZenFone 2 Android Development] TheSSJ:
There is confusion here:

With the newest version you can flash new versions of twrp within twrp itself

Also *normally* you should be able to flash stock ROM zip file,too, as all needed conditions in the script should be met.

Never tried adb sideload,though,as I don't need it
[ZenFone 2 Android Development] jpacleb85:
I don't know if there is a bug with twrp(latest version) or if it's the rom that is in the same forum, but I can't seem to install the rom. every time i wipe the system, cache, dalvik and data then install the rom, all that has changed is my phone has been factory reset. is twrp not touching the system?
[ZenFone 2 Android Development] Harfainx:
I'm not sure what's going on there. Maybe you should try re-flashing twrp?

Doesn't seem like anyone else is having an issue with TWRP or the ROM.
[ZenFone 2 Android Development] jpacleb85:
already did. I initially had flashed the one with ntfs support.. then flashed the one without the ntfs support. still not changing anything
[ZenFone 2 Android Development] kamranyusuf:
Rooted, bootloader unlocked. Successfully installed the ROM, the problem is there is no notification bar. Nor does the home button work.

Can someone help me out here.
[ZenFone 2 Android Development] chubby65:
Try wiping cache and dalvik

---------- Post added at 11:59 PM ---------- Previous post was at 11:56 PM ----------

Flash pre rooted 2.19

Reflash twrp
[ZenFone 2 Android Development] jpacleb85:
That is what i did.. I'll try again when I get a chance
[ZenFone 2 Android Development] chubby65:
Remember to fastboot Flash all partions
[ZenFone 2 Android Development] kamranyusuf:
Tried, didn't work. Its still the same.
[ZenFone 2 Android Development] TheSSJ:
Why not trying to exclude possible error sources?

Wipe data, system and cache and then mount all partitions within TWRP. Then use the built-in file explorer and check if the partitions are all empty. If system should still be non-empty, then go to settings and tick the "use rm- -rf instead of format" and retry wiping again.

Also can you tell me which Zenfone model you have?