Unofficial LineageOS 14.1 for ZE552KL and ZE520KL

B

basenode

Guest
Code:
#include <std_disclaimer.h>

/*
 * Your warranty is now void.
 *
 * We are not responsible for bricked devices, dead SD cards,
 * thermonuclear war, or you getting fired because the alarm app failed. Please
 * do some research if you have any concerns about features included in this ROM
 * before flashing it! YOU are choosing to make these modifications, and if
 * you point the finger at us for messing up your device, we will laugh at you.
 *
 */

This is a continuation of the work by Shakalaca. Currently not much will be different. It does have however the latest security Patches. I will be splitting my time between CM 14.1 and Lineage 15. If you have questions please ask. The Z017 should work with both versions, I am running the Z012(KE552KL) and it seems okay.

Prerequisites:

  • TWRP
  • Unlock Bootloader

What Works?
- No Major Issues

What's broken ?

  • You tell me


Download Links

ROM:
https://drive.google.com/drive/folders/0B9R9sRY5L3uiM055Z3ZYeF9MXzA?usp=sharing

TWRP:
https://drive.google.com/drive/folders/0B9R9sRY5L3uidzNmTmpzSWthMTQ

GAPPS:
http://opengapps.org/

Special Thanks @anhenrique @shakalaca

Source Code:
https://github.com/LineageOS-Zenfone3

XDA:DevDB Information
LineageOS 14.1 for ZE552KL and ZE520KL, ROM for the Asus ZenFone 3

Contributors
basenode, basenode
ROM OS Version: 7.x Nougat
Based On: LineageOS

Version Information
Status: Beta

Created 2017-08-31
Last Updated 2017-08-30
 
Last edited:
B

basenode

Guest
Changelog:

Aug 30 2017:
- Build Using Latest CM14.1 Sources (Android 7.1.2)
- Includes August Security Updates
 
Last edited:
B

basenode

Guest
Can you insert ViperOS / ResurrectionRemix functions? How to lock the power menu and block fast access, both with the screen locked? This helps a lot when the cell phone is lost or stolen.
I would like to keep this rom as stick as possible. I am open to Updating the existing ViperOS Rom for this device. I am one person so it might be difficult for me to support too many roms especially considering my personal desire to see oreo on this device. I will take a look @ Viper and see what I can do.
 

sontranngoc

Senior Member
Aug 31, 2017
227
47
28
What Recovery are you using? I have TWRP and when I select install and navigate to /sdcard/ I am able to flash from internal
I cannot boot to TWRP:
fastboot flash recovery twrp-3.1.0-0-Z012-20170408-N.img
target reported max download size of 536870912 bytes
sending 'recovery' (21080 KB)...
OKAY [ 0.697s]
writing 'recovery'...
OKAY [ 0.135s]
finished. total time: 0.838s
...
..
fastboot reboot
rebooting...

finished. total time: 0.016s

After this command, the phone start normally, not into TWRP

---------- Post added at 01:54 PM ---------- Previous post was at 01:42 PM ----------

What Recovery are you using? I have TWRP and when I select install and navigate to /sdcard/ I am able to flash from internal
I can boot into TWRP, but after wipe cache, system, dalvik, i install the zip file, it shows the error:
Can't install this package on top of incompatible data
Updater process ended with ERROR: 7
Error installing file 'zip ......'
 
Last edited:

ToDream

Senior Member
Apr 15, 2015
107
48
0
São Paulo
I cannot boot to TWRP:
fastboot flash recovery twrp-3.1.0-0-Z012-20170408-N.img
target reported max download size of 536870912 bytes
sending 'recovery' (21080 KB)...
OKAY [ 0.697s]
writing 'recovery'...
OKAY [ 0.135s]
finished. total time: 0.838s
...
..
fastboot reboot
rebooting...

finished. total time: 0.016s

After this command, the phone start normally, not into TWRP

---------- Post added at 01:54 PM ---------- Previous post was at 01:42 PM ----------



I can boot into TWRP, but after wipe cache, system, dalvik, i install the zip file, it shows the error:
Can't install this package on top of incompatible data
Updater process ended with ERROR: 7
Error installing file 'zip ......'
Hi!

This will solve your problem.:

1- Open the ROM with Winrar;
2- Go to: META-INF -> com -> google -> android;
3- Run the "updater-script" file with Notepad ++;
4- Delete the first 1 line, save and update the file in ROM;

