[Upgrading, Modifying and Unlocking] liamotoub:
AGM X1

HARDWARE & VERSIONS

International version

screen: Edo rm67191 fhd Amoled non-oleofobic non-sunlight readable

HW: Qualcomm MSM8952 hs8952qc

Hw other: RAM 4 Gb LPDDR3 933 mhz

fingerprint reader – FPC1020

notification led – aw2013

camera – Omnivision OV13850 13MP ??

SW: Android 5.1.1 LMY47V

L1253.6.02.01.BYD

EU version

screen: Samsung s6e3fa3 fhd super amoled oleofobic?? non-sunlight readable??

HW: Qualcomm MSM8952 hs8952qc

SW: Android 5.1.1 LMY47V

L1253.6.02.01.EU

Gold version

screen: like international?

HW: same?

SW: like international?

reference discussions: https://4pda.ru/forum/index.php?showtopic=793964

https://xdaforums.com/general/devic...gm-x1-qualcomm-snapdragon-617-4gb-64-t3533005

https://www.movilesdualsim.com/foros/agm-x1-sd617.1152/

about screen: https://www.devicespecifications.com/en/editor-review/993738/3

http://gearopen.com/phones/agm-x1-review-rugged-smartphone-not-drown-but-froze-53924/

KERNEL SOURCE

https://github.com/zhaochengw/android_kernel_agm_agma3eu

KERNEL CONFIGS EU vs INTERNATIONAL MAIN DIFFERENCE

EU

CONFIG_TOUCHSCREEN_GT1XX=y

CONFIG_TOUCHSCREEN_GT1X_GESTURE=y

CONFIG_TOUCHSCREEN_GT1X_FH=y

# CONFIG_TOUCHSCREEN_SYNAPTICS_DSX_V20 is not set

INTERNATIONAL

# CONFIG_TOUCHSCREEN_GT1XX is not set

CONFIG_TOUCHSCREEN_SYNAPTICS_DSX_V20=y

CONFIG_TOUCHSCREEN_SYNAPTICS_DSX_I2C_V20=y

CONFIG_TOUCHSCREEN_SYNAPTICS_DSX_RMI_DEV_V20=y

CONFIG_TOUCHSCREEN_SYNAPTICS_DSX_TEST_REPORTING_V20=y

CONFIG_TOUCHSCREEN_SYNAPTICS_DSX_FW_UPDATE_V20=y

# CONFIG_TOUCHSCREEN_SYNAPTICS_GLOVE is not set

I compared the kernel configs from latest international lollipop rom with the one from Flyme OS 5 (compatible with x1 EU). I have not a boot.img from latest EU firmware, but should not matter.

This should explain the black screen when trying to install EU rom on International X1.

I found these options are not enabled in standard kernels, they may be of interest:

CONFIG_MSM_VPU CONFIG_POWER_AVS_MSM CONFIG_USB_MSM_ACA

reference: how extract kernel configs with extract-ikconfig (from kernel_dir/scripts)

https://github.com/MotorolaMobilityLLC/kernel-msm/issues/73

ROMS

EU: stock,lineage 13, flymeOs 5-6 https://4pda.ru/forum/index.php?showtopic=814951

INTERNATIONAL: only stock (latest is L1253.6.03.02.BYD)

lineage 13 (removed) https://4pda.ru/forum/index.php?showtopic=814951&st=300#entry62399105

PORTING ROMS AND KERNELS

From EU to International:

take EU roms and replace boot.img with one from International roms? (kernel and dtb table??)

From other Phones:

- Similar MSM8952 Phones: https://www.gizmotimes.com/lists/phones-qualcomm-snapdragon-617-processor/19660

- Guides: https://xdaforums.com/android/general/how-to-port-roms-easy-100-t2804390

https://xdaforums.com/showthread.php?t=2707438

http://ohheyitslou.blogspot.it/2011/09/ohheyitslou-custom-android-kernel-guide.html

- Interesting Kernels: https://xdaforums.com/moto-g4-plus/development/kernel-elementalx-g4-0-01-t3424836

On Snapdragon 617 at the moment should be possible Overclock, but I have found no Voltage control patches from other phones kernels.

TWRP

EU: https://4pda.ru/forum/index.php?showtopic=814951

INTERNATIONAL: https://4pda.ru/forum/index.php?showtopic=814951&st=300#entry62309514

TWRP 3.0 for android 5, TWRP 3.1.0 should be for android 6 and it may have problems with restoring

TWRP reference info https://www.movilesdualsim.com/tema/twrp-by-mdsdev-para-el-x1.168070/