yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
What kind of suggestion is that? How would that help considering our /vendor doesn't even mount /odm?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] infixremix:
Well works for me on aosp.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] davidhozic:
Already tried that..

anyway the point of treble is to keep the stock vendor
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
AOSP is not Lineage.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Goofee:
I get to boot loop whenever I install twrp :) Magisk and su flashed fine when booting into twrp.

Edit:

(tried installing to either or both partitions to no avail then again I'm kinda new to this)
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] infixremix:
Does this require stock vendor or a spesfic oem image as incall volume doesn't work for me but does for everyone else?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
No, just make sure /bluetooth, /dsp, /firmware are mounted. If not, dd them over from A to B.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] infixremix:
Thanks for the quick reply, to shorten that shall I just make sure I'm using partition b when installing?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
Umm, it's easier ( and smarter ) to just copy partitions from A to B lol
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Gabi10017:
Rooting on this rom

How to install Magisk on this rom? I'm kinda new with A/B phones.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] infixremix:
Use partition a to install however before make sure you mount firmware or in call audio won't work
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Gabi10017:
With firmware you want to say system?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] infixremix:
No I want to say firmware :)
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Gabi10017:
There exists a partition with the name 'firmware'?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] infixremix:
https://xdaforums.com/android/general/info-android-device-partitions-basic-t3586565
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] JOVICAMPEK:
Are there plans to use aosp camera libs (camera2 api with raw or however you refer to them)? I am planning to buy this phone, and the ability to use google camera with hdr+ would really push me away from xiaomi.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
Hi folks,

Check the 2 screenshots. Trust built in LineageOS says that SELinux is set to enforcing. But a Root checker app I downloaded says its set to permissive.

How do I know which one is right?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] infixremix:
Apps are useless at looking a SElinux the way they work depends on the policy only some actually use a shell to check. To be more accurate its always better to use terminal or a shell.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] phone-company:
i need your help... i'm on jolla sailfish with my xperia xa 2 and want to go to lineage. is that possible?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
Yes. Boot into recovery using the button combo, boot into twrp, wipe everything and then flash LineageOS using adb sideload.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] tencarsb:
I tried emma too with no success

Hi,

I have the same Problem (with the screen) but emma only offers me the newest version of firmware... (50.1.A.13.123)

, which doesn't change anything.

How do I downgrade to an Oreo Firmware?!

best regards,

tencarsb
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
I think 50.1 is Oreo. Pie is 50.2 as far as I recall.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] tencarsb:
Ok, then this does not get me out of my misery, but thank you for thi information!

best regards,

tencarsb
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] crashfistfight:
Netflix | Mediarecorder

hey,

i'm not able to install or find netflix on playstore. When installed from the netflix help-page it will fail to open with "this device is not supported by the app."

(fixed by installing netflix from apkmirror.com!)

Also Camera crashes when i try to record a video.

(fixed by disabling PilferShush Jammer app while using camcorder!)

Logs:

Netflix

MediaRecorder

Device info

build.board: sdm660
build.bootloader: xboot
build.brand: Sony
build.cpu_abi: arm64-v8a
build.cpu_abi2:
build.device: H3113
build.display: lineage_pioneer-userdebug 9 PQ3A.190705.003 31437c6df9
build.fingerprint: Sony/H3113/H3113:8.0.0/50.1.A.4.76/2209478692:user/release-keys
build.hardware: qcom
build.host: lineage-runner
build.id: PQ3A.190705.003
build.manufacturer: Sony
build.model: H3113
build.product: H3113
build.radio: unknown
build.serial: unknown
build.tags: release-keys
build.time: 1565110387000
build.type: userdebug
build.user: gitlab-runner
version.codename: REL
version.incremental: 31437c6df9
version.release: 9
version.sdk_int: 28

I'm a new member, so i can't attach files or paste links.

Maybe someone has a solution or a clue how to resolve these bugs.

However, thanks for building lineage [MENTION=5075128]LuK1337[/MENTION] !
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] tencarsb:
My problem with the flickering screen is solved, just as described with emma but this img file (1d66175c6ce8e04865d041cbcac8ba3013a02b1e.img) necessary! I found the link here:

https://xdaforums.com/sho...&postcount=798

best regards and thanks all!
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] matedealer:
How to get 50.1.A.13.123 for H4113

Hi,

Sorry if the question is already answered and I'm only to stupid to use the search in correct manner :/

I tried to flash my new Xperia XA2 (dual Sim) H4113 with BUILD 50.2.A.0.379 and stumbled over this thread saying to downgrade to 50.1.A.13.123. Sadly with XperiFirm I get only 50.2.A.0.379 or 50.1.A5.59, which is marked as internal. Since I didn't have the experience with firmware, I didn't wanted to flash firmware marked as internal (and probably to old) or H3113 firmware. Is there any way to obtain correct firmware for my phone?

