process-killer-android

Introduction: A simple app for testing Android application state saving and restoring.
More: Author   ReportBugs   
Tags:

A simple app for testing application state saving and restoring.

Important Android 14 Update Due to changes in the ActivityManager.killBackgroundProcess API, the app does not work on Android version 14.0 and above. See ActivityManager docs) for more details.

Demo

Contents

Setup

Clone the repo

git clone https://github.com/livefront/process-killer-android.git

and build in Android Studio.

Setup for release signing

If you need to create a signed APK for release to the Google Play Store, you will need to create a file called upload-keystore.properties at the root of the project containing the various properties needed to sign the app. The file will follow the format:

keyAlias = Enter-key-alias-here
keyPassword = Enter-key-password-here
storePassword = Enter-key-store-password-here

The final app signing is controlled through Google Play. The signing key stored in the repo is just the upload key, not the actual release key. If the alias or any passwords used above are lost, a new upload key can be created and used as long as it's updated on the Google Play Console.

Compatibility

  • Minimum SDK: 21
  • Target SDK: 28
  • Device Types: Phone & Tablet
  • Devices Supported: All
  • Orientations Supported: Portrait and landscape
  • RTL Support: Yes

Description

The purpose of the app is to allow for testing how well apps restore their state after the system kills their host process. Applications with recent activity are displayed in a list; clicking on any of those items kills their host process (if they are currently running) in the same way the system would when reclaiming memory. The app can then be restarted from the link in the Snackbar or navigated to via a Launcher or Recents.

Note that running processes will only be killed if the system deems the action "safe". See the documentation for more details.

License

Copyright 2016 Livefront

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Apps
About Me
GitHub: Trinea
Facebook: Dev Tools