yashsingh1/xdaforums huggingface dataset:
[Sony Xperia M2] Vtrendzzy:
I encountered a weird bug. After flashing the boot.img made for led bar to work, rom never boots. It gets stuck in bootanimation.

But here's the weird thing, i do a clean flash of the rom. Gapps also. No setup wizard bug. Enabled root for adb only.

Flash the supersu zip, rom doesn't boot at all. Stuck in bootanimation.

For a moment i thought root is not possible with this one.

I've solved the bug now but would like to know what could've caused it.
[Sony Xperia M2] dassalok:
Google camera not working after update
[Sony Xperia M2] Noxialis:
Here's an update on my NFC woes.

For some odd reason, the NFC works on other devices save for my Xperia XA. I just tested it on my mother's Galaxy A7 (2016) and it worked; it beamed the file over. To make sure that the XA wasn't acting up, I sent some files to the A7 using it (the XA) as well and it did.

Now I'm wondering why this is happening ?

A compatibility issue perhaps? Or just the M2 being selective? ?
[Sony Xperia M2] Hrustus:
SafetyNet is working on this build? :)
[Sony Xperia M2] galaxyfreak:
No :rolleyes:
[Sony Xperia M2] bayoe_dork:
Google assistant can not work in this rom how is the solution thanks:confused:
[Sony Xperia M2] glox023:
This exact same thing happened to me, i only get it unstuck by flashing new boot.img and trying to install beta 3 few times.

So now i'm on beta 3, battery drain is almost unbearable but at least it's not freezing or stuck on boot like beta 4.
[Sony Xperia M2] Vtrendzzy:
I'm on beta 4 right now.

But it was difficult to boot. I first had to flash lollipop stock. Update bootloader. Flash latest recovery twrp. Then beta 4. But still supersu.zip said failed to flash. So i had to get 2.79 zip of supersu then root was possible. Even the zip file of supersu is corrupted. You need to unzip it and place files properly then only it gets flashed.

I thought i was the only one with this bug. You might flash beta 4 using my guide.

But tbh, beta 4 is a bit laggy. I installed L speed and set it to performance mode. Yet not that smooth.
[Sony Xperia M2] Th3 Ant:
LinageOS has its own SuperSU zip which is downloadable from LinageOS​ rom website under extras - https://download.lineageos.org/extras

Original SuperSU zip may sometimes cause bootloops...
[Sony Xperia M2] glox023:
Thanks man.I might, but it seems like it's too much of a hassle.Prob. will stay on this one or try just to flash beta 4 over this one until android O(reo) is out or another beta.

Did you get illumination bar to work? i didn't even with boot-led-4 .
[Sony Xperia M2] marco2tiger8:
Everything is working fine in my M2

- Rooting with addon-su or magisk.

- Illumination bar (Music, Charging, and Led on Tap)

- Booting or rebooting (Pressing the power button :silly: or restart menu)

- No lag or freeze.

- Battery is also fine
[Sony Xperia M2] ivankurniawan:
I just installed the beta 4, and now i want to ask.

How to root this rom safely? i don't want to get bootloop. :)

my phone is xm2 dual (D2302)

Thanks.
[Sony Xperia M2] Vtrendzzy:
Yeah. You can let this one go.

About led bar, no. When i flash the boot.img made for illumination bar to work, phone gets stuck in bootanimation.

Maybe there's a proper procedure for that. Maybe you need to put the lights.so file in system first then flash boot.img or vice versa.

If i tried, I'll post the results.
[Sony Xperia M2] galaxyfreak:
Like this:

And then go to Developer options and select Root Access: Apps and ADB.
[Sony Xperia M2] Vtrendzzy:
What about the boot-led.img? Any workaround for that?
[Sony Xperia M2] VladPolskiy:
beta 4

на sony xperia m2 dual отключается 2 sim !!:смущенный:
[Sony Xperia M2] Lavire69:
Only for me phone get hot even on idle with beta 4?
[Sony Xperia M2] Noxialis:
About heat issues:

