Le Pro 3 Elite (X722) Lineage OS

soulaiman

Senior Member
Oct 30, 2009
251
132
0
Ghent
@soulaiman hmm i checked ali, but i was only looking for the pink/rose gold 6/64 version.

Anyway did you got qcom common dependency missing messages in breakfast and brunch steps? It builds even with these, but i'm curious if I was doing everything correctly and only lacking power or if set up something wrong.
Or did you not do new build, but only modified existing lineage os build zl1?

BTW i was trying to build with no tweaks in buildprop, just phone identification changed.
To be honest I gave up on building from source... You fix 1 thing and get 10 other bugs.

I've just cooked the ROM by putting the missing firmware files for our device in the etc/firmware folder of the system.new.dat extracted image. Then repacked everything and replace this file in the original ZIP and the other Plist and edited the updated script so it doesn't give a status 7.
 
  • Like
Reactions: evlo
Oct 13, 2017
34
3
0
@soulaiman hmm i checked ali, but i was only looking for the pink/rose gold 6/64 version.

Anyway did you got qcom common dependency missing messages in breakfast and brunch steps? It builds even with these, but i'm curious if I was doing everything correctly and only lacking power or if set up something wrong.
Or did you not do new build, but only modified existing lineage os build zl1?

BTW i was trying to build with no tweaks in buildprop, just phone identification changed.
I think soulaiman used codeworkx's Lineage ROM build (without actually building one from scratch). I used 20s my source for "extract blobs" and *only* added buildprops listed here. I didn't touch phone identification settings myself. Building succeeded but there was blackscreen issue on boot. Perhaps those GPU files listed are not enough.
@soulaiman: do think those files listed in the slothdnk's "cook book" are enough? "To get it rolling I got the gpu files (a530_zap.* ) from 20s and added this to device/leeco/zl1/system.prop: .." Thanks!
 

evlo

Senior Member
Oct 6, 2008
144
23
18
Awesome work, guys. Hopefully we'll get a decently stable version of LOS running soon, with camera functions, video camera working, etc. Even if battery life is bad on LOS, I'll take it. I'm so tired of eUI's stupid notification system and lack of nav bar lol.
It is not really true, EUI does have thing that kills processes so they don't cause wakelocks, so it does have better battery life, BUT if you use simillar app on LOS, like greenify, you should get simillar result, while greenify IIRC uses les intrusive approach and only freeze apps so they don't cause so many wakelocks, but apps still live on the background sou you get your notifications etc. only slightly delayed, while with leeco approach you can lose all notifications from app in some cases.
EUI also block many apps from start on startup to save battery.

There are probably some cases where battery drain is caused by messed up drivers, but i don't think these are really that common.

This is my experience and if i'm wrong I would like to be corrected :)
 
Last edited:

sk8223

Senior Member
Nov 10, 2012
721
188
63
Toronto
Is battery life really better on eUI? I get 4-5 hours of screen-on time max, and that's with minimal use, with WiFi off and airplane mode enabled... yikes. And I removed so many eUI applications using ADB, too. No phone with a 4000mAH battery should give you an SOT that low... especially if you're using a 14nm processor... right? Meanwhile the Redmi Note 4 and Moto Z Play get 7-10 hours of SOT easily with worse processors
 

sk8223

Senior Member
Nov 10, 2012
721
188
63
Toronto
What doesn't measure SOT properly? All I know is, by the end of the day the battery's quite low, in the 60s and lower, when it really shouldn't be. Especially since I'm not connected to WiFi OR cellular (I'm always in Airplane mode since I don't use a SIM with this phone) for more than 5 hours a day, plus I have my screen off most of the time. I read a lot of offline pages at very low brightness, the rest is just music playback with the screen off. Could just be that USB-C audio adapters use up more battery than the good old headphone jack; I don't know. It's always "Screen" taking up the most battery life, which doesn't make sense to me since 1) I'm always on the default LeEco color mode, 2) this phone only has a 1080p screen with a low ppi, lower than the Nexus 5, and 3) my screen is off for the majority of the day as I listen to music a lot.
 
Last edited:

evlo

Senior Member
Oct 6, 2008
144
23
18
Leeco battery report, but anyways, i tried yesterday and with web browsing, i can get 11+ hours probably, that is if i extrapolate how much SOT i get from 25% on 4G. I do get 4-5h reported daily (that is usually some GPS maps on full brightness, some videos, lot of web and lot of background apps with battery and startup management disabled) - well and still i have usually 30 something % of battery left. I guess in a benchmark test 12 hours and more should be easily done. I'm very impressed with battery life, if i compare it to my previous s7 edge or well, all the phones i did get until now. I'm considering EU version of P2 if i find some nice black Friday sale, just to see if battery is any better for my usage. I'm convinced that le pro 3, is best phone for me, still, for any price.

I think in your usage, you should see at least 10 hours of real screen usage ...

Now that i think about it - 4-5 hours of staring at phone screen per day is quite unhealthy :D
 
Last edited:

sk8223

