yashsingh1/xdaforums huggingface dataset:
[Zenfone 2 Laser General] mrsato:
So, I've been researching the possibility to safely root my ZE500KL and so far, I'm not finding anything to be an exact match. I went to https://www.asus.com/Phone/ZenFone-2-Laser-ZE500KL/HelpDesk_Download/ and see the caution: "Only apply to same SKU update, Example: WW->WW, CN->CN". I know that the probability is that they say this mostly because flashing the wrong SKU can cause it to stop doing OTA updates, as well as a theoretical hardware mismatch causing loss of functionality. The OTA updates none of us care about since we're doing custom ROMs. The hardware mismatch is the part I'm concerned about. I'm in Japan, which has some kind of "one off" kinds of services. Which might account for the fact that even on the Asus site, I don't see the "MM" sku anywhere. It's too obscure, no doubt. The full version I have currently (stock) is MMB29P.JP_Phone-13.10.10.34-20160715060020705_201602050034. (see attachment)

If I root and it fails, since I can't seem to find my SKU's build anywhere, I'll be thoroughly screwed. What I'm looking for is to know if ZE500KL support is universal for rooting and ROMs.
[Zenfone 2 Laser General] Resolute:
I think not MM SKU, your phone is JP SKU.
[Zenfone 2 Laser General] Seeker1988:
[NOOB QUESTION]

This work on custom rom with twrp?
[Zenfone 2 Laser General] Alamin4736:
sorry for disturbing guys..

i have z500kg... but i don't know how to unlock bootloader?? anyone can help me please??
[Zenfone 2 Laser General] Alamin4736:
How to unlock bootloader on Asus Z500KG please??
[Zenfone 2 Laser General] Alamin4736:
Is anyone using ZE500KG liniage 7.0 ??

If there then please help me.. I'm on lolipop version..

How can i go to liniage 7.0 or i can flash twrp???

Help me please..
[Zenfone 2 Laser General] sergioroot:
My phone model is ZE500KL-1A152WW. Trying to fix issue "Error: cannot load invalid boot image!"

I executed command "fastboot boot boot.img" now my phone restarted , I see message "Asus in search of incredible" and below a kind of dotted circle (this should mean that the phone is doing something).

How long should it take for the phone to start? if it does not start what should I do?
[Zenfone 2 Laser General] RazenIW:
I'm afraid I ****ed something up.

My phone bootloops and the only way to reboot correctly is to do "fastboot boot boot.img" with the STOCK boot.img provided.

Also I am not able to flash anything on the phone.

TWRP says "Error executing updater binary in zip...", and through ADB Sideload "Cannot read zip".

How can I fix everything? I guess I flashed something wrong trough fastboot :/
[Zenfone 2 Laser General] RalphAUT:
Bootloop

Hello,

well I managed to exaclty what I shouldn't have done - I flashed that mod_boot.img.

I guss I am ****ed now.

I condersider myself not a newbee in IT, but I have little experience with Android and Rooting.

Anyway, my goal was to run a custom rom on that phone and I found some probably good descriptions of how to install TRWP but I made a big mistake: I flashed the mod_boot.img instead of just booting it. Up till now I have not found a way to undo my mistake. I did different stuff that made it probably worse like fastboot erase boot, system, recovery and I coudn't find a way to install even the stock rom again. I am stuck at fastboot telling me that what ever I want to flash is not signed or otherwise wrong.

All I can find on every thead that concerned about bootloop or flashing error unsigned image is trying to root the device first.

But I cant do that or it doesn't change my bootloop.

So please what can I do to recover from this?

Help would be much appreciated!

Thanks,

Ralph
[Zenfone 2 Laser General] #sudo_:
I am finding issue while unlocking bootloader. The app is showing some error saying that error while parsing the package. Can anyone please send me the correct working app for unlocking the bootloader..
[Zenfone 2 Laser General] dan0418580:
hi Mr Zen,

My name is Dan, I am from Romania

i did everything you write here about rooting ZE500KL,

I have 5.0.2 lollipop

after restart i had the message Android is upgrading

but still, in root checker, i have the message:

"Sorry! Root access is not properly installed on this device"

and my phone is still not rooted
[Zenfone 2 Laser General] nobody00:
hi guys, what's the progress so far? did you managed to root the ze500kl? i really wish to install viper4android :|
[Zenfone 2 Laser General] rajlko:
please share your compiled recovery :)
[Zenfone 2 Laser General] Jhyrachy:
Maybe is stupid, but could you open a new adb windows and try to logcat it?
[Zenfone 2 Laser General] CTXz:
I'm not sure that will work. If it doesn't try to get the last_kmsg out of it
[Zenfone 2 Laser General] aleguti:
Hey! Have you seen this post? They claim that method can root the phone....

