yashsingh1/xdaforums huggingface dataset:
[ZenFone 2 Android Development] TheSSJ:
Thanks for the info, will check as soon as I come home again :good:
[ZenFone 2 Android Development] social-design-concepts:
[MENTION=2388665]TheSSJ[/MENTION]

hey I'm not sure if this uses my

recovery.launcher / recovery.trigger binaries

but if they do you need to use /shin/postrecoveryboot.sh to stop adbd then start adbd directly /sbin/abdd recovery & if not adbd ( and anything that uses adbd "MTP / USB" ) will use the shared libs under /system/lib instead of /sbin which causes all kinds of issues in particularly issue with restoring.
[ZenFone 2 Android Development] social-design-concepts:
That won't get confusing with 40+ other Intel tablets that also use fhd in their naming convention
[ZenFone 2 Android Development] jrior001:
In my brief experience here digging through Intel....their naming conventions suck. Idk why they felt the need to break for on the standard aosp structure.
[ZenFone 2 Android Development] social-design-concepts:
actually it works quite well when you realize how little the differences are between devices of the same soc type. Their build system and naming convention allow for a master build config for the soc and then smaller easier to read device.mk for each target device. Once you get use to it, it really is nice.

I think people are just used to Cyanogenmod which when you dig into it really isn't correct I've seen countless device trees with the wrong code names and such used.

fhd has always been the display marking on Intel device designating a model as Full HD over a non Full HD model.
[ZenFone 2 Android Development] jrior001:
That's what I gathered as well....actually I think qcom could do a lot of the same as well.

I just despise being left with Asus/Moore field/f(hd) to name this thing...like you said fhd isn't really a valid codename like were used to
[ZenFone 2 Android Development] social-design-concepts:
That's because it should be device/intel/moorefield/mofd_v1/z00a.mk

Z00A is your devices codename

mofd_v1 is the reference design

moorefield is the soc

Really you would call the Intel parts from device/asus/z00a/ww_z00a.mk

but the device/intel/moorefield/mofd_v1 isn't open sourced
[ZenFone 2 Android Development] jrior001:
In mystock kernel source they use device/Asus/moorefield /fhd, that's where I got it from.
[ZenFone 2 Android Development] social-design-concepts:
Gotcha I suspect Asus is using :

device/asus/soc/display/device-codemane.mk ?

That would actually makes sense that would follow Intel's pattern of using a common core for similar devices allowing asus to keep all moorefield full hd device configs in one location being they have both moorefield full hd phones and tablets.

Of course that's just might be how my brain interprets it, nope for sure it is device/asus/soc/display/ so I suspect that there should be one more folder after display holding all the device specific configs probably z00a or ze551ml

Sorry [MENTION=2388665]TheSSJ[/MENTION] I'll stop bloating your thread now.
[ZenFone 2 Android Development] Dees_Troy:
jrior001 and I converse on IRC frequently. He even linked me his device configs and yours. His configs were a lot cleaner, so I went with his as a base. I retained history, as is the best practice. That's how you give credit. There's no need to mention people when the history is there for all to see. I did grab your fstab for my initial release, but I forgot to give you credit in the original commit message. I've since dumped my original device configs and redid them from scratch including the fstab, with some improvements. I gave you a mention in the new commit message, fwiw.

I glanced at your implementation of ntfs, but since you didn't retain history of TWRP commits, it was hard to see what all you had done and your implementation wasn't a complete implementation. My implementation is still in gerrit here: https://gerrit.omnirom.org/#/c/14099/ In addition to the ability to mount via ntfs-3g, I also added ntfsfix and mkntfs and the necessary code to allow TWRP to repair and wipe ntfs, thus a more complete implementation. In the future, you are more than welcome to submit TWRP features that you develop to https://gerrit.omnirom.org for review. You can learn a lot from the review process and eventually your features may make their way into mainline TWRP.

I cherry picked the x86 graphics patch from CM and adapted it to Omni in this patch set: https://gerrit.omnirom.org/#/c/14095/ I did my best to retain some of the history and authorship of the patch, but there's multiple people involved. I added a few teaks to the libpixelflinger/Android.mk file to help with libenc building properly when needed. For libenc, I used https://github.com/Dees-Troy/android_external_libenc which was kanged straight out of Android 4.4.4's dalvik code, as per the commit message.

I also cherry picked crpalmer's patch for adbd from CM over to Omni here: https://gerrit.omnirom.org/#/c/14096/ and retained proper authorship of the patch.