Senior Member
Nov 10, 2012
721
188
63
Toronto
Yeah, it is, but many of us stare at computer screens all day for our jobs. :/ IDK why I feel I have such low battery life. I kind of felt the same way about my Zenfone 3 (SD625) and it only had a 3000mAH battery. I guess I need to take a closer look at my battery usage. The Battery page isn't very helpful.

I always got great battery life on my iPhones, though. lol
 

murat1150

Member
Nov 13, 2017
24
32
0
Vienna
did someone try to update the firmware from LE_ZL0_LEX722-CN-FN-WIXCNFN5902607031S-5.9.026S?
im talking about the firmware located in folder firmware-update (and not the os)

in the updater-script you will find the section after os update:

Code:
# ---- radio update tasks ----

ui_print("Patching firmware images...");
ifelse(msm.boot_update("main"), (
package_extract_file("firmware-update/cmnlib64.mbn", "/dev/block/bootdevice/by-name/cmnlib64");
package_extract_file("firmware-update/ddr.mbn", "/dev/block/bootdevice/by-name/ddr");
package_extract_file("firmware-update/cmnlib.mbn", "/dev/block/bootdevice/by-name/cmnlib");
package_extract_file("firmware-update/rpm.mbn", "/dev/block/bootdevice/by-name/rpm");
package_extract_file("firmware-update/pmic.elf", "/dev/block/bootdevice/by-name/pmic");
package_extract_file("firmware-update/tz.mbn", "/dev/block/bootdevice/by-name/tz");
package_extract_file("firmware-update/emmc_appsboot.mbn", "/dev/block/bootdevice/by-name/aboot");
package_extract_file("firmware-update/hyp.mbn", "/dev/block/bootdevice/by-name/hyp");
package_extract_file("firmware-update/devcfg.mbn", "/dev/block/bootdevice/by-name/devcfg");
package_extract_file("firmware-update/xbl.elf", "/dev/block/bootdevice/by-name/xbl");
package_extract_file("firmware-update/keymaster.mbn", "/dev/block/bootdevice/by-name/keymaster");
), "");
ifelse(msm.boot_update("backup"), (
package_extract_file("firmware-update/cmnlib64.mbn", "/dev/block/bootdevice/by-name/cmnlib64bak");
package_extract_file("firmware-update/cmnlib.mbn", "/dev/block/bootdevice/by-name/cmnlibbak");
package_extract_file("firmware-update/rpm.mbn", "/dev/block/bootdevice/by-name/rpmbak");
package_extract_file("firmware-update/pmic.elf", "/dev/block/bootdevice/by-name/pmicbak");
package_extract_file("firmware-update/tz.mbn", "/dev/block/bootdevice/by-name/tzbak");
package_extract_file("firmware-update/emmc_appsboot.mbn", "/dev/block/bootdevice/by-name/abootbak");
package_extract_file("firmware-update/hyp.mbn", "/dev/block/bootdevice/by-name/hypbak");
package_extract_file("firmware-update/xbl.elf", "/dev/block/bootdevice/by-name/xblbak");
package_extract_file("firmware-update/keymaster.mbn", "/dev/block/bootdevice/by-name/keymasterbak");
), "");
msm.boot_update("finalize");
package_extract_file("firmware-update/NON-HLOS.bin", "/dev/block/bootdevice/by-name/modem");
package_extract_file("firmware-update/adspso.bin", "/dev/block/bootdevice/by-name/dsp");
package_extract_file("firmware-update/BTFM.bin", "/dev/block/bootdevice/by-name/bluetooth");
package_extract_file("firmware-update/devinfo.bin", "/dev/block/bootdevice/by-name/devinfo");
set_progress(1.000000);
i dont want to install LE_ZL0_LEX722-CN-FN-WIXCNFN5902607031S-5.9.026S but i want the latest firmware on my device

i found this script for oneplus3t: github.com/whirm/oneplus3t-firmware-extractor/blob/master/generate-flashable-firmware-zip.sh

is there something similar for x72x?

looks like these are the bootloaders:
rpm - primary bootloader
aboot - secondary bootloader
xbl - extended bootloader

i think flashing them will get you a locked bootloader
would it be even possible to remove the bootloader firmware files from LE_ZL0_LEX722-CN-FN-WIXCNFN5902607031S-5.9.026S.zip and update the phone without locking your bootloader?
 
Last edited:

murat1150

Member
Nov 13, 2017
24
32
0
Vienna
for people who had problems with the camera, i got it working for los14.1
you can download here: https://drive.google.com/open?id=18f1iExisOFjuC4cyszRh-RLRVIC3WjLH

compiled from source with some modifications
didnt touch build.prop file, maybe check it before installing but it will work even if you dont

camera infos:
CAMERA_0 info
module id: 0006
sensor id: 0298
sensor name: imx298_ofilm_ak
eeprom name: sony_imx298
actuator name: ak7371
ois name:
flash name: pmic
module date: 2016-11-02

