• If you are experiencing issues logging in, we moved to a new and more secure software and older account passwords were not able to be migrated. We recommend trying to reset your password, then contacting us if there are issues.
  • Nearly done! Migration cleanup is mostly done. There are a small number of issues left that we continue to work on, but all the heavy lifting is done. We still would love to hear feedback over at this thread and also check out the new XDA app! Thanks and we hope you enjoy the new forums, and thanks for your support of XDA <3

[ROM][8.1][ZC554KL] LineageOS 15.1

Voldracarno

Member
Apr 19, 2017
27
15
0
24
Karlsruhe
Note:
* I'm not responsible for bricked devices, dead SD cards, thermonuclear war, or you getting fired because the alarm app failed (like it did for me...).
* Please do some research if you have any concerns about features included in the products you find here before flashing it!
* YOU are choosing to make these modifications, and if you point the finger at me for messing up your device, I will laugh at you.
* Your warranty will be void if you tamper with any part of your device / software.
* Same statement for XDA.
LineageOS Description:
LineageOS is a free, community built, aftermarket firmware distribution of Android, which is designed to increase performance and reliability over stock Android for your device.

LineageOS is based on the Android Open Source Project with extra contributions from many people within the Android community. It can be used without any need to have any Google application installed. Linked below is a package that has come from another Android project that restore the Google parts. LineageOS does still include various hardware-specific code, which is also slowly being open-sourced anyway.

All the source code for LineageOS is available in the LineageOS Github repo. And if you would like to contribute to LineageOS, please visit out Gerrit Code Review.

What's working :
- Boots
- Display
- Wi-Fi
- Audio (except .wma, use VLC Player for that)
- Video
- Sensors
- LED
- Double tap to wake

Bugs:
- Camera (not working)
- Battery drain (because the camera service is restarting endlessly)
- The screen is reversed for about 3 seconds during the boot animation (won't fix)

Untestet:
- RIL
- Bluetooth
- GPS

Firmware:
Oreo firmware (at least for modem) is recommended, but Lineage 15.1 should also boot with Nougat firmware.

Kernel Source:
Github

Download:
Folder with all versions
lineage-15.1-20190218-UNOFFICIAL-X00I

Flashing notes:
You will need TWRP 3.2.2-0 or higher to flash this image. You can download it from here. See this thread for further information.

Warning:
Lineage 15.1 for ZC554KL is still far away from ready for daily use. The images in this thread are primary for developers.

XDA:DevDB Information
LineageOS 15.1, ROM for the Asus ZenFone 4 Max

Contributors
Voldracarno
Source Code: https://github.com/ThaFireDragonOfDeath/android_device_asus_X00I/tree/lineage-15.1

ROM OS Version: 8.x Oreo
ROM Kernel: Linux 3.x
Based On: LineageOS

Version Information
Status: Testing

Created 2019-02-19
Last Updated 2019-02-20
 

SammyInTheCity

Senior Member
Jul 4, 2017
253
80
0
20
Santa Cruz
I tried it, and it's really really smooth, I can't wait for an update, if of course you plan to do one :) RIL and Wifi didn't work for me sadly, otherwise I would've kept it as a daily driver I really love the stock Oreo UI, thank you for your work, we always appreciate it
 

Voldracarno

Member
Apr 19, 2017
27
15
0
24
Karlsruhe
I tried it, and it's really really smooth, I can't wait for an update, if of course you plan to do one :) RIL and Wifi didn't work for me sadly, otherwise I would've kept it as a daily driver I really love the stock Oreo UI, thank you for your work, we always appreciate it
Thanks :).

Wifi doesn't work? Well that's a problem, because I can't fix this. For my device Wifi works without problems and I can't fix bugs which I can't reproduce on my device.
I have the Zenfone 4 Max ZC554KL with MSM8937 (Snapdragon 430), 3GB RAM and 32 GB Memory.
Are there multiple versions of the same device out there?
Edit: Make sure, that your modem firmware is for Android 8.

At the moment I concentrate on the camera bug, but that will take some time (because I'm on vacation in the next week).
 
Last edited:

SammyInTheCity

Senior Member
Jul 4, 2017
253
80
0
20
Santa Cruz
Thanks :).

Wifi doesn't work? Well that's a problem, because I can't fix this. For my device Wifi works without problems and I can't fix bugs which I can't reproduce on my device.
I have the Zenfone 4 Max ZC554KL with MSM8937 (Snapdragon 430), 3GB RAM and 32 GB Memory.
Are there multiple versions of the same device out there?
Edit: Make sure, that your modem firmware is for Android 8.