You are also welcome to submit device configs to the TWRP team (myself or bigbiff) for inclusion as an officially supported TWRP device.
[ZenFone 2 Android Development] TheSSJ:
[MENTION=912474]Dees_Troy[/MENTION]

Instead of quoting your answer I thought I try to keep my answer a little reduced (thanks for your statement though, really appreciated your opinion on this).

You may or may not seen the date I joined to github (June 20th), so you can imagine the state of knowledge I have in maintaining a github repo compared to yours or jrior001's. As programming is not part of my job, so my skillset in documentation and coding is rather limited (nonetheless trying to soak up every bit of information I see), so pardon me if my github look like a giant mess, but there is also a time contraint hindering me to study all man pages every git sub-command has. I have to thank [MENTION=2836769]jrior001[/MENTION] a lot for his hints and tips on how to set up a clean git repo and how to maintain proper credits, and I really try to incorporate as many github conventions as I can to not look like a kanger myself (also the definition of "kanging" was not known to me until jrior told me)

Anyways, my code is available to anyone and I thank you for mentioning me, though I had time to think about the happenings and came to the conclusion that we can only move on and make progress on our fabulous device if we are many, so I have to apologize to have called you a kanger myself - it is more important to achieve a milestone for the device, not for the individual contributor, clearly I have overreacted.

Again, Github knowledge is slowly increasing, so it's clear that my repo was of little to no usage at all for you (I cloned the TWRP repo, modifed everything and tested, and only

THEN

I have uploaded it to github, that's the reason why it's not clear which files were modified for ntfs-3g support).

Have to be thankful that jrior001 and crpalmer (and now also you/bigbiff) are working on this well done piece of technology and maintain a much better knowledge base than I've could have done at all.

I think we can bring this topic now to an end :good:
[ZenFone 2 Android Development] TecknoFreak:
Wow just wow
[ZenFone 2 Android Development] sorg:
@

Dees_Troy

can you finally make some define switch to disable fuse exFat completely in TWRP? There are more and more devices natively supporting exFat, including Zenfone 2. When i compile TWRP for my phones, i have to wipe all these exFat checks from TWRP in order to use native Tuxera exFat driver.
[ZenFone 2 Android Development] cangcan:
honestly, thank you so much to you [MENTION=2388665]TheSSJ[/MENTION] for bringing all of these to us..i really appreciate it..and thank you to teamwin too for bringing official twrp to zf2 too.. anyway, its all for the community and we will remember which developer that has contributed to our device, and most of importantly, you guys never ask for any donation and gladly share your work with us, thats what makes you respectable..
[ZenFone 2 Android Development] jeanne8fr:
So after these very interesting conversations that us ordinary mortals can barely follow can anyone explain to me how to install twrp on my phone using the twrp manager as described in the quoted article?.

Also this method doesn't mention needing the boot loader unlocked. Please clarify.

https://twrp.me/devices/asuszenfone2.html

I can't see zenfone 2 or fhd in the device list.

In your answer please assume you are speaking to a dumb child.
[ZenFone 2 Android Development] jrior001:
The instructions are laid out in the OP fairly well. If you have specific questions though let us know
[ZenFone 2 Android Development] jeanne8fr:
Thanks for the reply. I did have a specific question which was ' how can I do it using the twrp manager' as described in the article. It seems that if it worked as written it would be a much easier method for noobs (like me) than the one in the OP.

So your answer is that the manager is crap and that it won't work. I wonder why the author of the article bothered writting it then?

Anyways, thank you for taking the time to reply.
[ZenFone 2 Android Development] jrior001:
Well....there's a lon history with the app that I don't know all of but its been discovered that it only works well on a a small handful of devices.

I know of a few other apps capable of flashing recovery other fly but none have seemed to work to this device. Fastboot or the dd method from a terminal window are the only consistent methods thus far in this device.
[ZenFone 2 Android Development] aziz07:
I formated my sd card with ext4 in TWRP Recovery but Android is not detecting my sd card anymore.

I am only getting 20mbps with exFAT 128gb lexar 633x versus 96mbps in Windows. Any ideas?

Thanks!
[ZenFone 2 Android Development] aziz07:
Hello, I finally fixed my slow sd card performance with a modded windows partitioner suggested by a generous xda member. Its now ~6x faster. Hope this helps everybody and thanks xda !

Kudo to Niropa for his suggestion,

