{"id":38,"date":"2019-10-06T13:04:09","date_gmt":"2019-10-06T13:04:09","guid":{"rendered":"https:\/\/plusnow.me\/documentation\/?docs=adshield-for-android\/troubleshooting\/how-to-protect-adshield-from-being-closed-by-the-system"},"modified":"2020-09-09T08:25:03","modified_gmt":"2020-09-09T08:25:03","slug":"how-to-protect-adshield-from-being-closed-by-the-system","status":"publish","type":"docs","link":"https:\/\/plusnow.me\/documentation\/?docs=adshield-for-android\/troubleshooting\/how-to-protect-adshield-from-being-closed-by-the-system","title":{"rendered":"How to protect AdShield from being closed by the system"},"content":{"rendered":"\n<p>Smartphones are getting more and more powerful, but the battery capacity is lagging behind. That&#8217;s the reason why nowadays some OEMs (e.g. Nokia, Xiaomi, Vivo, Samsung or Huawei, etc.)\u00a0are killing background applications without users&#8217; consent, and they call it &#8220;optimization&#8221;. To avoid the background app termination you need to follow these steps for each manufacturer of Android OS. <strong>Note that instructions for different manufacturers or different versions of customized Android firmwares are mostly very similar.<\/strong><\/p>\n\n\n\n<ul><li><a href=\"https:\/\/plusnow.me\/documentation\/?docs=adshield-for-android\/troubleshooting\/how-to-protect-adshield-from-being-closed-by-the-system#xiaomi\">Xiaomi<\/a><\/li><li><a href=\"https:\/\/plusnow.me\/documentation\/?docs=adshield-for-android\/troubleshooting\/how-to-protect-adshield-from-being-closed-by-the-system#huawei\">Huawei<\/a><\/li><\/ul>\n\n\n\n<p><\/p>\n\n\n\n<h2>Xiaomi<\/h2>\n\n\n\n<p>Step one, <strong>pin AdShield to the&nbsp;recent&nbsp;apps&nbsp;tray<\/strong><\/p>\n\n\n\n<ul><li>Open AdShield<\/li><li>Launch multitasking&nbsp;view<\/li><li>Long press AdShield preview<\/li><li>Tap lock icon<\/li><\/ul>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img loading=\"lazy\" src=\"https:\/\/plusnow.me\/documentation\/wp-content\/uploads\/2019\/10\/image-1-512x1024.png\" alt=\"\" class=\"wp-image-40\" width=\"223\" height=\"446\" srcset=\"https:\/\/plusnow.me\/documentation\/wp-content\/uploads\/2019\/10\/image-1-512x1024.png 512w, https:\/\/plusnow.me\/documentation\/wp-content\/uploads\/2019\/10\/image-1-150x300.png 150w, https:\/\/plusnow.me\/documentation\/wp-content\/uploads\/2019\/10\/image-1-768x1536.png 768w, https:\/\/plusnow.me\/documentation\/wp-content\/uploads\/2019\/10\/image-1.png 1080w\" sizes=\"(max-width: 223px) 100vw, 223px\" \/><\/figure><\/div>\n\n\n\n<p>Step two, <strong>allow autostart<\/strong><\/p>\n\n\n\n<ul><li>Open<strong>&nbsp;settings.<\/strong><\/li><li>Select&nbsp;<strong>installed apps<\/strong>&nbsp;under app settings.<\/li><li>Select AdShield.<\/li><li>Select the&nbsp;<strong>other permissions<\/strong>&nbsp;under permissions.<\/li><li>Select&nbsp;<em>start in background<\/em>&nbsp;to&nbsp;<strong>on<\/strong><em>.<\/em><\/li><\/ul>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img loading=\"lazy\" src=\"https:\/\/plusnow.me\/documentation\/wp-content\/uploads\/2019\/10\/image-2-512x1024.png\" alt=\"\" class=\"wp-image-41\" width=\"223\" height=\"446\" srcset=\"https:\/\/plusnow.me\/documentation\/wp-content\/uploads\/2019\/10\/image-2-512x1024.png 512w, https:\/\/plusnow.me\/documentation\/wp-content\/uploads\/2019\/10\/image-2-150x300.png 150w, https:\/\/plusnow.me\/documentation\/wp-content\/uploads\/2019\/10\/image-2-768x1536.png 768w, https:\/\/plusnow.me\/documentation\/wp-content\/uploads\/2019\/10\/image-2.png 1080w\" sizes=\"(max-width: 223px) 100vw, 223px\" \/><\/figure><\/div>\n\n\n\n<p><\/p>\n\n\n\n<h2>Huawei<\/h2>\n\n\n\n<p>Step one<\/p>\n\n\n\n<ul><li>Tap on the&nbsp;<em>Recent tasks<\/em>&nbsp;button<\/li><li>Tap on the lock icon<\/li><\/ul>\n\n\n\n<p>Step two, <strong>allow autostart<\/strong><\/p>\n\n\n\n<ul><li>Open<strong>&nbsp;settings.<\/strong><\/li><li>Select&nbsp;<strong>Apps<\/strong>&nbsp;under settings.<\/li><li>Select Apps.<\/li><li>Select the&nbsp;<strong>permissions<\/strong>&nbsp;under AdShield.<\/li><li>Select&nbsp;<em>run at startup<\/em><strong>.<\/strong><\/li><\/ul>\n\n\n\n<h4 id=\"huawei-p9-plus\">Huawei P9 Plus<\/h4>\n\n\n\n<ul><li><em>Phone settings &gt; Apps &gt; Settings &gt; Special access &gt; Ignore battery optimisation &gt;<\/em>&nbsp;select allow for AdShield.<\/li><\/ul>\n\n\n\n<h4 id=\"huawei-p20-huawei-p20-lite-huawei-mate-10\">Huawei P20, Huawei P20 Lite, Huawei Mate 10<\/h4>\n\n\n\n<ul><li><em>Phone settings &gt; Battery &gt; App launch<\/em>&nbsp;and then set AdShield to \u201cManage manually\u201d and make sure everything is turned on. <\/li><\/ul>\n\n\n\n<h4 id=\"huawei-honor-9-lite-huawei-mate-9-pro\">Huawei Honor 9 Lite, Huawei Mate 9 Pro<\/h4>\n\n\n\n<ul><li><em>Phone settings &gt; Battery &gt; Launch<\/em>&nbsp;and then set AdShield to \u201cManage manually\u201d and make sure everything is turned on.&nbsp;<\/li><\/ul>\n\n\n\n<p>Still not working? Take a look at <a href=\"https:\/\/www.digitalcitizen.life\/stop-huawei-from-closing-apps-when-you-lock-screen\">this guide<\/a>.<\/p>\n","protected":false},"featured_media":0,"parent":29,"menu_order":2,"comment_status":"open","ping_status":"closed","template":"","doc_tag":[],"_links":{"self":[{"href":"https:\/\/plusnow.me\/documentation\/index.php?rest_route=\/wp\/v2\/docs\/38"}],"collection":[{"href":"https:\/\/plusnow.me\/documentation\/index.php?rest_route=\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/plusnow.me\/documentation\/index.php?rest_route=\/wp\/v2\/types\/docs"}],"replies":[{"embeddable":true,"href":"https:\/\/plusnow.me\/documentation\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=38"}],"version-history":[{"count":9,"href":"https:\/\/plusnow.me\/documentation\/index.php?rest_route=\/wp\/v2\/docs\/38\/revisions"}],"predecessor-version":[{"id":87,"href":"https:\/\/plusnow.me\/documentation\/index.php?rest_route=\/wp\/v2\/docs\/38\/revisions\/87"}],"up":[{"embeddable":true,"href":"https:\/\/plusnow.me\/documentation\/index.php?rest_route=\/wp\/v2\/docs\/29"}],"prev":[{"title":"Battery issue","link":"https:\/\/plusnow.me\/documentation\/?docs=adshield-for-android\/troubleshooting\/battery-issue","href":"https:\/\/plusnow.me\/documentation\/index.php?rest_route=\/wp\/v2\/docs\/30"}],"wp:attachment":[{"href":"https:\/\/plusnow.me\/documentation\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=38"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/plusnow.me\/documentation\/index.php?rest_route=%2Fwp%2Fv2%2Fdoc_tag&post=38"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}