At the moment I concentrate on the camera bug, but that will take some time (because I'm on vacation in the next week).
Yeah I have the same device as you :) although on CPU-Z it shows that I have a snapdragon 435 which IDK if there's a difference between the 430 and the 435, but yeah I have the 5.5 inch model with 32/3 GB RAM and rom
 

SammyInTheCity

Senior Member
Jul 4, 2017
253
80
0
20
Santa Cruz
The Snapdragon 435 (msm8940) is a different SoC. Maybe the WiFi driver, which I integrated in the kernel doesn't work for this SoC (I used the Wifi driver from the Xaomi Kernel for msm8937). Does your phone has already the Oreo Firmware?
Yes I do have Oreo ? are you sure it's a different SOC? My phone is the same model as yours and the processor speed and graphics processor is the exact same as well, is it just showing Snapdragon 435 to me? I mean I can't have a special phone, I just checked my phone details on another app and it shows 430, online I compared the 430 with 435 and the main differences were the ram speeds and the clock speed, from the 430 was 1.2 ghz while the 435 was 1.4ghz, but on the app that shows that I have a Snapdragon 430 it said 1.4 ghz so I'm hella confused now ?
 
Last edited:

Voldracarno

Member
Apr 19, 2017
27
15
0
24
Karlsruhe
Thats amazing.

I'll wait for the camera and battery drain fix before i test it.

How much internal space does the rom takes?
Thanks :).
The system takes not more or less then Lineage 14.1 or Stock ROM. The size of the system partition is fixed by the vendor (ASUS).

Yes I do have Oreo ? are you sure it's a different SOC? My phone is the same model as yours and the processor speed and graphics processor is the exact same as well, is it just showing Snapdragon 435 to me? I mean I can't have a special phone, I just checked my phone details on another app and it shows 430, online I compared the 430 with 435 and the main differences were the ram speeds and the clock speed, from the 430 was 1.2 ghz while the 435 was 1.4ghz, but on the app that shows that I have a Snapdragon 430 it said 1.4 ghz so I'm hella confused now
Theare are two versions of this phone. the regular Zenfone 4 Max 5.5 und the Zenfone 4 Max 5.5 Pro. The pro version have a Snapdragon 435:
"Powering the ZenFone 4 Max Pro is a Qualcomm Snapdragon 435 octa-core CPU clocked at 1.4Ghz, Adreno 505 GPU, and 3GB RAM. The only difference with the ZenFone 4 Max is the processor and it’s not even a big improvement. The SD435 has all the features of the SD430 with the addition of Snapdragon X9 LTE modem capable of LTE Cat7 downlink and LTE Cat13 uplink."
Read more at https://www.yugatech.com/mobile/asus-zenfone-4-max-pro-review-philippines-price/
 

SammyInTheCity

Senior Member
Jul 4, 2017
253
80
0
20
Santa Cruz
Thanks :).
The system takes not more or less then Lineage 14.1 or Stock ROM. The size of the system partition is fixed by the vendor (ASUS).



Theare are two versions of this phone. the regular Zenfone 4 Max 5.5 und the Zenfone 4 Max 5.5 Pro. The pro version have a Snapdragon 435:
"Powering the ZenFone 4 Max Pro is a Qualcomm Snapdragon 435 octa-core CPU clocked at 1.4Ghz, Adreno 505 GPU, and 3GB RAM. The only difference with the ZenFone 4 Max is the processor and it’s not even a big improvement. The SD435 has all the features of the SD430 with the addition of Snapdragon X9 LTE modem capable of LTE Cat7 downlink and LTE Cat13 uplink."
Read more at https://www.yugatech.com/mobile/asus-zenfone-4-max-pro-review-philippines-price/
But I don't think I have the pro version, my cameras are 13mp+5 ???
 

SammyInTheCity

Senior Member
Jul 4, 2017
253
80
0
20
Santa Cruz
Ok thats strange. But the fact is, it works on my device (so there must be a difference between our phones). And I have no Idea, whats the problem or how to fix it. Do you have a logcat and dmesg log?...
Nope ? as soon as I saw the RIL and wifi didn't work I uninstalled it, maybe I did something wrong when installing? I think I flashed Magisk right after flashing the rom or it was that device decrypt zip file I forgot which it was, could that be it?
 

Voldracarno