http://xdaforums.com/zenfone2/help/slow-sd-card-speed-t3155102/post61817477#post61817477
[ZenFone 2 Android Development] vanessaem:
Thread cleaned and reopened. Please stay on-topic and talk about (Un-)tethered TWRP. That's it and thank you.
[ZenFone 2 Android Development] ravian29:
there is not any link to download .img, i am having problems with official twrp but this one used to work fine
[ZenFone 2 Android Development] fuzzybuffalo:
In OP, Under untethered, click to show content, scroll down, Google Drive.
[ZenFone 2 Android Development] Okazakee:
when i start the thethered recovery it remains on teamwin text, what can i do????
[ZenFone 2 Android Development] TheSSJ:
Sometimes (rarely) you need to start the whole process just again in order to boot TWRP completely. As the untethered one starts normally, maybe there is some issue with the triggers or so.

Which ZenFone 2 model do you have? 551 or 550?
[ZenFone 2 Android Development] CenereZar:
you're doing a great work !! i dont need cwm.i prefer twrp
[ZenFone 2 Android Development] alfi07:
Need help

:D

Did it twice and no twrp ?.....
[ZenFone 2 Android Development] cangcan:
did you already unlocked your bootloader?
[ZenFone 2 Android Development] alfi07:
Need help

1.I rooted

2.unlock bootloader through one click bootloader unlock.

3.install recovery from the computer

and by terminal emulator.

4. now no recovery at all ,even the stock one .

probably the bootloader is locked.

THANKS :)
[ZenFone 2 Android Development] alfi07:
AT LAST

Now everything is o.k

thanks.:)
[ZenFone 2 Android Development] sorg:
I didn't think about it before, but suddenly realized that MD5 checksum of TWRP backup is mostly useless. It's calculated AFTER backup by reading from disk. It means, if somehow your backup storage is corrupted, MD5 will be calculated from corrupted files. Nice, right?

I've already got the case when MD5 verification was passed, while backup was actually corrupted.

I've pointed out this problem on TWRP git hub, and get reply from developer: "It's hard to change, so i don't care."

So, keep in mind, MD5 of TWRP backup means nothing.
[ZenFone 2 Android Development] ansebovi:
Hi using untethered twrp, taken screenshot while it is in twrp, and it saved but the pic is just black...any idea y?
[ZenFone 2 Android Development] TheSSJ:
Maybe the screenshot code points to the wrong framebuffer (there are 4 or so). As I never knew that this function was available I couldn't test.

EDIT: Just assuming though: https://github.com/TheSSJ/TWRPmod/blob/master/fb2png/fb2png.c#L107
[ZenFone 2 Android Development] ansebovi:
aw ok,but please can u try to fix it??
[ZenFone 2 Android Development] jejemc:
Hello restoring a backup march it? Thank you ;)
[ZenFone 2 Android Development] fuzzybuffalo:
Using MultiROM TWRP, on a Nexus 6, and mine does that on the homescreen of TWRP, but the other screens worked.

Edit: Sorry, I was confused, that was the Zenfone 2, using TWRP with a theme, just the homescreen was black.
[ZenFone 2 Android Development] ansebovi:
i am using default theme,..and i taken screenshot in zip installing[in sd card]
[ZenFone 2 Android Development] vkez:
I searched the thread and i dont understand.

Can someone explain me about mtp.?

If mtp doesn't work that mean the computer wil not detect the usb?
[ZenFone 2 Android Development] TheSSJ:
Nope,

the PC won't recognize the device as MTP device, adb works though. You can push files via adb push if you need to place something there.
[ZenFone 2 Android Development] vkez:
Thank you..

Going to try now

Edit: MTP ? again i dont understand..

My pc just detect my phone as normal.

No problem here.

Thank youfor this awesome work. i can use exposed again.
[ZenFone 2 Android Development] Tiongkia:
thanks! great work!

backup is working if I backup in recovery. the back files can be found in recovery restore.

but if i backup in Nandroid, the backup files cannot be found in recovery restore
[ZenFone 2 Android Development] blazzer12:
How to install Tethered recovery in linux?

---------- Post added at 08:53 PM ---------- Previous post was at 08:26 PM ----------

Ok, my phone is stuck at TEAMWIN logo.