My phone gets too hot when charging and it slows down to a crawl, forcing me to shut it down just to charge it safely.
[Sony Xperia M2] Vtrendzzy:
Has anyone increased the sound in beta 4? I used one sound mod in the previous beta but i didn't like it. It made phone speaker sound really bad.
[Sony Xperia M2] Noxialis:
All speaker sound increases result in distorted sound, there's just no working around it sadly :/
[Sony Xperia M2] fuadmaksum:
Is that can detect dual sim?
[Sony Xperia M2] cmgr8055:
Sound in game

I need help. I have a sony M2 D2305 with lineageOS beta3 and runs mmuy well but with some games (Subway Surf and Pokemon Go) the audio is badly listened as distorted and slow although the game runs very fluid and without lag alone is the audio that is listened badly. how do I solve it? :confused:
[Sony Xperia M2] JuniorCaesar:
delete
[Sony Xperia M2] gozarudin:
For me on D2305 this beta4 running well

Just sometimes it's so lag when play big game and some app backgrounds job running
[Sony Xperia M2] semil:
Hi, nice rom thx to the dev.

It was a bit choppy first day for me too.. I found that the swappiness is set to 100 and zram is 400 mb wich is too much for our phones in my opinion. I changed it to 45% swappiness and 160mb zram. The lags are effectively gone..
[Sony Xperia M2] Noxialis:
Seriously? I might try that
[Sony Xperia M2] semil:
Yes atleast on my phone with my usage pattern... :)

---------- Post added at 06:38 AM ---------- Previous post was at 06:20 AM ----------

Till now I used the zxperience rom 5.1 , with it 45% swappiness and 120mb zram worked for me best. I tought i raise it to 160 for 7.1.. So these are only guestimates :)
[Sony Xperia M2] gozarudin:
Give me the Tutorial please...

Step by step i think would be nice

---------- Post added at 07:35 PM ---------- Previous post was at 07:25 PM ----------

How to set it?

Please so me step by step

Thanks
[Sony Xperia M2] semil:
-Install and enable SuperSu if You did not yet.

-Install Kernel Aduitor from Playstore. (It works best for me)

In Kernel Aduitor open Virtual memory, enable apply on boot first. Then U can set swappiness to 45. Now this is important! Clear ALL your app pages, restart your phone wait for notification that K. Aduitor finished. Now open K. A. and check virtual memory, swappiness should have stayed 45. Only now with near empty Ram U can easily set zram to the desired size without freezing. Set it and wait for 2 min without using the phone. After another restart you should see the zram size U wanted.

This is my method works on my phone. There are command line metods, the pros could help U with that.. I find this easier :)
[Sony Xperia M2] cmgr8055:
Sound in game

The games run well almost without lag, the problem is the audio I have Clash of clans clash royal run perfect both graphics and audio but subway surf and Pokemon Go run smoothly fluent graphics but the audio is poorly listened a bit slow and distorted
[Sony Xperia M2] semil:
zram update

I did some more testing and research, it appears that the zram size is not the issue. If understood it right the system can reclaim it per need. It can be left at 400 mb. It is the swappiness. I am using now 400mb with swappiness set to 20. Works well on my phone, but im using light apps.

It would be nice if someone with heavy games would try this setting and tell us how it goes..
[Sony Xperia M2] Djalo96:
Anyone noticed that the SIM signal is very poor? Coming from 6.0.1 CyanogenMod where my signal was almost all the time at full

Wysłane z mojego Xperia M2 przy użyciu Tapatalka
[Sony Xperia M2] ruditremonti:
Yes, same here..
[Sony Xperia M2] Djalo96:
Maybe we should try to flash the fixed kernel for sensors? Mine working well but Maybe it can be the trick?

Wysłane z mojego Xperia M2 przy użyciu Tapatalka
[Sony Xperia M2] Umesh1041:
Performance improvements

Hey guys..so...i found a way to improve overall responsiveness of the device..never tested it out on games..so u guys do that...it's simple

