Lollipop - Apps not autostarting - General Questions and Answers

Hi. I have Alcatel 5054D with Lollipop (5.1.1) on board. I noticed that many apps are not starting on boot or on events that are fired by the OS. For example, when my phone was not rooted I tried to install Truecaller, Truemessenger and Textra. They simply didn't work just after reboot or if I removed them from the recent apps list. What is worse SMS apps won't start on new incoming SMS, it just disappears without any reaction from Textra or Truemessenger. But everything works fine when I start these apps manually and keep them in the background.
Then I rooted my phone, installed Link2SD and noticed that it fails to start after a reboot too! I have to launch it manually for the paths to be rebinded.
I installed autostart manager and it showed that all the events (receivers) for these apps are enabled.
On the other hand standard SMS app, Whatsapp, Viber, GMail do autostart and work properly.
I have no task killers installed and cannot figure out the reason of the issue.

Try wiping your cashe partition and reboot, if that doesn't work BACKUP YOUR DATA and perform a factory reset and see if it solves it.
Press thanks if it helped.

RESOLVED
It's not a bug, it's a feature: restricted apps. This can be found in Settings - Apps - (several swipes to right). Also, it seems that an app can be restricted only if it is stored in the internal memory.

Related

[Q] Auto-reinstall apps after hard reset (I know it's been asked, but please read)

My phone is slow as hell and I need to hard reset. I remember before, all my apps auto-downloaded afterwards. The settings were gone, but that's fine. I have tried several times (restoring from nandroid backup) and each time, nothing seems to happen despite leaving the phone on overnight. I have searched other threads and found the following:
I need to have "back up my data" and "automatic restore" checked in Settings -> Privacy. Did that before hard reset.
Found this answer: "if you go to the Play app and tap the 3 icons top right there is a setting so auto update the apps." Auto update doesn't appear to work, all it does is update apps you already have installed. After hard reset I only have about 15 basic apps, none of my old ones.
Found this answer: "All your phone apps are collected together in your market library. Just go there ad push the apps once again to your phone (just half a minute job actually). Its a bit tricky because the install button for push is hidden." So where is the hidden button?
I don't want to use a third-party app like Titanium Backup. I'd prefer a clean re-install from Google, not apk. I think some of my apk files and settings were the problem in the first place.
I could just reinstall all of them manually, but I have a lot and Google Play mixes up the apps I had installed with all of the apps I uninstalled years ago. I can't tell the difference!

Problem with facebook app on 6.0 rom

So I installed 6.0 ROM from Sultan about two weeks ago. Since about a week, my facebook app crashed and has since not wanted to reopen. It starts the app, colours my notification bar blue (like it always does when starting up), gives me a five second whitescreen, then it kills the app.
I've tried installing older versions of the app, newer versions of the app and the same version, all end up in the same place. Deleted data, cache when the app is installed and tried then, but no luck. I have a feeling the app just isn't even installing anymore because every night I get triggered to ''update'' facebook, which is the same 41MB the actual app is when you download it for the first time.
How do I completely wipe ALL of this app's data from my phone without having to do like a clean install? Or is this a problem common with this rom/6.0 and can I fix this? Any help is much appreciated, I'm lost. Every other app works just fine.

Wiko Lenny 3 + Marshmallow + Root + Xposed + Autostart bug

This is not meant to be a detailed tutorial, but rather an overview of the struggle I had to root and modify a Wiko Lenny 3 (with links for convenience), so others can benefit.
About a week ago I purchased a Wiko Lenny 3, a device with minimal RAM specs (1GB) for Marshmallow. This creates problems with app-notifications due to the Phone Assist (/system/vendor/operator/app/ApePhoneAssist) and Protected Apps (/system/app/CustomWhitelist) software that is pre-installed by Wiko to compensate for the low RAM.
First, I freshstarted the phone and put in the basic configuration. I immediately updated the system to OTA version V54.
Then I flashed TWRP 3.0.3-0 with SPFlashtool from this site:
http://www.needrom.com/download/recovery-twrp-wiko-lenny-3/ .
There is also TWRP 3.0.2 available but that DID NOT WORK on my phone:
http://drive.google.com/file/d/0B6isv8b6duCrbjdJbDVlRFpONlk/view
After that I rooted the thing via TWRP with SuperSU.zip, and installed Xposed via TWRP. I debloated the phone by removing most Google trash.
I use Syncthing to sync the contents of my external SD card to other devices. But Syncthing needs write permission on the SD card and Marshmallow mounts the SD card read only, and can only give write permission to the ./Android folder on the SD card. I fixed this with XInternalSD. The other option, Marshmallow SD Fix 2.0, DID NOT WORK.
http://forum.xda-developers.com/xposed/modules/xposed-disablesignaturecheck-t2789267
http://forum.xda-developers.com/xposed/modules/xposed-marshmallow-sd-fix-write-t3403263
So far, so good. However, after a while I noticed that FaceSlim (lightweight FB client) did not send push notifications. FaceSlim works perfectly on my old KitKat phone and also on a Lollipop tablet. So I checked running processes with OSMonitor and it turned out that FaceSlim was not being autostarted at boot. Some other services were not autostarted at boot as well:
AFWall+
Applock
DataStats
EZ Wifi Notification
FDroid
MaterialFBook
WiFi Automatic
Xprivacy
I have K-9 Mail installed as well but that app actually DID send notifications, for a while at least, later on it would not work anymore.
DataStats would not stay on screen if I forced closed it after starting it manually.
AFWall+ would only start if I added the widget on the home screen.
I tried every recommendation, like disabling doze mode for all apps and whitelisting the apps in Wiko's "Phone Assist" app, an overly aggressive resource manager that is shipped on Wiko phones, probably to make up for the low RAM. Nothing would autostart the apps.
So, I decided to flash the phone to its original state, using the official vanilla ROM from Wiko (V54), just to see if rooting screwed up the phone:
http://nl.wikomobile.com/maj.php?telephone=1246
After flashing the phone, I tried to get notifications from FaceSlim, but that still wouldn't work, so i guess the problem was not in my rooting the phone.
I also tried to flash TWRP again but this DID NOT WORK WITH THE DOWNLOADED ROM FROM WIKO (as opposed to the OTA update). TWRP got installed, but the phone would hang at startup at the Lenny logo, not booting to the UI.
Fortunately I had a TWRP backup of the old system and I flashed it, I could again boot into the UI now.
I found that other users experienced similar behaviour:
http://www.android-hilfe.de/thema/a...enachrichtigungen-funktionieren-nicht.781196/ (German)
http://android.stackexchange.com/qu...ground-sync-processes-wiko-lenny-3-what-to-do
As said earlier the Wiko has two pre-installed apps that manage autostart behaviour and power management.
1 - The "Phone Assist" software has a "Boot Optimize" screen. This feature does work for some apps, but not at boot level. When I deny autostart for AFwall+, it comes up after a reboot and is killed shortly thereafter. If I disable everything in Boot Optimize, the switch for Applock and Wetteronline returns to enabled after a reboot. Moreover, it cannot prevent Instagram from starting, one power hungry app.
2 - Phone Assist also has a "Power Management > Power saving" mode presumably to restrict network acces for apps in screen-off mode. This could be the same as the 3rd party Doze apps on Google Play that use a local VPN to restrict per-app network acces in standby mode. It is debatable if this saves much power, and there could be a security risk.
3 - Phone Assist also has in "Power Management > Advanced > Gear icon > Whitelist" (free translation, my language is Dutch) a screen to "whitelist background apps". If you whitelist an app here, it is simultaneously enabled in the previous menu ("Power Management > Power saving"), so I suspect this menu is redundant.
After playing around with the various settings in "Phone Assist", NOT A SINGLE APP WOULD START AT BOOT ANYMORE, even if I whitelisted all.
4 - The "Protected Apps" feature, found in the Android Settings, will allow you to whitelist apps for autostart. If you put this app in default mode, it will select some apps to start at boot by itself. If you whitelist apps, they indeed do start at boot. But "Protected Apps" has a limit of four apps that are allowed to autostart. This makes use of the phone for social networking/email very limited. Some Huawei phones have this feature too, and also with a limit of four apps. This is clearly an attempt to make up for the low RAM in this device, preventing users from running too many background apps. "Protected Apps" overrides all "Phone Assist > Boot Optimize" settings, making the latter effectively useless.
5 - On top of that there is the native Marshmallow Doze mode, which requires that you whitelist apps from Doze power management.
As you can see this is a complete mess. To enable/disable an app from autostart or power saving modes you have to visit two to five configuration screens. Tinno is the company that programmed this disaster (http://tinno.com/homepage?lang=en). Actually Wiko phones seem to be rebranded Tinno phones.
"Phone Assist" also has a junk cleaner (powered by Purify) that notified me once in a while asking me to delete SEVERAL GIGABYTES of junk. I had absolutely no desire to try that one ...
You can find so-called fixes on youtube for background apps that don't start, which involves installing QuickShortcutMaker, and enabling Low RAM via One Clean. That does not work on this phone.
There is a way to circumvent these autostart/powersave restrictions without removing the Wiko apps. With Link2SD or LuckyPatcher you can convert a user app to a system app. That way the app will start at boot and will send you notifications as well.
However, I wanted to get rid of this badly programmed mess altogether, and keep my apps running as user apps, so I have removed Phone Assist, its separate uninstaller, One Clean, and Protected Apps.
After deinstalling Phone Assist with SDmaid I manually removed "/system/vendor/operator/app/ApePhoneAssist" and "/data/dalvik-cache/arm/[email protected]@[email protected]@@[email protected]@classes.dex"
In /system/build.prop I edited the line "ro.tinno.whitelist.set=true" to "ro.tinno.whitelist.set=false". I don't know what that line does exactly, but it's just to be on the safe side. I think this setting is overwritten if you reinstall Phone Assist or Protected Apps.
I whitelisted some Social Media and Mail apps in Marshmallow native Doze mode.
After a few reboots some of my autostart apps started to reappear at boot, but not all. Only after I started the missing apps manually from the launcher they would appear after a reboot, and persist.
Later, I made a TWRP backup, and after that I wiped the cache and dalvik/art-cache with TWRP. Evertyhing went well.
Wiping the dalvik-cache can be a risky thing, it once left me with Android trying to optimize nine apps at every boot. I turned out that those were apps that I converted from user app to system app, and back. I removed those apps and reinstalled them and the optimization at boot went away.
So now every app starts at boot as it should, but it would be nice if this "Protected Apps" feature would not have a limit of four apps to boot, because then we would have a nice integrated boot manager. If anyone can find out if it is possible to modify this limit I would be much obliged
EDIT: So, three years later and I still have this phone. I have recently installed update v59 and encountered the same problems. After deleting PhoneAssist and ProtectedApps only a few of my apps worked right, and that was only after multiple reboots. Other apps would still not show notifications. However after I edited /system/build.prop and changed this line to "ro.tinno.low_memory=false" all apps suddenly worked correctly. Maybe this would even work with PhoneAssist and ProtectedApps still installed, but I don't care to find out at this point.
Didn't work for me, but...
Hi,
If someone has the same problem and stumbles on this post...
Setting ro.tinno.whitelist.set=false didn't work for me, probably because I aggressively modified the stock ROM to remove most of the vendor apps (including this PhoneAssist and Bootclean crap).
What actually worked for me was to set ro.tinno.low_memory=false. After that, all apps supposed to start at boot, actually did.
Once I'll finish my tests and use the phone for a couple of weeks, I intend to post a complete guide explaining how to uncrappify this phone (it's wonderful what you can do once you manage to successfully flash TWRP).
Wiko Lenny 3 2 gb RAM and 16 gb ROM
Hi guys, I have a clone of Wiko Lenny 3 commercialized in Tunisia under the name of EVERTEK EVERSTAR PRO 2. The device that I now has 2gb Ram and 16 gb of Internal storage, but the original version of the Wiko Lenny 3 has only 1 gb Ram. I confirm that is exactly the same device same processor same camera and screen. So I was wondering if I can flash my phone with the official Wiko Rom ? Does android indentifie Ram and Internal storage from the Phone ? Pleaaase Help me .. and sorry for my English
MoonSweep78 said:
Hi,
If someone has the same problem and stumbles on this post...
Setting ro.tinno.whitelist.set=false didn't work for me, probably because I aggressively modified the stock ROM to remove most of the vendor apps (including this PhoneAssist and Bootclean crap).
What actually worked for me was to set ro.tinno.low_memory=false. After that, all apps supposed to start at boot, actually did.
Once I'll finish my tests and use the phone for a couple of weeks, I intend to post a complete guide explaining how to uncrappify this phone (it's wonderful what you can do once you manage to successfully flash TWRP).
Click to expand...
Click to collapse
Yes, I installed update v59 and "ro.tinno.low_memory=false" works for me too, thanks!

