Android Question Can using ADB Commands help to "Android does not kill my app"?

DonManfred

Expert
Licensed User
Longtime User
In the search for a solution for a long running Service (Uploading files to our Server)
i found this Github project https://github.com/gotev/android-upload-service

Inside the code i found some shell-Scripts which uses ADB to Configure the Device.

#!/bin/bash
adb shell dumpsys deviceidle disable

and
#!/bin/bash
PACKAGE="the app packagename"
adb shell am set-inactive "$PACKAGE" false
adb shell am get-inactive "$PACKAGE

Will they do help in case of Android is killing my app when in Background?
 

JohnC

Expert
Licensed User
Longtime User
This is not an answer to your post, but I just wanted to make sure you knew about this resource:

 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
but I just wanted to make sure you knew about this resource
No, i did not know it.

Seeing at the images in Red with 👎 Samsung Devices.
Note that we do use Samsung Tablets. But "only" Android 8.
I´ll check the app for sure ;-) Thank you for pointing me into this.
 
Upvote 0

JohnC

Expert
Licensed User
Longtime User
Basically, when a user reports that one of my apps are being killed by the OS, I have them visit that website and they are usually able to try the applicable methods mentioned on the site for their device to fix the issue.

I have not used the site's app myself yet, so I don't know much about it.
 
Last edited:
Upvote 0
Top