yashsingh1/xdaforums huggingface dataset:
[ZenFone 2 Q&A, Help & Troubleshooting] :
Yo, I got my Zenfone 2E cracked last week, so instead i'm switching to the Zmax2. But I am going to experiment a little and im going to try and flash the Zenfone 2's firmware onto this phone. If it works, i'm gonna tell you guys. If it doesn't then I will reflash stock
[ZenFone 2 Q&A, Help & Troubleshooting] robot_head:
soon i hope, [emoji336]

Having trouble with the updater script, I'm no dev, just following a tutorial.

Anyone interested in doing the same, a rom for this phone isn't going to build itself http://xdaforums.com/showthread.php?p=35957535
[ZenFone 2 Q&A, Help & Troubleshooting] AlexBodewig:
which zip are you using? I tried with .118 and it gave error no system folder.
[ZenFone 2 Q&A, Help & Troubleshooting] robot_head:
You have to manually copy your system folder to the working folder
[ZenFone 2 Q&A, Help & Troubleshooting] AlexBodewig:
So you just dump your system folder to an sd card and then to the working folder?
[ZenFone 2 Q&A, Help & Troubleshooting] robot_head:
Yes, copied to sd card, then to working folder, itll be big. and i extracted boot.img and droidboot.img from the Asus rom to working folder just from what i read in the op of the tutorial, with the rom in the working folder as well. Try this when you get to updater script problems http://xdaforums.com/showthread.php?p=52558189
[ZenFone 2 Q&A, Help & Troubleshooting] robot_head:
[MENTION=4743457]AlexBodewig[/MENTION] you pulling your hair out yet, lol.

Also, when you test out your rom and go to flash it, just dirty flash, don't wipe anything, if you get a updater script fail, it didnt flash anything, so then you won't have to reinstall your backup every test run. If you get a install completed, pee your pants, then hurry and upload that sucka.
[ZenFone 2 Q&A, Help & Troubleshooting] AlexBodewig:
Have you tried dumping the entire update zip into the working folder along with the system folder?
[ZenFone 2 Q&A, Help & Troubleshooting] robot_head:
I haven't, there has to be a recipe, with all the files we have from the ROM plus what's on our phone already, some combination has to work. I even tried with my twrp backup but i couldn't get the system file in the right format ext.win.000 and 001
[ZenFone 2 Q&A, Help & Troubleshooting] AlexBodewig:
Maybe there's a way to make nandroid backup through adb that kitchen will recognize?
[ZenFone 2 Q&A, Help & Troubleshooting] robot_head:
That may work, because it should read .img files, it doesn't recognize twrp backups, even though it's nandroid.

I even downloaded a zenfone 2 ROM just to compare it with what i had, it was jarvis rom. His rom is like the whole phone partion, like what you see on the root of your phone with system, sys, data.... With a meta-inf file.

Im getting a little ahead of myself here, but when this rom is finally built, http://xdaforums.com/showthread.php?p=44723533 i love options; launchers, messengers, browser, xposed, certain apps. I'm working on this every spare minute i have, good luck to you as well
[ZenFone 2 Q&A, Help & Troubleshooting] mateo121212:
for the guys with the updater script issues check out this post..Post 126. seems like he already did the work there. just modify the updater script for your needs with his permission of course. i would also go and extract the system images from the ww edition rom for your base. thats just my 2 cents. i dont have the time to work on stuff as much anymore so i wanted to guide you guys in a path that might help you. im thinking with this type of setup you could atleast make a rooted deodexed rom to flash. you would have to install the ww edition stock rom first then you could flash the resulting rom you made.
[ZenFone 2 Q&A, Help & Troubleshooting] robot_head:
If i see another updater script fail, I'm going to smash my phone and yell at my computer. I'm about to take few days off from this, it's not fun right now. A million different approaches and the same result... I should of went to devry

Trying ZIPme......we'll see
[ZenFone 2 Q&A, Help & Troubleshooting] robot_head:
UPDATE: more updater script fails. ???