droidrootguide com /tutorial/asus-zenfone-2-laser-ze500kl.html
[Zenfone 2 Laser General] ivanfix:
Fake!

There's no solutions at the moment.

Follows this thread and wait it's the only things to do...
[Zenfone 2 Laser General] miau9202:
there's no way to get logcat in fastboot mode,

and almost "fastboot oem" commands is blocked by asus,

so "fastboot oem dmesg" didn't work either.

I had contacted shakalaca, and he notice me I can modify stock kernel to do some magic,

I'm working on it, please wait and be patient.
[Zenfone 2 Laser General] rajlko:
you may easily get logcat & other commands to work, just google for adbgui 1.0.

best tool i have ever used for adb, fastboot commands.
[Zenfone 2 Laser General] turbo_c:
I wish you guys succeed in rooting this phone cause i want to greenify the system apps that eats a lot of battery. And also uninstall the bloatwares!
[Zenfone 2 Laser General] heywheelie:
Almost all of the bloatware can be uninstalled without root. Settings -> Apps -> All and click on the app you want to uninstall/disable.
[Zenfone 2 Laser General] CTXz:
Disable != remove. They still eat space from your device and run in the can even run in the background
[Zenfone 2 Laser General] mrd.macdonald:
twrp for asus zen2 500kl (ported from moto G 3rd gen)

https://goo.gl/efXJMJ
[Zenfone 2 Laser General] miau9202:
TL;DR

We can inject anything in root (/)

but how to auto exec script when startup?

please help me.

=======================

it's a small update:

now I can successfully boot modified kernel with locked bootloader.

but I don't know how to execute shell script in init.rc,

I had added a service like below and it do nothing:

service test /sbin/busybox sh /init.sh
seclabel u:r:su:s0

init.sh:

#!/sbin/sh

touch /sdcard/gotit
touch /system/gotit
touch /data/gotit
mount > /sdcard/mount_status.txt

I think is a selinux problem, but I don't know how to debug this situation.

original init.rc is attached, or you can extract more files from kernel or recovery with

mkbootimg-tools (this is prebuilt binary)

and use "gunzip -c ramdisk.cpio.gz | cpio -i" to extract files.

if you have any idea, please reply.
[Zenfone 2 Laser General] miau9202:
ok, I got the way to execute script, just a little change in kernel setting.

I'm making the root patch, now I can modify system partition at least.

and you guys just need to hotboot the modified kernel by "fastboot boot <my kernel>"

I will do it asap.
[Zenfone 2 Laser General] ivanfix:
Have you tested this img?

Works?
[Zenfone 2 Laser General] miau9202:
Miau-Mac-Pro:~ Miau$ fastboot boot ~/Downloads/twrp_zen2_500kl_port.img
downloading 'boot.img'...
OKAY [ 0.790s]
booting...
FAILED (remote: bootimage: incomplete or not signed)
finished. total time: 0.791s

no, it can't.

a fake sign required
[Zenfone 2 Laser General] 96DANGER96:
You can set system on r/w with your kernel and init.d to use an already known root method to root the phone.. I'm right?
[Zenfone 2 Laser General] Jhyrachy:
Could you please post your device tree?
[Zenfone 2 Laser General] Jhyrachy:
There is a way to enable adb in stock recovery?

We would be able to push supersu trough adb (and pull a lot of info, lile a fstab) without specific patches.
[Zenfone 2 Laser General] miau9202:
there is a very interesting config in init.rc:

# Always start adbd on userdebug and eng builds
#on property:ro.debuggable=1
on property:init.svc.recovery=running
write /sys/class/android_usb/android0/enable 1
start adbd

the adbd service can't be automatically launch, even you modied like this:

service adbd /sbin/adbd --root_seclabel=u:r:su:s0 --device_banner=recovery
socket adbd stream 660 system system
seclabel u:r:adbd:s0

Maybe there is a way to enable adb, but I'm not Android Expert, I don't have enough knowledge to do this.

And I think enable adbd in recovery wouldn't help, because the most command like sh, cat, cp... is not included in kernel.(either boot.img, nor recovery.img)

if anyone can build aarch64 version of busybox, I can place this in sbin for you.

on the other hand, If I boot into system, I have full command to remount /system as rw, place supersu file, and xposed framework.

I'm working on oneshot shell script for rooting, it still need few day to test.

And these day I'm a little busy, please wait and be patient.

if you guys are interested to get fstab or any file in system, you can extract boot.img via mkbootimg

