yashsingh1/xdaforums huggingface dataset:
[Sony Xperia M2] FunSucker:
Reviews (DS) :

1. Hotspot portable active but error (pict on attachment)

2. Proximity always blinking on lockscreen.

Thats worked for me, sir. Remember, 2 build.prop must be edited, system/ and vendor/.
[Sony Xperia M2] methuntt:
Whats about battery?

Is it improved compared to lollipop and marshmallow?
[Sony Xperia M2] stasiulc:
CM is much faster than omni
[Sony Xperia M2] iHusky:
I must wipe data, cache, dalvik cache and system first or only data, dalvik cache?
[Sony Xperia M2] Timur208:
Rom is not bad, but LiveDisplay does't work
[Sony Xperia M2] ARandomIndian:
I think it wipes /system any way you can flash over it but It's recommended that you do a clean install going to different versions.

PS. [MENTION=4635923]galaxyfreak[/MENTION] Please fix Live Display whenever the next update is, really miss that feature.
[Sony Xperia M2] luigioctaviano:
Upgrading mode.

I'm from omniROM 7.0

Do I need to do the first steps again or just wipe then flash?
[Sony Xperia M2] prismaanandito:
Thanks for the update! Btw is it okay to backup apps data from ext4 and then restoring in f2fs?
[Sony Xperia M2] Konstantinosj77:
Yes it's ok.
[Sony Xperia M2] Lojzo_11:
Setup Wizard keeps stopping ...
[Sony Xperia M2] prismaanandito:
same here
[Sony Xperia M2] Th3 Ant:
Fresh install? With gapps? Did you installed them right after ROM or booted and then flashed it?
[Sony Xperia M2] prismaanandito:
I install from Omni after factory reset and wiping. Install LOS+pico and then changing the /data and /cache to f2fs with ticking the rm -rf and already have the updated TWRP. Is there something that I missing? :confused:
[Sony Xperia M2] Th3 Ant:
You didn't reboot into system between flashes or something like that?
[Sony Xperia M2] prismaanandito:
Nope. Did it work on your device?

---------- Post added at 04:04 PM ---------- Previous post was at 03:56 PM ----------

Nevermind. I skip the setup by pulling the notification bar and turn on the wifi. I guess it just the connect to wifi dialog problem.
[Sony Xperia M2] Th3 Ant:
Yeah, that's the fastest solution. Also, try this if it happens again
[Sony Xperia M2] robinhad:
Will SDCardFs just work out of the box?
[Sony Xperia M2] galaxyfreak:
Yes!
[Sony Xperia M2] bothered:
Beta 3 had great battery life, I'll give beta 4 a shot but if battery life is not as good can I go back? I've heard battery life is tricky on older phones
[Sony Xperia M2] ARandomIndian:
Only bug I encountered is most probably a Lineage related and not build error, enabling app protection in privacy guard in settings,

So basically no problems!

I did a full clean wipe to test builds and other stuff so I'll let you guys know if I find anything,

Btw Bluetooth connectivity is way better now, feels just like stock
[Sony Xperia M2] f2065:
The sensors (Orientation and Magnetic/Compass) do not work in this kernel!

In old beta3 - sensors work.

In LineageOS beta4 - sensors not work!!!