Anyone with knowledge in this area, please chime in. Downloaded att version in earlier post, no luck anyway i modified it, no app or computer program works either for me, i sincerely have a headache from this. I'm just basically zipping my system folder and putting a meta-inf file in it, signed, not signed, updater script modified, nothing changes. FAIL wooo hoooo?
[ZenFone 2 Q&A, Help & Troubleshooting] OfficerJimLahey:
From my experience, tarballs retain more info (e.g, permissions) than zip, which may be the source of your updater script problem. The ultimate, though is to dd a backup of system (and boot).

That all depends if your kitchen (I used Archi back in the day) accepts .img backups. No reason why it should not.
[ZenFone 2 Q&A, Help & Troubleshooting] robot_head:
Thank you, I'll give it a try
[ZenFone 2 Q&A, Help & Troubleshooting] robot_head:
http://xdaforums.com/showthread.php?p=64843341
[ZenFone 2 Q&A, Help & Troubleshooting] cidlover:
Has anyone found a kernel or app that can speed up or overclock the ZF2E, I installed a CPU control app and set 1.6 GHz for min and max, i know big battery drain there, but the CPU was on ondemand. Plus box for this phone says dual core where Intel and most android system info apps say 4 cores. I'll post a screenshot from one of each.
[ZenFone 2 Q&A, Help & Troubleshooting] robot_head:
Everytime i over clock the kernel, my phone freezes, i have to force reboot it. No apps that I've found are zf2e friendly
[ZenFone 2 Q&A, Help & Troubleshooting] social-design-concepts:
Its dual core four threads most all CPU apps report the thread count as cores.
[ZenFone 2 Q&A, Help & Troubleshooting] robot_head:
Wow, i just deodexed my phone with lucky patcher. So much more room on internal memory
[ZenFone 2 Q&A, Help & Troubleshooting] cidlover:
Any crashes or errors after removing all the odex files?
[ZenFone 2 Q&A, Help & Troubleshooting] robot_head:
It's all good
[ZenFone 2 Q&A, Help & Troubleshooting] asadzai:
Zenfone 2e brick fastboot with wrong droidboot image

sir i have write a wrong model droid-boot image how to recover it again please help me sir.
[ZenFone 2 Q&A, Help & Troubleshooting] robot_head:
Can you still get into fastboot or recovery, does adb still detect your phone. This is going to sound stupid but if your on stock asus firmware instead of att, you can flash stock firmware through STOCK recovery. It will repair all your bad flashes.... I got the usb image on my screen, but flashing stock firmware through stock recovery fixed it.
[ZenFone 2 Q&A, Help & Troubleshooting] kyetan21:
Wipig odex files

Ive tried using lucky patcher with busybox and without and cant seem to get any noticeable changes to my space issues.

Anyone know how to get apps to install or transfer to sdcard and actually work, sux that this device requires so much to be used by the system, but then lags out when the non system drive is full
[ZenFone 2 Q&A, Help & Troubleshooting] robot_head:
I've also removed everything asus, in lucky patcher don't make default ext-sd, play store won't install any app, it downloads then you get installation error
[ZenFone 2 Q&A, Help & Troubleshooting] robot_head:
Ok, im still have audio issues, headphones, speaker with music, and netflix is terrible. My audio is super loud, but at least once per song the audio cuts out, and becomes muffled and quiet. Then goes back to normal after a few seconds, but netflix for some reason is worse, it's always muffled and only plays clear for 5 seconds then muffles again. Has anyone found a fix, I'm using v4a but the sound did this before v4a was installed. Maybe a logcat would make some sense of this. Besides the laggyness despite of debloating, it's an OK phone. Looking on swappa for a shiny used nexus
[ZenFone 2 Q&A, Help & Troubleshooting] Fencey:
Stock Android

Is there a way to flash

stock

Android on the 2E? I'm not really digging ZenUI and since it only has 1GB of RAM it would improve performance, right?
[ZenFone 2 Q&A, Help & Troubleshooting] robot_head:
Like a Google rom? This version of zf2 is the cheap kid version. There's no roms for this, yet.
[ZenFone 2 Q&A, Help & Troubleshooting] cidlover:
Anyone else got this to work on the Zenfone 2E?