What to do?! :(

Edit : I press and hold all the buttons : power, vol up, vol down, the phone shutdown.

Wonder why this happened, I was successful 2 times earlier. I recommend killing the "adb.exe" process in windows and restarting the whole process.
[ZenFone 2 Android Development] TheSSJ:
That's a known bug in the tethered version...unfortunately this depends on the triggering mechanics, so maybe some event occurs, which interferes with the starting process. Untethered works fine, though ^^
[ZenFone 2 Android Development] OfficerJimLahey:
Are there any known issues with backup and restore?

I backed up a few times now, (after installing TWRP, before installing SuperZen, and then before testing a custom ROM). After testing the custom ROM, I went to restore (the last backup, all partitions except recovery), when I rebooted, I got SuperZen (of course), but bloat apps like Zinio were there again (ones I have previously frozen with stock and should have been gone with the SuperZen removal script - or at least stayed frozen).

More concerning was that the ZenFone was complaining that SIM wasn't inserted. Several reboots later, and service still could not get recognized. I had to factory reset to fix that, and it took a while to get everything back to normal again.

Don't know if any of this has to do with unofficial TWRP, but I am curious how to avoid the latter problem in the future..
[ZenFone 2 Android Development] TheSSJ:
I could imagine that some of the info may be backed up to partitions, which normally are not of much interest, like factory, misc,

config

. Will make these partitions backup-able in my next build and then you could check if backup/restore will work properly next time
[ZenFone 2 Android Development] TheSSJ:
New minor update, which could fix the restore problems when coming from CM ROM.

I included the config partition which can be backed up as well now. Maybe this solves the weird SIM errors which have been coming up lately

Also mounting system_image as emmc, but you don't need to back this up, too.
[ZenFone 2 Android Development] ligu:
Apart of the issue after successful restore, one of my backup aborted the restore process due to MD5 failure. Is there anyway to verify the MD5 data on existing backup within TWRP, without having to restore, just to be really sure at it's not corrupted somehow?
[ZenFone 2 Android Development] Mononon:
Should that be v20? The download link in OP only has v19.
[ZenFone 2 Android Development] TheSSJ:
Thanks for the info, I forgot that I linked the file directly...

Now v20 should show up, thanks again!
[ZenFone 2 Android Development] Mononon:
Thanks! My problem so far has been recovering, so I was anxious to try the new version. =P
[ZenFone 2 Android Development] TheSSJ:
I am eager to know if backing up the config+factory directory also will bring the success
[ZenFone 2 Android Development] cangcan:
gonna try it later..thank you [MENTION=2388665]TheSSJ[/MENTION]..

anyway, I know that official twrp gonna come soon but as for now there is still not even a single news coming from them..but can I ask if you still have plans in mind to improve your twrp?

I just need one more feature left on your twrp, which is to mount external sdcard while in usb storage, is it possible to request for it?

because I think its very useful and handy to mount sd card on pc via usb cable so that we can directly copy file to sdcard without rebooting to system and flash the file we want..
[ZenFone 2 Android Development] Mononon:
Last time I tried, I backed up everything and still got the SIM problem. SIM2 works fine, SIM1 just shuts down though. I may try recovering back to stock, but the CM12.1 build from today seems pretty stable. Charging LED is working again. Doesn't seem to be any sort of force closes. Seems solid enough for a daily driver, just from a first impression. Who knows though.
[ZenFone 2 Android Development] TheSSJ:
Last time I tried I had the problem that the recovery mounted my lun path, but nothing was displayed :(

I will retry just for sh*ts and giggles, maybe I missed something last time
[ZenFone 2 Android Development] Akashami03:
how to update twrp to v.20, Boz flashify is not working on my phone, currently on .v19, I install v.19 twrp through terminal emulator......can i do the same for this v20 too.......Thankyou is advanced
[ZenFone 2 Android Development] TheSSJ:
Yes, you can do it via terminal emulator

Or you flash the image in TWRP itself (Place img on your internal sdcard, then reboot to recovery, click instal zip, then select "Images..." in bottom right, then you see the img)
[ZenFone 2 Android Development] cangcan:
so you already tried to implement it before then, I thought that you missed it.. :p take it slow, you've been contributing nonstop to zf2 community and we really appreciate that.. still can survive without that feature tho.. thank you so much..
[ZenFone 2 Android Development] IW4N93:
so it's possible to install TWRP using TWRP itself...

thank you very much, then I don't have to sideload the updated TWRP, i'll install it using TWRP 1.9
[ZenFone 2 Android Development] gravitysandwich:
Deleted
[ZenFone 2 Android Development] Bushcrafter:
+1 I totally agree with cangcan. Keep up the excellent work TheSSJ, you really deserve a break! You have gone above and beyond the call of duty.:good: :D
[ZenFone 2 Android Development] TheSSJ:
Thanks guys, but there is a German proverb saying: who stands still will die

So i already have an idea about implementing a correct touchboost for my governors ^^
[ZenFone 2 Android Development] mencho:
I've been having problems with the external SD card. I first installed TWRP about a month and the SD card (external) wasn't mounting. Today I updated TWRP (V20) hoping to have the SD Card fixed, and also didn't recognize it.

I can use the SD Card inside Android without a problem. But no able to do anything (backup, or read a file from the SD Card). The card is a Sandisk 32 GB, type 10. I'm not sure about the partition type I used. (FAT32 or NTFS)

Any hint of what is going on?

Thanks
[ZenFone 2 Android Development] corrsea:
This would be good in the opening post as method 3. Might also be worth mentioning which partition to select [emoji1]
[ZenFone 2 Android Development] TheSSJ:
Interesting would be the file system installed on your external SD. Mine mounts flawlessly (FAT32). ExFAT should be supported as well, can't speak for NTFS though...
[ZenFone 2 Android Development] cangcan:
anyway no issue for simcard 1 not detected already in latest release..but by reflashing stock rom and then clean wipe it followed by cm rom installation..means that i need to delete my old twrp backups which may return the simcard not detected bug..thank you..
[ZenFone 2 Android Development] mencho:
I'm sorry. It seems my SD Card had some issues. I'm gonna buy a new one today and try again. False alarm. Sorry
[ZenFone 2 Android Development] deadman96385:
Screenshot does not work properly (You take it with power plus vol-)

it flashes like it worked but once you boot up into the rom and look at the picture its just black
[ZenFone 2 Android Development] TheSSJ:
Interesting question would be if the screenshots work in the official TWRP build?

I checked my log and the framebuffer is set to fb4, if it is the same for everyone else, I'll set it to 4 in the screenshot module (currently it's set to fb0), could you check your last recovery log and look this up please?(is in the top part of the log file, starting with "framebuffer: xxxx"

Thanks!
[ZenFone 2 Android Development] deadman96385:
framebuffer: fd 4 (1080 x1920)
[ZenFone 2 Android Development] AL_IRAQI:
when im in recovery and screen device went off i cant turn it on back again

i have to reboot the device again to recovery
[ZenFone 2 Android Development] TheSSJ:
So after working on it I discovered that TWRP uses its own implementation of making png screenshots. Only the front page results in a black picture, the rest works.

So I have to assume this is some kind of buffering problem or so...need to check though
[ZenFone 2 Android Development] deadman96385:
It did not work for me in the zip selection menu when installing a zip
[ZenFone 2 Android Development] TheSSJ:
?? Did you want to install a TWRP image within TWRP? Then you need to click the "Images..." button on the bottom right after having clicked "Install zip"
[ZenFone 2 Android Development] Abd121:
what is the difference between this and the official one?

thanks
[ZenFone 2 Android Development] TheSSJ:
Mine existed earlier :p

Also the latest modification is that I include more partitions to be backed up, which *should* fix the issue of SIM1 not being recognized when going back to stock (at least I got some positive feedback up to now).

My implementation of NTFS is different than Dees_Troy is doing it (no wonder as he knows his recovery's code like his backpocket), so they both have it's pros and cons

Otherwise, no big difference
[ZenFone 2 Android Development] themonyo666:
please work with ze500cl... please support us! thanks!
[ZenFone 2 Android Development] GGL-Daz:
If I am reverting back from a non stock rom do i have to include a system image in the backup as well?
[ZenFone 2 Android Development] TheSSJ:
Sorry, I don't own this device. If an Asus rep would send me a development phone I would surely work with it a little

There are 2 options:

1. Either you created a full backup of your stock rom before going to a custom one (so system, boot, data, config)

2. Or you wipe everything and flash a stock ROM zip by Asus (there is a good guide in the q&a section)
[ZenFone 2 Android Development] Shafwan7:
[MENTION=2388665]TheSSJ[/MENTION] thank for this perfectly TWRP but i have issues with 550ML devices. whenver i try to flash 550ML stock firmware, the red word come up. it say "cant flash. this firmware for Z008 and your device is Z00A"

thats mean, the TWRP is not for Z008?
[ZenFone 2 Android Development] TheSSJ:
It means that the Fingerprint of this recovery is from my phone (z00a). I would need to provide a second recovery with the z008 Fingerprint, will upload one in the course of this day