[ROM][UNOFFICIAL][8.1] LineageOS 15.1, AICP | Development & Discussion | 2021.04.15

Search This thread

prakash09876

Senior Member
Oct 18, 2017
98
24
Kathmandu
Can i get the experimental links plz ?
There were experimental builds of LOS16, it works on M2 but there are minor bugs.
I don’t have enough space to build LOS16, I need to remove two other builds (LOS14, LOS15, AICP) to build LOS16.
LOS17 can also be builded, from neighboring (older and low-power models) it was builded…
 

mantazzo

Senior Member
Feb 3, 2015
204
53
Pakruojis
There were experimental builds of LOS16, it works on M2 but there are minor bugs.
I don’t have enough space to build LOS16, I need to remove two other builds (LOS14, LOS15, AICP) to build LOS16.
LOS17 can also be builded, from neighboring (older and low-power models) it was builded…
Any specific bugs you can mention? If you can, of course.

Sent from my Xperia M2 Aqua using XDA Labs
 
  • Like
Reactions: JuniorCaesar

JuniorCaesar

Senior Member
Mar 22, 2014
723
354
Ankara
LOS17 can also be builded, from neighboring (older and low-power models) it was builded…

damn. a mid-range phone from 2014 is capable of getting major OS support in 2020 (thanks to the snapdragon and our amazing developers). i hope we can see some alpha or beta builds of los 16 or 17 in the future :)

also, is there a noticeable performance loss between 8.1 and 9 (without gapps) ? i wonder how snapdragon 400 performs on modern android versions.
 

nowifi4u

New member
Jan 15, 2020
2
0
Minsk
How does one enter TWRP after flashing this rom?
What I have:
- Sony M2303
- Latest stock .tft (just flashed)
- Updated bootloader
- Fastboot'ed TWRP 3.3.1
- This ROM (duh)

What is happening:
- After using "adb reload recovery" the phone reboots, shows the Sony logo, but after that just reboots again into system.
- Pressing either Vol+ or Vol- does the same thing as described above.

Also is there a way to have root? (I only see the "ADB only" option in Dev tools)
 

nowifi4u

New member
Jan 15, 2020
2
0
Minsk
Also is there a way to have root? (I only see the "ADB only" option in Dev tools)
I did find the additional su flashable zip on LineageOS website. Can it be used? (I'd have to reflash the phone from zero to regain the access to TWRP for one time lul -_-)

Edit: I did try flashing addonsu-15.1-arm-signed.zip, but when I type in "su" in terminal it gives the following error: "Binder driver count not be opened. Terminating."

Edit #2: su works under root user (via adb root). So uhm... Some file is not accessible to other users? strace lead me nowhere =/

Edit #3: Well I just installed su via adb root. But there is still the TWRP issue...
 
Last edited:

JuniorCaesar

Senior Member
Mar 22, 2014
723
354
Ankara
I did find the additional su flashable zip on LineageOS website. Can it be used? (I'd have to reflash the phone from zero to regain the access to TWRP for one time lul -_-)

Edit: I did try flashing addonsu-15.1-arm-signed.zip, but when I type in "su" in terminal it gives the following error: "Binder driver count not be opened. Terminating."

Edit #2: su works under root user (via adb root). So uhm... Some file is not accessible to other users? strace lead me nowhere =/

Edit #3: Well I just installed su via adb root. But there is still the TWRP issue...

Your TWRP situation is weird, stock .175 + bootloader update should make your TWRP permanent (until you flash stock rom again).

How to boot into TWRP: Turn off your phone, Hold both Power and Volume Down buttons. When the phone vibrates, release the power button.

For root. You can use los14.1's addonsu, but there won't be any prompt for superuser access (which is kinda dangerous). You can;

1) Manually disable superuser access after your root involved work

Or

2) Manually patch your boot.img and use Magisk

Here is the tutorial (thanks to @basem_ym)

basem_ym said:
As I hardly remember magisk mounts /data partition after flashing.
Do not flash migisk zip, do the following:
Copy stock boot img to sdcard (the one provided with the rom)
install magisk manager on your nonrooted phone, open magisk manager and manually patch within magisk app.
Copy your patched boot img to your pc and flash it using fastboot.
If it didnt work, disable magisk hide.
If this didnt work too, then I must be forgetting something.

You can flash patched boot.img on TWRP, no need to fastboot.

Sent from my X Compact using XDA Labs
 
Last edited:

f2065

Senior Member
Sep 5, 2007
214
115
Moscow
f2065.ru
After using "adb reload recovery" the phone reboots, shows the Sony logo, but after that just reboots again into system.
This problem seems to have been fixed several months ago. What firmware was installed?

I did find the additional su flashable zip on LineageOS website. Can it be used? (I'd have to reflash the phone from zero to regain the access to TWRP for one time lul -_-)
I am using SuperSU (SR5-SuperSU-v2.82-SR5-20171001224502.zip)

2) Manually patch your boot.img and use Magisk
Magisk spoils the possibility of installing APK, it is not supported by our kernel.
 

mantazzo

Senior Member
Feb 3, 2015
204
53
Pakruojis
APK install does not work with Magisk as long as MagiskHide is enabled in the Magisk Manager Settings. After disabling it and restarting the phone, APK install or installs from Google Play Store works fine (at least for me on M2 Aqua with AICP) and Magisk works fine too, just enable the MagiskHide when needed and disable it otherwise.

Regarding the Recovery access, I think I can confirm the same issue, however, it does work, but only on a clean install and on first try (I tried to reboot to recovery directly from phone). Any other time after the first try it just shows Sony logo and continues to boot into system (though Notification LED flashes some lights, usually). Any way I can help with that a bit more, let me know.

Sent from my Xperia M2 Aqua using XDA Labs
 
  • Like
Reactions: JuniorCaesar

zulkosaki

Member
Jan 9, 2018
14
2
There were experimental builds of LOS16, it works on M2 but there are minor bugs.
I don’t have enough space to build LOS16, I need to remove two other builds (LOS14, LOS15, AICP) to build LOS16.
LOS17 can also be builded, from neighboring (older and low-power models) it was builded…

i can help build them. i have space and 16gb ram and fast connection.. rocking linux but not yet try to compile any rom :silly: so, i dont really familiar with steps..
 
  • Like
Reactions: JuniorCaesar

ectoanonymous

Member
Mar 4, 2019
11
2
Does it work for Xperia M2 D2302? What features are not working in this ROM?

Does it work for Xperia M2 D2302? What features are not working in this ROM?
Can anyone please tell how to install it in detail???
 
Last edited:
  • Like
Reactions: alborzstar

DVt3

New member
May 8, 2020
2
0
Hi everybody great work and thanks for the effort.
I notice that transferring music files from Lenovo with windows 10 and USB3 to sd card (set as a removable one) on D2302 the phone goes a bit wobbly and doesn't want to transfer the files. It keeps switching back to charge mode. Even going to settings and setting it to transfer, the phone exhibits the same behaviour.
I switch it to USB2 port and it works with no issues. Not too bothered but thought I would share.
 

m.tarhsaz

Member
Jul 20, 2011
20
13
Kernel requirements

First of all tanks a lot for your huge effort.

I installed that for daily use on my D2302.

I also build a kernel based on official source code and patched that for supporting MagiskHide (mount namespace added to source code):

[KERNEL][3.40][DM2] XPERIA M2 MagiskHide working kernel

I tried flashing my kernel after flashed your ROM but encountered boot loop.

I just want to know what's the reason?

Is it due to my image format is AOSP or something else?

If your ROM needs some kernel feature(s) that not exist in official kernel source code provided by Sony please let me know.
 

f2065

Senior Member
Sep 5, 2007
214
115
Moscow
f2065.ru
I tried flashing my kernel after flashed your ROM but encountered boot loop.
I just want to know what's the reason?
Edit ro.secure=0, ro.adb.secure=0 in prop-files to access debug without authorization, and then read dmesg/logcat via ADB.

If your ROM needs some kernel feature(s) that not exist in official kernel source code provided by Sony please let me know.
For the current versions of LOS 14/15, many different edits in the kernel are needed. It is necessary to investigate the history of commits of the kernel that I use (it is on the github), for 2015-2018.
But first, you need to look at the errors in dmesg and logcat, there is definitely something about the reasons for the bootloop.

I'm not sure if kernel 3.40 is a good idea, older kernels are faster.
 

aallgg

New member
Aug 30, 2020
1
0
So I saw on your GitHub that you uploaded some scripts to build LOS 14/15/16/17 and TWRP. I don't know a lot about compiling ROM's, but I tried them all, but only 14/15/16 succeeded (TWRP said that the official LOS repository only has up to 13.0 because it didn't download anything to device/sony so I copied everything from device/sony from the src 141 except eagle, bc I used the one for TWRP from you GitHub and I had to delete libshims from device/sony/eagle and rootdir from vendor/cm because they were duplicated and it wouldn't build and it succeeded and 17.1 failed because I think there are some repositories missing for that branch (I've tried to put some missing files from src 160) (I've attached a screenshot)). But LOS 16 booted at least, and I've tested it:
-WiFi doesn't work
-MTP doesn't work, but ADB does
-Camera works only on first boot, quite strange
I've attached some logs/kmsg from the first and second boot and I can provide more if you want.
h ttps://drive.google.com/drive/folders/1xQ6X-Zpy3khzp9ydwhvVSrnyqkQjs3cU?usp=sharing
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 20
    Unofficial build of LineageOS 15.1 (Android 8.1 Oreo) and AICP 13.1 (Android 8.1 Oreo) for the Sony Xperia M2 (eagle).

    Disclaimer
    Your warranty is now void!
    You will be doing everything at your own risk.
    I am not responsible for bricked or damaged devices.

    Download
    https://f2065.ru/android/Android_M2_en.htm

    Changelog
    2021.04.15
    • Source LineageOS updated to 2021-04-15, security update from 5 April 2021.
    2021.03.08
    • Source LineageOS updated to 2021-03-08, security update from 5 Mart 2021.
    2021.02.17
    • Source LineageOS updated to 2021-02-17, security update from 5 February 2021.
    2021.01.18
    • For M2 Dual (D2302) – fixed the ability to disable the second SIM in the Settings.
    • Source LineageOS updated to 2021-01-18, security update from 5 January 2021.
    2020.12.22
    • Source LineageOS updated to 2020-12-22, security update from 5 December 2020.
    2020.11.15
    • Source LineageOS updated to 2020-11-15, security update from 5 November 2020.
    2020.10.11
    • Source LineageOS updated to 2020-10-11, security update from 5 October 2020.
    2020.09.30
    • Source LineageOS updated to 2020-09-30, security update from 5 September 2020.
    • Minor kernel changes.
    2020.08.23
    • Source LineageOS updated to 2020-08-23, security update from 5 August 2020.
    2020.07.23
    • Source LineageOS updated to 2020-07-23, security update from 5 Jule 2020.
    2020.06.10
    • Source LineageOS updated to 2020-06-10, security update from 5 June 2020.
    2020.05.25
    • Optimization of memory settings for system services by analogy with Android Go.
    • Minor kernel changes.
    • Source LineageOS updated to 2020-05-25, security update from 5 May 2020.
    2020.05.01
    • Source LineageOS updated to 2020-05-01, security update from 5 April 2020.
    2020.03.10
    • Source LineageOS updated to 2020-03-10, security update from 5 Mart 2020.
    2020.02.11
    • Source LineageOS updated to 2020-02-11, security update from 5 February 2020.
    2020.01.23
    • Source LineageOS updated to 2020-01-23, security update from 5 January 2020.
    2019.12.12
    • Source LineageOS updated to 2019-12-12, security update from 5 December 2019.
    2019.11.17
    • Source AICP updated to 2019-11-27, security update from 5 November 2019.
    2019.11.17
    • Minor kernel changes.
    • Source LineageOS updated to 2019-11-17, security update from 5 November 2019.
    2019.10.17
    • Source LineageOS updated to 2019-10-17, security update from 5 October 2019.
    • SDCardFS kernel driver.
    • Several hundred kernel commits (migrated from other kernels for msm8226, msm8960t, msm8916, msm8974).
    2019.08.15
    • Sources AICP and LineageOS updated to 2019-08-15, security update from 5 August 2019.
    2019.07.10
    • Experimental build – Android Go configuration (faster and more responsive, but less beautiful, and some have problems with notifications from the messengers).
    2019.07.10
    • Sources AICP and LineageOS updated to 2019-07-10, security update from 5 Jule 2019.
    2019.06.16
    • Adaptive LMK.
    • Several hundred kernel commits (migrated from other kernels for msm8226, msm8960t, msm8916).
    • Source LineageOS updated to 2019-06-16, security update from 5 June 2019.
    2019.05.21
    • Build AICP (Source AICP updated to 2019-05-21, security update from 5 May 2019).
    2019.05.16
    • In driver Wi-Fi enabled BondingMode (included WCNSS_qcom_cfg.ini with settings).
    • Implemented the ability to reboot into recovery.
    • Increased rear microphone sensitivity (camcorder is now well hears, for voice recorders - use RecForge-II with a choice of rear microphone).
    • Various changes in zRAM and swap (theoretically multitasking would be better).
    • Various changes in driver i2c (sensors will probably stop hanging).
    • Source LineageOS updated to 2019-05-16, security update from 5 May 2019.
    2019.04.08
    • The function of recording a conversation is unlocked and is now available in the dialer.
    • Minor changes and optimizations in build configurations, temporarily added debug of i2c in dmesg.
    • Source LineageOS updated to 2019-04-08, security update from 5 April 2019.
    2019.03.12
    • Source LineageOS updated to 2019-03-11, security update from Mart 2019.
    2019.02.28
    • Fixed problems with the video camera, built-in video camera works fine (video does not twitch, FullHD work).
    • Fixed problems with XTRA/AGPS, searching and fixing satellites is now as fast as on stock firmware.
    • The built-in firewall is fixed and works (in older versions this leads to an error and a bootlap after a reboot).
    • Source LineageOS updated to 2019-02-28, security update from February 2019.


    XDA:DevDB Information
    LineageOS 15.1 (and AICP) for Sony Xperia M2, ROM for the Sony Xperia M2

    Contributors
    f2065, galaxyfreak, Konstantinosj77, sgspluss
    Source Code: https://github.com/f2065

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

    Version Information
    Status:
    Beta
    Beta Release Date: 2021-04-15

    Created 2019-04-09
    Last Updated 2021-04-15
    4
    New build LineageOS 15.1 published.
    4
    LineageOS 15.1 build 2019-06-16 released:
    Numerous kernel fixes, and LMK reconfigured. The kernel has become better.
    The kernel fixed bugs due to which the Android Go mode worked incorrectly earlier. Android Go is not included in these builds, but now you can enable it.
    3
    New build LineageOS 15.1 published.
    Returned SDCardFS. It was a very long time ago, but in those days because of it there were errors with microSD and they refused SDCardFS (they used FUSE). Now I imported the latest version of SDCardFS, checked for 2 weeks - I did not find any bugs with microSD.


    Does anyone have unexpected reboots (on any previous versions of LineageOS) - once every few days?
    It has always been with me (both in my builds and in old builds of other authors). Now I began to investigate - the reason is the overflow of the sensor buffer. The place of the fall is in the LineageOS source. But the root cause is most likely in our sensor drivers, or in multihal ...
    We need to find patterns - on which revisions of M2 there is this problem.

    Crash log is saved in /data/system/dropbox…
    pid: 922, tid: 3000, name: SensorService >>> system_server <<<
    signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0x9d180000
    r0 9d17fe50 r1 9d17fff0 r2 fffb89c8 r3 00000000

    backtrace:
    #00 pc 00018f04 /system/lib/libc.so (memcpy+168)
    #01 pc 0000f431 /system/lib/libsensorservice.so (android::SensorService::SensorEventConnection::sendEvents(sensors_event_t const*, unsigned int, sensors_event_t*, android::wp<android::SensorService::SensorEventConnection const> const*)+448)

    This place is in frameworks/native/services/sensorservice/SensorEventConnection.cpp - android::SensorService::SensorEventConnection::sendEvents на memmove(mEventCache, &mEventCache[numEventsDropped], (mCacheSize - numEventsDropped) * sizeof(sensors_event_t));

    int numEventsDropped = count - remaningCacheSize;
    countFlushCompleteEventsLocked(mEventCache, numEventsDropped);
    // Drop the first "numEventsDropped" in the cache.
    memmove(mEventCache, &mEventCache[numEventsDropped], (mCacheSize - numEventsDropped) * sizeof(sensors_event_t));
    Crash in memmove (memcpy - called inside memmove), due to going out of the segment (i.e. the queue size is incorrect).
    3
    no pie for this phone?
    There were experimental builds of LOS16, it works on M2 but there are minor bugs.
    I don’t have enough space to build LOS16, I need to remove two other builds (LOS14, LOS15, AICP) to build LOS16.
    LOS17 can also be builded, from neighboring (older and low-power models) it was builded…
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