The app itself, both on mobile data and Wi-Fi give me an network error, but I have got one thing to work, and [MENTION=6758142]robot_head[/MENTION], you might want to check this out for yourself if you find my tag and code on this.

First, I've tried this after the app failed

adb shell
su
getprop ro.isn > /factory/asuskey
tmp-mksh: can't create /factory/asuskey: Read-only file system

I thought I could not but then I remembered something

adb shell
su
mount -o remount,rw /factory
getprop ro.isn > /factory/asuskey
mount -o remount,ro /factory

I'm on the fence of it worked or not but I think now I need a flashable image to unlock the device
[ZenFone 2 Q&A, Help & Troubleshooting] robot_head:
Find twrp.img and flash in fastboot
[ZenFone 2 Q&A, Help & Troubleshooting] cidlover:
Is there a TWRP for our 2E? I just don't want to enter a bootloop and I know flashing a custom recovery only effects the recovery partition but still.

Have you flashed twrp yet?
[ZenFone 2 Q&A, Help & Troubleshooting] robot_head:
su

fastboot flash recovery twrp.img

Put in same folder on your computer, that the tethered twrp is at, along with launcher.bat , cmd, all that stuff. From fastboot screen on your phone enter above line through cmd.bat on your computer. https://drive.google.com/file/d/0B_c2hdjSBKMAWklKWmNkOXNUOWc/view?usp=docslist_api twrp.img
[ZenFone 2 Q&A, Help & Troubleshooting] cidlover:
Nope, didn't work, still stock recovery and my command prompt gave me this

sending 'recovery' (15662 KB)...
OKAY [ 0.973s]
writing 'recovery'...
FAILED (remote: flash_cmds error!
)
finished. total time: 1.727s
[ZenFone 2 Q&A, Help & Troubleshooting] robot_head:
I figured as much, hope for the best, expect the worse..... Damn i thought you might of had it.

Wait... So this is a problem in the factory/asuskey folder and tmp-mksh edits that folder? Just thinking out loud. What has to be in that folder? Could we just copy another ze500cl folder factory/asuskey with unlocked bootloader. It can't be that easy.
[ZenFone 2 Q&A, Help & Troubleshooting] cidlover:
Since Asus released the unlock tool for the ze500cl, I have it installed but I can't unlock my bootloader from the tool at all, plus I stil think we need a splashimage to flash after we do the commands to unlock it, the unlock bootloader threads says about one to flash after the reboot bootloader command and then flash one of them but they are for 550 and 551 phones.
[ZenFone 2 Q&A, Help & Troubleshooting] robot_head:
Att won't allow it to unlock no matter what.

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

Somewhere in the phone is att stuff keeping it from unlocking
[ZenFone 2 Q&A, Help & Troubleshooting] robot_head:
This is strange, factory folder is supposed to be in the root of the phone, it's not, unless you add it, then it disappears?? https://youtu.be/Pqvo7UXljUE
[ZenFone 2 Q&A, Help & Troubleshooting] djole94hns:
The splashimage is just for aesthetics. The thing is, when you unlock the bootloader, your splashscreen turns from black to white, and some people don't like it.

I have ZE500CL (normal version, not AT&T 2E), and I unlocked the bootloader with no problem.
[ZenFone 2 Q&A, Help & Troubleshooting] robot_head:
[MENTION=4614897]djole94hns[/MENTION] could you upload your factory folder. Not sure but the getprop command line fails to write to factory/asuskey, maybe yours could help us
[ZenFone 2 Q&A, Help & Troubleshooting] cidlover:
I have the folder too if you want mine as well.

The /factory folder is there but you need ES File Explorer or Root Explorer to access it, in my Root Explorer after tapping on "Mount R/W" and refreshing the view shows that folder.

Maybe, Maybe not, I'm running the 118 build of the ze500cl phone and my model in the back of the phone matches the Zenfone 2 Z00D
[ZenFone 2 Q&A, Help & Troubleshooting] robot_head:
I have mine, it just hides itself. I was wanting the folder from an unlocked bootloader
[ZenFone 2 Q&A, Help & Troubleshooting] RusLion__:
There is my factory folder, I have unlocked bootloader and twrp recovery
[ZenFone 2 Q&A, Help & Troubleshooting] robot_head:
Thank you, but I'm an idiot, i don't think that did anything, or allow my bootloader to be unlocked, with any method.
[ZenFone 2 Q&A, Help & Troubleshooting] RusLion__:
What about official unlocking method ? Did you tried it?
[ZenFone 2 Q&A, Help & Troubleshooting] robot_head:
Yes, tried the app, the command line, even the unlock. Bat , nothing... So needless to say nothing, we need a developer to help.

I was so bored last night i flashed the lowest firmware 12.16.4.3, and it seems seriously smoother.i was going try it and flash back, but I'm keeping this one. I debloated it, and it's nicer than 118, flashed through stock recovery, factory reset first. I haven't updated any apps through the playstore in fear that it'll start to lag
[ZenFone 2 Q&A, Help & Troubleshooting] cidlover:
Well, on a un-related topic, I got the stock firmware 118's kernel's SELinux to be permissive

Apps like ScreenOffAnimation, Pointer Replacer, or any that require a permissive SELinux kernel won't work on a Enforced SELinix environment

To set SElinux to permissive

Root Explorer of any kind

Go to sys/fs/selinux/
tap and hold on enforce file, the default in the file is "1"
but if you want permissive, change this to "0"
Then either soft reboot via power menu if you modded it
or "pkill zygote" in a terminal emulator.

EDIT: Soft Reboot your phone because on full reboot, selinux is set back to enforcing and you'll have to do this all again.
[ZenFone 2 Q&A, Help & Troubleshooting] djole94hns:
Which TWRP recovery have you flashed?
[ZenFone 2 Q&A, Help & Troubleshooting] RusLion__:
At 4pda site we have ported twrp 2.8.7.0 if you want, I can give you a link
[ZenFone 2 Q&A, Help & Troubleshooting] djole94hns:
Please do, thanks in advance :)

---------- Post added at 05:25 PM ---------- Previous post was at 05:23 PM ----------

This didn't work for me, but just typing "su 0 setenforce 0" in a terminal emulator seems to work. Checked with "getenforce", got back "Permissive". Edit: it goes back to "Enforcing" after reboot.
[ZenFone 2 Q&A, Help & Troubleshooting] robot_head:
Yes please, i tried flashing with fastboot twrp 2.8.7.0 .img but flash-cmd error. Then i ended up breaking my fastboot, so i had to backup with stock recovery to asus firmware. So yes a link would be great
[ZenFone 2 Q&A, Help & Troubleshooting] RusLion__:
You can download it from attachment, because site reqires registration
[ZenFone 2 Q&A, Help & Troubleshooting] djole94hns:
No problem, I'll make an account, just send the link :)
[ZenFone 2 Q&A, Help & Troubleshooting] RusLion__:
http://4pda.ru/forum/dl/post/7372549/recovery.img
[ZenFone 2 Q&A, Help & Troubleshooting] cidlover:
I know this, because my heart touch mod from Pointer Replacer is gone, Working on a long term and full reboot proof way. Stand by. :fingers-crossed:
[ZenFone 2 Q&A, Help & Troubleshooting] RusLion__:
You can also download it from my Google drive

https://drive.google.com/file/d/0B4YhnJfKNFjHZTJpd1B3VkU4NUk/view?usp=docslist_api
[ZenFone 2 Q&A, Help & Troubleshooting] djole94hns:
Thank you!

Before I flash this, just a question: is ADB sideload possible with this TWRP?
[ZenFone 2 Q&A, Help & Troubleshooting] RusLion__:
I think yes
[ZenFone 2 Q&A, Help & Troubleshooting] cidlover:
[MENTION=6758142]robot_head[/MENTION], I found this file in my internal sd card, Unlock_Time.txt and some say, when you unlock the boot loader, this file is created by the system.

Might want to check your emulated sd card for this file.
[ZenFone 2 Q&A, Help & Troubleshooting] djole94hns:
Thanks, I'll try it out :)

By the way, even though my knowledge of Russian is minimal, I think I found something interesting on 4pda:

http://4pda.ru/forum/index.php?showtopic=658859&st=3920#entry46023904

A modified variant of TWRP 2.8.7.0 by the user named Skyrimus. For anyone interested, check it out.
[ZenFone 2 Q&A, Help & Troubleshooting] RusLion__:
There are a two variants of ported recoveries for our phone. They are almost same, but with different styles. One of them from Skyrimus, second one I posted here.
[ZenFone 2 Q&A, Help & Troubleshooting] djole94hns:
You posted one that is completely in Russian :D Nevermind, I flashed this Skyrimus one and it's in English. Thanks again, good find!
[ZenFone 2 Q&A, Help & Troubleshooting] RusLion__:
Sorry, I didn't knew which of them Russian. Also in 4pda we have RAW firmware.
[ZenFone 2 Q&A, Help & Troubleshooting] cidlover:
SUCCESS FOR A PERMISSIVE KERNEL ON SOFT AND FULL REBOOT, I hope this works for you guys as well.

Permissive survived two full reboots :laugh::laugh::laugh:

At this point, rebooted like 20 times and finally got a full permissive kernel on boot via scripts and apps. Oh god, I can remember what I did. lol :o

1. download Universal Init.d from Play store looks like a blue icon with a pirate android and cross bones

2.Root Cleaner app from playstore, not free

3. install Terminal Emulator from the Play store

4. download the app and script, http://xdaforums.com/showthread.php?t=1933849

5. Root, Busybox installed, and Root Explorer installed

6. Install Uni-init+v1.0.apk, Universal init.d installer android cross bones one, and Root Cleaner, optional install if it makes you feel better

7.open the play store Universal Init.d android cross bones app and tap on "Test" then reboot and then check in your internal sdcard for initdsupport.txt

It will say "init.d is working" or init.d is not working" if not working on your phone

8. now open terminal emulator, type the following commands

su

cd /path/to/term-init.sh

sh term-init.sh

You'll need a better keyboard with a enter key because it'll prompt you to press enter

wait for the script to finish then close the window

9. with Root Explorer, either navigate to /etc/init.d or /system/etc/init.d or both and edit the file 08setperm with Text editor and it should look like this plus I added the "setenforce 0" at the end and you need to add that too.

#!/system/bin/sh

#Script to set correct permissions to /system/etc/init.d folder by Ryuinferno @ XDA 2012

mount-o rw,remount /system

chmod -R 777 /systemetc/init.d

mount-o ro,remount /system

setenforce 0

Lastly, more extra measures for safety for a true permissive kernel, in case all this don't work

1. add ro.build.selinux=0 to the end of the build.prop file in /system or in adb shell

su

mount -o remount,rw /system

echo ro.build.selinux=0 > /system/build.prop

mount -o remount,ro /system

exit

and in the same shell,

su

mount -o remount,rw /system

mkdir /system/su.d

echo "#!/system/bin/sh" > /system/su.d/permissive.sh

echo "echo 0 > /sys/fs/selinux/enforce" >> /system/su.d/permissive.sh

chmod 755 > /system/su.d/permissive.sh

exit

found at here: http://xdaforums.com/showpost.php?p=58887725&postcount=230

But if it don't do anything but make the permissive.sh script and it's empty

add this:

#!/system/bin/sh

setenforce 0

0

Hope this helps you guys :)
[ZenFone 2 Q&A, Help & Troubleshooting] RusLion__:
Explain please what is it?
[ZenFone 2 Q&A, Help & Troubleshooting] djole94hns:
Ooh, that is clever! I'd never think of using init.d :) Good thinking, thanks!
[ZenFone 2 Q&A, Help & Troubleshooting] cidlover:
I flashed the recovery images but they all show the Intel Inside logo and then dump me back at the bootloader, help please? tried all three
[ZenFone 2 Q&A, Help & Troubleshooting] djole94hns:
I packaged the that English TWRP recovery from 4pda.ru so it's flashing would be noob-friendly. You can get the zip from my DropBox: https://www.dropbox.com/s/7hm5nbn63bfqgcx/Flash%20TWRP%20Asus%20Zenfone%202%20Z00D.zip?dl=0

Instructions:

Install ADB/fastboot drivers for your phone