Just install any kernel tuner like Kernel Auditor and change CPU governor to interactive..it worked for me ..hope it works for you
[Sony Xperia M2] galaxyfreak:
Update :)

- We've got SELinux to enforcing almost ready :) Hopefully SafetyNet will play along.

- Figured out another way to set correct WiFi MAC, new script is less than 10 lines, so much less prone to errors - not mounting /system, copying from /data and such. Pretty happy with this since stock way was very ugly.

- Couple more things I guess :p
[Sony Xperia M2] Konstantinosj77:
About that change...it may bring an updated WiFi driver too! :D
[Sony Xperia M2] Djalo96:
Any tips for the poor sim signal?

Wysłane z mojego Xperia M2 przy użyciu Tapatalka
[Sony Xperia M2] semil:
I noticed a weaker wifi signal, sim signal is ok with me. Will the new wifi driver solve the weaker signal?
[Sony Xperia M2] ARandomIndian:
If your M2 is your daily driver DO NOT DO THIS

Disclaimer, be careful when doing this but since this is a custom rom thread most of you like to tinker with your devices so I'll put this out there

Okay so I've been messing around with the audio quality (The distortion problem) software did not help much,

So here's what i did, get your phone and wipe the bottom clean with a moist cloth now thankfully and unfortunately Sony used ****ty glue on the M2's speaker mesh, so simply put your finger on the middle of the bottom speaker and move left to right and when the speaker cover loosens and moves to the right grab the extra part with your fingers and remove the metallic mesh

Now the second part grab a toothpick or pin or something similar and remove the cover which will be below the metallic mesh,

Now you should see an empty hole for the speaker and mic - That's it. Improved sound clarity and loudness.

______________

Concerns?:-

I think it should effect you if your phone is waterproof - BUT a XDA user has said that it is still working and water proof (More like spill proof not 100 meters below sea)

Hey but that's just a random XDA user so take it with a grain of salt - it could be true or bull****.

(Don't forget to keep the mesh and cover if you'd want to put it back later.)
[Sony Xperia M2] gairola.gg@gmail.com:
Lineage OS 15 ROM when it was release,I hope you make LOS 15 built for d2302 Come soon... Thx
[Sony Xperia M2] xazakasrizava:
Mine came off by accident about two years ago and the speaker has instantly sounded better ever since.
[Sony Xperia M2] ARandomIndian:
Yeah i was surprised how much louder and better it sounds, granted i always expected every phone with a mesh on the speaker to sound not as well as without the mesh but this was a whole another level

Kinda disappointed that they did not use proper adhesive though the M2's unibody is pretty good such a shame the mesh was pretty ****ty,

Especially considering that the adhesive would not cost even a buck and would be a major quality of life improvement.
[Sony Xperia M2] galaxyfreak:
HELL YEAH. Spent 3 days on this but here we go. Passed SafetyNet - No Magisk needed.

Get your Snapchat dog filter ready!
[Sony Xperia M2] Lavire69:
So... When RC1?
[Sony Xperia M2] Th3 Ant:
Daayum... Hope to see it soon

PS: will the same fix be applied to RR?
[Sony Xperia M2] Konstantinosj77:
When it's ready.

All ROMS will get it :)
[Sony Xperia M2] jobinrjohnson:
That was really awesome.
[Sony Xperia M2] JuniorCaesar:
Man they used 2 layers of adhesive to protect the phone, i removed it right now and just put the grill. Couldn't be happier, my phone is screaming right now.

And now i can hear my ringtone at outside :P
[Sony Xperia M2] ARandomIndian:
I'm glad this worked for you; I wouldn't recommend pealing it to much on and off though,

Also no fam maybe you lucked out or take really good care of your phone but the glue which used to stick the mesh and cover were absolutely **** quality, not just my anecdotal experience many had it,

But I'm glad yours is sticky as ever :good:
[Sony Xperia M2] JuniorCaesar:
Yeah, i really take care of my phone because it was my dream phone in 2014, still loving it (except camera) :P
[Sony Xperia M2] ARandomIndian:
Latest ROM is pretty amazing you guys