and extract entire system partition via dat2img with this guide

all file you need is included in OTA package could be downloaded from asus.
[Zenfone 2 Laser General] Jhyrachy:
So how do you plan to put supersu in /system?
[Zenfone 2 Laser General] miau9202:
my script is a adjusted update-script from original SuperSU zip to fit Laser.

It will execute automatically after fs mounted, and reboot when finish.

anything is all included in modified kernel, and it's no need to flash, just boot once.
[Zenfone 2 Laser General] Jhyrachy:
Cool

Would be nice if you could open source it after it's completed.
[Zenfone 2 Laser General] miau9202:
Hey guys, good news.

the final question is

if I boot modified kernel from stock bootloader, it will be assigned tampered or not.

(my bootloader is assigned "tampered = ture" now)
[Zenfone 2 Laser General] rajlko:
congratulation to you dear.:D

---------- Post added at 04:57 AM ---------- Previous post was at 04:23 AM ----------

@miau9202

would you like to share your work, so that we may modified it for ze550kl.
[Zenfone 2 Laser General] miau9202:
please wait few days for testing, I will release when ensure it can work properly.

I don't want to brick your device.
[Zenfone 2 Laser General] Jhyrachy:
Fantastic!

Could you try something like adaway or some apps who use root?

I never trusted root checker :/