Update your TWRP from main Zenfone 3 folder: https://mega.nz/#F!kl8lmKRL!ZbLvz1b4YgLMr_n09vRrTA (twrp-3.1.1-0-Z017-20170826.img)
 

sontranngoc

Senior Member
Aug 31, 2017
227
47
28
Hi!

This will solve your problem.:

1- Open the ROM with Winrar;
2- Go to: META-INF -> com -> google -> android;
3- Run the "updater-script" file with Notepad ++;
4- Delete the first 1 line, save and update the file in ROM;

Update your TWRP from main Zenfone 3 folder: https://mega.nz/#F!kl8lmKRL!ZbLvz1b4YgLMr_n09vRrTA (twrp-3.1.1-0-Z017-20170826.img)
Thanks. I have installed successfully.

We have to remove 2 BELOW RED LINE, NOT FIRST 1 LINE:

run_program("/tmp/install/bin/otasigcheck.sh") != "31744" || abort("Can't install this package on top of incompatible data. Please try another package or run a factory reset");
else
mount("ext4", "EMMC", "/dev/block/bootdevice/by-name/userdata", "/data", "");
package_extract_file("META-INF/org/lineageos/releasekey", "/tmp/releasekey");
run_program("/tmp/install/bin/otasigcheck.sh") != "31744" || abort("Can't install this package on top of incompatible data. Please try another package or run a factory reset");

The first line will check for products, I saw that line already included Z017 and Z012, it's not a problem.
 
Last edited:

kiq1702

Senior Member
Apr 18, 2017
250
67
0
28
Itumbiara
Thanks. I have installed successfully.

We have to remove 2 BELOW RED LINE, NOT FIRST 1 LINE:

run_program("/tmp/install/bin/otasigcheck.sh") != "31744" || abort("Can't install this package on top of incompatible data. Please try another package or run a factory reset");
else
mount("ext4", "EMMC", "/dev/block/bootdevice/by-name/userdata", "/data", "");
package_extract_file("META-INF/org/lineageos/releasekey", "/tmp/releasekey");
run_program("/tmp/install/bin/otasigcheck.sh") != "31744" || abort("Can't install this package on top of incompatible data. Please try another package or run a factory reset");

The first line will check for products, I saw that line already included Z017 and Z012, it's not a problem.

Actually it depends on the program that you will use to edit, using Notepad ++ you delete only this line of verification.
Follows attached
 

jyao6429

Member
Aug 1, 2017
10
2
0
Battery Issues

Hi, I am having a lot of battery drain from LineageOS. "LineageOS System" is taking 27% and "Android OS" is taking up 24%. I have battery optimization on for everything possible, and I have battery saving kick in at 25%. My location services are on battery saving, and Bluetooth and WiFi are off. I probably have a screen on time for 1 to 2 hours, so I should end the day with a lot more than I have. Also, double tap to wake isn't working for me as well.
 
  • Like
Reactions: joaofl

kyle_l88

Member
Feb 5, 2010
22
8
0
Toronto
So far everything seems pretty great. Had a couple force close issues. The camera certainly doesn't support 60FPS recording on 1080p yet. But i am working on that part of the code. Otherwise there seems to be few, if any, issues. High five! :good:
 
B

basenode

Guest
Hi, I am having a lot of battery drain from LineageOS. "LineageOS System" is taking 27% and "Android OS" is taking up 24%. I have battery optimization on for everything possible, and I have battery saving kick in at 25%. My location services are on battery saving, and Bluetooth and WiFi are off. I probably have a screen on time for 1 to 2 hours, so I should end the day with a lot more than I have. Also, double tap to wake isn't working for me as well.
I am running it on a test device and and looking at the battery life. I'll leave it on tonight also to see how it does. I don't think this version has doubletap to wake. I know there is double tap on statusbar for sleep.

I added an issue here for tracking: https://github.com/LineageOS-Zenfone3/android_device_asus_Z017/issues/2
 
B

basenode

Guest
Hi, I am having a lot of battery drain from LineageOS. "LineageOS System" is taking 27% and "Android OS" is taking up 24%. I have battery optimization on for everything possible, and I have battery saving kick in at 25%. My location services are on battery saving, and Bluetooth and WiFi are off. I probably have a screen on time for 1 to 2 hours, so I should end the day with a lot more than I have. Also, double tap to wake isn't working for me as well.
Did you wipe everything before installing or dirty flash over the shakalaca ROM?