Download and extract the zip from the link above

Unlock the bootloader using the official ASUS Unlock Tool

Turn off your phone and connect it to your PC via USB

Boot into bootloader (press and hold power+volume up buttons until the phone vibrates, and then release ONLY the power button while still holding the volume up button until you see the fastboot screen)

Go into the previously extracted folder and run the "FlashTWRP.bat" file

Then press volume down 2 times until "Reboot recovery" shows up and press power 1 time to boot into recovery

And voila! It works :)

---------- Post added at 08:31 PM ---------- Previous post was at 08:30 PM ----------

Try my instructions in the above post, maybe you'll get it to work that way :)
[ZenFone 2 Q&A, Help & Troubleshooting] cidlover:
And after I did that, same result, man I really want TWRP on this Zenfone 2E badly, not fair my older Samsung Galaxy S2 gets TWRP.

And I'm not trying to be difficult, Im basically smarter in the software side of Android lol
[ZenFone 2 Q&A, Help & Troubleshooting] djole94hns:
Are you sure your bootloader is unlocked? Your splash screen should turn white if the unlock is successful. Also, after flashing, try accessing your recovery manually, by completely shutting down your phone and rebooting with Power+Volume down keys. I know it's probably a silly suggestion, but well :)
[ZenFone 2 Q&A, Help & Troubleshooting] cidlover:
Well, I think I am, because in the root of my internal sd card sits a Unlock_Time.txt file, which I looked up and people say when the bootloader is unlocked, this file is created on the root of the internal sd card.

Want me to record a Youtube video of this?
[ZenFone 2 Q&A, Help & Troubleshooting] djole94hns:
That file might also be just to show when was the last attempted unlocking. But well, I'm not familiar with 2E. All I know is that my splash screen turned white when I unlocked the bootloader.

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

I don't have a camera, but you can see how the splash screen is supposed to look here:

https://cdn-images.xda-developers.com/direct/3/4/6/3/6/0/0/zenfone_2_splash_screens.jpg
[ZenFone 2 Q&A, Help & Troubleshooting] cidlover:
Alright, first off, what did you use to unlock your bootloader?

By the Command line or the unlock tool app or the tool in this thread: http://xdaforums.com/zenfone2/general/congrats-to-bootlocker-unlocked-t3138547

Mine is still black
[ZenFone 2 Q&A, Help & Troubleshooting] djole94hns:
I used the tool from ASUS' website, here: https://www.asus.com/Phone/ZenFone_2_ZE500CL/HelpDesk/

Driver & Tools > OS: Android > Utilities

Here is a direct link for the APK: http://dlcdnet.asus.com/pub/ASUS/ZenFone/ZE500CL/ZE500CL_UnlockTool_0909.apk
[ZenFone 2 Q&A, Help & Troubleshooting] cidlover:
I've tried that, the app gives me a network error each time. I used the commands and then my asuskey file got populated with numbers on the first line.
[ZenFone 2 Q&A, Help & Troubleshooting] djole94hns:
I suspect it's because your asuskey file is edited, but I don't know for sure why the app doesn't work for you. I think this method could help. Of course, I can't guarantee this will work, so do it at your own risk. As a precaution, check if your phone is compatible by going to Settings > About > Software Information. If "Build number" starts with "WW_" (example: WW_12.16.5.118) your phone is compatible.

You will lose all data by doing this, so proceed with caution and make backups!

Download this firmware for your phone: http://dlcdnet.asus.com/pub/ASUS/ZenFone/ZE500CL/UL-ASUS_Z00D-WW-12.16.5.118-user.zip

Put that zip on your sdcard

Boot into recovery, clear data and cache, and apply update from zip

After you flash the factory ROM, try using the ASUS Unlock Tool again
[ZenFone 2 Q&A, Help & Troubleshooting] cidlover:
I might sound selfish but I really don't want to do that yet, My Zenfone 2E is my current phone and right now don't want to reset just to unlock the bootloader and then install TWRP. Can someone else with a 2E try this and tell me if it does unlock the bootloader and then TWRP installs then opens. My issue is TWRP flashes but I can't enter TWRP at all.