Btw, about the tampered, with root we should be able to edit any variable and restore the "tampered" flag. (It's just an offset, we can modify it, if we can find it. And with root we can dump the partitions and check the differences with the original one to find the proper offset

Could you send me (in pm) the source of your work?

Thanks!
[Zenfone 2 Laser General] miau9202:
I'm using a very traditional way to prove root permission.

Use "adb shell" and "su"

remount / and /system as rw, remove random files and it successfully crash after reboot.

I think we get root.

I'm in ASUS royal club now (customer center in Taiwan), I ask them to restore my device to test modified kernel again.

I will reply result asap.
[Zenfone 2 Laser General] miau9202:
ok, I have result.

if you boot modified kernel, it will boot, but bootloader will enable the "tampered" flag.

We still have job to do, and if you have basic programming skill and linux experience, you can pm me.

I will be a little late to reply, because I'm eating dinner.
[Zenfone 2 Laser General] PushkaRR:
Thank you for your efforts
[Zenfone 2 Laser General] cLeAv0:
So does the tampered = true flag make us get stuck in bootloader? It's gonna be hard if we need to keep flashing using fastboot boot to boot up our phone that's why i just sent my phone to service already.
[Zenfone 2 Laser General] rajlko:
fastboot commands are not working in fastboot mode, just display waiting for device

adb commands are working very well

usb debug is on

device is ze550kl, asus_z00ld

someone please help us, how fastboot commands will work in fastboot mode.
[Zenfone 2 Laser General] ivanfix:
Fasboot commands works for me.

View attachment 3513340
[Zenfone 2 Laser General] rajlko:
which device you are using ?

ze500kl or ze550kl

if ze550kl, then please provide link for working fastboot tool.
[Zenfone 2 Laser General] ivanfix:
Sorry, ze500kl.

This thread is for the 5 inch model.

However, it is strange that for your model does not work...

Inviato dal mio SM-G928F utilizzando Tapatalk
[Zenfone 2 Laser General] rajlko:
ya it s really strange :(
[Zenfone 2 Laser General] asus-zenfone.com:
on zentalk tw this user already root his laser/ze00ed :

http://www.asus.com/zentalk/tw/forum.php?mod=viewthread&tid=110504&extra=page=1
[Zenfone 2 Laser General] rajlko:
http://xdaforums.com/showpost.php?p=63389862&postcount=64

please visit above post.
[Zenfone 2 Laser General] miau9202:
OK, I find the way to solve the problem.

bootloader is not tampered now:

Miau-Mac-Pro:ZE500KL Miau$ fastboot oem device-info
...
(bootloader)	Device tampered: false
(bootloader)	Device unlocked: false
(bootloader)	Device verified: false
(bootloader)	Device authorized: false
(bootloader)	Device check_fused: false
(bootloader)	Device reboot_reason: 0x00
(bootloader)	Device SSN:
(bootloader)	Skip check bat id enabled: false
(bootloader)	Charger screen enabled: true
(bootloader)	Display panel:
(bootloader) Device project: ZE500KL
(bootloader) CPU_RV=007050e1
(bootloader)	Device resize: false
(bootloader) SB=Y
OKAY [ 0.015s]
finished. total time: 0.015s

---------- Post added at 09:23 PM ---------- Previous post was at 09:21 PM ----------

It's me.

but I'm not MARIO.

I post it.

I can delete that post to prove
[Zenfone 2 Laser General] Jhyrachy:
So that means that now it boots fine?

Or we still need more tinkering?
[Zenfone 2 Laser General] 96DANGER96:
Now that we finally have a working root (wait and he will release it in few hours)

We need:

A working twrp

A working cyanogenmod port
[Zenfone 2 Laser General] Jhyrachy:
Before relasing i think a bit of closed testing is needed.

For TWRP and Cyano we need unlocked bootloader.

This means we have to tinker a bit more
[Zenfone 2 Laser General] miau9202:
all you need is boot my modified kernel...

and everything will be ok.
[Zenfone 2 Laser General] Jhyrachy:
Ok

i tried the root.

All is good, nice and working EXCEPT for a random com.asus.services crash who disable pretty much all asus stuff, included battery manager.

I had to wipe my phone, reflash ota and then reapply the root to make it works.

So, be ready to format your phone to get stuff working properly!
[Zenfone 2 Laser General] Leftrand:
Helllll yeaaaaaa
[Zenfone 2 Laser General] bohenian:
Okay guys, you're awesome. I am really noob with this, but can you pls tell me how can I boot [MENTION=5097283]miau9202[/MENTION]'s modified kernel?

Oh and thanks for your efforts, amazing.
[Zenfone 2 Laser General] miau9202:
I will post the complete root method in few days.

I must do a daily usage test these day.

I don't want to brick your device, and as i said before:

please wait and be patient.
[Zenfone 2 Laser General] bohenian:
Okay dude, thanks again :D
[Zenfone 2 Laser General] codejam100:
What are chances for ze550kl

Will this root method work for 5.5" laser ze550kl ?
[Zenfone 2 Laser General] miau9202:
I need someone can provide full dump or full partition table.

or I make a kernel for ze550kl to test and return the log for me .
[Zenfone 2 Laser General] cLeAv0:
How did you solve it? Can it boot properly now without using fastboot?
[Zenfone 2 Laser General] rajlko:
please avoid to post ssn.
[Zenfone 2 Laser General] 96DANGER96:
For me all working at the first time, without wipe.
[Zenfone 2 Laser General] Jhyrachy:
Yeah, but since I had it, i think is right to at least warn user.

It's not guarantee you will have the problem, but better be prepared.
[Zenfone 2 Laser General] rajlko:
how to pull full dump or full partition table ?
[Zenfone 2 Laser General] miau9202:
if you have root permission, please read:

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

If you don't,

1. execute these in terminal and send me what you get in pm

adb shell cat /proc/diskstats
adb shell cat /proc/partitions
adb shell ls -al /proc/fs/ext4
adb shell cat /proc/mounts
adb shell cat /proc/version

2. execute below make your device reboot to fastboot mode, and alse send me the pm:

adb reboot bootloader
fastboot oem device-info
fastboot reboot

3. execute this line, and you will get a file named toolbox, send it for me:

adb pull /system/bin/toolbox .

please make sure you install the usb driver, you can get from asus.

if I can help ZE550KL get root with same method, maybe I can do same magic on ZE500KG.

technically, ZE500KG would be easier, it share a lots of hardware with ZE500KL.

(I can't ensure ZD551KL work or not)
[Zenfone 2 Laser General] Rappala:
Wow! I don't have this Zenfone2 version, but I'm very impressed with your work. Congrats dude!
[Zenfone 2 Laser General] rajlko:
PM sent :)
[Zenfone 2 Laser General] zezinhocrack:
I have ZD551KL , could help with the job?
[Zenfone 2 Laser General] miau9202:
feel free to pm me.
[Zenfone 2 Laser General] zezinhocrack:
Thank you,

sent pm

---------- Post added at 01:04 AM ---------- Previous post was at 12:56 AM ----------

Shakalaka shared the kernel and recovery of the last OTA ZD551KL , do not know can be useful, but any help is welcome now

https://www.mediafire.com/folder/lg9v8rad18k93/ZenFone_Selfie#r4w1jco07c3aj
[Zenfone 2 Laser General] Frankenberrie:
Congrats on 100%
[Zenfone 2 Laser General] sausuke:
does this work on ZE550KL as well? thank you for this work

EDIT:

Back read.. so need a full dump.. message me sir if I can help with full dump? Don't know how but can follow instructions to do a full dump on my device. Thank you
[Zenfone 2 Laser General] Fiqusny:
Hello Jhyrachy, and other people, who contributed to find a way to root ze500kl. I really appreciate your work, and I'm glad, that you do it for free :) I'm looking forward for sharing root method. Thank you! :D
[Zenfone 2 Laser General] visioncored:
I have a z500kg with me :3

able to help with the process :3

(If there is a neee for help)
[Zenfone 2 Laser General] miau9202:
you know what?

I'm waiting your coming.
[Zenfone 2 Laser General] rajlko:
any hope ?
[Zenfone 2 Laser General] miau9202:
OK, it seems to be ok to release the root.

at least, I hadn't face any problem these days.

root I use:

1. Link2SD - Work
2. ES File Browser - Work
3. No-frills CPU Control - Not Work (feqs locked)
4. ADB Shell - Work
5. Xposed Framework - Work

Compatible model:

ZE500KL

Compatible System Version:

WW_12.8.5.118 (tested)

I recommend you reboot into recovery and wipe data/factory defaults before you root, espeacially who had logined the ASUS service

after root completed, it will self reboot into system.

Root Command:

fastboot boot mod_boot.img

DON'T FLASH IT OR YOU WILL GET BOOTLOOP!!!

please note:

I and XDA, don't take responsibility for damages.

CREDIT:

[MENTION=1813976]shakalaca[/MENTION] - I couldn't root without him

[MENTION=4370703]Jhyrachy[/MENTION] - tester

[MENTION=4157278]96DANGER96[/MENTION] - tester
[Zenfone 2 Laser General] miau9202:
for Laser(ZE550KL) and Selfie(ZD551KL)

after I finished the kernel analyzing, I found Selfie could be a fork of Laser(ZE550KL), it have many similar at least.

but its architecture is more different with ZE500KL, these devices couldn't apply the same root method.

I afraid I can't help you guys to get root, it's too difficult to root a device that I don't own.

I'm trying to work with a ZD551KL tester.

if I have any news, I will post here.

there's no way to root, if I don't have the device, thank you.

but you can join this thread to discuss how to root, and it seems have a way to root.

http://xdaforums.com/zenfone2/general/request-asus-zenfone-selfie-root-t3210588
[Zenfone 2 Laser General] rajlko:
I hope you may just try for it, you do not need to worry about warranty of product.

at least we may try.
[Zenfone 2 Laser General] Jhyrachy:
I modified the OP with a more detailed guide on how to properly root, obviusly linking your post :P

Hope you are ok with this!

Btw, how do you managed to install Xposed?
[Zenfone 2 Laser General] zezinhocrack:
ZD551KL in test !
[Zenfone 2 Laser General] miau9202:
it's not a standard way and may included bugs.

1. install busybox (from google play)

2. remount /system as RW

3. mkdir /system/tmp

4. chmod 777 /system/tmp

5. extract xposed API 21 zip in /system/tmp

6. move flash-script.sh in META-INF to /system/tmp

7. execute flash-script.sh with root and reboot

8. rm -r /system/tmp

done.

it will boot very long after you reboot, because the script delete all cache and system is rebuilding cache.
[Zenfone 2 Laser General] Jhyrachy:
What Xposed version? arm or arm64?
[Zenfone 2 Laser General] PushkaRR:
Is ze550kl also different than ze500kl?
[Zenfone 2 Laser General] miau9202:
arm64.

read this: http://xdaforums.com/showpost.php?p=63444767&postcount=109
[Zenfone 2 Laser General] Jhyrachy:
Thanks, i'll take a look when i'll have some time :P
[Zenfone 2 Laser General] Fiqusny:
I can't install drivers on it ;/ In device manager shows me ADB interface. But i can't update driver;/
[Zenfone 2 Laser General] 96DANGER96:
Disable driver signin imposition, search on google on how to do it

Then try to install asus driver, go on the adb interface, install manually, search manually on computer go on asus usb drivers and choos asus adb interface
[Zenfone 2 Laser General] tkymgr:
Thanks for your great works!!
[Zenfone 2 Laser General] bohenian:
Thank you very much for the great work!!! :D
[Zenfone 2 Laser General] ivanfix:
Great work for the root, Thanks!!!

Waiting for the twrp recovery....

Inviato dal mio SM-G900F utilizzando Tapatalk
[Zenfone 2 Laser General] Jhyrachy:
the wait is going to be really long.

for custom recovery we need to unlock the bootloader first.
[Zenfone 2 Laser General] matteo 06:
Thanks for the root,how can install xposed?
[Zenfone 2 Laser General] Jhyrachy:
I made a script but it does not work right now :c

Next week i'll try to fix it
[Zenfone 2 Laser General] matteo 06:
Ok,thanks
[Zenfone 2 Laser General] Muminek111:
I don˙t understand how do root. I˙m layman. Detail manual for laymans please. Thanks.