Member
Apr 19, 2017
27
15
0
24
Karlsruhe
Nope as soon as I saw the RIL and wifi didn't work I uninstalled it, maybe I did something wrong when installing? I think I flashed Magisk right after flashing the rom or it was that device decrypt zip file I forgot which it was, could that be it?
You need the device decrypt file only on Stock ROM. And I didn't testet, what happens with magisk (I don't use this). But Root (the su zip from lineage) is already integrated. You can enable root in the developer settings (but System files can't be changed at this time, because the system partition is read only).
 
  • Like
Reactions: SammyInTheCity

LiiRulez

Member
Mar 10, 2017
7
0
0
Caieiras
Hey guys, I would like to know if dev will also develop something for the ZF4 Selfie (X00LD), because it's a good pen device that ZenUi cuts too much of its potential performance.
 

SammyInTheCity

Senior Member
Jul 4, 2017
253
80
0
20
Santa Cruz
Hey guys, I would like to know if dev will also develop something for the ZF4 Selfie (X00LD), because it's a good pen device that ZenUi cuts too much of its potential performance.
I'm not talking for the dev, but I think its hard to develop a rom for a device he can't test it with, and are there no forums for your device?
 

Voldracarno

Member
Apr 19, 2017
27
15
0
24
Karlsruhe
Hey guys, I would like to know if dev will also develop something for the ZF4 Selfie (X00LD), because it's a good pen device that ZenUi cuts too much of its potential performance.
I'm not talking for the dev, but I think its hard to develop a rom for a device he can't test it with, and are there no forums for your device?
Developing for a device, which I don't have is impossible. For the example for the Zenfone 4 I produced about 20 not booting Images before the first fully booting image. After every build, I need a device to flash it and see in dmesg and logcat whats going on on the device (luckily it is possible to connect to the device with adb shell during the boot animation before the system is up to watch out, why the image don't boot).
 

LiiRulez

Member
Mar 10, 2017
7
0
0
Caieiras
Developing for a device, which I don't have is impossible. For the example for the Zenfone 4 I produced about 20 not booting Images before the first fully booting image. After every build, I need a device to flash it and see in dmesg and logcat whats going on on the device (luckily it is possible to connect to the device with adb shell during the boot animation before the system is up to watch out, why the image don't boot).


I understand, it's a shame my X00LD is new, if I had another device I could start learning how to compile and do it, but ...
Using Android Studio, can I emulate a device like that?
if that's the case, I start my studies today.
 

Voldracarno

Member
Apr 19, 2017
27
15
0
24
Karlsruhe
I understand, it's a shame my X00LD is new, if I had another device I could start learning how to compile and do it, but ...
Using Android Studio, can I emulate a device like that?
if that's the case, I start my studies today.
Android Studio can emulate a generic android device, but not a specific device. You will need Android studio only if you want to develop Android Apps. For porting Lineage you don't need it (I even haven't installed it on my build vm).

Here is a short version how I build the Lineage image (I will complete/correct this tutorial, if I'm on my PC at home) (you will need a Computer with much RAM. 16 GB RAM is recommended)
1. For building you will need to set up a Ubuntu 18.04 LTS VM (so you should know how to use Virtualbox) (the Ubuntu VM have to at least 8GB RAM). Or better: Use a real Ubuntu 18.04 LTS Machine.
2. Then you have to execute the steps from this tutorial from "Build LineageOS and LineageOS Recovery" to "Downloading the source code".
3.After that you have to put the local manifest (I will post that file later) in the .repo directory and sync again.
4. Then you will need to download and extract a Stock image from the ASUS Website for your device.
To extract you must first decompress the system image file with brotli and than convert it with sdat2img. After that you can mount the image and copy all the files out in a seperate directory.
5. After that you cd in the device directory and exec ./extract-files.sh PATH_TO_EXTRACTED_SYSTEM_FILES
6. At last you have to cd to the Lineage build dir and exec the following commands:
source build/envsetup.sh
export LC_ALL=C
export ANDROID_JACK_VM_ARGS="-Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx4G" (if jack runs still out of memory during building increase the -Xmx value to 6G)
export WITH_SU=true (for integrated root)
lunch lineage_X00I-userdebug
make -j4 bacon (replace the 4 with the count of concurrent build jobs you want to use)

After that you you will find the flashable Zip in the out directory.

To rebuild after changes you can repeat step 6 (to rebuild only the changes files) or delete the content of the out directory and repeat step 6 (for a full rebuild).
And if you didn't close your terminal window you only need to exec the make -j4 bacon commend to start a rebuild.
To update the sources of android you have to run repo sync in the lineage directory.

If you want to learn more about Android:
https://source.android.com/setup
 
Last edited:
  • Like
Reactions: SammyInTheCity

Vhern

New member
May 24, 2017
1
0
0
The RIL wont work for me but the wifi does.

I tried it, and it's really really smooth, I can't wait for an update, if of course you plan to do one :) RIL and Wifi didn't work for me sadly, otherwise I would've kept it as a daily driver I really love the stock Oreo UI, thank you for your work, we always appreciate it
Same as yours bro..the RIL wont work for me except for the wifi. This is a perfect game changer rom if all the things in this rom is working.