yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] tqttpt:
yeap, i installed twrp by read known bugs in twrp thread :D

thank you [MENTION=9542156]dhacke[/MENTION] :D
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] tqttpt:
errr, i have an other question, haha

i download open gapps (arm64, andoird 9, mini version) and install it by twrp but it seems not work, nothing change

is there something wrongs :(
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dhacke:
For that other users must help (or [MENTION=6031898]MartinX3[/MENTION]). I don't use the spyware named gapps on my phones because of privacy reasons.

Sorry.

Just as a little idea: Mayby it's time to say goodbye to Google Apps and Services:D
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
You need to fullwipe your phone before first gapps installation :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] tqttpt:
youre mean cache and data not include system, right?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Cache, userdata & intrrnal storage.

Or just flash the userdata.img again :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] tqttpt:
Hi MartinX3, i fullwipe like you said but i cannt instal gapps, no change when i reboot system :(
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Does the magisk installation work?

I use pico 9.0 64 bit gapps here :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] tqttpt:
no, i dont know why evenwhen i install magisk v18 or v20, the device cannt boot, it stuck at G logo :(
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Did you flashed twrp instead of boot?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] tqttpt:
i installed twrp as recovery thread:

fastboot boot twrp

Install recovery ramdisk

reboot to recovery
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Umhhh

I hope this weird issue doesn't happen because you use an Asia ROM?

Can you decrypt your userdata?

Do you use the .11.3 firmware?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] tqttpt:
exactly its true :)) i use rom for Vietnam and stock version is .11.3

do i need flash stock before flash aosp rom, everytime?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Umh sorry, I had the wrong twrp in my head.

It is just recommended for the security and boot compatibility to flash and boot the newest firmware once before using the custom ROMs. :)

Weird

If you use the custom ROM and custom ROM twrp it should work

Some people here flashed the ROM again after any problem to fix the problem :)

Ah, BTW. Please use slot A if you are on slot B :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
New build is on the way.

Newest code sync with the Sony open devices project.

XZ2 Compact -> now everyone has a working touch.

No new security patch level, this requires backporting and understanding of the code.

If you make a mistake you may open a new security flaw.

Google puts the newest updates into android 10.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
27.10.2019
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] tqttpt:
[MENTION=6031898]MartinX3[/MENTION] "Switch SeLinux to permissive first, restart your device and look if that fixes the issue. (permissive.zip is in the TWRP bundle)."

when i should do it? i want to try the lats time before comeback to stock, haha
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Do you have a specific issue with the android operating system? :P
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] tqttpt:
i dont know, ive tried install magisk and gapps in aosp 3 days but all failed, i remembered that it was susccess one time (install magisk and gapps OK), but i didnt remember how i did it :))))
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
I sadly can't reproduce your weird bug :(

What does the logs say? :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] faXal@21:
Brother can i use gcam on this rom?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Uncle you can, but be aware that the support of the camera hardware is only basic

The new stuff comes only with the Android 10 kernel 4.14 releases this & next year.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Lp26:
OpenCamera has been updated, and now I can't have any decent focus :(
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Did you try the "continuous focus" mode?

And sadly we can't do anything about the camera now.

The further progress will only be in kernel 4.14 with android 10 starting with OEMv2 binary blobs.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Lp26:
The problem is gone now… I don't know why.

Anyway, I could also revert to the previous version.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] rinigus:
As I am getting closer to start rolling out releases of Sailfish for XZ2 (starting with alpha or beta), I wonder what is the status of other Tama devices on AOSP9. Namely, are all of them XZ2, XZ2c, XZ3 working? Dual- and single-sim? There were some patches mentioned for touch on XZ2c. Anything I should be aware of?

[MENTION=6031898]MartinX3[/MENTION], I think you had some patch for fixing clearpad errors. Is it fixing this: https://github.com/sailfishos-sony-tama/main/issues/22 ?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Everything is working, except:

The camera is not great, updates will come with the 4.14 kernel starting with OEMv2

And these bugs

But it is quite a stable experience I use since months :)

About clearpad -> There was TCM fixes for XZ2c users without touch.

As far as I heard the entire touch driver should get a refactoring. Marijn can tell you more. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] rinigus:
Thank you! Camera quality is fully reproduced in SFOS. I am especially proud of flash switching itself off just before taking a photo. Exactly as in AOSP9 for me. :)

Sounds like XZ2c has a different touch driver then, or some of them. I'll ask about it.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
You're welcome! :)