Thanks a lot in advanced
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] infixremix:
Anyone else having issues with camera on latest build? Just checking to make sure its not caused by a self error. I would get logs but I'm stuck in Hong Kong
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Marteng69:
As explained in here, there is a way to downgrade with emma. With emma you get the UK custom stock ROM with version 50.1.A.13.123. For the installation of LOS16 it is not a problem, if it is not your countrys correct version.

After downgrading with emma, you should follow the two times installation only of the firmware from post #2 in this thread. If you do not do this you can get stuck in the installation process or can not update to further versions using OTA. If downgrading with emma the files you need for step one in the instruction are in ProgramData directory of emma on your hard drive.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
I wish there weren't issues with 50.2. We would be on the latest firmware and be free of this hassle.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] xperiaf:
but.. H4133 will be flicking screen with 50.2 firmware.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] front71:
Is there anyone who's got a working lineage on model h3113 after flickering issue?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] exzombie:
I had that on my h4113, which AFAIK is the same as h3113 except it's dual-sim. Flash stock 50.1, then boot the "magic" TWRP image from https://kremowka.xyz/files/1d66175c6ce8e04865d041cbcac8ba3013a02b1e.img

That should fix the broken screen. Then follow the instructions on flashing 50.1 onto both slots before installing lineage.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] dooshbagel:
Here's my current situation - my A partition is fine. However, my B partition seems to be permanently fuсked - no matter what I flash or install on it, even if it boots successfully, the screen glitch immediately appears. Or to be more precise, the glitch appears after the first (and only time) you press the power button, and that's when it goes to hell.

And then I have to do the reflashing with EMMA the special TWRP image and whatnot all over again. So this fixes the screen for a while and I can boot/flash stuff on the A partition again, but as soon as I try to do anything on B the screen gets screwed. I have tried manually flashing the stock firmware to B with Newflasher and also installing ROMs to B from within TWRP. EMMA never seems to touch B and always repairs things only on A, so it's not much help either.

However, I *can* enter TWRP from within B. That's actually how I got a ROM working - I entered TWRP while in B, and since it always installs ROMs to the opposite partition (which in this case was A, the working partition), I was able to install to A, boot successfully and do stuff.

Is there any shell command or something, anything, that can fix this? At this point I'm thinking of returning the phone and starting over again on a new one.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
Come irc? (see my sig for channel and network)
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] dooshbagel:
Thanks man. I guess you're pretty much the world's leading expert on this exact topic, so I hope we can find some solution. I won't be able to go on IRC most days after 15:00 CET, so I hope you're on there around that time.

BTW - if you have already a solution in mind, it would be cool for you to post it here just in case we don't meet on IRC (and also for posterity's sake).
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
>I won't be able to go on IRC most days after 15:00 CET, so I hope you're on there around that time.

I'll probably be on irc between 12-14 CET, and 17 CET+ tomorrow.

>BTW - if you have already a solution in mind, it would be cool for you to post it here just in case we don't meet on IRC (and also for posterity's sake).

I have some silly untested ideas. You're free to write up a proper guide ( or a tl;dr ) once we are done.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] smith314:
I'm pretty much in the same situation after i switched to B to flash 50.1, except I wasn't able to escape the short green light glitch. No matter what I do, neither the fastboot nor the recovery mode seem to work. There's always only the green light flashing up for some ms and then nothing. I can't see a device pop up in dmesg or Emma.

How did you manage to boot into TWRP?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] iHusky:
I have trouble I cannot turn on wi-fi because button sudennly turn off and I have mac adress 2:00:00:00:00:00 can somebody help me?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] Seriel:
Booting stock once should make Wi-Fi work.

Flash a stock Oreo (50.1) firmware (Instructions in second post) and then boot it once and make sure Wi-Fi is working in that before flashing Lineage.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] cojocar.andrei:
Hi, I've just unlocked my bootloader so to flash lineage os. Currently everything is working and I'm on stock Oreo, slot b active, with current image on slot b beeing oreo 123. Most probably on slot A I have oreo 83. I'm thinking of dd-ing every "slot B" partitions into "slot A" partitions so to have on slot A also oreo 123 (latest oreo) before flashing lineage. Seeing so many people gotten bricks, I'm asking if what I want to do would pose theoretically any problems? Thanks
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] dooshbagel:
Turns out it didn't work, sadly. LuK1337 even gave me some custom kernel to flash, but it couldn't help. Guys, if your XA2 is as screwed as mine is in this post, you're better off returning it while you can - that's what I'm doing.

So now I'm looking for a new phone, and I've come to the conclusion that I don't really like the XA2 much (spoiler: I'd rather lick dried shıt off a cactus than try flash a ROM on an XA2 again), so if anyone has some recommendations for another phone, that would be great. I don't care for much besides it having:

- a headphone jack/microSD slot

- LineageOS support without the danger of turning the phone into a flickering brick

- within or below the same price range
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] moroi:
Sorry to hear it didn't work for you. I'm happily using my XA2 as the main driver for 1year+ and nowadays I just do OTA updates without breaking a sweat (actually, when moving to LOS 16 earlier this year I had to do the manual flash again).

It is true that the initial LOS install was really, really painful; I spent an inordinate amount of time getting it right - persistence and luck were the key. :)

What makes you think you'll avoid the earlier problems with the new phone model? (note that I haven't followed your issue, so I might be off here)

Current phones have the A/B slot thing which makes it really confusing to work with; most of my issues back then were revolving around the lack of understanding of how slots & switch between them works - of course being a complete novice to android in general and how phones work didn't help.

Having said that, I just bought (and flashed LOS 16 on a) a Motorola X4; it's in the same price range as XA2 and has the same Qualcomm chipset. It's fully supported by LOS, just like XA2.

It's same size but a bit slimmer and lighter, seems to have more sensors, a 3000mA battery instead of 3300mA. Has a headphone jack and a microSD slot (overlapping with the second sim slot). There are several storage/RAM versions available, starting with 32GB/3GB, which matches an XA2.

My X4 has 64GB storage and 4GB RAM. It is also somewhat more expensive, mostly due to extra storage/RAM, but even a matching version was still a bit higher price-wise than the XA2/4113 on the market that I am in.

Good luck!
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] exzombie:
[MENTION=9348952]moroi[/MENTION] A day before yesterday, I would pretty much agree with you regarding persistence and luck, since it was also my experience. I have also been using the phone for a while with no issues. Since yesterday, I can say that you need more luck than persistence, because I learned that using fastboot to change slots has a small but non-negligible probability of bricking an XA2; it now only briefly blinks the LED on any attempt at turning on, so no fastboot and no download. I saw in this thread that some people had that issue, but I didn't realize that switching slots was to blame. I guess I'll find out how much a new motherboard costs.

I am grateful for your suggestion of Motorola X4, because if servicing the XA2 will be too expensive, I now have another option. I was in a pretty foul mood because XA2 seemed to be the only easily obtainable phone with good LOS compatibility. Thanks mate!
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] moroi:
You're welcome!

Ironically if I would be to translate my handle to english, I'd get... zombie :)
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] xperiaf:
hi Luk, could you please considering change mainly used cores to Small Cores rather than current Big Cores ? The Smalls can take some lower frequency for greater balance between performance and powersaving.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] iHusky:
There is a chance to get always on display or glance screen for our device? On SailfishOS using mce tools I needed get glance screen (when you open the pocket device show some information on black screen ) but on LineageOS I don`t see this option.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
I don't really want to diverge from whatever QCOM does on SDM630 therefore don't expect me to do anything perf related like this.

Also I don't really know much about stuff like this either.

Sadly we don't have pickup sensor that'd do that for us. I know others use stuff like proximity (for pocket mode w/e) or tilt (for kinda ghetto pickup detection) but I'm not really a fan of that.

---

BTW I pushed a change that fixes /persist perms for people coming from stock 9. Now you should no longer have to deal with broken WiFi or sensors ^.^

t. https://review.lineageos.org/c/LineageOS/android_device_sony_nile-common/+/255365
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] truneaux:
Hey Folks, I got stuck completely with my new Xperia XA2. It had Pie already installed.

I followed the installation instructions of"Install LineageOS on pioneer" from the lineageos website but I can't get the recovery to work.

Currently I'm reproducibly able get my device listed in fastboot. As written in the LineageOS installtion instructions I did a

fastboot flash boot twrp-3.3.1-1-pioneer.img

and then tried to boot into recovery with the device powered off, hold Volume Down + Power as instructed, But nothing happened.

If I start over, do a

fastboot boot twrp-3.2.2-0-pioneer.img

I get the device bootet so it shows up in adb as "CQXXXXXX	recovery".

On the site "https://twrp.me/sony/sonyxperiaxa2.html" I found the information to push the zip file onto the device like

adb push twrp-installer-pioneer-3.2.2-0.zip /

but then ??? the following 2 lines I have no clue what they mean exactly:

SO, do I need to reflash the boot image, if yes, where do I get it and how would I do that ...

BTW: I'm on Mac or Linux, no Windows available at all

Any hint welcome

Thanks in advance, truneaux
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] iHusky:
Flash stock firmware using newflasher (don`t bother with flashtool) but you need xperi firm to download and unpack firmware Ahhh find how to flash firmware using newflasher because some TA files must be removed before you start flash firmware. On first site of this topic you have tutorial how to flash this FW on 2 slots (A/B) aaa and next time don`t try to flash twrp. Better if you put your device in fastboot mode and use command (on linux or mac) fastboot boot (path to twrp.img file) ... but first you must have installed adb and fastboot drivers

Ahhh and did you have unlocked device?

And put your device into fastboot mode before you use this command it`s work for me
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] inestion:
Luk are you going to update the security patch?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
Me? No, I'm not responsible for such boring stuff.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] inestion:
So who should I nag to get the latest patch?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
No one.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] iHusky:
Luk can you use and add newest binary vendors from Sony to your new builds?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] bane.twit:
Google Translate;

respect developers. in an effort to raise xa2 level with LineageOS 16.0 with an installation guide by amrmesh, with a clear installation process, in step

23. Go back, reboot to bootloader

Ignore "no os installed!"

24. Run "fastboot set_active b"

25. Run "fastboot boot twrp ...", no installation, wait, phone dead.

two phones dead at the same step, no more startup just flashing green light, no connection in any mode.

What is the problem? LuK?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] iHusky:
No to bootloader but into flash mode after you flash first slot. On linux you don`t need TWRP to change between slots. First you must flash stock oreo using newflasher (there is lot of guides how to do this). Next you must flash this FW on 2 slots a/b and then boot into recovery and use adb sideload to flash ROM and Gapps.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] tulloun:
Copy firmware from slot a to b?

First of all, a big thanks to LuK1337 and everyone else helping with this ROM and providing the information in this thread.

I bought a new H4113, checked that it still had firmware 50.1.A.13.123 (as listed under build number), unlocked the boot loader and successfully installed LOS 16 (20190905-nightly) following the install instructions from the LOS wiki page.

Then, I tried an OTA update from within LOS. After restart, I get continuous error messages stating that Bluetooth has crashed.

I tried the test suggested by LuK1337 in a previous post:

# strings /dev/block/bootdevice/by-name/modem_a | grep Daily

output: 20181119_BY12O_Daily

# strings /dev/block/bootdevice/by-name/modem_b | grep Daily

no output

From what I understand after reading this thread, I assume this means that the correct firmware is present in one (in my case slot_a) and not the other slot, is that correct?

My question is:

Is there a safe way to copy the firmware from slot a to b?

I would prefer doing that compared to the steps from the 2. post, since no 50.1. firmware is available for my device in XperiFirm anymore.

Thanks!
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] droidsometimes:
https://xdaforums.com/xperia-xa2/development/rom-lineageos-16-0-t3836151/post79823317

See the dd commands in that post.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] larussie:
Hi guys! AFAIU i can not install LOS16 on 1311-2845_50.2.A.0.400 using this guide, is it correct? Unfortunately I got the phone already with Pie and security patches(08/01) installed... What are my other options for getting rid of all that bloatware by sony? My ideal goal would be a clean Android with microG
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] irgendwer2:
[MENTION=5075128]LuK1337[/MENTION]: is there any chance we will see a 50.2 compatible LOS version some day? Or is this a developer (not maintainer) issue?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] _def:
When I try to boot the current TWRP image I just get a black screen, but "adb devices" lists my phone as attached and in "recovery" mode. But I can't get in sideload mode.

I use:

fastboot boot twrp-3.3.1-1-pioneer.img

the "1d66175c6ce8e04865d041cbcac8ba3013a02b1e.img" image worked once for me (but only once)
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] hopefully_not_bricked:
I'm having an issue where when I have the phone locked for perhaps 20-30 minutes, it powers off and seems to go into fastboot mode and I have to give it a *fastboot continue* to boot it. I only just got the phone today so I guess it's a pretty fresh install. Has anyone seen anything like what I'm describing? (H3133)
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] malerocks:
What steps did you follow to install?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] hopefully_not_bricked:
These ones: https://wiki.lineageos.org/devices/pioneer

Had a few errors I hadn't seen before while going through the wiping/installing process - warnings about various partitions not mounting. I only did a factory wipe and cache wipes. A couple of reboots and LineageOS was working, then later I booted into twrp again with fastboot to flash SU.

It has only happened twice so far. I'm leaving it inactive for longer periods of time to try and replicate, but it hasn't happened again yet.

Edit: Turns out this isn't LineageOS related
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] padwa:
Support for Android 10

Hello Luk,

are you going to develop LineageOS 17 for this Device?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
Until 50.2.* kernel source is out I'm not planning to do anything.

btw see https://talk.sonymobile.com/t5/Kernel/50-2-A-0-400-kernel-source/td-p/1390917 ^^
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
Anyone with 50.2.* device who feels like testing 16.0 for me? Message me somewhere ^^
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] padwa:
So you've got the sources for 50.2.A.0.400 now?
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] LuK1337:
Of course not. I spent last few days fixing Xperia 10 kernel.
[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] padwa:
Yesterday I've sent an E-Mail to Sony Developer Support with the question where are the sources for 50.2.A.0.400.

If they give me an helpful answer, I will post it here.