yashsingh1/xdaforums huggingface dataset:
[ZenFone 2 Android Development] OfficerJimLahey:
Went to try v24 out, and I got a permission denied error:

$ sudo ./fastboot flash recovery /home/joel/Downloads/twrp_Z00A_v24.img
target reported max download size of 536870912 bytes
sending 'recovery' (15663 KB)...
OKAY [ 0.822s]
writing 'recovery'...
FAILED (remote: Permission denied
)
finished. total time: 0.993s

Any suggestions? Edit...looks like this is normal - F2FS is there in the Repair/Change filesystems - I was on v20 before so I assume it wasn't there before.
[ZenFone 2 Android Development] Dan_Jacques:
Did you try to boot with /data formatted in F2FS?
[ZenFone 2 Android Development] OfficerJimLahey:
Nah, just wanted to make sure I had the newer version.

But if doing that to the stock ROM, it would just reformat back to ext4 (once it recognizes it's not ext4) anyway. So there are no gains, unless you use the right custom ROM (my next build will have F2FS support) from here to eternity.
[ZenFone 2 Android Development] rex_perfect:
So you are telling about carbon rom.....next build will have f2fs support....what are the gains if we use right ROM..?
[ZenFone 2 Android Development] TheSSJ:
Well, that seems an error with your local machine or a newer fastboot version doesn't allow unsigned recovery images anymore? Otherwise try to flash v24 in your current TWRP version (click on install, then select "Images..." on the bottom left and then select the twrp v24 image and the partition it needs to be flashed to
[ZenFone 2 Android Development] OfficerJimLahey:
As Jason says:

By the way, I had a successful build last night... I'll be uploading it tonight.

I will keep that in mind for the future if I don't want to see error messages coming my way. At any rate, the new TWRP must have flashed, because my backup folder changed from MedField... to ASUS_Z00A. Install, backup and restore works without a hitch as well.

Since all my old backups are in MedField, I will probably archive all but the last one to my PC (and hopefully leverage the last one - my latest CarbonROM setup - in the new folder).
[ZenFone 2 Android Development] Wilkij:
A question for those more knowledgeable than I. Do we need to backup all those extra partitions? Coming from a Nexus background, I would back up boot, recovery, dalvic, data and system for a full system backup. What is misc, system_image, splash screen, config, etc. And do i need to back these up to assure a restore?
[ZenFone 2 Android Development] crisgq27:
Im getting the same issue with not being able to install twrp on my device.. it seems my bootloader is unlocked because i have the white screen but it says it installs twrp but when i go into the bootloader it just tells me to continue via fastboot. im running 2.20.40.97.. any ideas?
[ZenFone 2 Android Development] wifestealer:
Dude, just install it by rashr tool. It takes only 5 seconds
[ZenFone 2 Android Development] crisgq27:
it says by device isnt rooted.. i used the windroid tool box to unlock the bootloader and try to flash twrp
[ZenFone 2 Android Development] wifestealer:
Root your phone then and use Rashr tool
[ZenFone 2 Android Development] cuberio1:
please remove
[ZenFone 2 Android Development] hcarrega:
need help in twrp , i cant backup any setting in mount?

last recovery error is cant mount storage
[ZenFone 2 Android Development] 96DANGER96:
Can somebody let me know how to port twrp recovery to asus zenfone 2 laser? Thank you
[ZenFone 2 Android Development] jrior001:
The laser uses a qcom 8916 CPU, almost none of the twrp porting work we've done for the Intel powered zenfone is going to help you. Your gonna have to find another 8916 powered device to copy from.
[ZenFone 2 Android Development] 96DANGER96:
Thank you for your answer.

Last Galaxy s4 mini GT-I9195l has same snapdragon 410, and also has a working twrp... Now it can be possible?

You can find it here: http://xdaforums.com/galaxy-s4-mini/orig-development/recovery-twrp-2-8-7-1-touch-recovery-t3175347
[ZenFone 2 Android Development] Leftrand:
[MENTION=2388665]TheSSJ[/MENTION] Any new about CWM ?
[ZenFone 2 Android Development] krasCGQ:
The S4 Mini uses Snapdragon 400, not 410.

Sent from my ASUS_Z00AD
[ZenFone 2 Android Development] tagilbo:
Hi!

The rashr tool need open bootloader?
[ZenFone 2 Android Development] wifestealer:
Yep
[ZenFone 2 Android Development] tagilbo:
thx

Tapatalk-kal küldve az én ASUS_Z00AD-el
[ZenFone 2 Android Development] 96DANGER96:
Lastest S4 mini plus uses snapdragon 410
[ZenFone 2 Android Development] Mathys_F:
are the bugs on both still there?
[ZenFone 2 Android Development] XneofuX:
I'll clarify it a little bit more ... the locked bootloader doesn't forbid us to write to recovery, but the bootloader won't run code that isn't signed by the manufacturer/vendor (i.e. Asus).

I still hope that we'll get the unlock app from Asus asap (it took about 9 months from release on the Zenfone 4).
[ZenFone 2 Android Development] yepnegiishere:
Is there still any bug in this Twrp?
[ZenFone 2 Android Development] vampirefo:
I haven't had any problems with backup, restore, adb, or MTP on any of my builds.

Has this new patch added these problems? I will build with patch when I get home and see.

I may not use patch if it brings problems with it.
[ZenFone 2 Android Development] TheSSJ:
Hi,

I think I know why it doesn't restore: https://github.com/CyanogenMod/andr...mmit/779c865a859bb4abfb1e811bb7a62327845c528b

This is the only difference between the pre-x86 and the version now. Will need to rebuild, no big deal I think
[ZenFone 2 Android Development] social-design-concepts:
How are you getting an se policy to load post init?

---------- Post added at 02:43 PM ---------- Previous post was at 02:41 PM ----------

You are using my old recovery.env not recovey.launcher correct my original recovery.env start adb as the binary not as a service.

I've tested mine on several devices with no issues not sure how bestbuy felt about it lol.
[ZenFone 2 Android Development] TheSSJ:
I just assumed it would :laugh:

Even if it has no effect, still this was missing, otherwise I will need to look up the codeline responsible for this error...debugging recovery code is a little difficult, but not impossible
[ZenFone 2 Android Development] vampirefo:
I already have that patch in my recovery, could be why it has no problems restoring.

---------- Post added at 02:50 PM ---------- Previous post was at 02:47 PM ----------

I think, I am using launcher, will have to check when I get home.
[ZenFone 2 Android Development] social-design-concepts:
I guess I need to download and look at your recovery.zip you don't need to include the symlinks in /sbin they are created in updater-script. I recommend my suggestion on postpostrecovery.sh and adbd just trying to save you some debug time.

I'm new to selinux but I thought sepolicy were loaded by init and with out a port of 2nd init (the holy grail by the way) the policy would never get loaded but yes good to have in your source regardless. add setenforce permissive & to postrecoveryboot.sh should work if that's the issue.

Easy way to tell if adbd is using /system/lib is run adb shell the run env and see what the environment variables are.

---------- Post added at 03:12 PM ---------- Previous post was at 02:52 PM ----------

The new release is, not sure why yours wasn't throwing the linker error with adbd once I switched to a static linked shell my issue became obvious
[ZenFone 2 Android Development] TheSSJ:
Hi,

checked the adbd binary.

EXTERNAL_STORAGE=/sdcard
SHLVL=1
LD_LIBRARY_PATH=.:/sbin
ANDROID_DATA=/data
PATH=/sbin:/system/bin
ANDROID_ROOT=/system
SHELL=/sbin/sh

Seems fine here

The recovery complains that system is mounted read only and that it is not able to restore any file because of this. Mount -o rw /system is throwing out the error that the device is busy (but it's unchecked in the mount menu)...

I'm rolling back to TWRP 2.8.5.0...at least backup and restore worked there :(

How the heck do I force the recovery to mount the partition rw? Every other partition is mounted without problems...:silly:

/EDIT: Rolling back did the trick - system is mounted rw, restoring works again (took 276secs)
[ZenFone 2 Android Development] social-design-concepts:
Could you test mine please.

system isn't mounted at all just throwing the error when it trys to mount?
[ZenFone 2 Android Development] yakub234go:
Add this on your int.rc "setenforce 0"

After this line "setcon u:r:init:s0"
[ZenFone 2 Android Development] Harfainx:
May or may not be the same thing... but Capt. Throwback discussed this in the second post in this thread:

http://xdaforums.com/one-m9/orig-development/recovery-twrp-touch-recovery-t3066720

It's regarding the HTC M9, but I wonder if it's the same problem. He had to build a few beta versions of TWRP before the r/o problem was gone.
[ZenFone 2 Android Development] TheSSJ:
Yeah, Dr. Google brought me also to the M9 problem :D I don' t know if this is the same problem for our devices - I updated the first post (again :silly: ) and inlcuded a Google Drive link (cannot remove the attachment anymore - contacted the DevDB supporters already).

With this recovery everything works again.
[ZenFone 2 Android Development] social-design-concepts:
[MENTION=2388665]TheSSJ[/MENTION] could you please test mine I would like to know if it has the same issue with mounting system.
[ZenFone 2 Android Development] TheSSJ:
Hi,

I downloaded your pack you linked in this thread and selected hdpi portrait, but it hangs at the TWRP curtain and executing adb shell yields this:

WARNING: linker: /sbin/sh has text relocations. This is wasting memory and preve
nts security hardening. Please fix.

Odd...seems the ZF2 is a little exception concerning Intel chipsets?
[ZenFone 2 Android Development] vampirefo:
You could test mine, I am pretty sure it will work on your device, best to just replace my recovery binary with yours to test.

If you want to test.

That way screen size would be correct for your device.
[ZenFone 2 Android Development] social-design-concepts:
So weird that's the error I was getting before I added mksh let me remove it and test using busybox sh again instead. try this one View attachment 3348332 if this still hangs then it's something with postrecoveryboot.sh
[ZenFone 2 Android Development] TheSSJ:
Now ADB works again...unfortunately it still hangs at the TWRP splashscreen :confused:
[ZenFone 2 Android Development] social-design-concepts:
remove the postboot.sh and repack it sounds like its failing to stop adbd also output of ps please the issues are probably related to what's causing the system not to mount do you have a copy of droidboot.img so I can inspect
[ZenFone 2 Android Development] mrbubs3:
The same error keeps coming up. Dang.
[ZenFone 2 Android Development] hcarrega:
cant make backups need some help maybe im doing something wrong
[ZenFone 2 Android Development] lollyjay:
Only way to get help is to describe the problem. For instance where in the process does it fail, what does failure look like?
[ZenFone 2 Android Development] hcarrega:
Recovery says cant mount
[ZenFone 2 Android Development] lollyjay:
On the backup screen above the "Enable Compression" which Storage can you select? Internal only unless you have another.
[ZenFone 2 Android Development] Jhyrachy:
What is the difference in code between tethered and untethered recovery?
[ZenFone 2 Android Development] xxdavidchoyxx:
After I install your recovery, I flash moab zip file then the error appear say error executing updater binary can anyone help?
[ZenFone 2 Android Development] wifestealer:
What's moab?
[ZenFone 2 Android Development] BO4573:
http://xdaforums.com/showthread.php?t=1916098

Mother of all Add Block ..?!?

I think...
[ZenFone 2 Android Development] hcarrega:
thanks sir problem solved
[ZenFone 2 Android Development] Phoost:
Removed
[ZenFone 2 Android Development] SenpaiCham:
E: Unknown MTP message type: 1

Is this a bug or what?
[ZenFone 2 Android Development] mattwheat:
Great work on solving the issues with our recovery. I had the same issue I assume most of us had, and that is restoring from backup lost radios. I recently had to reflash the Droidboot.IMG,

Boot.IMG, and stock recovery.IMG.

And then sideload the stock firmware to it. Due to an issue I had after using that so called Asus bootloader unlock apk. But after reflashing everything I used RASHR to flash the latest version of TWRP and then set my phone up and made a backup of all the options. Then flashed a CM 12.1 rom , used for a couple days then restored the backup and worked perfect. Didn't have to factory data reset it like before. Good job I really do appreciate it.
[ZenFone 2 Android Development] SenpaiCham:
Is it alright to use this TWRP version for Asus Zenfone 2 ZE551ML?
[ZenFone 2 Android Development] kevin.kvik:
Work on Z00D (CL500ZE)?
[ZenFone 2 Android Development] alboz83:
After flash Prism-Barebone without problem, now i can't flash anything because i get "error executing updater binary in zip" always. I tried unofficial and official twrp recovery.
[ZenFone 2 Android Development] SenpaiCham:
You tried official TWRP?
[ZenFone 2 Android Development] alboz83:
I wrote I tried unofficial and official TWRP. Maybe it's a updater-script problem?
[ZenFone 2 Android Development] SenpaiCham:
I was going to ask you about the difference of Official and Unofficial TWRP but Joel.Maxuel already explained it to me. Sorry about that.
[ZenFone 2 Android Development] alboz83:
Sorry but can you explained me the difference?
[ZenFone 2 Android Development] SenpaiCham:
Here's the link.
[ZenFone 2 Android Development] ferbulous:
Anyone can help me out?

Tethered recovery works fine when I first flashed in on my Z008 device, but starting with second flash and onward it just keeps getting stuck at twrp loading screen.
[ZenFone 2 Android Development] nail16:
What's the difference between System backup and System Image ? when I go to do a Nandroid backup only Boot/Data/System are checked off.

will Backing up these three, be enough to restore my phone back to stock from a custom ROM ?
[ZenFone 2 Android Development] azthemansays:
So I've finally gotten around to unlocking the bootloader on my Zenfone 2 ... flashed TWRP and booted into it and I got this message: "TWRP may have detected an unmodified system partition"

It explains that I can keep it as read only and make it easier to take official updates, but then TWRP will not be able to stop the stock ROM from replacing it and will not offer to root my device.

Should I keep it "Read Only" or should I allow the modification?
[ZenFone 2 Android Development] krasCGQ:
You can allow the modifications. Even if you choose to not allow the modifications, flashing zips could modify it anyway.

Sent from my ASUS_Z00AD
[ZenFone 2 Android Development] dvdauricchio:
is it compatible with z00d? now we've the unlock of bootloader
[ZenFone 2 Android Development] krasCGQ:
No. Z00D uses x86 processor (Z2560), while Z00A uses x86_64 processor (Z3580/Z3560).

Sent from my ASUS_Z00AD
[ZenFone 2 Android Development] JuanMnz93:
Would my system be faster with f2fs?
[ZenFone 2 Android Development] troy5890:
Yes
[ZenFone 2 Android Development] ishantanish:
how to install latest twrp2.8.7.5 ? i already installed old twrp den how to install latest twrp ? plz guide me
[ZenFone 2 Android Development] adhiduzz:
hi all

i have to say, the latest version of this TWRP seems doesnt compatible with the latest firmware 2.20.40.156

i always failed during backup

anyone?
[ZenFone 2 Android Development] jrior001:
Get me a copy of a failed backup log please.

adb pull /tmp/recovery.log after backup fails
[ZenFone 2 Android Development] adhiduzz:
damn

i just installed the latest official TWRP twrp-2.8.7.2-Z00A then it works

sorry, i cant provide the log

failed condition during backup, around 50% - 70%, screen goes blank/dim, got vibrate and the phone off

tried turn the phone on, it was going to the system not come into recovery
[ZenFone 2 Android Development] nugrohobachtiar:
cant installed zip of sound mod it say error executing updater binary in zip im on TWRP 2.8.7.0

heres the log
[ZenFone 2 Android Development] danielbryan:
Hi,

After rooted, follow all instructions in this post.

When choosing RECOVERY in the bootloader/fastboot, returned again to the same bootloader screen (infinite).

I bought 2 phones and came in with the version (ZE 551ME 32Gb Brazilian firmware 2.20.40.139)

Attempts:

- Force it to go into twrp recovery via adb command

- Install TWRP Manager App from the app store

- Past version TWRP Z00A

- Command “fastboot erase cache”

I updated the firmware 2.20.40.160 via ADB, redone root, unlock bootloader, flash recovery twrp latest version, smoothly in steps. When choosing RECOVERY in the bootloader, returned same bootloader screen. Do not load TWRP. The problem persists in both versions of the firmware.

How to solve please?

Thanks!
[ZenFone 2 Android Development] nugrohobachtiar:
i dont thing you followed the instructions properly,

i dont thing 2.20. above is unlockable

did your splash screen even become white ?

downgrade here followed that instruction

ah kids these days really no effort

ps:my bad see below
[ZenFone 2 Android Development] TheEgonSpengler:
https://www.asus.com/us/Phone/ZenFone_2_ZE551ML/HelpDesk_Download/

Yes, kids these days. Making snarky comments without even checking ASUS's homepage.

Go there, go to Utilities. Yup, its a bootloader unlocker.
[ZenFone 2 Android Development] Siddk007:
Me too facing same error while flashing any soundmod like extremebeats, xtrememusic etc. on TWRP 2.8.7.0 Z008
[ZenFone 2 Android Development] krasCGQ:
Seems not related to the recovery itself.

I:Set page: 'flash_zip'
I:operation_start: 'Flashing'
MtpServer::run fd: 17
E:request read returned -1, errno: 5, exiting MtpServer::run loop
Installing '/external_sd/XTREMEMusic?_LP-MM_v7.0.3_by_androidexpert35.zip'...
Checking for MD5 file...
Skipping MD5 check: no MD5 file found
I:Zip does not contain SELinux file_contexts file in its root.
I:Legacy property environment initialized.
E:Can't execute '/tmp/updater'
I:Legacy property environment disabled.
E:Error executing updater binary in zip '/external_sd/XTREMEMusic?_LP-MM_v7.0.3_by_androidexpert35.zip'
MtpServer::run fd: 17
E:request read returned -1, errno: 5, exiting MtpServer::run loop
Error flashing zip '/external_sd/XTREMEMusic?_LP-MM_v7.0.3_by_androidexpert35.zip'
Updating partition details...
I:Data backup size is 1485MB, free: 21366MB.
I:Unable to mount '/usb-otg'
I:Actual block device: '', current file system: 'vfat'
...done

Try other recoveries and if it still doesn't work, consult the developer to make the x86 compatible one. I think due to the updater-binary.

Sent from my GT-I9500
[ZenFone 2 Android Development] danielbryan:
Hi,

Sorry, I didn`t pay attention to the version of firmware. I asked because I needed and even with the instructions below, remains the same problem.

I tried downgrade to 2.19.40.20, when “Verifying update package…”, stopped in “E:Error in /sideload/package.zip (Status 7)”

I also tried the official “Unlock boot loader”, returned error “An unknown error occurs, which may be a network connection issue. Please wait and try again later”

I'm using Android Studio on the mac or linux.

Thanks and sorry for the inconvenience, my English is not so good.
[ZenFone 2 Android Development] davidespinelli96:
Please, update to the latest TWRP for Android M
[ZenFone 2 Android Development] Aceofzeroz:
Lol.

http://xdaforums.com/showthread.php?t=3265236

Sent from the Ace's MB865 using Tapatalk
[ZenFone 2 Android Development] anuderpins:
Hey, not sure if this question has already been answered or not, but I installed a SlimLP ROM on my phone but there was this weird bug where after a while the top left of my screen wouldn't work. I tried installing a different ROM but for some reason whenever I'd try installing, it would unexpectedly just exit the progress screen and the ROM wouldn't install. This happened for multiple ROMs. Any ideas or fixes?
[ZenFone 2 Android Development] TheSSJ:
I'd try to install one of these images: http://xdaforums.com/showthread.php?t=3265236

Download one of the images

Reboot to recovery

Click install and select the package

Then reboot to recovery within TWRP itself

then retry flashing
[ZenFone 2 Android Development] danielbryan:
Hi,

Resolved, I am free! \o/

The problem was BootLoader Unlock, he worked via WinDroid

Procedures:

1) Unlock Bootloader via WinDroid Universal Android Toolkit v2.6 run Virtual Box. Appears white screen at boot

2) Flash twrp_Z00A_v24.img run Terminal Mac in fastboot mode

3) ./fastboot erase cache

4) Recovery TWRP 100% working

Thanks!
[ZenFone 2 Android Development] MadeInNewYork87:
I'm having a problem backing up in TWRP, it says "E:createTarFork() process ended with ERROR=255" anyone ever have this problem?

heres the log

* Backup Folder: /data/media/0/TWRP/BACKUPS/Medfield0DFF51F5/2016-01-14--09-57-47_bliss_Z00A-userdebug_5.1.1_LMY48Y_5d8d9989e/

MtpServer::run fd: 14

E:request read returned -1, errno: 5, exiting MtpServer::run loop

Backing up System...

E:Error opening '/system/addon.d' -- error: Not a directory

E:Error in Generate_TarList!

I:InfoManager saving '/data/media/0/TWRP/BACKUPS/Medfield0DFF51F5/2016-01-14--09-57-47_bliss_Z00A-userdebug_5.1.1_LMY48Y_5d8d9989e/system.info'

E:createTarFork() process ended with ERROR=255

Backup Failed.

Cleaning Backup Folder
[ZenFone 2 Android Development] J M L:
Updated TWRP tethered image

I use this all the time for making backups and installing root and xposed after system updates, because I've not unlocked my bootloader. I thought I would put it up here to save other people the trouble of combining all of these things. All I've done is combine some tools that other people made. They did all of the hard work, and deserve all of the credit. I've tried to link back to all of the original sources, but I apologize if I've missed any.

To use this, download it and unzip it. Make sure USB debugging is enabled on your phone, and attach it to your computer. I suppose you need proper drivers and such, too. Then (on Windows) open a command shell and run the cai_dat_CWM.bat at the command line. Type ACCEPT at the prompt (or don't, but then you can't go on). Then use option T4 at the second prompt. This will reboot your phone to the bootloader, and run the hack to reboot to a tethered TWRP.

I've also added the script cai_dat_CWM.sh which is what I use on Linux to boot tethered TWRP. To use this, put your phone in bootloader and attach it to your computer. Run the script. You will need to have a system wide installation of the correct version of fastboot.

I started with the instructions at the top of this very thread

I got the tethered CWM files from the root newbie instructions thread

I updated that package with new versions of the recovery.trigger and recovery.launcher from the Intel Android device root thread

I updated the original CWM recovery image with TWRP 2.8.7.3 (LP) from the Zenfone 2 recoveries thread

I used abootimg to extract the boot image components

gzip -cd initrd.img | cpio -i to extract the initrd.img

zip to create recovery.zip

I wrote my little shell script to boot tethered TWRP from Linux

This image works great for me. I can get my phone to TWRP, decrypt the phone, and do backups or install things as needed, all while preserving a locked bootloader.
[ZenFone 2 Android Development] Shaxine:
What are the procedures for linux?

When I boot to Bootloader and run "cai_dat_CWM.sh". Terminal shows: < waiting for any device >

And nothing happens.
[ZenFone 2 Android Development] vampirefo:
http://xdaforums.com/android/development/linux-version-twrp-2-8-6-0-tethered-t3123075
[ZenFone 2 Android Development] Shaxine:
When running "sudo ./trigger 1" I'm getting the error below.
[ZenFone 2 Android Development] vampirefo:
Means your device can't use trigger one, try a different trigger, 3 I think for that device, if not then 4.
[ZenFone 2 Android Development] Shaxine:
Thanks, I manage to run trigger 3. Now in order to run the recovery it self what should I do? Just select "RECOVERY MODE" on the bootloader? Thanks for the help btw

Edit: Nevermind, Trigger 4 did the trick! ;)