Frozen apps with Titanium Backup still running??

Hi all,
I've been a long time user of Titatium Backup but having moved to a more stock based rom i've just started using it to freeze bloatware apps. The apps i freeze are showing up in application manager as disabled so i assumed all was working as it should. However if i click on one of the disabled apps in application manager it gives me the option to "force stop" the app (the button is not greyed out like i would have expected with it being frozen). This is true even after a reboot.
Is this how it should be??
Thanks!:good:

Clearing Dalvik cache via TWRP causes apps to launch A LOT slower

Hello guys! I have a bit tricky/technical question here. Yesterday I wanted to refresh my Pixel 3 a bit (clean flash with the December firmware, then rooted and never received OTA updates) so I booted TWRP and cleared the Dalvik Cache. When I rebooted, I noticed that some apps (especially Google ones like Youtube, built-in Camera, Maps) all suffer from a slow launch. A lot slower. Like... 3-4 seconds before the YouTube app can show anything different than the white splash screen with the red play logo. The Camera is also slow enough to see the fully black screen with the small centered camera icon for 2 seconds too. This only happens on clean start (when the app is cleared from the Recent Apps panel).
I checked the /data/dalvik-cache folder and it seems that all files are re-created after the wipe, however it's fairly obvious that the apps are no longer running from the odex/oat/whatever it's called now binaries. Clearing the app cache doesn't solve the issue, I've tried that. The only 'working' solution seems to be uninstalling the offending apps (e.g. Youtube) and then performing a clean install from the PlayStore. Then, the app launches fast as usual. However, I'm afraid that I can't do this for all of my apps (I'm going to lose preferences) plus I'm kind of afraid that the System apps (like the "Settings" app) cannot be re-installed with such ease and I will be stick with slow 'clean starts' here and there forever.
Do you guys know how I can trigger the 'App optimization' process that is observed when an OTA update is applied? You know, that time consuming screen that says 'Optimizing apps, 7 of 82'. This is when Android rebuilds the dalvik-cache and apparently I need to manually perform that. The other option would be to perform a clean flash (I'm already 4 months behind anyway), but I'm not particularly thrilled by the idea. Any suggestions on how to manually trigger the App Optimization process in order to rebuild my Dalvik?
I don't have a fix for you, but don't do that with TWRP. It does not apply to newer phones.

Categories

Resources