Greenify privileged mode along with battery forced efficiency (in battery settings) also disable automatic allocation

Standby of course and push notification works

You can get even longer times if you use the system greenify mode which is available in the donation pack I bought it but never tried using it I am kinda worried it will break calls and other stuff but I'll post a safe list of system service to disable soon
[Sony Xperia M2] Vtrendzzy:
It worked. Thank you.

I removed the mesh from the bottom hole. Both layers came out and sound was on; i could literally hear the loudness.

I tried to stick back the mesh but it didn't work so i threw it in the trash.
[Sony Xperia M2] semil:
I did this like a year ago. I glued the mash back with some superglue. My speaker is still ok so its a good mod. :)
[Sony Xperia M2] ARandomIndian:
Im glad it worked for you,

Guess you and me had the same problem with the ****ty glue, though you can try using super glue for better results,

But since you threw it in the garbage, no problem I guess? :good:
[Sony Xperia M2] Vtrendzzy:
I use this phone only at home. More like a tablet. So i don't think this may become problem.
[Sony Xperia M2] TheBlueBlur:
Can I ask you something? Where did you get that navbar buttons? I like pre-nougat buttons more. Is it one of substratum themes or something like that?
[Sony Xperia M2] ARandomIndian:
I think its stock lineage, isn't it? I never messed around with button design,

If not its substratum I bought the A Swift Dark Theme 7.1.1

100 rupees or something which is 2 dollars or less then 2 euro/pound though I've heard its a little more in other countries but I think its really worth it
[Sony Xperia M2] gozarudin:
I'm running on beta4

I try to install magisk and it's installed successful

But when i try to run safetynet check it's stuck on process

Do i mess something?

See screenshots
[Sony Xperia M2] Lavire69:
Substratum work on LineageOS?
[Sony Xperia M2] Th3 Ant:
Yes, you do... next update.

SafetyNet is broken on every custom ROM for M2. We are waiting for new update which hopefully fixes it (see screenshot some posts earlier)
[Sony Xperia M2] ARandomIndian:
Yes.
[Sony Xperia M2] Vtrendzzy:
What is safety net and magisk?
[Sony Xperia M2] Th3 Ant:
SafetyNet - https://developer.android.com/training/safetynet/index.html

Magisk app - https://xdaforums.com/apps/magisk
[Sony Xperia M2] basem_ym:
D2302, BETA 4

After 3 weeks of usage I changed ma mind.

I won't change this ROM until my phone die.

This ROM is really f*cking goooood.

Battery lasts for 9 hours of usage,COC,FB,WA,INSTA, I use a lot of apps.(with modified interactive governor)

Maybe it would last for 365 days if I didnt touch the phone.

0 lags, Fast like F16, multitasking is on fire.

Sound is very nice very clear and never disorted even at 100%

Super fast charging on my broken usb jack,I wounder how fast it would be if I fixed it ?

Really nice ROM I loved the new QS drawer, it feels like you have a galaxy S8+ ?

Bugs I found:

* Camera is disgusting, but selfi camera is really great

* sim cards are messed up sometimes.

* weak wifi hook up

I dont know if this related to the ROM itself:

I am using SuperSU

Greenify for example takes about 10 second to greenify apps(I use hibernate now shortcut)

On lollipop I used to intergate updated system apps to system to save some storage by lucky patcher and it worked on this ROM for a while but now when I intergate updates the apps are gone.

I found that lucky patcher intergates the updates, but only rw- permissions is given. IDK ?

ES Explorer was working fine with root

But now it always say "test is failed"

Overall this ROM rocks!!!!

My M2 transformed to machinegunnn!!!!

Thank you galaxyfreak and kj77 all the best guys

========Edit=======

Right permissions are given 0644

But the apps just do not work or appear in launcher

It seems the apk file is interrupted after the intergation

