How to protect background service/alarms to be kill in newly launched devices in customized OS like oppo - coloros, vivo-funtouch os, Xiomi-MIUI os? : <p>I have a <code>WakefulBroadcastReceiver</code> with <code>IntentService</code>, every half hour alarm called and doing some stuff.
I have already handle doze mode with <code>setExactAndAllowWhileIdle()</code> method.</p>

<p>Some new smart phones with customized os recently launched in market they have their own customized os 
based on android os. Like oppo with color os, vivo with funtouch os, xiomi with MIUI os. In the OSs
there is a feature to clear memory. They have one touch clear memory option. for example if user clear recent app list 
or remove app from recent app list app's all background service along with all alarms will be killed.</p>

<p>How to work with these new OS?</p>
