yashsingh1/xdaforums huggingface dataset:
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] jmga:
Hi! I cannot try your build right know, what changes did you make to the device tree?

These are my current issues:

- com.android.phone is in a crash loop

- Bluetooth not working

- camera not working

- video playback not working

These are the changes I made to the device tree:

project device/samsung/mondrianwifi/
[COLOR="RoyalBlue"]diff --git a/cmhw/org/cyanogenmod/hardware/DisplayColorCalibration.java b/cmhw/org/cyanogenmod/hardware/DisplayColorCalibration.java[/COLOR]
index 80bbfad..ca1b20d 100644
--- a/cmhw/org/cyanogenmod/hardware/DisplayColorCalibration.java
+++ b/cmhw/org/cyanogenmod/hardware/DisplayColorCalibration.java
@@ -18,7 +18,7 @@ package org.cyanogenmod.hardware;

import java.io.File;
import java.util.Scanner;
[COLOR="Red"]-import org.cyanogenmod.hardware.util.FileUtils;[/COLOR]
[COLOR="Lime"]+import org.cyanogenmod.internal.util.FileUtils;[/COLOR]

public class DisplayColorCalibration {
private static final String COLOR_FILE = "/sys/class/graphics/fb0/rgb";
[COLOR="RoyalBlue"]diff --git a/cmhw/org/cyanogenmod/hardware/KeyDisabler.java b/cmhw/org/cyanogenmod/hardware/KeyDisabler.java[/COLOR]
index 77fdaa9..2d3d7b5 100644
--- a/cmhw/org/cyanogenmod/hardware/KeyDisabler.java
+++ b/cmhw/org/cyanogenmod/hardware/KeyDisabler.java
@@ -16,7 +16,7 @@

package org.cyanogenmod.hardware;

[COLOR="Red"]-import org.cyanogenmod.hardware.util.FileUtils;[/COLOR]
[COLOR="lime"]+import org.cyanogenmod.internal.util.FileUtils;[/COLOR]

/*
* Disable capacitive keys
[COLOR="RoyalBlue"]diff --git a/sepolicy/mediaserver.te b/sepolicy/mediaserver.te[/COLOR]
index 5e91e75..0a18be8 100644
--- a/sepolicy/mediaserver.te
+++ b/sepolicy/mediaserver.te
@@ -1,10 +1,6 @@
allow mediaserver firmware_file:dir r_dir_perms;
allow mediaserver firmware_file:file r_file_perms;
[COLOR="Red"]-allow mediaserver shell_data_file:dir search;[/COLOR]
allow mediaserver socket_device:sock_file write;
allow mediaserver system_data_file:sock_file write;
allow mediaserver system_prop:property_service set;
allow mediaserver thermal-engine:unix_stream_socket connectto;
[COLOR="Red"]-# This sucks but needed for libmmjpeg[/COLOR]
[COLOR="Red"]-allow mediaserver system_file:file execmod;[/COLOR]
[COLOR="Red"]-[/COLOR]
[COLOR="RoyalBlue"]diff --git a/sepolicy/mm-qcamerad.te b/sepolicy/mm-qcamerad.te[/COLOR]
index 1961a11..8dafbe0 100644
--- a/sepolicy/mm-qcamerad.te
+++ b/sepolicy/mm-qcamerad.te
@@ -5,10 +5,6 @@ allow mm-qcamerad mpdecision:unix_stream_socket connectto;
allow mm-qcamerad camera_socket:sock_file { create unlink };
allow mm-qcamerad system_data_file:sock_file unlink;
allow mm-qcamerad socket_device:sock_file write;
[COLOR="Red"]-allow mm-qcamerad system_file:file execmod;[/COLOR]
allow mm-qcamerad system_data_file:dir { add_name remove_name write };
allow mm-qcamerad system_server:unix_stream_socket rw_socket_perms;
type_transition mm-qcamerad system_data_file:sock_file camera_socket "cam_socket3";
[COLOR="Red"]-[/COLOR]
[COLOR="Red"]-# This sucks but needed for libmmjpeg[/COLOR]
[COLOR="Red"]-allow mm-qcamerad system_file:file execmod;

[/COLOR]
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] shima_momy:
Hey man, is it possible to get the 12.2 Tab Pro version asap?

Can I use this Guide to port it to 12.2?
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] Migush:
I didn't change anything in the device tree, remember I'm just a beginner, I have no idea why you edited the device tree, :( please explain things in a bit more details :eek:
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] jmga:
You surely did haha

Just type repo diff > diff.txt and you will have all the changes you made into a txt.
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] sjavvaji:
Random question, does the hangouts crash bug still exist on CM14? It is driving me crazy on CM13. I'll start testing the build after I'm done with my tests next week.
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] innocentus:
try cyanide bug free until this come up i used for 6 months now before temasek and last updates was buggy
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] singularity77:
installed cm 14 unoffical yuga on my Xperia Z and it's real nice and smooth, only one big bug....the dialer is not working....so i'm uninstalling....I love Nougat and this rom. hope there's a fix for the dialer soon.

But shouldn't be a problem on this version as there is no need for a dialer on my Tab Pro

---------- Post added at 05:20 PM ---------- Previous post was at 05:12 PM ----------

Yeah i can live without the cam, never use it anyway....but videoplay playback is a must
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] sjavvaji:
Can anyone compile a newer build or is there any other means to get CM14 on this device?
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] rnwalker7:
You're mostly correct. The 8.4 is the one that has the different chipset from the other two, being the only one that is Qualcomm-based. The 8.4 has the Snapdragon 800, while the other two are using Samsung's Exonys 5420 chipset. The main difference is that Qualcomm's stuff is open-source under the Code Aurora project, while Samsung doesn't release their source code (except for the kernel, which is required under the Linux GPL).

TL;DR - due to the different chipsets and business philosophies, 10.1 and 12.2 users might be waiting a while for Nougat. I think y'all just recently got a stable version of Marshmallow, while 8.4 users have had it for months.
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] osssinator:
Which Gapps you choose?
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] the Doctor:
Open gapps ARM 7.0 nano or pico.
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] osssinator:
Camera does not work, Adaway also doesn't,
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] the Doctor:
These are common problems with CM14 at the moment. It's the same on my OnePlus One.
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] osssinator:
I've fixed the Adaway issue through Material Terminal. Camera still no idea.
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] ianrobbie:
Are the camera and Adaway the only issues? How stable is this?
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] the Doctor:
This is the current state of CM14 ATM.
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] robhug:
Video playback will be fixed ? This is the only bad thing about this rom :) great
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] Ichijoe:
Again mostly correct, but let us break this down correctly shall we?

T320 - TAB Pro 8.4 WiFi - Snap 800

T325 - TAB Pro 8.4 LTE - Snap 800

T520 - TAB Pro 10.1 WiFi - Exynos 5420

T525 - TAB Pro 10.1 LTE - Snap 800

T900 - TAB Pro 12.2 WiFi- Exynos 5420

T905 - TAB Pro 12.2 LTE - Snap 800

So only the 10.1, and 12.2 WiFi versions are somewhat different. I guess the correct question to ask (since I'm ignorant of such counts), would be how the Mali T628 MP6 handles the Vulkan API?

In the case of the Snap 80x those that have bothered to keep up will have already known that the Snap 80x & Adreno 330 does not, and will not support Vulkan ever!

Google have since made Vulkan a requirement for anything coming up, for v7, and beyond. And such things that can't will officially be left behind. Even such Devices which have received way better support over the years, than anything that Samsung was assed to push our way. (I'm looking at you S0NY Z3), Will be left in a lurch 'cause of this.

In short Qualcomm have dropped all support for the Snap 80x, and as of now the older Lollipop & Marshmallow Drivers, that were managed to get kludged together thus far. Just simply do not work under Nougat.

There is some reason to hope, that this to might be kludged together again at some point. But, that's the rub, this is likely gonna take a boatload of time to get working.
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] lolwatpear:
Are there any devices at all with unsupported graphics for Vulkan that are actually working with an unofficial cm14?

If this can't be figured out, this ruins the best tablet out there. It's a 2014 device and yet nothing has come out as a worthy replacement. I've tried everything out there, but always go back to the tabpro 8.4.
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] Ichijoe:
Which is even more of a shame, that Shammy were never so much we as arsed to push up a proper Lollipop update for us. Much less a Marshmallow one. If Nougat never comes to the Tab Pro (8.4 & 10.1), I think I could be just as satisfied that we were at least able to get this far. If Samsung had their way, then we'd all still be on KitKat.
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] Sterist:
[MENTION=7396397]Migush[/MENTION]

if you need any pointers for the Qualcomm 12.2 there's a build right now for the NOTE pro 12.2

http://xdaforums.com/galaxy-note-pro-12/development/rom-cyanogenmod-14-0-android-7-0-nougat-t3476335

the note pro and tab pro have very similar hardware -- versions (tab pro 12.2 <---> note pro 12.2) that share a same processor, have inter-compatibility with their roms.

I know that a lot of TAB pro 12.2 WI-FI users used NOTE pro 12.2 WI-FI roms early in the devices's life

the only problem was "auto" rotate wouldn't work on a TAB using a NOTE's rom. could still be forced using an app.
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] crisis_trustee:
Dear Migush,

Where is link for cm14.0 build (better for cm14.1 build) download of picassowifi?
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] Nifel:
Just wanna say thanks for this works, and hope we can get a free error Nougat for our Tab Pro 8.4 :)
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] AirForceOnes0010:
Would a donation help sway your decision to work on the 12.2 version more? I see bounties on xda all the time for root, I'll start one for a daily driveable T900 CM14 if it's kosher with the rules and anyone else is interested. I'd think ~25 or so $10 donations could get this man a decent ebay 12.2 to work on? I paid 300 but it is mint and came with accessories and already rooted. I plan on keeping this awhile so I'll gladly vouch for 2 of the 25 and throw down $20. I don't really know how these things work so anyone chime in if this is dumb/illegal/whatever. I was just thinking that the 12.2 crowd was willing to spend more and go big, there's got to be a dozen or so of us willing to grease the wheels a little and make it happen?
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] thompatry:
This thread is only supporting for a Snapdragon device. I can promise you that it will not run on a Exynos device. Right now I am working on some N stuff for T900. CM14 isn't necessarily stable either yet. Give it a little bit of time and it will come out. I promise, I will put of CM-14 for the T900 (Tab 12.2). If you are interested, CM-13.0 is very stable on the the T900 right now. I also have have T900 that I can test on.
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] AirForceOnes0010:
Thanks for the clarification. I didn't mean to sound impatient, was just trying help. Unless I missed something, nothing in the OP mentions snapdragon only and in post #5 you specifically mention that you don't own a T900 so I was going to try and crowdsource you one lol. A regular donation next time I get paid will have to do. Thank you for all your time/effort you put into this, I'm thoroughly enjoying the 11-4 build of CM13 until you get 14 up and going, very stable.

Edit: post #5 wasn't you, my mistake. Migush is the one who needs a T900!
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] Ichijoe:
Is it just me, or are Qualcomm the only ones actually bothered to adhere to the GPL, and release Source Materials? I get that MediaTek, Rockchip, Allwinner, and AMLogic won't ever make anything available for us. But, I would have thought we could have at least shamed Samsung into releasing Code by now.
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] republicano:
I have been scouting this forum lately since i have a chance to get a tab 10" for a good price, only to find its Exynos and still has not gotten lollipop officially.

I Swear i have to write this stuff down to remind me to avoid these chipsets.
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] Ichijoe:
Well don't feel too left out, it's not like Sammy have ever treated the (Qual) 'commis any better. The only difference is Qualcomm have actually, managed to release enough Documentation, and Source materials for those that knew how to build an AOSP from stock.

Since the Exynos is made by Samsung... Well Let's just say I wish they were more like Qualcomm. But, since they are not there is just not enough Source Code to do anything with. Upshot no AOSP.
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] Ichijoe:
What kinda question is that? ~Should I continue to develop cm-14?~ Unless you hit a wall where it's just no longer possible, then yes definitely, you should. Again as long as you are willing to do it.
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] aliusman999:
I think his point was to see how many people are interested in 14.1 :) for older devices like these
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] Ichijoe:
It seemed like a rhetorical question. Yes I would have an interest of a Nougat Update for the T32x assuming that such an Update were possible.
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] dorpmuller:
My tired 10.1 would love CM14!

Rich
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] fighuass:
10.1 user here, just made an account to tell you that I really support you doing this!
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] Ichijoe:
Not to rain on anyone's Parade, but does really expect the T520 (Exynos), to ever possibly enjoy more than the piddly support it has thus far managed?

Lord knows it's gonna be hard enough just porting Nougat to the Snap800 (For which exists Source Material), the Exynos however? Has no real Source Material.
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] marctca:
here is sm-t520 cm13 for picassowifi ..

http://xdaforums.com/galaxy-tab-pro...0-xsm-t520-unofficial-cyanogenmod-13-t3466579

simply just great !
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] Ichijoe:
I didn't mean to say it was impossible, just improbable. And, doesn't that version have problems, like mounting SD Storage, and Auto Rotate?
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] jfrankki:
Please continue development on sm-320! I love my tablet!
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] shakatu:
Nope. Been using it as a daily driver for quite a while! All bugs have been worked out at this point, other than speaker audio is quieter than stock but flashing Dolby Atmos fixes that.
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] boxguy1:
thank you i was getting tried of cm13
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] smalis:
Here is Nougat for the 10.1 Pro, posted by pchatzop in the CM 13 thread:

"I made this as an experiment for personal usage, but it turns out it works fine so im sharing it. Here is Resurrection Remix 5.8.0(nougat) for n2awifi: https://mega.nz/#!UoAB1RwK!D8J3AhoyZ...wwfjePVOb5FUq0 . No serious bugs noticed yet, everything seems to work, have fun with the build and do as you like, download it, share it, mirror it, i dont care, just a few credits would be fine. Most of the work it done by the exynos-5420 team anyways, all i did is compile their sources. "

I will be trying this tomorrow.
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] fighuass:
Do you need gapps with that?
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] Migush:
I'm sorry it took long :(. I could use some help because I'm not a "real" developer, and do not have the knowledge to fix problems in this rom.
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] amityg:
Thank you. I noticed root access options are "disabled" or "ADB only"?
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] Migush:
How do you mean? There are four options: disabled, apps only, adb only and "apps and adb"
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] amityg:
After clean install of 16-17 all I see is disabled and ADB only. I have two 320. I'm running all nightly 7 roms that I find.

I did see in change log from 15 to 16 that disable was to default. I lost root on both devices. Your rom and Jenkins 16-17
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] Migush:
I still have four options, maybe it's because you did a clean install?
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] Cobra04:
Check out the latest Lineage blog post. Apparently going forward, they will not have root built-in unless the device maintainer chooses to do so.

http://lineageos.org/Update-and-Build-Prep/
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] azadaK:
Thanks Migush! Great Job. Waiting for the final release. This tab is very good one so keep updating the final version for us. I know it is a lot of work. Still couldn't resist my hearty thanks to you and others who contribute for this OS 14.1. Take care guys.
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] azadaK:
Great Job Keep Going

Thanks Migush! Great Job. Waiting for the final release. This tab is very good one so keep updating the final version for us. I know it is a lot of work. Still couldn't resist my hearty thanks to you and others who contribute for this OS 14.1. Take care guys.
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] maximh23:
i flash supersu from supersu site , and i have no problems
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] josepmaria:
If you want root your device check:

https://download.lineageos.org/extras

su(arm) option.
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] Cobra04:
I wouldn't trust it
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] azadaK:
Hi Migush. Waiting for your final stable release. I appreciate your effort to keep us up-to-date. I tried your present OS but went back again to CM13 nightlies. Gapps 7.1 were not working properly. That was the reason for switching back. Wishing to have a trouble free OS from you. Thanks a lot for your effort.
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] ranchid:
Hello

I always get error code 7 . TWRP is installed but i cant install the .zip Image .. What could be wrong ?

I have a Tab Pro 8.4 - SM320

Thanks
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] Pauleberber:
Doesn't work on my device (sm-t325) had to flash supersu ZIP file Form supersu.com with Twrp to geht root access!!
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] tripLr:
20170323 patched in

Thanks very smooth.
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] Sirocco.ukr.lviv:
update your TWRP = https://eu.dl.twrp.me/mondrianwifiue
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] Nemesis1980:
Hello.

Will there be any more updates in this thread ?
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] Migush:
I might change this thread to AOSP developing. Lineage OS 14.1 is already being made for the Tab Pro SM-T320
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] jemsgaelle:
This rom is develloped now

https://download.lineageos.org/mondrianwifi;)
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] benjaminclaw:
That thread seems to say Lineage 13. Is it marshmallow?
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] Migush:
The link Jemsgaelle provided is indeed marshmallow. A thread about Lineage OS 14.1 can be found under 'original Android development' on xda.
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] drziddo:
Thanks
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] Spud37:
Why was this discontinued? Was it only discontinued for a linage version based on 8.0?
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] Migush:
Another member of the forums, [MENTION=2833355]phoval[/MENTION], was and still is releasing daily builds for the SM-T320 while I wasn't. That's why I discontinued the development for this rom.
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] Marc0601:
Hey, is legacy camera hal flag enabled in this rom??
[LG G5 Questions & Answers] BahnStormer:
I've had my LG-G5 H850 for a few months now.... really hated the LG UI, but managed to get it close to usable with Google Now, etc so I didn't rush into it....

The only thing about the LG ROM that I'm nervous about losing is the LG camera software.... does the dual mode camera and all the manual options (incl RAW photo's, etc) still work in Cyanogenmod / similar?

Which ROMs are people running? I notice that there's still no Cyanogenmod/Mokee build for the G5 :(

Are people just running stock, rooted and debloated?
[LG G5 Questions & Answers] Deleted member 6892871:
Custom Roms

Hey

As you already know there are currently no cm roms as of yet but there are 3 custom roms to my knowledge. The current custom roms all use the flagship camera software so your good to go ahead with flashing any one of them.

I doubt Cm will run the flagship flagship camera software and im unaware of any cm camera software utilising the 3 cameras as of yet.
[LG G5 Questions & Answers] jimmmysil:
I was a D855(G3) owner for the past 3 years. The Rom development was huge but unfortunately no cm based or aosp based Rom was able to go even close to stock camera quality. LG camera framework was closed coded and LG hasn't shared the code yet. So I guess the same thing will happen to G5. I just hope for more developers to join the G5 community.
[LG G5 Questions & Answers] Pphish20:
I was also on LS990 lg g3 since it's release till coming to g5 and I mainly ran pure AOSP,XenonHD with a few exceptions for some CM-based ROMs... Till I found Fulmics(which was similar to UX 5.0) which was amazing despite missing some features find in AOSP/CM-style ROMs

But I must say I love UX 5.0 with app drawer; I think I'm part of the minority that thinks LG did a great job with their new UI,esp compared to the old UI's...

At this point I wouldn't want to run CM-anything...esp if it means giving up my camera! I mean if u want a circle battery icon that bad just install gravity box... But this UI has grown on me
[LG G5 Questions & Answers] BahnStormer:
Any specific custom ROM recommendations?

I was going to follow this thread: http://xdaforums.com/lg-g5/development/recovery-team-win-recovery-project-lg-g5-t3363047

and then CMremix (based on CM-14.1)... I think!! (from here: http://xdaforums.com/lg-g5/help/rom-cmremix-rom-v1-xx-t3502055)

And thanks for the info about the LG camera software - it's the one piece of LG software that I've been really happy with - definitely would have looked to keep that, so good to hear that it is being ported as-is into the custom ROMs.

Ever since Samsung "did an Apple" and abandoned all their enthusiasts and tweakers (as Apple did in the 1980's), I've been looking for an alternative like LG!!!
[Security Discussion] urhaxable:
My phone is rooted and I'm wanting to know if there is a better way to control your device, track your device, etc than google device manager? Google device manager locate doesn't work if someone disables GPS.. Is there an app that let's you enable GPS? Also I tested and locked my device, a notification appears, changes the password, but all you do is hit nothing and reboot phone and it goes away and I can use the phone without the new password set by google device manager locking feature. I didn't test the erase as I didn't want to get rid of all my stuff and I still have the device, I was just testing.

Thanks
[Security Discussion] minimale_ldz:
You can play with Tasker and make it do what you want
[Security Discussion] IronRoo:
I use Cerberus ($), disguised version, installed as a system app with link2sd, then you have to set up lock screen so wifi & data can't be changed and a setting in Cerberus.

But it's a bit of a pain if you flash nightlies regularly as you have to revert Cerberus to a normal app before flashing your new ROM, even worse if you forget!
[Xiaomi Redmi 2 Questions & Answers] Douglas404:
How can I make sure that the phone will sound the alarm using the Naptime ?
[Xiaomi Redmi 2 Questions & Answers] Riyanx55tu:
Use a default alarm clock...whats nap time?