Sub topic 3
Troubleshooting apps that fail to launch, crash or fail to update
This chapter assumes you know the CompTIA troubleshooting steps, how app stores and sandboxing work, and where to find Settings on Android and iOS. It covers the three app faults the A+ Core 2 exam tests most often: an app that will not launch, an app that crashes, and an app that will not update.
The working model
A mobile app runs inside a sandbox, a restricted area that limits what the app can reach. Each app has its own storage, cache and permissions. An app fails when something it depends on is broken. That could be the app's own data, the OS version, free storage, the network, or the account that connects it to the store.
Work from the least destructive fix to the most destructive one. Each step below costs the user more than the one before.
| Step | Action | Data risk |
|---|---|---|
| 1 | Close the app and reopen it | None |
| 2 | Restart the device | None |
| 3 | Check connectivity, storage and date/time | None |
| 4 | Update the app and the OS | Low |
| 5 | Clear the app cache | Low |
| 6 | Clear app data or storage | Local app data lost |
| 7 | Uninstall and reinstall | Local app data lost |
| 8 | Factory reset | All data lost |
App will not launch
Common causes and fixes:
- The app froze or is stuck in the background. Force close it and reopen it.
- The device is low on storage or memory. Free space by removing unused apps and files.
- The app needs a newer OS version, or the OS is too new for an old app. Check compatibility and update.
- The app's cache or data is corrupt. Clear the cache first, then the data.
- The app is not from a trusted source. A sideloaded app may be blocked or may be a fake.
App crashes or closes unexpectedly
Crashes often come from a bug in the current version, low memory, or corrupt data. Check whether the app has an update, because developers often fix crashes in new releases. If the crash began right after an OS update, the app may not yet support that OS version. Check whether only one app crashes or many do. One app points to that app. Many apps point to the OS, storage or hardware.
On Android with USB debugging enabled, you can read the system log to see repeated crashes:
adb logcat -dThe -d option dumps the current log and exits. Look for the same app name appearing in repeated error lines.
App will not update
An update can fail for reasons outside the app:
- No storage space for the download and install.
- Poor or no connection to Wi-Fi or cellular data, or a setting that allows updates only on Wi-Fi.
- Wrong date and time, which breaks the secure connection to the store.
- A signed-in account problem. Sign out of the store and sign back in.
- A stalled download. Pause and restart it, or clear the app store's cache.
- The device OS is too old for the new app version.
Apply the methodology
Match each step to the CompTIA order:
- Identify the problem. Ask which app, when it started, and what changed.
- Research and establish a theory. For example, a crash that began after an update suggests a version bug.
- Test the theory. Restart the device or check the free storage.
- Establish a plan and implement it. Choose the least destructive fix first.
- Verify full system functionality and apply preventive measures. Launch the app, and turn on automatic updates.
- Document the findings and actions.
You can list the third-party apps on an Android device to spot one you do not recognize:
adb shell pm list packages -3Exercise
A user's banking app crashes every time it opens. The phone has 40 GB of free storage and the app was last updated six months ago. Other apps work normally. What is the best next step?
Show answer
Update the app (or check for an update) and restart the device. Only one app fails and storage is fine, so the app version is the likely cause. Clearing data, reinstalling or resetting the phone are more destructive, so try them later and only if the update does not help.
Exercise
An app will not finish updating, and the store shows "insufficient storage." Name two fixes in order of least data loss.
Show answer
First remove unused apps, photos or cached files to free space, or move files to cloud storage. Then retry the update. Resetting the device is not warranted.