yashsingh1/xdaforums huggingface dataset:
[Sony Xperia M2] cyberbull007:
Hi. I've successfully installed this beta 3 rom (including kernel fix mentioned in this thread) on my girlfriends phone (stock rom didn't allow her to use SD card as internal memory), but i'm having a problem with snapchat app (it doesn't allow me to login). I've tried to install it snapchat on my Motorola G 20014 (also flashed to Lineage 14.1) and there were no problems with logging in. I've tried to backup app+data with titanium backup (on moto device and in bluestacks) and restore it on sony (https://xdaforums.com/xposed/how-to-getting-snapchat-to-login-rooted-t3558412) but with no success (in this case login is successful, but after a second or two it logs me out, and there is a login screen again). Is anyone else having issues with that? Please help, because i'll have to buy her a new phone if i will not fix that :)
[Sony Xperia M2] robinhad:
Phone need to pass Safety Net check, which is currently broken.

I'm working on similar issue with Android Pay, which doesn't work currently.
[Sony Xperia M2] cyberbull007:
Funny thing is that even my Moto G2 with LOS 14.1 doesn't pass Saftey Net check (tested with SafetyNet Helper Sample app - response CTS profile match: false, Basic Integrity: false), yet Snapchat works with no problems....
[Sony Xperia M2] Lojzo_11:
I did have same problem and i fix it.

Go back to BETA2, install and login into snapchat, backup with TitBackup, go back to BETA3 and log in.
[Sony Xperia M2] ARandomIndian:
Well Safetynet if i remember correctly will not work 100% on custom roms due to the number of checks not bypass-able, Maybe you can get away with using Magisk SU with Hide in manager but then you still have to deal with device signature (Names, certificates ect)
[Sony Xperia M2] robinhad:
I am having a problem with local bank. It checks root and even after uninstalling all binaries it says that I still have a root. I dont know what to do.
[Sony Xperia M2] Mus.et:
Can I use it on Xperia M2 Dual d2302 and thanks a lot
[Sony Xperia M2] ruditremonti:
Yes, u can.

Tested by me. D2302.
[Sony Xperia M2] marcolinoee:
i installed the beta 3 and it doesn't get the net? is it wright? or i did something wrong?
[Sony Xperia M2] KosongGG:
I can't import contact from my simcard..
[Sony Xperia M2] Alessio278:
Hi,

I need some help, my device has been already rooted and and there is already custom recovery installed (Philz and TWRB both), when I try to install a new ROM, the installation both Philz that with TWRP failed. Before I do that I make a wipe of System, Data, Cache and Dalvik. Where am I doing wrong? Thanks

Device: Sony Xperia M2 (D2303 Single SIM)

https ://postimg.org/image/mzsg5t5sd/

(remove space between "https" and ":")
[Sony Xperia M2] xazakasrizava:
Flash this recovery via fastboot.

https://www.androidfilehost.com/?fid=673368273298931131
[Sony Xperia M2] Alessio278:
I was trying to do that but now the device is blocked on the screen with "SONY", I can't access recovery mode like before. What i have to do? >Thanks!

<DONE>
[Sony Xperia M2] Alessio278:
I can't access the Fastboot Mode, I've tried with ADB but when I restart the device, it turned off automatically and doesn't happen anything. Can give me a tip?
[Sony Xperia M2] ruditremonti:
1.unlock bootloader

2. Update boot loader

3. Flash new recovery

4. Install custom rom

5. Install gapps

---------- Post added at 02:16 AM ---------- Previous post was at 02:15 AM ----------

Flash mode 'r working??

Try to flash flash stock rom with flashtool first if flash mode work
[Sony Xperia M2] loyer:
After flashing the recovery and kernel I'm stuck at Sony logo during boot. What are the steps to recover from this?
[Sony Xperia M2] Alessio278:
I've already flashed stock firmware on my device, I took it directly from the list into flashtool (when I get the name if you want I'll give you the serial number of the firmware), after do that the device started to work normally, but there isn't recovery or flash mode with the combination of volume button+Power. Can you suggest me which firmware/update/other file i have to install specifically? My device si from Italy, no brand, D2303 model, single SIM

Really thanks!
[Sony Xperia M2] ruditremonti:
Stock rom dont have a recovery.

Flash bootloader update from this thread -> https://xdaforums.com/xperia-m2/development/ubl-xperia-m2-bootloader-update-ftfs-t3288148
[Sony Xperia M2] marcolinoee:
did anyone find the solve for the problem of safetynet?
[Sony Xperia M2] Alessio278:
Done, really thanks! When I want to install a custom ROM, I have to wipe System or only Data, dalvik and cache? If i wipe system, the recovery will be deleted?
[Sony Xperia M2] xazakasrizava:
Guys I'm still having problems with the RAM. Messenger and spotify keep force closing. I hope some more tweaks are coming in the next build!
[Sony Xperia M2] molnartibor:
i am not sure how much you can expect from a device with 1 GB RAM, especially with resource heavy applications. for me even the basic music app if force closing whenever i try to do something with the phone, like browsing with lighning or using facebook lite. the behaviour was the same with stock rom too
[Sony Xperia M2] loyer:
Guys, is there any up-to-date tutorial on how to install those 3 things + root? I think I messed up with something, since after flashing the recovery I cannot enter it during reboot (stock Sony logo appears).

Any step by step kind of help much appreciated!
[Sony Xperia M2] iHusky:
I need root, but in options I can enable root for adb or disable, and I have problem with safety net I can`t activate NFC Payments in application (Moje ING) on my LG g3s on stock ROM I can activate this.
[Sony Xperia M2] galaxyfreak:
It's no longer prerooted. Theres flashable zip on Lineage website.

https://xdaforums.com/showpost.php?p=71469358&postcount=576
[Sony Xperia M2] iHusky:
thanks but can I disable this root later and how?
[Sony Xperia M2] ruditremonti:
You can disable manually in developer settings
[Sony Xperia M2] iHusky:
Ok but it`s not this, I must unroot device with superSU (but I see only wheel from 10 minutes :( when I click unroot and clean)). safety net test is still failure
[Sony Xperia M2] Th3 Ant:
You can't pass safetynet on custom rom... Either it is rooted or not. That's because unlocked bootloader. I wonder if it is possible to build custom kernel that can mask it...
[Sony Xperia M2] iHusky:
Pięknie te gorole z Hameryki zawsze coś wymyślą
[Sony Xperia M2] loyer:
Panowie, wiecie może jak należy przeprowadzić instalację, żeby mieć cztery rzeczy naraz: lineage, twrp, ten nowy kernel i roota?

Zauważyłem, że np. flashowanie boot.img (albo instalacja SuperSU*.zip - już nie jestem pewny) nadpisuje mi recovery. Czy to tak ma być, czy coś robię źle? Są jakieś aktualne tutki do tego? Przejrzałem forum, ale nic nie znalazlem, zazwyczaj takie wątki były po prostu przypinane na górze.
[Sony Xperia M2] Hrustus:
Please use only English language. This is international forum, not for only one community. If you wont stop, I'll report your post.
[Sony Xperia M2] iHusky:
Żeby wgrać recovery wklejasz pobrane recovery do folderu gdzie znajduje się adb, uruchamiasz terminal poprzez Shift+PPM na folderze i wybranie opcji "Uruchom wiersz poleceń tutaj" i wpisujesz :

Dla TWRP fastboot flash recovery twrp.img (polecam zmianę pliku z recovery na taką by się nie pomylić)

Dla kernela fastboot flash boot boot.img

Dla tego tobie nie wychodzi bo wgrywałeś twrp jako bootloader a to coś innego niż recovery, na twoim miejscu wróciłbym do stockowego oprogramowania, zupgradowałbym bootloader i potem spróbował ponownie, aha i pytanie jaką wersje stockowego oprogramowania posiadasz?

Aha i SuperSu nie flashujesz poprzez linię komend tylko poprzez TWRP!!!!!
[Sony Xperia M2] galaxyfreak:
I'm not familiar with SafetyNet issues, but if there is a kernel bypass/hack for some other device, I could look into porting it if you link it ;)

Guys!

XDA Rules:
[Sony Xperia M2] Th3 Ant:
Well... That's almost half a year old but still...

https://www.xda-developers.com/sult...ootloader-check-on-latest-cm13-builds-for-op3

I am curious if it still works [emoji14]
[Sony Xperia M2] freebzh:
Same issue here on a d2303 model. WLAN and bluetooth card aren't seen from the OS. Did you manage to find something ?
[Sony Xperia M2] galaxyfreak:
Tried, not working :(
[Sony Xperia M2] Th3 Ant:
Damn... One question about SELinux status - did you tried it with Permissive or Enforced? I've read somewhere that this also can affect SafetyNet... I've tried changing permissions of system files (enforce and policy in sys/fs/selinux) but it didn't change nothing...

I guess it's unhackable on custom roms ATM... but some some devices are passing it on LinageOS... I dunno how :(

EDIT: Also found this - https://xdaforums.com/apps/magisk/magisk-magisk-hide-troubleshooting-tips-t3561828
[Sony Xperia M2] robinhad:
It can be SELinux mode or unlocked bootloader.

I read that SafetyNet now check open bootloader.

Will locking bootloader when custom rom installed brick a device?
[Sony Xperia M2] Th3 Ant:
One more about SafetyNet... it throws CTS Profile Mismatch - can it be connected with "Device certification: Uncertified" thing in Play Store?

The problem is - how to get it certifited on custom rom... flashing gapps because not having them embedded in-system already can be the cause?

How does it looks on devices like OnePlus with CyanogenMod as stock rom?
[Sony Xperia M2] iHusky:
SELinux is not problem here, because I tried to change from Permissive to Enforce and this not work :( The one thing I can write is someone could find exploit to remove flag from boot that safety net can`t detect if we have unlocked bootloader?
[Sony Xperia M2] ARandomIndian:
First is device ID checks i believe

Second is SE Linux mode Enforcing alternatively (This can be achieved with MagiskSU with Magisk Manager with Magisk Hide)

Potentially bootloader status matters if unlocked (some have reported)

This is what Google says about safetynet

"SafetyNet examines software and hardware information on the device where your app is installed to create a profile of that device. The service then attempts to find this same profile within a list of device models that have passed Android compatibility testing. The API also uses this software and hardware information to help you assess the basic integrity of the device, as well as the APK information of the calling app. This attestation helps you to determine whether or not the particular device has been tampered with or otherwise modified. It also assesses the trustworthiness of the app that is requesting information from your backend logic. "

Best bet is to request help from someone who has bypassed it like Sultan who works on the One Plus lineup

Basically if we can spoof the M2's identity i guess we can bypass it?

The fk if i know

---------- Post added at 11:33 AM ---------- Previous post was at 11:24 AM ----------

[MENTION=4635923]galaxyfreak[/MENTION] [MENTION=5262089]konstantinos77[/MENTION] I think this might work i found this on Reddit /u/Tilde88 quote below the line -

____________________________________________________________________________________

add this to /fs/proc/cmdline.c and recompile

static int __init proc_cmdline_init(void) { char *offset_addr, *cmd = new_command_line;

strcpy(cmd, saved_command_line);

/*
* Remove 'androidboot.verifiedbootstate' flag from command line seen
* by userspace in order to pass SafetyNet CTS check.
*/
offset_addr = strstr(cmd, "androidboot.verifiedbootstate=");
if (offset_addr) {
size_t i, len, offset;

len = strlen(cmd);
offset = offset_addr - cmd;

for (i = 1; i < (len - offset); i++) {
if (cmd[offset + i] == ' ')
break;
}

memmove(offset_addr, &cmd[offset + i + 1], len - i - offset);
}

proc_create("cmdline", 0, NULL, &cmdline_proc_fops);
return 0;

}
[Sony Xperia M2] Konstantinosj77:
You can't actually play with SElinux right now,it's on permissive mode and if you manage to change it (by rebuilding boot.img) you will get a nice bootloop!

Priorities for next release

1) Find out WTH is wrong with WiFi/BT MAC.

2) Turn on SElinux.
[Sony Xperia M2] daivner:
Hi, im new, i try to install on M2 D2306

was very hard, i had to install first android 6 to install this (7.1.1), take me a some days, but it is working, thanks for the files, thanks all here, if anyone have a problem with this model, maybe i could help :)
[Sony Xperia M2] f2065:
Fix the error in the configs NFC - for MIFARE Plus

I looked like it was done in FKernel (©)- scripts are executed there before the start:

\system\etc\wifi\init.cci.wifi.mac.bootup.sh, /system/bin/wifimactool -t - read WiFi Mac address from TA partition when system bootup

But in LOS there is no wifimactool…
[Sony Xperia M2] Konstantinosj77:
NFC error is fixed already.

Thanks will look into it!
[Sony Xperia M2] iampox:
Hello everyone,

I'm trying to install LineageOS on my Xperia M2.

I successfully installed it using fastboot flash boot recovery.img and everything worked fine.

Now I'm trying to root my phone. I've placed the Lineage Su archive on my phone but when I enter the fastboot flash recovery recovery.img command, I'm having the following issue: FAILED (remote: partition table doesn't exist) and I really don't know why…

Could someone help me figure out why I'm encountering this issue?

Thanks very much!
[Sony Xperia M2] Th3 Ant:
You didn't update bootloader... Use EMMA to do this. Without it you cannot flash anything to recovery partition...
[Sony Xperia M2] iampox:
Thanks! I'm on macOS, how can I do that? (I'm kind of a newbie when it comes to custom roms, flashing recoveries, etc.)
[Sony Xperia M2] Th3 Ant:
Try this https://xdaforums.com/showthread.php?t=3288148

I do not know how to do this on Mac tho... try googling it [emoji14]
[Sony Xperia M2] iFlashed:
What about burning it and buy a PC? [emoji14]

Enviado desde mi Xperia M2 Aqua mediante Tapatalk
[Sony Xperia M2] iampox:
I followed your link and tried it but Flashtool doesn't recognise the .ftf file… :/
[Sony Xperia M2] ARandomIndian:
[MENTION=5262089]konstantinos77[/MENTION] [MENTION=4635923]galaxyfreak[/MENTION] Speaking about polish, if you've some free time in the coming build please check Ambient display again it works but it does not run when you pick it up only when you initially get the notification,

It is supposed to turn on when you pick it
[Sony Xperia M2] mantazzo:
I think it needs special sensor or something - CM13 works fine, but not on pickup.
[Sony Xperia M2] freebzh:
Use the previous Flashtool version. I just has the same issue lately with 9.23.*, I had to downgrade to 9.18.*
[Sony Xperia M2] proadi96:
So after about a week of usage I can really say that this ROM is simply amazing. Every feature that I used works perfectly. Just the thing that the volume is a little low, but that's just a really really minor thing. Great work guys.

---------- Post added at 03:10 PM ---------- Previous post was at 02:57 PM ----------

Strange, I've installed Lineage about 10 days ago and installed Snapchat that very first day too, and I can login properly. Still using it today and no problems with Snapchat so far?
[Sony Xperia M2] dadi11:
I saw Xperia m2 has some safety net issues on custom ROMs. Did you guys tried to use other build signature like on kenzo for example? It fixed CTS match there. [MENTION=4550509]Konstantinosj77[/MENTION] [MENTION=4635923]galaxyfreak[/MENTION]

https://review.lineageos.org/#/c/163578/
[Sony Xperia M2] galaxyfreak:
We use fingerprint from our stock ROM, not latest (5.1.1) but older (4.4.4). Would that be a problem?
[Sony Xperia M2] Th3 Ant:
From Google Android Pay website:

Android Pay won’t work with phones that are:

Running a version of Android prior to Kit Kat (4.4)

Running developer versions of Android

Rooted, custom rom, or where the factory software was modified

Using Samsung MyKnox

Untested and haven’t been approved by Google

You have an unlocked bootloader on your device

Source: https://support.google.com/androidpay/answer/6224811?hl=en
[Sony Xperia M2] dadi11:
Seems like updating fingerprint can help in this case. Worth trying for sure. Also IDK if you have this flag anywhere:

PRODUCT_GMS_CLIENTID_BASE := android-sonyericsson

EDIT: I'm trying with these changes: https://github.com/TeamHorizon/andr...mmit/2b1b609806b762759982e8e6bea5d6cc8a238716

Will let you know if something's changed.

EDIT2: nothing's changed.
[Sony Xperia M2] konstantinos77:
Man you mention the wrong person!! I'm not on this thread!! I haven't the Sony Xperia M2!! (konstantinos77)
[Sony Xperia M2] ARandomIndian:
**** my life, sorry just checked konstantinosj77 name is with an extra j,

I just realized I've been mentioning you instead,

*Awkward silence continues*
[Sony Xperia M2] ccazerty:
From CM 13

Hi,

I'm now under CM 13, with an other version of TWRP. I want to install this Rom.

I'm confused by the Kernel file. How and when install it ?

Before or after TWRP, and ROM ?

On some forums, I see that Kernel update is almost everytime included in the ROM, is that true ?

thank you, and sorry for my english, i'm french.
[Sony Xperia M2] ARandomIndian:
First flash this TWRP provided here,

Kernal and ramdisk is already in the .zip file, It's called boot.img, you only need to have unlocked and updated bootloader along with this recovery flashed and then this ROM flashed - Nothing else is needed.

Yes kernal is almost always included in the ROM, although here, they released a few updated kernals and not yet updated the main build, so if you want the newest and you cant wait for the update then you can flash the kernals they put up for download,

alternatively, just flashing the rom is enough provided you flashed the recovery given here as well as have an unlock and updated bootloader.
[Sony Xperia M2] ccazerty:
Thanks!

I finally flashed the new version of TWRP and the ROM only, and everything seams to work.

I just don't know if I have the last bootloader update. Is that bad?
[Sony Xperia M2] marcolinoee:
Sorry guys, i'm not such a noob, but i don't know what's happening with my phone.

After i install linage 14, the apps gets cracking all the time... i cant open any app...

i did everything wright (i guess) and i dont know how to fix it!

help me guys!
[Sony Xperia M2] prismaanandito:
for those who experiencing a read-only sd card after rebooting, perhaps this could help :

- make sure you dont tick the 'link internal data' from link2SD. For every apps.

- make sure you didn't have any apps that starts on boot stored on sd card (well if you really need to, you could link the apps and turning off the boot by using SD Maid app control)

I've experienced this problem a multiple times, even trying other sd card with different class + changing partition type just for this. :highfive:
[Sony Xperia M2] f2065:
Is there a way to fix the MAC address?

Tried programs from the playmarket (I know the real MAC and tried to specify it) - they do not work or make errors.
[Sony Xperia M2] omgmyfriend:
I have xperia m2 stock 5.1 rom without root. bootloader locked. Someone can tell me how to install this rom step-by-step? Thanks so much. And sorry for my english :D
[Sony Xperia M2] Dzepar:
You can't on locked bootloader, you need to unlock it first. :)

Good Luck!
[Sony Xperia M2] omgmyfriend:
I try using flashtool to ulb but it not working :( can you tell me or give me link about how to ulb for m2 :3

One thing, can i unlock bootloader on 5.1.1, and this rom will working on d2305?
[Sony Xperia M2] mantazzo:
First you need to check if your bootloader is unlockable. You need to go to service menu on your phone (search for xperia service menu on google, it will give you the combination) and check if bootloader unlock is allowed. If No, then sorry, you're stuck with what you have now. If yes, you should look at a few topics in the General section (I think), there are a few explanations. Maybe even someone will link it below...
[Sony Xperia M2] prismaanandito:
anyone here using the google assistant? And do you prefer flashing or just edit the build.prop? Thank you
[Sony Xperia M2] omgmyfriend:
Everything is OK. Now my m2 running 7.1.1.
[Sony Xperia M2] bothered:
The only way I got to install this was by fastboot BOOT twrp3.1.imgor twrp3.0.3.img

However it installed fine but flashing those recoveries i can never boot to them both on power off or through reboot menu.

Updated Kernel was flashed too

Any ideas?

EDIT: Ok i realised that to get into recovery i had to follow these instructions

and as far as I can tell, that is the only way to get into recovery not through powermenu or adb/fastboot
[Sony Xperia M2] omgmyfriend:
Camera not working on messenger app :) someone too ?
[Sony Xperia M2] ghadeerprince:
Yes me too I got the same problem
[Sony Xperia M2] RYUU23:
posted in the wrong thread but i guess this still applies here as it was the same problem when i tried:
[Sony Xperia M2] Hrustus:
It's a messenger app bug ;) It won'twork even on stock 5.1.
[Sony Xperia M2] ggravier:
Same problem here. :) Appart from that, nice to have my Xperia running a modern OS. :)

Installation was a breeze... not a single hicup. :)

Thanks!
[Sony Xperia M2] sl4cker:
Anyone encountered some kind of a problems with waking up on calls or some kind of a bootloop hickup while rotating the phone? It's just go on after a min, while recovering the signal... It's so rare that I even don't have any logs for now.
[Sony Xperia M2] nihalpatel:
Can't install the ROM.

I'm trying to install the 14.1.1 CM on my Xperia M2 Dual. But, the installation always stuck at the message "Patching the system image unconditionally". :( I'm using the BETA 3 ROM and the latest twrp recovery provided in the link. I'm experiencing this kind of error for the first time. Anyone is facing the same Issue? Please help me out from here! :crying:
[Sony Xperia M2] boatman777:
Is this compatible to M2 model D2303? Just a newbie when it comes to flashing custom rom.
[Sony Xperia M2] JuniorCaesar:
Yes
[Sony Xperia M2] boatman777:
Where can I find tutorials or step by step guide on flashing rom? Tried using the search bar "how to flash custom rom" but it is no good to me.
[Sony Xperia M2] omgmyfriend:
My device get 70°C + when gaming. Is it normal ?
[Sony Xperia M2] JuniorCaesar:
1-) Root your phone

https://xdaforums.com/xperia-m2/general/eagleroottool-t3390663

2-) Unlock your bootloader

https://developer.sonymobile.com/unlockbootloader/unlock-yourboot-loader/

3-) Update your bootloader

Flash via flashtool

https://mega.nz/#!fcA3UBxQ!nkhsFjr5YB6XUseFU6v3l8PuOe0gklv4JAdVADgx-sc

4-) Flash recovery

https://xdaforums.com/xperia-m2/development/twrp-2-8-7-0-updated-theme-t3252807

5-) Enter recovery, wipe data,cache,dalvik cache and install rom
[Sony Xperia M2] xazakasrizava:
Guys sorry to spam the thread but apps like spotify, messenger, and other apps that run in the background keep force-closing. I thought the issue with low RAM was solved but it seems to be persistent. Does anyone else have this problem?
[Sony Xperia M2] f2065:
What is the model of the SD card? Support UHS? For example, I have a model SanDisk SDSQXVF-064G-GN6MA (UHS-I U3, Class 10, 64GB).

But we have users with the same problem with 8GB (Apacer UHS-1 Class 10, 8GB) and 32GB (Kingston UHS-1 Class 10, 32GB) cards.

I have no problem with the Transcend 32GB (old model, without UHS).

Although there is a problem with the Kingston 16GB Class 10 without UHS. It's strange.

Can the problem with the support of the UHS-mode?

Can somehow try to disable support UHS-mode?

How else do SD-cards differ? Different clock frequencies?
[Sony Xperia M2] JuniorCaesar:
Omni beta 4 does not have this problem, you can give it a try
[Sony Xperia M2] xazakasrizava:
Thanks I have tried Omni, but I prefer this ROM. Will this bug be fixed in the future?
[Sony Xperia M2] JuniorCaesar:
Hope so, devs knows :)
[Sony Xperia M2] xazakasrizava:
[MENTION=4550509]Konstantinosj77[/MENTION] Have you had any such issues?
[Sony Xperia M2] prismaanandito:
have you tried to turn off the battery optimization for the apps? I also experiencing this with LINE and Fenix, and it's gone after I turned it off