Globally broke the sensors in all the firmware :(

Some error in the kernel for all latest firmwares

D2403 rev5.
[Sony Xperia M2] ARandomIndian:
It does work just tried it, I clean flashed if it matters
[Sony Xperia M2] f2065:
I have D2403 Rev5 (M2 Aqua New).

I always clear all memory (using TWRP) - / system, / data, etc, before flashing.

I checked several times - in LOS beta3 - replacing boot.img via fastboot

With the original boot.img (from 2017-03-11) - all sensors work.

With bt-mac-test-4.img (from 2017-04-19) - the sensors do not work.

in LOS beta4 - the sensors do not work.
[Sony Xperia M2] iFlashed:
I think you have alt sensors like ne. Unfortunetly I cant test the rom due to final exams but next week I will test

Enviado desde mi Xperia M2 Aqua mediante Tapatalk
[Sony Xperia M2] prismaanandito:
Thoughts on beta 4:

- All sensor, Bluetooth, and wifi MAC are working good in d2305

- I notice that the "Use rm -rf instead of formatting" settings everytime I go to twrp is always going back unticked (f2fs). Is it okay with that?

- I love that the old aosp browser is replaced with jelly on this build; too bad that long pressing any link will crash the browser

- I do notice a slightly faster speed while opening apps that located in external shared storage in f2fs

- And the most important thing, haven't got any force-closed with 60apps installed, thank you for the new build Konstantinosj77 and galaxyfreak! :good:
[Sony Xperia M2] eldrenemsr:
I have the latest TWRP and flashed the rom, but for some reason I don't have the f2fs in the change file system option.

edit: ok I thought I was using the latest twrp but I checked and I have the 3.1.0.0 build 1. Installed the build 2 and fsf2 showed up.
[Sony Xperia M2] Princerapopo4:
All sensors worked fine
[Sony Xperia M2] Konstantinosj77:
As you can see there are no changes regarding sensors in latest kernel https://github.com/kj77/android_kernel_sony_msm8226/commits/stable

A dmesg would help....
[Sony Xperia M2] ghadeerprince:
hi

setup wizard keeps stopping even after doing the solution u suggested

any idea?

edit: it worked after i connected to wifi from settings
[Sony Xperia M2] marco2tiger8:
Beta 4

- I know the update will come ;) When galaxyfreak said Konstatinosj77 on holiday and saw Konstatinosj77 online 2 or 3 days ago. :good: I will install and see how is the update.

- My only problems on beta 3 are wifi signal strength, application that use multicore seems to be slower than stock, and of course mac address (minor issue because only me with no real mac address around me :D )

Applications that I thought slower are PPSSPP (27-30fps on stock. 20-30 fps on LOS. This fps is under this conditions: the game is Dissidia Duodecim FF, small and flat map, and no magic effect). Just installed Beta 4. And the result is amazing. I got over-fps often! Even when doing Omnislash Version 5 the fps still at 30-35fps (on stock ROM the fps is dropped when doing this skill.) :D

Antutu benchmark on UX score but forgot which sub-score that has low score (I think it's runtime score) and a Patching app.

Before people start replying with out of topic replies, yes, it's THAT patching app (I don't use it anymore if you are curious, I use it when I got this my first phone and want to try many apps, but I don't use it anymore because I only use Line and PPSSPP now). But I don't talk about its use, but the performance on patching stage is a lot lot slower than stock, and I thought similar app with the same method or process (example: game online installing an update patch or batch process​) will be slower too.

It's no big deal issue because I can use stock rom. I just wanted to say my opinion.

Doesn't matter anymore, this phone main purpose is to play PPSSPP. :p

- a few days ago, I can't wait for beta 4, tried to compile the zImage with f2fs support and add it to recovery and boot.img. I was hoping that Beta 3 had f2fs support and tried it, but unfortunately no. Fortunately, beta 4 is out :laugh: :good:
[Sony Xperia M2] luigioctaviano:
Does the Google Camera issue fixed in the new build? Thanks :)
[Sony Xperia M2] Otaku-San:
Tested it right now, and everything seems to Work fine.

As some People here already said, the Setup Assistant is crashing everytime,