I dont know why this happen, any help will be appraciated
[Sony Xperia M2] JuniorCaesar:
I am agree with you, rom is perfect

Also, did you try to move apps onto priv-app?
[Sony Xperia M2] ARandomIndian:
First off use LineageOs root add-on it offers the best and quickest compatibility,

For camera flash PMS camera mod the latest one (Makes camera better then stock)

Lastly don't use Lucky patcher I heard its a shady app if you care for privacy, but then again if you cared for privacy I guess you wouldn't have rooted
[Sony Xperia M2] basem_ym:
Today I found some stuff

No problem with moving apps to system whichever to app or priv-app

The problem only occures when intergating updates

I moved busybox installer successfully to system/app without errors

But when I entergated youtube the app is gone

com.google.android.youtube folder is created in system/app and the files are there with right permissions, but the apk file seems to be badly corrupted

Tried to intergate GMS which is located in priv-app

Same problem with non stop FC's

Thats all I know

---------- Post added at 07:12 AM ---------- Previous post was at 07:02 AM ----------

Thank you I will try the camera asap

The root addon feels like its sick

My phone needs reboot after every root permission I give, not good at all

Lucky patcher is very helpful in managing and cloning apps

I dont trust those patches I use it only as app manager
[Sony Xperia M2] christophebeuvry:
link for pms camera mod

Please, have you a link for PMS camera mod ?

I don't find.

Thanks.
[Sony Xperia M2] ARandomIndian:
I already responded to your pm but Here

https://www.androidfilehost.com/?fid=24591000424941310

Its made by Prathemesh as the title would suggest amazing camera app
[Sony Xperia M2] JuniorCaesar:
As i know, when you install an app, android splits them into an additional folder on /data/app folder (as you can see on pic,i just installed apk, didn't added folders)

So my suggestion, download newer apk's from internet and overwrite old version
[Sony Xperia M2] Noxialis:
I have another suggestion for installing apps to system:

-Download and install desired app

-Go to /data

-Copy the desired app folder

-Paste or move it to app or priv-app

-Set folder permissons to 0755 and file permissions to 0644

-Profit

If in case you are not rooted and still would like to move apps to system, you can do this method using TWRP's File Manager. Tedious yes but worth it in the end.

Just don't forget to delete the moved app from /data so that it can create new files
[Sony Xperia M2] basem_ym:
Thats right

The files I mentioned above are the files located in arm folders

I think there is something with my ROM :eek:

I cant delete any file from sd card.... Things are getting more complicated

Maybe its time for a new clean flash,but my usb jack is broken. Flashing stock IS A REAL PAIN for me, thats why I posted my problems

Thank you mate

---------- Post added at 09:05 PM ---------- Previous post was at 08:57 PM ----------

TWRP was my solution for moving apps.

But I am the laziest human on the earth, I really hate setting permissions for apps like GMS

Too many files to set

Lucky patcher does all this bloody work itself

And another thing I DON'T move apps to system, I just intergate google and sony apps updates to system which is my the whole problem here

Thank you guys i really appraciate your help

Just one question do you have that SD card problem?

---------- Post added at 09:10 PM ---------- Previous post was at 09:05 PM ----------

PMS is superb thank you :o
[Sony Xperia M2] Noxialis:
[MENTION=6807771]basem_ym[/MENTION] - What SD card problem? o.O

Then again, I don't have a spare SD card and I keep swapping my main phone's SD card to and from this phone :/

Integrating updates huh... Can you explain it further? I feel like I'm thinking of something else ?

Oh! Not being able to delete anything? That may be a corrupted or "dead" SD card. I experienced that with a Sony SD card I bought last year, it lasted me a good 3mos. or so before it decided to f__k all and lock itself ? The files are accessible and usable, just not deletable. At all.
[Sony Xperia M2] basem_ym:
When you update "system" apps like WebView for example.

The new apk is installed in /data/app

Not in system/app

Intergating means replacing the old apk with the new one

This means:

Deleting the old apk in system/app and moving the new one from data/app to system/app

Why do I do that?

Just to free space

Because every app you install in data/app eats some of internal storage (media storage)

You can see that I have more than 800 free mb in system storage

Why not to use it??
[Sony Xperia M2] basem_ym:
All the problems I faced above have gone, after flashing LOS root addon

How? I dont know. WTF!!!

But every thing is working as they should now
[Sony Xperia M2] mohtabbaa:
Q

i had not use tech for 1 year cuz education .......so does it need Unlocked Bootloader? :confused:

and does it stable for root apps and heavy games?????

And Thx:D:p
[Sony Xperia M2] galaxyfreak:
I guess the education wasn't in English.

Yes, it does.

Heavy games in 2017 on a 1GB RAM device? It will run, somehow.

You are very welcome.
[Sony Xperia M2] karlmorgan92:
One question, is NFC working? I haven't had the chance to try it on different devices, only on my sister's galaxy s5 and it didn't work, don't know if it was my cellphone of hers. Besides that, everything works really really good. Good job devs.
[Sony Xperia M2] Arceus99:
how to pass safety net test and play pokemon go on this rom
[Sony Xperia M2] galaxyfreak:
Next build will pass SafetyNet! Soon! :)
[Sony Xperia M2] TheBlueBlur:
Does Pokemon GO care about anything else than SafetyNet? By that I mean is there gonna be any need to use systemless SuperSU, Magisk or turn off root to play the game.
[Sony Xperia M2] galaxyfreak:
SafetyNet itself cares about root.

You'll need to turn off root in Developer options.
[Sony Xperia M2] tromine:
Yes, NFC does works, I use it with the TagMo app and it's fine.
[Sony Xperia M2] robgee789:
hey guys ive been using this rom for a few days and it is a really nice rom but the only 2 issues i have found are the sound on guns of boom is weird, its like its slow (but no worries really) but the main issue is the buttons on my headphones no longer work to start and stop music or change the volume. is this something i have done or is it the same for everyone?
[Sony Xperia M2] Th3 Ant:
About the sound... If you are talking about that slowed down, broken sound in some games, try deleting/renaming file:

android.hardware.audio.low_latency.xml

which should be in:

etc/permissions

That sound is broken due Unity bug...
[Sony Xperia M2] mohtabbaa:
thx screen shot please? does support 7.1.2 API ? is it fast as Z5 style ?
[Sony Xperia M2] robinhad:
Hi! Today I encountered a problem on M2 Dual.

Steps to reproduce:

1. Turn on mobile data.

2. Call someone.

3. Talk for a while.

4. Walk around to place where 2G signal become stronger than 3G and that situation make your phone to change network mode.

5. Call ended because of network drop, phone doesn't receive mobile signal for a while.
[Sony Xperia M2] UTI0:
Does someone know why is this happening
[Sony Xperia M2] Lavire69:
At first try re-downloading ROM
[Sony Xperia M2] galaxyfreak:
I guess you're using outdated version of TWRP.

Download latest one here: https://xdaforums.com/xperia-m2/orig-development/recovery-twrp-3-0-1-0-t3570670
[Sony Xperia M2] kimoVoid:
Do i need unlocked BL? cuz i have the "Allow bootloader unlock: NO" problem
[Sony Xperia M2] Nitin69:
Unlocked Bootloader is a must
[Sony Xperia M2] glox023:
Today i replaced my SIM with 4G compabitable SIM, and preffered network is set to LTE but i'm getting same speeds as with 3G, above signal icon is H+.Has this something to do with ROM or is it something else? i'm on Beta 4.
[Sony Xperia M2] semil:
I think its because of the network.. Are you on MTS? On MTS my new nokia 3 does H+ only too..
[Sony Xperia M2] glox023:
Yes, i am.but i remember they boasted how we have 4G network now you just need new SIM.
[Sony Xperia M2] semil:
Well I think it also depends on your geographic position and how busy are those few radio stations. You might have 4G in most of Belgrade.. In practice here in Subotica there isn't any. :rolleyes: