yashsingh1/xdaforums huggingface dataset:
[Sony Xperia M] Dreak_Sekh:
I have XMD, my "keep WiFi on during sleep = never" ,I m not getting wakelocks during sleep, maybe be coz I m using Powernap. Battery Drainage is very very less. even less than stock's stamina mod.

installed/flashed

#NUI kernal

#Xposed

#SuperSU 2.52

#Power Nap
[Sony Xperia M] Bonoboo:
Persistent automatic disabling SELinux: for installing SuperSU, fixing init.d and other purposes

Warning: SELinux – important security feature.

After disabling it you obliviously make Android less secure. Use it on your own risk.

Also don't flash it if you have installed NUI Kernel: SELinux there already set to "permissive".

UPD: same for Redmi 3S, can be ported to other devices.

Huge thanks [MENTION=5917809]cucumber09[/MENTION] for kernel repack script.

Why it needed?

SELinux can prevent work some mods, mainly SuperSU which causes bootloop on CM13.

In Android itself restrictions was improved.

@PecanCM won't fix sepolicy for 3rd party app and it's totally ok.

Also ROM have official status, so such mod unacceptable.

@Chainfire, famous developer of SuperSU confirms, that "system mode" install will not work without that changes in ROM.

But brand-new "systemless" mode fails too on CM13 and if so it requires flashing SU ZIP after every update (there's no auto-restore).

Executing in Terminal "setenforce 0" turns SELinux off only until reboot.

For complete disabling required repacking kernel and adding parameter into command-line.

Since we have Nightlies it's hard to do on PC at every upgrade.

This solution repacks kernel automatically at ROM update, no any action required.

So you can use SuperSU seamlessly.

How it works

After flashing ZIP creates kernel dump, then it repacks with new command line androidboot.selinux=permissive and writes back.

Into /system/bin copied script.sh and two binaries: mkbootimg and unpackbootimg

Also installs auto-restore script (addon.d) for keeping and launching that files.

At every ROM update automatically executes kernel repack.

Note: at some rare unknown conditions after updating ROM kernel repackaging may end with error and this render device unusable.

It can't boot and even possible enter recovery.

You need flash boot.img from CM's ZIP via fastboot / Flashtool.

How to install

1. Once flash attached ZIP

2. Then flash required mods

How to delete

1. Delete file /system/addon.d/99-selinux.sh (and other, that belong to mods, e.g. SuperSU)

2. Flash current ROM

Important!

– On CM13 use only only this special version of SuperSU

Because there forced "system mode" install, not "systemless" which does nothing (1758).

– On CM14.1 use only standart version and disabling SELinux not required

Systemless doesn't have auto-restore, so you need flash ZIP after every ROM update.

On Dual it will broke network.

Also with system-mode always bootloop.

P.S. This patch probably will work on any device with CM.

But in script.sh you need to edit path to boot partition (twice) and base & ramdisk shifts.
[Sony Xperia M] matrixex:
Well I want to use root from developer settings for some apps like font changer

I don't know much about selinux but just asking for me with no mods I stay in selinux permissive for security am I right or I have to disables selinux.

That's all thanks
[Sony Xperia M] kh34d:
[MENTION=7110463]matrixex[/MENTION] permissive means "disable" =unsecured
[Sony Xperia M] :
I have latest nightly and when i change battery mode by tapping tile the interface app stopped, changing in settings work perfectly
[Sony Xperia M] Illies:
I'm working just fine here. Try to reflash your ROM .
[Sony Xperia M] kjiratssiekoedel:
Bought a new fast SD card (32GB UHS-3), although I get the 'slow SD card' error, it al seems to work fine. Can't move every app though (spotify), while others (firefox) directly install to the SD card. I can't follow why.

The GPS can get a proper fix, but loses it quickly. Had the same in CM12.1. However stock & CM 12 had a normal running GPS. Is there a workaround? (posted this before, but ca't find my original post anymore...)
[Sony Xperia M] PecanCM:
alright, here is kernel with change you posted https://www.mediafire.com/?o9w7q44sw3s5wte
[Sony Xperia M] :
[MENTION=7234610]Illies[/MENTION] i will try

I tried factory reset but nothing changed
[Sony Xperia M] Illies:
Reflash it. Good luck . :D
[Sony Xperia M] Bonoboo:
Thanks for test patch!

Strange, but first 25% of slider actually stuck at 44, minimal too.

Can't understand why. In provided values all ok.

All next 75% super-precise and fine.
[Sony Xperia M] :
[MENTION=7234610]Illies[/MENTION] reflash and cleand install weren't help :/ still this same problem
[Sony Xperia M] vjye:
i updated from cm12.1 to cm13 on 16 feb now i have the following problems

1. google play servives stopped working

2. apps which were installed in sd card during cm12.1 are not visible on cm13

3. im still using the cyanogen recovery how to change to other
[Sony Xperia M] Illies:
hmmm . download the latest version 16 FEB . :D

---------- Post added at 03:30 AM ---------- Previous post was at 03:24 AM ----------

change to TWRP . and clean flash the CM 13. you can't use lollipop version of gapps. Redownload marshmallow version from open gapps. and CM 13 doesn't have move to SD functionality as CM 12. That's why your installed apps in SD card doesn't visible . :D
[Sony Xperia M] vjye:
thanks,, link to twrp and gapps?
[Sony Xperia M] Illies:
Here for TWRP :

http://xdaforums.com/showthread.php?t=3147051

and here for GAPPS :

http://opengapps.org
[Sony Xperia M] vjye:
thanks

whats the procedure to install twrp from cyanogen recovery?

what is platform for gapps?
[Sony Xperia M] kh34d:
The platform is ARM.
[Sony Xperia M] vjye:
procedure to install twrp?
[Sony Xperia M] :
[MENTION=7234610]Illies[/MENTION] i already had rom from 16 FEB
[Sony Xperia M] icoolguy1995:
There is not lastksmg in proc folder. Any other ways to take it out? Already tried this first.

cat /proc/last_kmsg > / sdcard/last_kmsg.txt
[Sony Xperia M] Agu_Ra:
Seems that last_kmsg is not created after that kind of random reboots. As user from another forum could not find it too.
[Sony Xperia M] Bonoboo:
Another device bug: no USB OTG, same as on AOSP 6.0
[Sony Xperia M] XtremeWave:
awesome. downloading it now
[Sony Xperia M] XtremeWave:
problem. cyanogenmod setup wizard totally is a real bug crashes every 1.5 seconds. probably it's with the gapps. this gapps worked on hthe aosp alpha 2 rom, but now what to do. someone mind giving a link to some suitable mini gapps?
[Sony Xperia M] kh34d:
Try this http://opengapps.org/#
[Sony Xperia M] XtremeWave:
ok. will try. have to see wether it works or not. at first in aosp alpha 1, the gapps benzo shared worked. then in alpha 2 it didn't work, so i got slimgapps mini. it worked. now i got cm13. tried to use slimgapps. didn't work. maybe it's because of compatibility issues with slimgapps being meant for mra58v and this rom being mdb08m. i wonder how different they are, or are they the same, or is it just the gapps and it's usual permission issues ? :confused:
[Sony Xperia M] kh34d:
No I didn't test it, here also another Gapps by another developer

https://www.androidfilehost.com/?fid=24052804347835251
[Sony Xperia M] abhatia1435:
Now on tap doesn't work? It worked fine on AOSP.
[Sony Xperia M] Rajesh_m:
Yeah. It isn't working for me either.
[Sony Xperia M] abhatia1435:
Maybe because this was merged later :confused:?

Also noticed that pressing power button two times simultaneously, vibrates the device and opens the camera. A bug or a feature? :p

Edit- Yes, it's a feature. Thanks [MENTION=5279202]Rajesh_m[/MENTION]
[Sony Xperia M] Rajesh_m:
Yeah its not merged yet, so that may be the problem.

And double press home button is a feature ;) Go to display and you can see that option under Sleep.
[Sony Xperia M] Rajesh_m:
Sometimes after a reboot WiFi gets disconnected and won't switch on unless I do another reboot. Anyone facing this issue?
[Sony Xperia M] abhatia1435:
Yeah, was just going to report that.
[Sony Xperia M] icoolguy1995:
I also faced this issue, and I guess it's a CM issue(cause never faced this on AOSP).
[Sony Xperia M] Rajesh_m:
Another issue I found: Whenever I connect/disconnect charging, systemui gets stopped.
[Sony Xperia M] xfr33style:
Yes, this happened to me too. Rebooting the device seems like the single solution atm.

This bug never happpened to me on this build. Maybe you did a dirty install from a previous build or you have a version of gapps that isn't compatible with this firmware; that's what I think might cause the problem. Try do a clean install and flash opengapps.

-

One problem I have with this build, since it was release I had like 3-4 random reboots, no idea what caused them, 2-3 times had them while the device was on stand by, either over night (and when I woke up I had to input the PIN from sim card) or in the day time while not accessing it; one time I had that random reboot while texting. Hope it will be fixed in a next build.:D
[Sony Xperia M] icoolguy1995:
Microphone is only working in calls, I tried recording sound and sending voice messages via WhatsApp and it doesn't record a thing.
[Sony Xperia M] Ydraulikos:
Audio Recoder app from sony can capture from the mic too. I guess it's something related to alsa and mixer streams but unfortunately the logcat isn't very helpful.
[Sony Xperia M] NOvianto:
[MENTION=5037002]Bonoboo[/MENTION]

Still can't install SuperSu Sir, any help
[Sony Xperia M] Bonoboo:
Mod here does nothing.

Re-download ZIP and copy into other place.

Also don't post here with such questions, use OT thread instead.
[Sony Xperia M] Illies:
okay, so you just need to clean flash it . that's all .
[Sony Xperia M] dineshdk:
I am facing SD card problem...... Plz help me plz plz plz
[Sony Xperia M] kh34d:
Ask here plz

http://xdaforums.com/showthread.php?t=3230983
[Sony Xperia M] :
[MENTION=7234610]Illies[/MENTION] i already done clean install (include formatting system, dalvik, cache ,internal storage, etc)
[Sony Xperia M] Illies:
mmmm. I don't know . mine just fine .
[Sony Xperia M] elshah24:
which gapps i need to flash for this rom? i got force close when installing gapps? em
[Sony Xperia M] Nicklas Van Dam:
Open Gapps, choose arm and 6.0 android version and select nano or pico package. ;)

nice and simply gapps app, but if you want full feature of google function. aroma package is best :)
[Sony Xperia M] elshah24:
hehe thanks mate!
[Sony Xperia M] Illies:
[MENTION=5775188]a_lewicki[/MENTION] I figure it out, it's just only "Power Save" option make my System UI stop working. the rest just fine.
[Sony Xperia M] Bonoboo:
[MENTION=4343949]PecanCM[/MENTION]

Probably after rebasing device-tree option "Proximity wake" won't work.

In config.xml key missing.

Here your commit from CM12.1
[Sony Xperia M] :
yes everything else is working fine

additionally as you can see ( http://imgur.com/6RluOTs ) in polish language some options are the same in english language everything is fine but still there is five oprions (Pover save, Efficiency, Balanced, Quick, Performance) i settings->battery three options (power save, balanced, performance)
[Sony Xperia M] elmkzgirxp:
[MENTION=4343949]PecanCM[/MENTION] Does this ROM support Camera API v3? I would assume that it does since the new Google Camera worked previously. There were changes made in Open GApps that installs the legacy version of Google Camera on non-Nexus devices, and devices that do support Camera API v3 are whitelisted.

MastahF (Open GApps developer) recommended to do the following:

Please correct me if I'm wrong.
[Sony Xperia M] Bonoboo:
It not support Camera2 API, so v.3 especially.

Because ROM include camera blobs from stock 4.3 which too outdated.

I was wrong.

Hmm, if option persist = it somewhere enabled.

And here commit in CM which fix feature in next build.
[Sony Xperia M] daemonarch21:
Sms app is only 70 characters for Greek language.I have tested all Unicode options but nothing

Στάλθηκε από το C1905 μου χρησιμοποιώντας Tapatalk
[Sony Xperia M] cmxperia:
Is this the bugfix we all are waiting (mass storage bug)

http://review.cyanogenmod.org/#/c/127767/

[MENTION=4343949]PecanCM[/MENTION] , [MENTION=5037002]Bonoboo[/MENTION]

Last 2 builds are failed in Jenkins . waiting for new build
[Sony Xperia M] Garv Maggu:
Please help

I am not getting cardboard icon in YouTube app for the 360 degree videos. :(

Is this a bug in the ROM? :confused:

I want to use my virtual reality glasses with this.
[Sony Xperia M] elmkzgirxp:
If it doesn't, and the new Google Camera worked before, then it doesn't solely rely on Camera API v3, if my assumptions are right.
[Sony Xperia M] kh34d:
Mini-advertisement:-

sorry for "off topic" :o

Every user here proud of his home screen , wallpaper ,themes , mods, apps and ports…etc

share your Phone ** Home Screen **

so show me your creations

thanx for all:good:
[Sony Xperia M] PecanCM:
I'm out of town from week, i will try tonight otherwise tomorrow.
[Sony Xperia M] kh34d:
Back to us safety:good:
[Sony Xperia M] abhatia1435:
Are you talking about Google Camera v3(the one with new UI)?
[Sony Xperia M] Antrikos48:
FYI build is failing due to this commit (changes in makefile conflict with ours)
[Sony Xperia M] cmxperia:
No props and take your time... :)

Always thankful to you .. :)

Sent using Tapatalk
[Sony Xperia M] abhatia1435:
It works fine for me sometimes. But crashes frequently. [MENTION=4343949]PecanCM[/MENTION] Can you please check the logcat? It can take pictures but video recorder crashes most of the times.

Edit: Checked, not a device specific bug, crashes on all the devices with CM13 (except Nexus Devices ofc). Will report on JIRA.
[Sony Xperia M] mbc07:
It's not a bug, it's a hardware limitation. Xperia M doesn't have gyroscope, so, you can't use it for VR no matter what ROM you use...
[Sony Xperia M] kh34d:
That is right in applications which need gyroscope, but in other applications it worked fine [emoji6]
[Sony Xperia M] PecanCM:
Build fixed.
[Sony Xperia M] cmxperia:
Thanks man :) waiting for today's new build.

Sent using Tapatalk
[Sony Xperia M] Biogenisis:
will it fix no service of mobile network? =(
[Sony Xperia M] hemanthvarma:
No service will not happens in MM as far as i know . everything works except 3g only mode has some problems, doesnt connect to 3g at all only the major bug in MM.

just flash again from working network (stock rom)

UPDATE: Sorry guys 3g works follow the below steps

type *#*#4636#*#* and in that go to phone information ---> Set preffered network type=WCDMA . thats it enjoy

and in network settings u have to toggle to 3g mode
[Sony Xperia M] ayush_01:
I'm sorry if this isn't the place to ask, but I'm unable to sync Contacts. I have tried reflashing the Rom.
[Sony Xperia M] DibyenduMaji:
Nothing to do with ROM, Contact sync is related to Gapps.. flash Open Gapps..
[Sony Xperia M] Adarsh Dubey:
3g works but it works like 3g/2g mode.... And it connects most of the time to 3g network for me.... On build 17 feb
[Sony Xperia M] ayush_01:
I have flashed already, still no contacts sync . The One I flashed is arm Pico Gapps. Do I need to flash stock for contacts sync?
[Sony Xperia M] DibyenduMaji:
you tried syncing manually?

goto settings > Account > Google select your mail ID... sync contact..

this is Development thread, post these issue in cm13 OT.. here
[Sony Xperia M] ayush_01:
---------- Post added at 03:50 PM ---------- Previous post was at 03:46 PM ----------

[/COLOR]

There is no contacts sync in Google acc.
[Sony Xperia M] Biogenisis:
I have done flashing from rom like 8 times now still no networks =( i did backup of efs too got modemst1.bin and modemst2.bin but when i try to flash them i get remote:command not allowed error......i have no networks in CM12.1 either that means the two rom which i tried first time both didnt work for me =/ i guess i should go back to the 4.3 and stay like that :crying:
[Sony Xperia M] rakovm:
Hello, i also have problems with 2g/3g switch and with contacts. Also thr dialer is crashing. So i am connected everytime only to 2g and whrn j put 3g it goes back to 2g again. No contact sync option also
[Sony Xperia M] hemanthvarma:
[MENTION=4396084]rakovm[/MENTION] just once clear dialer cache and for 3g dial *#*#4636#*#* and set to wcdma ... done

---------- Post added at 05:36 PM ---------- Previous post was at 05:32 PM ----------

sorry .. Its working now

just used *#*#4636#*#*
[Sony Xperia M] lampik:
it is inposible to flash with cm13 c1905 xperia M, i tryed couple times , for now, i nee some help of You guys,...
[Sony Xperia M] rakovm:
Hello, i cannpt find this option to set to wcdma, ca!u give me screenshot. i tried clearing dialer cashe.. not working, also still problem with sync contacts
[Sony Xperia M] seanp25:
What have you tried? Where is it failing? Do you have TWRP installed? What ROM are you coming from? Is it rooted?
[Sony Xperia M] lampik:
im trying now with TWRP 3.0 and doing instal one after one. 2 zip files i will give shout how it went...

more details:

*rooted

*phone unlocked with smart-clip

*downloaded Download: cm-13.0-20160222-NIGHTLY-nicki.zip (280.37 MB)

*TWRP twrp-3.0.0-0-nicki.img

steps...

...when TWRP has started (with delay of corse), i wiped the cache, and checked to zip files for installing (you may check verification - not obligatory) after that im happy to se screen Android is starting... lets wait for finish and sim inserted.

something strange:

after sim inserted says : please PIN to SIM to UNLOCK..... ??? any ideas ?
[Sony Xperia M] indraa23:
i have follow all the steps

i have flash the rom but when i flash the gapps

it shows error and failed

again and again

i have download all gapps from any source but the result is same

now i'm still taking my xperia back to cm12 and keep bootloop

please help
[Sony Xperia M] kh34d:
[MENTION=1834272]lampik[/MENTION] [MENTION=7299515]indraa23[/MENTION]

Please go here for such discuss, this is developer thread.

http://xdaforums.com/showthread.php?t=3230983

Thanx for understanding
[Sony Xperia M] AlexiusItaly:
Any news?
[Sony Xperia M] tarkan-t29:
Hello there, I'm using Velis Auto Brightness it provides better control of auto brightness. It may be helpful for you and other users.

Cheers :highfive: .
[Sony Xperia M] AlexiusItaly:
Lux Auto Brightness is good too and i already use it :)

(There is also the free version

Lux Lite)
[Sony Xperia M] dhruubo:
Is there any way to add app2sd in future Build's??? I can't format my sd card...so is there any way??
[Sony Xperia M] MiyamuraNEET:
how long we will have to use patch?
[Sony Xperia M] kh34d:
[MENTION=7141083]KayM6.0.1[/MENTION] Until data fix on 2nd sim.

BTW. You need flash that patch only one time.
[Sony Xperia M] MiyamuraNEET:
So I'll keep waiting so.............

:)

this patch http://xdaforums.com/showpost.php?p=65104843&postcount=49 work in vanirAOSP???
[Sony Xperia M] DibyenduMaji:
it should work on CM13 based ROM (if developer don't change the RIL)..

better ask the developer of ROM, he can confirm..

please post these issue here, as this is development Thread.. Thanks
[Sony Xperia M] MiyamuraNEET:
Ok ..:fingers-crossed:
[Sony Xperia M] xp7:
hi guys.how to i can move data of game to sd card?
[Sony Xperia M] kh34d:
When you format SD card as internal memory and emigrate data to SD card, then automatically when you download games data will go to adoptable storage which you made.

Any question please ask here. Thanks

http://xdaforums.com/showthread.php?t=3230983
[Sony Xperia M] PecanCM:
well next nightly going to have working widevine drm plus more small changes like latest adreno blobs and open source sensor deamon.
[Sony Xperia M] kh34d:
Thanks Ron, but can you explain that??

If you have time.
[Sony Xperia M] PecanCM:
i mean now it's possible to use app/websites that uses widevine drm like netflix,google movies etc.
[Sony Xperia M] kh34d:
Very good Thanx.

Any good news about Doze feature?

Edit :

is "open source sensor deamon" related to make "super su" work without permissive mode?
[Sony Xperia M] Antrikos48:
Uhh, nope
[Sony Xperia M] Bonoboo:
Nice!

So random rotation bug will be fixed?

And it's some hope for Doze?
[Sony Xperia M] PecanCM:
no, open source sensor daemon not gonna effect users in any way. we need open source sensors hal for that. yesterday i tried and got accel,proxy and light sensor working but magnetic/orientation sensor is broken https://github.com/RonGokhale/android_hardware_qcom_sensors
[Sony Xperia M] cmxperia:
This may help us

DASH: sensors: Use monotonic time since boot for event timestamps

* Recent Android versions are expecting a monotonic timestamp that includes the

time since boot, not the time elapsed since boot while the device was awake.

* Adapted to hardware_sony_dash from I299af0d9a35219a856fdbc225d11dbb3ff95db77

* Fixes display autorotation in Android 6.0

http://review.cyanogenmod.org/#/c/134205/
[Sony Xperia M] Lewdog45:
Is MTP working yet? Thanks.
[Sony Xperia M] kjiratssiekoedel:
How to update?

I've set my SD as internal storage. When I download an update it restarts in TWRP reocery and I can't find the zip to flash.

Since the SD is se as internal storage I also can't simply transfer the zip when I connect my phone to my pc.
[Sony Xperia M] kh34d:
You can download it from here

Or throw" CyanDelta "app:cowboy:
[Sony Xperia M] digt:
Zip file is in cmupdater folder

Inviato dal mio C1905 utilizzando Tapatalk
[Sony Xperia M] kh34d:
unfortunately when i update it stop in TWRP at sentence "patching system image unconditionally":crying:

what i can do??:crying:
[Sony Xperia M] abhatia1435:
Just updated(from Settings>Cyanogen Updates) via TWRP and working fine here. Maybe wait for sometime. It takes time to patch the system image.
[Sony Xperia M] kh34d:
can i take off battery while it stuck in twrp??

it take long long time not as usually
[Sony Xperia M] abhatia1435:
No, don't. It 'may' break your system/data. And then you will have to clean flash the ROM again.
[Sony Xperia M] kh34d:
so it will stuck forever:confused::confused:
[Sony Xperia M] abhatia1435:
Umm. No other solution.

Pull it out and try to boot. If it boots then good.

If it doesn't then clear cache and dalvik cache and then flash the zip from cmupdater folder.
[Sony Xperia M] Agu_Ra:
You can pull off the battery. But you will probably have to re-format your system and re-flash the ROM. Data wipe is not needed.
[Sony Xperia M] kjiratssiekoedel:
Couldn't find that folder in TWRP. I only can see the internal storage, not the sd card.

Managed to do it by starting in TWRP recovery, connect the phone to the pc, transfer the zip file (folder sdcard/twrp) and flash the zip.
[Sony Xperia M] PecanCM:
latest nightly coming with adaptive low memory killer enabled. i'm testing adaptive LMK from 4 days and haven't noticed any performance drops yet but if you face after flashing latest nightly then report it.
[Sony Xperia M] kh34d:
many thanks for your hard work and appreciate your efforts:cowboy:
[Sony Xperia M] Bonoboo:
This means, that more apps will persist in memory without re-loading?

Depending from what criteria adaptation performs?

And how about enabling ZRAM (commit) ?

Apps more and more "hungry" to memory, but we still have 500 MB "userspace".

This can be good addition to LMK tweak.
[Sony Xperia M] PecanCM:
well when there is scenario where tasks isn't available in certain obj or when where there are huge number of file pages which results in lmk not killing any task aka slowness,thrashing scenario then adaptive lmk is used and zram was disabled for battery drain.
[Sony Xperia M] Bonoboo:
It's what I often experienced last time: RAM somewhere "leaked" (even after root task-killer) and all going slow. Helped only reboot.

Thanks for explanation and in-time fix!

Also build with commit is up.

Back to brightness tuning.

Sorry, but maybe part of values by mistake missed during copying and this causing 44 as minimal?
[Sony Xperia M] kh34d:
Yes.
[Sony Xperia M] dastan4eva:
Ok guys help me out on this one - whenever i format sd card as internal it goes corrupted and i have to format back to portable to make it work , anybody else having the problem ?
[Sony Xperia M] kh34d:
Maybe your class-card is 4 like me.

Any questions please post here.

Thanx

http://xdaforums.com/showthread.php?t=3230983