The Solution for this is to Access the Settings (Yes, the Statusbar is working) then turning on and Connecting to a Wireless Network, after this going Back into the Setup (After Connecting to a WiFi, the Statusbar isn't "working" anymore) and then it won't crash anymore and you are able to complete the Setup without facing any Errors/Force Closes.
[Sony Xperia M2] marco2tiger8:
Do everyone mean initial device setup such as login google account? If that setup assistant, it's working fine in D2305.
[Sony Xperia M2] T1Rick:
Yeah. It`s helps. Thank you. But I have another problem - If I try use backup from Google account: Setup Assistant crashed. (Phone: D2302)

Thanks Konstantinosj77 and Galaxyfreak for this awesome ROM. But internal/adopted storage still not working on my phone (D2302). F2FS not working too. After formatting SD Card to F2FS I see "SD Card corrupted..." on notification bar.
[Sony Xperia M2] dassalok:
How can i reduce the brightness of display below system minimum
[Sony Xperia M2] Lavire69:
Possible Snapchat fix

If Snapchat crash at start on your phone and you have newest Magisk installed try to reflash to v11.6 and enable in Magisk Manager in options "Only Core Mode" and reboot device. This will probably fix any problems with app.
[Sony Xperia M2] etharros:
OTA Updater

Hello, I want to ask about OTA Updater - Can I update for example from "Beta 4" to "5" via OTA Updater? Or I must every time use TWRP when new version will appear?

Thank You for this ROM, good luck!
[Sony Xperia M2] JuniorCaesar:
Install rootdim
[Sony Xperia M2] Koden:
I read somewhere that the Nougat beta developement has officially been closed so they can work on the Android version O and the last version they released is 7.1.2. Does that mean that this may be our last update for Android N, or there may be more for bug fixes or something like that?

Working fine on my M2 Aqua (D2403) btw, it runs smoother and the battery life is impressive compared to the stock 5.1.1.
[Sony Xperia M2] DogeRom:
On newest version only back button from navbar works. D2303
[Sony Xperia M2] galaxyfreak:
You need to format data & cache to F2FS not SDcard.

I've played with Magisk and couldn't get it working. If you succeed, please report here.

No OTA updates, sorry.

That's refering to Nexus Nougat Beta program. No worries, we'll keep Nougat alive until Android O gets released, and runs stable enough to depreciate Nougat.
[Sony Xperia M2] Koden:
Ok galaxyfreak, thanks for taking the time to reply so soon, and thanks for making us mortals not feel limited with our stock firmwares. :)
[Sony Xperia M2] Noxialis:
Any word about NFC? Still not working for me and I have no idea why
[Sony Xperia M2] Konstantinosj77:
Can you give a better description of the problem? Does it turn on/off? It fails at reading a specific type of cards?
[Sony Xperia M2] Noxialis:
Well, it can't communicate with my other phone.

I keep trying to send content via NFC (Android Beam), it just doesn't work.

Not even sure if it turns on, I mean, the tile lights up and all but I don't see the NFC icon in the status bar.
[Sony Xperia M2] ScreamxD:
Derrepente se lagea en D2305

Y las actualizaciones por el menú de opciónes no funciona
[Sony Xperia M2] f2065:
What to do with memsic-sensors (orientation, compass) on M2 Aqua rev5 ?

- the boot.img from March 11 - the sensors are working ok.

- the boot.img from April - the memsic-sensors do not work.

There are a lot of differences in the logcat related to this. In the March kernel (where the sensors work), there are many lines about memsic:

I init : type=1400 audit(0.0:4): avc: denied { execute_no_trans } for path="/system/bin/memsicd" dev="mmcblk0p26" ino=32168 scontext=u:r:init:s0 tcontext=u:object_r:system_file:s0 tclass=file permissive=1

I memsicd : type=1400 audit(0.0:5): avc: denied { append } for name="memsicd.log" dev="mmcblk0p29" ino=49813 scontext=u:r:init:s0 tcontext=u:object_r:sensors_data_file:s0 tclass=file permissive=1

I memsicd : type=1400 audit(0.0:6): avc: denied { ioctl } for path="/dev/input/event9" dev="tmpfs" ino=7525 ioctlcmd=4506 scontext=u:r:init:s0 tcontext=u:object_r:input_device:s0 tclass=chr_file permissive=1

I memsicd : type=1400 audit(0.0:11): avc: denied { ioctl } for path="/dev/input/event0" dev="tmpfs" ino=6123 ioctlcmd=4506 scontext=u:r:init:s0 tcontext=u:object_r:input_device:s0 tclass=chr_file permissive=1

In the April kernel - about memsic there is almost nothing. Probably the memsic-service is not running?
[Sony Xperia M2] alleebg:
[MENTION=4635923]galaxyfreak[/MENTION]

Before flashing rom and gapps, the factory reset is enough?

Something in advanced wipe?

Thanx
[Sony Xperia M2] Konstantinosj77:
For those who have problems with their sensors, flash this kernel
[Sony Xperia M2] galaxyfreak:
Factory reset is enough. Nothing in advanced wipe.
[Sony Xperia M2] jobinrjohnson:
Any updates on the light bar (a led strip just below the screen). It won't work in any of the custom ROMs

Is it mounted under /sys/class/leds/ or somewhere else as a character device
[Sony Xperia M2] galaxyfreak:
This is something some users can try to help and "solve the puzzle"!

Let me explain illumination LED a bit.

it's "mounted" under

in there, there are 9 nodes:

In there, you write value 0-255 in hex.

Where's the problem?

The nodes are pretty cryptic. Kernel driver does nothing but creating those files to be accessible via userspace.

How stock ROM uses it? We have no idea, since illumination binary and framework are closed source.

What we can do is play around and try to figure out how exactly it works.

One is enable/disable, 3 are for color (R,G,B?), one is for pulse mode, one is pulse speed, and so on.

"echo" the values to the illumination nodes and try to figure out patterns of how it works.

I haven't been able to figure them all out. I'd get to "ohh okay, I see how this works." and then try something, and it breaks all I thought I knew about it till then. :p

For a starting point, you can take a look at this file and see some combos:

https://github.com/sergiocastell/Xperia-Z5-STYLE/blob/master/common/script.sh#L67

[MENTION=4787101]linuxct[/MENTION]

In current builds, we disabled illumination driver since it not working - if you have time, and want to play around with it PM me I'll send you boot.img with illumination driver enabled.

When, and if we figure out what each on those inputs do - I can write lights HAL that will take advantage of it.
[Sony Xperia M2] linuxct:
Hi,

I remember while playing around with the LED strip to get it working in MultiRecovery, my approach was creating some PNG's containing the colors I wanted, opening them inside the Album app while running any stock-based ROM, and then cat-ting the values of the illumination nodes to text files, recursively for all nodes. I made a simple script to automate that, which was something similar to this:

#!/system/bin/sh

mkdir /data/media/0/colors_$(date +%Y%m%d_%H%M%S) && cd /data/media/0/colors_$(date +%Y%m%d_%H%M%S)
cat /sys/class/illumination/0 > 0.txt
cat /sys/class/illumination/1 > 1.txt
cat /sys/class/illumination/2 > 2.txt
cat /sys/class/illumination/3 > 3.txt
cat /sys/class/illumination/4 > 4.txt
cat /sys/class/illumination/5 > 5.txt
cat /sys/class/illumination/6 > 6.txt
cat /sys/class/illumination/7 > 7.txt
cat /sys/class/illumination/8 > 8.txt

I'd then copy that script to /data/local/tmp/whatever.sh and execute it in an elevated ADB shell, as soon as the LED bar turned on while browsing through the images in my gallery.

You can also have, as in the MultiRecovery script, the following values as examples, just like [MENTION=4635923]galaxyfreak[/MENTION] pointed out.

Blue:

Magenta:

Green:

White:

As you can see in the examples above, the nodes 6, 7 and 8 seem to represent RGB in an unknown order, whereas node 4 (which for an unknown reason to me, needed to be the last in the list while echoing the values) represents something like being turned on/off with a intensity(?). I'm not sure, but you can have those as reference.

I wish I could help, but I don't own this device anymore. I'd still would like to take this opportunity to thank both [MENTION=4635923]galaxyfreak[/MENTION] and [MENTION=4550509]Konstantinosj77[/MENTION] for their amazing job maintaining this device's community. All the best.
[Sony Xperia M2] methos_276:
Seems ok after flashing kernel provided by konstantinosj77 :good: battery much better coming from LOS 7.1.1, congrats to the dev and respect for his work, don't think my M2 worked so smooth since CM11 ... Keep up the good work
[Sony Xperia M2] galaxyfreak:
Illumination bar up & running.

Works same as main LED indication:

1) Charging - always on

2) Notifications - blinking (main LED is blinking bit too rapid, so I've set illumination bar a bit slower)

It doesn't do anything with music & gallery. Those are features of Sony apps and framework.

Consider it impossible. Technically possible, but way too much time and work for something without real value.

We're going to implement this in future builds of all currently active ROMs (LOS, Omni, RR), but before we do, here's a strawpoll for you guys - should I make Illumination bar on or off when charging?

Vote :) http://www.strawpoll.me/12992880

If anyone wants a test ride, here it is

- /system/lib/hw/lights.eagle.so

- boot.img

--

Got it mate! ;)

Thank you for still sticking around!
[Sony Xperia M2] JuniorCaesar:
whoa, that was fast :D

can we use this boot.img for omni?
[Sony Xperia M2] Konstantinosj77:
Nope, but will upload a kernel for omni soon ;)
[Sony Xperia M2] linuxct:
Amazing, very happy to see that you got it working in the end [MENTION=4635923]galaxyfreak[/MENTION] :highfive:
[Sony Xperia M2] molnartibor:
oh, i even forgot my phone had an illumination bar (actually for me it stopped working even on stock rom sometime around the kitkat update, maybe its dead already)
[Sony Xperia M2] jobinrjohnson:
It was just awesome. Finally you nailed it.
[Sony Xperia M2] xazakasrizava:
After using the new build for a few days, all is well except that sometimes the phone just freezes while using messenger, Facebook and YouTube. I realize that those can be demanding apps but that would not happen in the previous build. Any ideas?
[Sony Xperia M2] ScreamxD:
That happens to me too
[Sony Xperia M2] robinhad:
I have similar issue.

Also photo camera in Messenger don't work, video there work fine.

I read somewhere that camera could be kernel issue with transparance.
[Sony Xperia M2] ARandomIndian:
Mfw I see liiumination bar fixed

Well done fam that's all I can say right now
[Sony Xperia M2] :
How to play Pokemon GO with this root? I have Magisk root and Magisk Hide enabled with Pokemon GO checked, the root checker that Ihid root from doesn't detect root but I still can't pass the safety net test. Is there a possibility to play it on this rom? Do I have to come back to the original ROM?:(
[Sony Xperia M2] ARandomIndian:
Wait till they update and change SElinux to enforcing that and a little tweaking should work or at least will work with Omni

Safety net is garbage don't get me wrong I believe things like Banking apps and Android pay ect should use BUT when you see apps like Netflix and Pokemon go using it you lose your ****.

Safety net is known for tripping even if you have a stock but unlocked Nexus! Also is known for tripping on custom roms because of changes to /system but Omni might do the trick,

Lastly don't get your hopes way to high since it also trips for a lot of other things like root for example device certifications and more

I'll be working on it once it's enforcing to even have some chance but I don't think it will work,

PS. Magisk method only works if your device is already certified in (Playstore/settings/device certifications [CERTIFIED]

Basically the magisk method is for people who already have e a certified device but want to hide root in order to bypass safety nets trigger on root
[Sony Xperia M2] galaxyfreak:
[MENTION=6997149]ARandomIndian[/MENTION] yeah, well said... but how do I explain it.... Why do you think I suddenly fixed illumination bar LED? Because SELinux procrastination.
[Sony Xperia M2] Konstantinosj77:
And I work on camera framework...trying to understand how sony does it in stock ROM...We can do SElinux tomorrow...or the day after..or..:P
[Sony Xperia M2] mantazzo:
Giving the "soon™" treatment? :D

Anyway, I'd like to ask people using this updated ROM - any feedback on battery life? Multitasking? Any strange problems? Also, how's the camera and also, is the camera button now working? I'm still sticking with CM13 (android 6) because I use way too many Xposed modules, but I'd like to know the info for future reference, when I decide to update.
[Sony Xperia M2] Noxialis:
Camera button works as it should, not like Sony's but it works on apps. The 1st stage for focusing doesn't seem to work but it could just be the app.

Battery is great, even when I leave the WiFi on the battery doesn't drain as much, I wonder how good it is when a new battery is installed.
[Sony Xperia M2] jobinrjohnson:
Illumination bar tweak

If you want your illumination led to work when the device is playing sound

copy this file to

/system/etc/init.d/

and restart your device

don't forget to use the modified kernel with illumination led support.

I tried to run this from init.rc but it says selinux domain not defined. But this works.

Download

Sources
[Sony Xperia M2] ARandomIndian:
Very nice work! This is really good for me i listen to music in the dark at night and when i want to change songs or playlist It's hard to find my phone,

Props to Sony for making the LED strip so energy efficient too! Practically consumes no energy,

Well done fam
[Sony Xperia M2] Th3 Ant:
Does it work on RR? I've already copied the file with rwxr-xr-x (755) permissions but the bar doesn't light up for me. I've already tried Play Music player and YouTube - both displaying track title in QT. Also navigation bar visualizer is working (so system sees that something is playing).

Am I doing something wrong or that file does not work in RR rom?

EDIT: Executing file with Kernel Audiutor fixed that [emoji14]
[Sony Xperia M2] iFlashed:
Just finished installing the new build. Everything is working fine for now. Good job!! [MENTION=4635923]galaxyfreak[/MENTION] [MENTION=4550509]Konstantinosj77[/MENTION]

Enviado desde mi Xperia M2 Aqua mediante Tapatalk
[Sony Xperia M2] jobinrjohnson:
This will work on all ROMs but you should have the kernel with the illumination led mounted. I tested it on lineage os.
[Sony Xperia M2] Th3 Ant:
Yup, as I wrote in previous edited post - it does work in RR :D

I just had to execute it manually [emoji14]

Great work :)
[Sony Xperia M2] iFlashed:
Didnt you have an Aqua? Illumination bar is not present on that devices

Enviado desde mi Xperia M2 Aqua mediante Tapatalk
[Sony Xperia M2] Th3 Ant:
Nope, normal M2 D2303... with the sensor thing [emoji14]
[Sony Xperia M2] Noxialis:
I just noticed...

Maybe the reason why the script isn't working for you is because you set permissions to 0755? Usually, init.d scripts work with 0644.

Then again I'm just bringing my experience from previous Android iterations so I can't really tell if that's correct (Like how pushing apps as system apps requires folders to be 0755 and the apk to be 0644 and etc etc etc)
[Sony Xperia M2] Th3 Ant:
Theoretically (at least I think so) script must be executed, so it should have execute permission. That is why I've set it to 755 (rwxr-xr-x) instead of 644 (rw-r--r--). In 0644 it didn't even run in Kernel Audiutor.
[Sony Xperia M2] Noxialis:
If so then the system should run it on boot without the need for a user to execute the script.

I've been away for far to long from all this @.@
[Sony Xperia M2] iFlashed:
Understood [emoji14]

Enviado desde mi Xperia M2 Aqua mediante Tapatalk
[Sony Xperia M2] JackErskine:
Beta 4 lags and freezes for me constantly.
[Sony Xperia M2] Vtrendzzy:
Clean install may fix your problem.
[Sony Xperia M2] f2065:
Does not help. At me RR-beta2 too often lags and freezes.
[Sony Xperia M2] Arceus99:
Hello!

Just installed beta 4. Works great thanks for it.

I just wanted to ask if there was an option to enable battery percentage. Thanking in advance
[Sony Xperia M2] galaxyfreak:
Yes.

Settings > Status bar > scroll down to bottom > Battery percentage
[Sony Xperia M2] ccazerty:
Beta 4 had some lag en freezing problems, so I tried to reinstall after a Wipe. But the start assistant was systematically crashing on the step "new phone" or "restore from your Google account". The both made the program crash and so I had a start assistant in loop... So I restored a backup from beta 3.

PS : the term "start assistant" may be a bad translation from French, I hope you will understand.
[Sony Xperia M2] Lojzo_11:
Fix for this is to pull down status bar and turn on WiFi.
[Sony Xperia M2] ccazerty:
OK thank you, I will try again!