XZ2 and XZ2C have CLEARPAD and TCM (not both at the same time and you don't know before buying the device which one it has).

And the XZ3 is always ATMEL.

https://github.com/MartinX3sAndroid...VERY/TWRP/XPERIA_TAMA/STOCK/sbin/preptouch.sh

Luckily the SODP kernel handles everything, the stock solution is mehhh. :silly:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] rinigus:
Lucky us, indeed! On Sailfish, I will have to specify the touch device as in /dev/input/event3 for my XZ2. In https://github.com/sailfishos-sony-...vironment/compositor/droid-hal-device.conf#L4 . I wonder if all these devices are routed to event3 or are lovely scattered all over the place. I guess, we will see...
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Gabrius99:
Hi, how is this ROM compared to stock regarding smoothness and stability? What is the problem with the camera?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
It has no Sony Apps or Google apps (which you need to install via OpenGAPPS package in TWRP).

It is smooth and stable like the OmniROM ROM I provide.

Camera has just basic support.

The further camera updates coming with Android 10.0 with kernel 4.14 (which may come this weekend with OEMv2 binary blobs update).
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Lp26:
I can confirm the OmniROM (the one I use) is working pretty fine and stable as a daily driver.

For the camera, the main issue is the laggy focus that often fails to get a proper focus (you often need several tries, and a good (contrasted) focus zone). It's still usable, but not comfortable.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Fixes for sound (this clipping & "sprrtzt" bug) and camera arrived in Android 10 with the 4.14 kernel and OEMv2

https://xdaforums.com/showthread.php?p=80978787

These fixes won't get into Android 9.0 with 4.9 kernel.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Lp26:
That's still good to know that it will be fixed :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] BananaJoh:
Does anyone else have trouble getting a GPS position?

I use nanodroid microG with Dejavu location service and OsmAnd/SatStat to check. Everything is set up and activated, permissions are granted. It only shows satellites available, but none of them is used ("0/25"). I already updated AGPS data using SatStat, but still no position ...

BTW: I never turned GPS on/got a GPS fix in the stock ROM.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Here it takes for the first GPS access ever maybe 5-15 minutes

But every further is available in up to 60 seconds

Did you wait this time until doing anything else?

PS: a fullwipe reset the firstly generated GPS data.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] BananaJoh:
Nevermind, it works now. I placed it near a window and let it run for about an hour. It started showing more and more satellites/points in SatStat and suddenly displayed the position.

Maybe the signal was not very strong, so it took a bit longer ;)

Thanks for your reply!
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Yes, that sounds logical

You're welcome and nice, that it works now :D
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] t238z:
Sorry to interrupt,do you know how to determine Xperia official Firmware's corresponding AOSP Branch/Build ID? Thanks in advance.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Just use the newest one :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] ApBBB:
Hello.

During the effort (by rinigus) to port Sailfish OS on the XZ2 Compact Dual -and after installing AOSP to test- we came across an issue that stems from AOSP. The phone is connected to the network, telephony and sms works but it cant use mobile internet.

Any help to solve this would be greatly appreciated.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] rinigus:
Morning,

[MENTION=6031898]MartinX3[/MENTION], let me fill in the details. The issue in question is at https://github.com/sailfishos-sony-tama/main/issues/38

Device is XZ2c/dual, owner ApBBB. Device was just bought, updated to the latest stock, unlocked, and flashed Sailfish (AOSP9 based). After few adjustments (touch device), we have all functionality working with the following issues that were exactly the same for plain AOSP9 (hence we are here):

- 4G network is not working

- On SFOS, reboots on locking (that we have to take later separately).

So, question is how to get 4G network working on AOSP9. Be gentle, we are rather 'green' on Android. If you need logs, let us know how to get them and whether we need to `root` Android for it.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Wow

It works here

Does it work on pure aosp, omnirom and stock?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] rinigus:
Let's focus on 4G net. To my understanding:

- worked on stock with other sim

- does not work on pure AOSP9

AOSP9 was installed with

- http://www.dhsfileserver.de/ftp/Mar...p/2019-10-27_13-41-39_sonyaosp_xz2c_ss.tar.gz

- http://www.dhsfileserver.de/ftp/Mar...al/android_9/sony-dualsim-patcher-v4alpha.zip

- twrp from http://www.dhsfileserver.de/ftp/Mar... Issues/Xperia XZ2 Compact/apollo_twrp_v8.zip to apply 2sim patcher

There are also mystery crashes mentioned, on SFOS so far, but that we better (if we have proof that its on AOSP side) take later.

Would logcat be sufficient for now to look into it?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Logcat and dmesg would be nice

What about omnirom 9.0 and aosp 10.0?

Does it work there?

That's the first time I hear about this issue.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] rinigus:
do you need to root to get dmesg @ android?

don't know anything about omnirom nor aosp10.

should we start with logcat at aosp9 and then proceed from there. [MENTION=10383481]ApBBB[/MENTION] - so, please provide logcat.

PS: [MENTION=10383481]ApBBB[/MENTION]: please check whether my statements in https://xdaforums.com/showpost.php?p=81209055&postcount=1076 are true
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Yes

You need root for dmesg in android

The 2 mentioned ROMs are in the same XDA area

So we can see if the problem is only in aosp9.0

Maybe only on his device :S
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] ApBBB:
What rinigus described is correct. I tried out of the box (stock) with another sim and i could get internet and telephony working.

However we will have to wait a bit since my mobile network provider is having issues with 4G as we speak. I cant even use 4G on my old phone.

Thans for your patience.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Anti-root:
The specifications of AOSP are impressive in their simplicity. It looks like a heavily de-bloated ROM. I have four questions (concerning XCZ2C but I guess an XZ2 would be similar):

1) How is performance compared to the standard Sony ROM?

2) How is battery compared to the standard Sony ROM?

3) Are all features (except camera for which I read all the comments) available and functional? (If one installs the appropriate Google Apps, of course, for some features - I am aware of that; I mean hardware-wise.)

4) If I encounter problem(s) with installation, can I just flash the Sony firmware and I will be back to normal?

Thank you!
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Thank you for the information.

So no sleepless night for me [emoji847]
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
1.) same

10.0 with 4.14 gets even more optimizations

2.) Umh, depends on personal daily usage

3.) No Sony stock apps

Camera works, even better with gcam (needs gapps)

Just there are no quality optimizations

4. Of course as long as you don't kill the bootloader or TA partition you can flash anything
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] rinigus:
Martin, as you managed to escape sleepless night, do you recall any odd crashes fixed recently on XZ2c? I think I am using AOSP9 as it was in the middle of October and there was discussion regarding some reboots that were fixed by V10 (whatever that is). So, I wonder whatever that V10 contained and what were the sources.

(preparing to fix the issue with the reboot on locking the screen in SFOS)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Anti-root:
Yes, thank you, I know. But I asked how it is, compared not to MY use, but compared to the standard ROM... for

anyone

who has previously used the standard ROM and now this. You or anyone else! Of course you cannot compare it to MY use...

Vielleicht ist es besser auf Deutsch.. Wie sieht es im Vergleich zu den standard ROM...

für jeden

, der die standard ROM verwendet hat und jetzt diese.

:confused:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Umh

The entire tama platform is quit similar

Especially the xz2 and xz2c

There is only one rare crash at my side I reported

But it happened once in a month

https://github.com/sonyxperiadev/bug_tracker/issues/455
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
I stop charging at 80% and charge after I reached 15% after a day

I often activate the screen for videos, internet, chat

¯\_(ツ)_/¯
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] ApBBB:
I'll just say that while on AOSP the wake/lock behavior was normal. So this is probably on the SFOS side.

And if martin doesn't feel like sleeping he can always try to install SFOS. And lose sleep for many nights :laugh::laugh::laugh:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] rinigus:
Fortunately, it did sound reproducible on your side. Couldn't make it crash on mine. So, we'll get to that when the rest will click in.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] ApBBB:
The 4G problem was a false alarm fortunately. As it seems the provider had issues at the time i was testing aosp and the behavior i was experiencing was the same with what i was seeing in SFOS. Hence the wrong conclusion.

Apologies and sorry for the noise.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] zackkiara2013:
[MENTION=6031898]MartinX3[/MENTION] i want ask u.. In this rom.. Screen mirroring funtion or not
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Anti-root:
Here is a silly question: I am rooted (XZ2C) with your recovery from the relevant section (

stock

ROM). Everything works as it should! Now, I want to try the AOSP ROM... and I need Gapps. I need to install Gapps with TWRP. But you specify

another

recovery (TWRP) for the

custom

ROM. So, when and how, in the flashing process, I install the recovery for the custom ROM? Or maybe I should not?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
I don't have a device to test
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Just follow the instructions

Flashing boot.img removes any recovery

And nice to hear that everything works
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Anti-root:
But this is exactly the question!

In the instructions you have 1. FASTBOOT and the steps and 2. TWPR and the steps.

You do not mention which TWPR (since you have two versions) OR how it got there.

Can anyone help?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dhacke:
For custom rom use the twrp Version with sodp in the name. The other one is only for stock.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Anti-root:
Thank you for the intervention.

As MartinX3 said, flashing boot.img removes any recovery. So, the recovery for the AOSP ROM has to be flashed. Very nice! In the following efforts I always used the correct recovery, from the site. I also always followed ALL the steps faithfully. So, here are my four attempts (XZ2c):

1) I followed ALL the steps for flashing AOSP, then followed ALL the steps for flashing recovery and Magisk, then rebooted... could not go beyond the recovery initial screen.