problem was basically that our sensor (imx298_ofilm_ak) was not recognized by the sources
after adding it to LETV_SUPPORT_DESIGNED_SENSOR in the file below it is working:
kernel/leeco/msm8996/drivers/media/platform/msm/camera_v2/sensor/msm_sensor.c

i hope everything else is working too
enjoy
 

mikeysteele

Senior Member
Sep 16, 2010
601
303
93
Melbourne
for people who had problems with the camera, i got it working for los14.1
you can download here: https://drive.google.com/open?id=18f1iExisOFjuC4cyszRh-RLRVIC3WjLH

compiled from source with some modifications
didnt touch build.prop file, maybe check it before installing but it will work even if you dont

camera infos:
CAMERA_0 info
module id: 0006
sensor id: 0298
sensor name: imx298_ofilm_ak
eeprom name: sony_imx298
actuator name: ak7371
ois name:
flash name: pmic
module date: 2016-11-02

problem was basically that our sensor (imx298_ofilm_ak) was not recognized by the sources
after adding it to LETV_SUPPORT_DESIGNED_SENSOR in the file below it is working:
kernel/leeco/msm8996/drivers/media/platform/msm/camera_v2/sensor/msm_sensor.c

i hope everything else is working too
enjoy
Your patch seems to break the 'other camera' sensor. I flashed on my X722 and Snap kept force closing. Have you got your code in a repo somewhere I could have a look at?
 

oleg_sa

Member
Aug 6, 2016
7
0
0
for people who had problems with the camera, i got it working for los14.1
you can download here: https://drive.google.com/open?id=18f1iExisOFjuC4cyszRh-RLRVIC3WjLH

compiled from source with some modifications
didnt touch build.prop file, maybe check it before installing but it will work even if you dont

camera infos:
CAMERA_0 info
module id: 0006
sensor id: 0298
sensor name: imx298_ofilm_ak
eeprom name: sony_imx298
actuator name: ak7371
ois name:
flash name: pmic
module date: 2016-11-02

problem was basically that our sensor (imx298_ofilm_ak) was not recognized by the sources
after adding it to LETV_SUPPORT_DESIGNED_SENSOR in the file below it is working:
kernel/leeco/msm8996/drivers/media/platform/msm/camera_v2/sensor/msm_sensor.c

i hope everything else is working too
enjoy
camera is not working

modele data 2016-09-12
 

murat1150

Member
Nov 13, 2017
24
32
0
Vienna
do a "cat /proc/camerainfo" on a working rom to find out which sensors you have
mine looks like:

CAMERA_0 info
module id: 0006
sensor id: 0298
sensor name: imx298_ofilm_ak
eeprom name: sony_imx298
actuator name: ak7371
ois name:
flash name: pmic
module date: 2016-11-02
=============================
CAMERA_2 info
module id: 0006
sensor id: 8865
sensor name: ov8865_ofilm_plus
eeprom name: ov8865_plus
module date: 2016-08-24

both cameras are working for me, phone manufacture date 2017.03

---------- Post added at 12:04 PM ---------- Previous post was at 12:01 PM ----------

@murat1150 @frantishe: Do you think you could build new (yesterday's) 15.0 build?
Is "setting the proper min and max frequency and changing the governor to on-demand" and LETV_SUPPORT_DESIGNED_SENSOR fixes required for x722 15.0?
you have to compile from source after editing it, you cant build in this fix after building
if i find the time i will try to compile los15 with the fix and see if it works
 

murat1150

Member
Nov 13, 2017
24
32
0
Vienna
you dont have to edit source code, that was me thinking it fixed the camera
in reality just some vendor files were missing and after copying it to the rom camera is working
have a look in:
/etc/camera
/vendor/lib

---------- Post added at 09:18 PM ---------- Previous post was at 09:07 PM ----------

los15 compiled from source for x722, fingerprint and cameras working:
https://drive.google.com/open?id=1kWGy5k8V3K3DF9s8LG64E5HPvyVSx5ee
 
Last edited:

vadimkara

Member
Feb 6, 2012
17
6
0
Berdyansk
you dont have to edit source code, that was me thinking it fixed the camera
in reality just some vendor files were missing and after copying it to the rom camera is working
have a look in:
/etc/camera
/vendor/lib

---------- Post added at 09:18 PM ---------- Previous post was at 09:07 PM ----------

los15 compiled from source for x722, fingerprint and cameras working:
https://drive.google.com/open?id=1_G7dxJOx3_nEN_U8fAVh5UirK61S3a36
What files were missing? i will add it it repo
 

murat1150

Member
Nov 13, 2017
24
32
0
Vienna
What files were missing? i will add it it repo
after adding these files my camera was working:
vendor/lib/libSonyIMX298_ofilm_ak_PdafLibrary.so
vendor/lib/libSonyIMX298_ofilm_PdafLibrary.so
vendor/lib/libSonyIMX298_truly_ak_PdafLibrary.so
vendor/lib/libactuator_ak7371.so
vendor/lib/libactuator_bu63165.so
vendor/lib/libactuator_bu64297.so
vendor/lib/libactuator_lc898212xd.so
 
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone