[ROM][OFFICIAL][pioneer][8.1] LineageOS 15.1

Search This thread

xperiaf

Senior Member
Dec 1, 2018
226
6
One thing - with out modem swither u will need flash the stock-rom 1st to switch a right config(for dual sim), else if u don't and update(reflash) new build LOS, phone be used h3113 config(one sim) from old release.

got it. that is to mean :

if i need a dual sim support, i need to reflash a stock and then flash a newest Los build ..?

Sent from my Sony Xperia XZ1 using XDA Labs
 

xperiaf

Senior Member
Dec 1, 2018
226
6
One thing - with out modem swither u will need flash the stock-rom 1st to switch a right config(for dual sim), else if u don't and update(reflash) new build LOS, phone be used h3113 config(one sim) from old release.

question: how could i switch to H4113 config ..

i did not delete those three files (vendor/sony-modem-switch and others two), currently i just keep [a stock -> Los 15.1] rom.

seems i can get a new H4113 config by directly updating my Los to the latest.

Sent from my Sony Xperia XZ1 using XDA Labs
 

LuK1337

Recognized Developer
Jan 18, 2013
8,837
17,823
Samsung Galaxy S III I9300
Moto G 2014
question: how could i switch to H4113 config ..

i did not delete those three files (vendor/sony-modem-switch and others two), currently i just keep [a stock -> Los 15.1] rom.

seems i can get a new H4113 config by directly updating my Los to the latest.
Umm...you're supposed to just boot stock and flash 〜 latest 〜 lineage build afterwards.
 

SGS3_0

Senior Member
Mar 17, 2014
258
62
Megastructure
I thik if replace&rename dsds configs from stock to LOS, then phone can use em... Today I haven't PC for experimets, can't say do it works or not...
One of this config(of single&dual sim models) has 0 byte i think it is for cleen up modem and one of em has no operators name, i think it's default conf.
Bcoz of this, i think LOS can use both "default" conf and choose em for 31xx/41xx, while OS install.Other conf (for operators) are not be usefull.

---------- Post added at 01:05 AM ---------- Previous post was at 12:21 AM ----------

About wakeup gestures... It seems what our synaptics controller have no native by hadrware, so bad:((
Driver says what it's has no needed registers and module do nothing. If it is memory registers in controller then we can't do anything with it too...
I found info about this driver module. It(module) must make sys-fs node with parametrs. What we can use for tune gestures.
More about:
"--- POWER MANAGEMENT ---
The synaptics_dsx_gesture.c driver module is set up to automatically put the touch
controller in detection mode upon entering suspend. During suspend, when a gesture
input is detected and determined to be matching one of the valid registered gesture
templates, the driver module proceeds to wake up the system.
After the system wakes up, a return value of '0x0f' from reading the 'template_detection'
sysfs file node indicates that it was a matching gesture input that woke up system.
The index of the gesture template that produced the highest match score can be read from
the 'detection_index' sysfs file node, and the match score itself can be read from the
'detection_score' sysfs file node."
This github link
 

xperiaf

Senior Member
Dec 1, 2018
226
6
sorry but i do not get what SGS30 means ..

could i directly reflash stock and reflash Los again, have it a bug there .. ?

Sent from my Sony Xperia XZ1 using XDA Labs
 

xperiaf

Senior Member
Dec 1, 2018
226
6
1) It is not topic about Treble-roms.
2) PT(Project Treble)-roms = system-only. It is universal roms, bcoz Vendor+boot(drivers&firmware as modem) used by stock-rom.
3) It works like a usual custom-roms... & PT have some bugs, for example Trble-LOS 15.1 - dosn't work NFC...

edit: sorry for my mistake.

XA2 already have a official Treble support due to a Vendor partition is in there.

--------------------------------------------------------------------------
i found that xperia xa2 does not have a Treble support (either official or unofficial), how could you flash into a Treble rom ..

sorry for a little offtopic ..

Sent from my Sony Xperia XZ1 using XDA Labs
 
Last edited:

SGS3_0

Senior Member
Mar 17, 2014
258
62
Megastructure
could i directly reflash stock and reflash Los again
If u have a dual sim XA2 u need to:
1) flash original stock rom
2) boot into stock system and activate it
3) ur phone can selfreboot to "optimise himself for operator" (in this moment system switch to dual sim config)
4) after reboot chek what both sim works properly and now u can install new build of LOS witch haven't "modem switcher service"
coz it's save ur oun config & sims will works like with stock rom(both).
----------------------
Yes, XA2 has official treble-rom support.
(but not of all works well and only Oreo, for Pie we have to wait for update)
 

xperiaf

Senior Member
Dec 1, 2018
226
6
If u have a dual sim XA2 u need to:
1) flash original stock rom
2) boot into stock system and activate it
3) ur phone can selfreboot to "optimise himself for operator" (in this moment system switch to dual sim config)
4) after reboot chek what both sim works properly and now u can install new build of LOS witch haven't "modem switcher service"
coz it's save ur oun config & sims will works like with stock rom(both).
----------------------
Yes, XA2 has official treble-rom support.
(but not of all works well and only Oreo, for Pie we have to wait for update)

thanks for kindly reply.

1. "optimise himself for operator" (in this moment system switch to dual sim config)
i have no impression of it, i dont know where to find this function.
my variant is H4133 (international Dual ver)

2. thanks i got that too. XA2 currently have no stock Pie to made no availbility of Pie ..

Sent from my Sony Xperia XZ1 using XDA Labs
 

SGS3_0

Senior Member
Mar 17, 2014
258
62
Megastructure
i have no impression of it, i dont know where to find this function./QUOTE]
Just chek what both sim works and then install new LOS 15.1 build (from 15.01.2019).
About LOS 16.0 i don't know what version. I have source and rebuild it yerstoday for myself, after new commits of Luk. Exept sim problem he add camera OIS and i wanna test it.
 

LuK1337

Recognized Developer
Jan 18, 2013
8,837
17,823
Samsung Galaxy S III I9300
Moto G 2014
Just chek what both sim works and then install new LOS 15.1 build (from 15.01.2019).
About LOS 16.0 i don't know what version. I have source and rebuild it yerstoday for myself, after new commits of Luk. Exept sim problem he add camera OIS and i wanna test it.
I don't think that OIS change is going to do much on XA2 itself. I only added it cause of XA2 Ultra.
 
Last edited:

infixremix

Senior Member
Jan 12, 2017
895
389
I thik if replace&rename dsds configs from stock to LOS, then phone can use em... Today I haven't PC for experimets, can't say do it works or not...
One of this config(of single&dual sim models) has 0 byte i think it is for cleen up modem and one of em has no operators name, i think it's default conf.
Bcoz of this, i think LOS can use both "default" conf and choose em for 31xx/41xx, while OS install.Other conf (for operators) are not be usefull.

---------- Post added at 01:05 AM ---------- Previous post was at 12:21 AM ----------

About wakeup gestures... It seems what our synaptics controller have no native by hadrware, so bad:((
Driver says what it's has no needed registers and module do nothing. If it is memory registers in controller then we can't do anything with it too...
I found info about this driver module. It(module) must make sys-fs node with parametrs. What we can use for tune gestures.
More about:
"--- POWER MANAGEMENT ---
The synaptics_dsx_gesture.c driver module is set up to automatically put the touch
controller in detection mode upon entering suspend. During suspend, when a gesture
input is detected and determined to be matching one of the valid registered gesture
templates, the driver module proceeds to wake up the system.
After the system wakes up, a return value of '0x0f' from reading the 'template_detection'
sysfs file node indicates that it was a matching gesture input that woke up system.
The index of the gesture template that produced the highest match score can be read from
the 'detection_index' sysfs file node, and the match score itself can be read from the
'detection_score' sysfs file node."
This github link
If the input is detected the driver should be fine it could be connecting to the display driver that's the issue. I had the same issue on my other device. What driver are you using ?
 

xperiaf

Senior Member
Dec 1, 2018
226
6
1. greatful thanks to SGS30 and Luk, the latest Los works fine with DUAL SIM support !!!
currently i do not find some bug (i dont use NFC so have not a test).

2. additionally, for fun, i also tried to flash a Treble GSI Los by @PHH, i flashed .img into system image, then reboot, i found that, firstly my phone displayed a white background and big font "SONY" (yes that's booting animation before into system, such as Los booting animation), then my phone suddenly reboot again. then secondly boot into "SONY" animation, it's long time to wait, no any change or modification displayed, that time is too long to guess it's a soft brick ..

Sent from my Sony Xperia XZ1 using XDA Labs
 

malerocks

Senior Member
Mar 6, 2018
562
116
Since we have to flash the stock ROM first and then lineage, does this need to be every time we flash a nightly (dirty flash to be specific)?
 

SGS3_0

Senior Member
Mar 17, 2014
258
62
Megastructure
2. additionally, for fun, i also tried to flash a Treble GSI Los by @PHH
Pioneer-LOS vendor image not compatible with Treble GSI system images. For treble u have to use stock-rom vendor.

Since we have to flash the stock ROM first and then lineage, does this need to be every time we flash a nightly (dirty flash to be specific)?
The modem remembers the last used config. If the updates do not contain other configs, then nothing else needs to be done.
But if you changed the operator and after that you have problems with communication, then, most likely, you need to flash the factory firmware again. (Because there are several dozen configs with fine-tuning for different operators).
:cowboy:
 
  • Like
Reactions: malerocks

malerocks

Senior Member
Mar 6, 2018
562
116
Pioneer-LOS vendor image not compatible with Treble GSI system images. For treble u have to use stock-rom vendor.


The modem remembers the last used config. If the updates do not contain other configs, then nothing else needs to be done.
But if you changed the operator and after that you have problems with communication, then, most likely, you need to flash the factory firmware again. (Because there are several dozen configs with fine-tuning for different operators).
:cowboy:
Thanks. Makes sense.
 

xperiaf

Senior Member
Dec 1, 2018
226
6
Pioneer-LOS vendor image not compatible with Treble GSI system images. For treble u have to use stock-rom vendor.


The modem remembers the last used config. If the updates do not contain other configs, then nothing else needs to be done.
But if you changed the operator and after that you have problems with communication, then, most likely, you need to flash the factory firmware again. (Because there are several dozen configs with fine-tuning for different operators).
:cowboy:

but... i've already installed a brandnew Stock rom before i install GSI image.

i encountered in a bootloop ..
 

Top Liked Posts

  • There are no posts matching your filters.
  • 27
    2okPze5.png


    LineageOS is a free, community built, aftermarket firmware distribution of Android 8.1 (Oreo), 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. You can also view the Changelog for a full list of changes & features.

    What's not working :
    • IMS
    Instructions :
    • Download the latest build and gapps
    • Boot to recovery
    • Flash the latest build
    • Boot to recovery again
    • Flash gapps
    • Reboot
    Downloads :
    Reporting Bugs
    • DO NOT Report bugs if you're running a custom kernel or you installed Xposed
    • Grab a logcat right after the problem has occurred. (Please include at least a few pages of the log, not just the last few lines, unless you know what you're doing.)
    • If it is a random reboot, grab /sys/fs/pstore/console-ramoops and /sys/fs/pstore/dmesg-ramoops-0. (Do not bother getting a logcat unless you can get it just before the reboot. A logcat after a reboot is useless)
    • If the problem disappears after running "setenforce 0" from a root shell, grab /data/misc/audit/audit.log
    Remember to provide as much info as possible. The more info you provide, the more likely that the bug will be solved. Please also do not report known issues. Any bug not reported in the bug report format below may be ignored.

    Code:
    What is your--
    LineageOS version:
    LineageOS Download url:
    Gapps version:
     
    Did you--
    wipe:
     restore with titanium backup:
    reboot after having the issue:
     
    Are you using--
    a task killer:
    a non-stock kernel:
    other modifications:
     
    Provide any additional information (observations/frequency of problem/last version it worked on/etc) as needed:

    XDA:DevDB Information
    [ROM][OFFICIAL][pioneer][8.1] LineageOS 15.1, ROM for the Sony Xperia XA2

    Contributors
    LuK1337
    Source Code: https://github.com/LineageOS

    ROM OS Version: 8.x Oreo
    ROM Kernel: Linux 4.x

    Version Information
    Status: Testing

    Created 2018-06-19
    Last Updated 2019-11-01
    10
    ~ https://review.lineageos.org/218506 ~

    Starting from tuesday pioneer is officially supported device. Because official builds are signed with different key you'll have to wipe data before switching to them unless you feel smart enough to follow https://wiki.lineageos.org/signing_builds.html#using-a-script.

    Also since this change ~ https://review.lineageos.org/219073 you no longer have to care about firmware on slot 'B' :3
    10
    So here's what I did for now:
    - LA.UM.6.2.r1-10300-sdm660.0 -> merged,
    - Call recording -> merged @ https://review.lineageos.org/222506,
    - Power-off alarms -> doesn't work at all,
    - Headset mic -> fixed @ https://review.lineageos.org/223191,
    - HW keymaster×gatekeeper -> https://review.lineageos.org/223180 and https://review.lineageos.org/223184,
    - ANT+ -> won't work.

    I'll let you know when I decide to re-enable builds.
    8
    How to flash latest firmware

    [ protip: Currently Lineage builds depend on latest 8.0 firmware (50.1.A.13.123), they will not boot up on 50.2.A.0.* or newer ]

    1. Download latest firmware with XperiFirm.
    NOTE: When using mono XperiFirm will fail to unpack the firmware, you can do it manually using following commands:
    Code:
    for f in FILE_*; do unzip $f; done
    unzip boot.zip -d boot
    2. Go to the directory where the firmware got downloaded to and remove following files:
    - kernel_X-FLASH-ALL-18AE_0x00.hash
    - kernel_X-FLASH-ALL-18AE.sin
    - persist_X-FLASH-ALL-18AE_0x00.hash
    - persist_X-FLASH-ALL-18AE.sin
    - system_other_X-FLASH-ALL-18AE_0x00.hash
    - system_other_X-FLASH-ALL-18AE.sin
    - system_other_X-FLASH-ALL-9B8D_0x00.hash
    - system_X-FLASH-ALL-18AE_0x00.hash
    - system_X-FLASH-ALL-18AE.sin
    - system_X-FLASH-ALL-9B8D_0x00.hash
    - userdata_X-FLASH-CUST-18AE.sin
    - vendor_X-FLASH-ALL-18AE_0x00.hash
    - vendor_X-FLASH-ALL-18AE.sin
    - vendor_X-FLASH-ALL-9B8D_0x00.hash
    3. Turn off your phone, hold vol dn and plug in the USB cable, the screen should be off and green LED lit.
    4. Run Newflasher, it'll flash entire FW to your current slot then unplug the USB cable and power on your phone.
    5. Turn off your phone, hold vol up and plug in the USB cable, the screen should be off and blue LED lit.
    6. Enter this command: `fastboot getvar current-slot`, it should return something like this:
    current-slot: _b
    Finished. Total time: 0.001s
    7. Now switch to the opposite slot by entering command: `fastboot set_active a` if the current slot is `_b` or `fastboot set_active b` if its `_a`, you should see this:
    Setting current slot to 'a'...
    OKAY [ 0.012s]
    Finished. Total time: 0.014s
    or
    Setting current slot to 'b'...
    OKAY [ 0.012s]
    Finished. Total time: 0.014s
    8. Unplug usb cable and repeat steps: 3, 4
    9. Profit?