2) I flashed firmware again (no recovery, no root). I installed AOSP. Great! Rebooted perfectly. Excellent work!!! Then I tried to flash recovery from there. (I mean after rebooting two or three times I entered "fastboot".) Failure! Fastboot would not listen - although it recognised the device. Would not even boot into recovery!

3) I flashed firmware again (no recovery, no root). I installed AOSP again. Booted in recovery and flashed Gapps and Magisk. AOSP would not boot!

4) Then I flashed firmware again. Then root. Ok! I did my "house-cleaning" and everything works. I will stay like this for now.

Thank you.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] ASMstudent:
I got a red message on boot up that says the device is corrupted and cannot be trusted, shutting down in 5 seconds. I tried flashing sony's sw binary file to boh slots (a&b) but got the same error after trying to boot into twrp.

reflashing full stock fixed the brick.

I have the dual SIM xz2 and flashed the normal xz2 files.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
I use the dual sim xz2 too

Please flash every file and OEM in fastboot properly

Try to boot it first without any modification

If you want to use it later with gapps please do a full wipe first.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] ASMstudent:
Booting up directly worked.

Trying to boot up twrp caused the problem again.

It appears that the problem is booting up in twrp on aosp.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Please follow the twrp instructions carefully.

Of works here.

A correctly installed twrp doesn't interfere with or overwrite anything of the stock firmware.

It lives in its own ramdisk as a independent operating system.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] ASMstudent:
Has anyone tried the xz2 sound system port on xda on this rom.

Does it work ? Does it improve speaker quality or remove the noise?

I would have loved to try, but I've been bricking- unbricking my phone for the past two days tens of times and I've had enough for a week.

Here is the link if someone have the time to give it a try

https://xdaforums.com/crossdevice-d...t-sony-xperia-xz2-sound-enhancements-t3772758
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
What I can say is that further improvements are going into the 10.0 ROM with the 4.14 kernel which requires the new OEM drivers.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] ASMstudent:
Any chance of improving fingerprint latency and device wake up?

I find myself waking up the phone with power button almost 50% of the times for the fingerprint to work.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Yes

In the 4.14 kernel where all the further development goes into

At sodp 10.0 is tied to 4.14
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] ASMstudent:
Can't wait already!

Thanks for your hard work!
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Thank you :)

The team is really hard working. :)

(And is happy about volunteers help coding especially with the kernel)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] wee2000:
i had successfully flash following the instructions, but when my device boots, it stucks on Sony logo. I'm using a H8216 with unlocked bootloader. I tried to revery to stock rom, flashed via flashtool successful, but still stucked at Sony logo. What shall i do now? IS it something to do with the unlocked bootloader? I did read a few pages, but didn't saw any posts similar to my issue..
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
You made a full wipe and used the newest 9.0 stock ROM before?

And you didn't do modifications?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] wee2000:
latest update - i used latest flashtool & my phone was alive again, ill post Q's on another thread regarding AOSP 10.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Just follow the omnirom or sonyaosp instructions and directly after you flashed them , install twrp and the gapps (and maybe magisk for root).

And please update & boot the newest stock firmware first.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
05.01.2020
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dhacke:
But more and more unsecure as Omni 9:D

Sry i couldn't resist:p
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Grrrr [emoji14]
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] wee2000:
Somehow, my device not see any playstore after installing microG. do i just install microG in twrp? is there any other files i missed out?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] wee2000:
i did these, now device booted to system, with twrp

1- flashed full stock ftf

2- then flashed aosp without flashing userdata.

3- I booted up aosp once then shut down the device

4- plug type c cable while holding volume up

5- in fastboot I typed fastboot reboot bootloader

6- after reboot I flashed userdata img I'm aosp

7- without rebooting the device, I typed fastboot boot twrp.img

8- after it booted up I flashed TWRP permanently through TWRP.

9- rebooted to recovery from TWRP and it booted up

10- reboot to system
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dhacke:
Do you installed microG from the microG Website? Then It's logically that there is no Play Store.

microG itself is only a implementation of the play service which doesn't include the Play Store or any other Gapps.

Better install Nanodroid over twrp. It includes microG, Play Store and other goodies and you can highly customize what you want to install.

Plus it takes care about the correct rights because microG and Play Store need to be installed as system apps to work probably.

If you try Nanodroid make sure that you run the Nanodroid Patcher with a success notification in twrp before flash the Nanodroid package with microG etc.

The rom needs to have signature spoofing support for a working microG Installation.

Take a look into the linked Nanodroid thread:

https://xdaforums.com/apps/magisk/module-nanomod-5-0-20170405-microg-t3584928