Sub topic 3
Troubleshooting apps that fail to launch, crash or fail to update
This chapter assumes you know the CompTIA troubleshooting methodology from the first chapter. It also assumes you know how Android and iOS app stores and sandboxing work, and that you can find Settings on both platforms. Here you apply that knowledge to three of the most common mobile faults on the 220-1102 exam: an app that will not launch, an app that crashes or will not close, and an app that will not update.
Why apps fail
A mobile app depends on several things at once:
- The app's own code and its saved data.
- The operating system version and the APIs it provides.
- Free storage and memory.
- Granted permissions.
- A network connection, for most apps.
- A valid account with the app store.
If any of these breaks, the app misbehaves. Most failures come from a small set of causes:
| Symptom | Common causes |
|---|---|
| App will not launch | Corrupt app files or cache, low storage, OS too old for the app, a pending update that must be installed first, a bad earlier update |
| App crashes after launch | Bad cached data, low memory, a bug in the current version, a missing permission, an OS update that broke compatibility |
| App will not close or freezes | The app's process is hung, memory pressure, a background process stuck waiting for the network |
| App will not update | No storage, no connection, store sign-in or payment problem, wrong date and time, an OS version below the app's minimum, an interrupted download |
Slow performance and battery problems often accompany these faults. The next chapter covers them.
Apply the methodology
Start with the CompTIA steps: identify the problem, establish a theory of probable cause, test the theory, establish a plan of action, implement it, verify full system functionality, and document. The first step matters most here, because the questions you ask separate the causes:
- Does it fail for one app or every app? One app points to the app. Every app points to the OS, storage, or the device.
- When did it start? A failure right after an OS or app update points to an incompatible update.
- Does an error message appear? Messages such as "not enough storage" or "this app requires a newer version of the OS" name the cause directly.
- Did the user install the app from the official store, or sideload it? Sideloaded apps lack store protections and update paths.
- Is the failure the same on Wi-Fi and cellular?
Work from the least destructive fix to the most destructive. A restart costs nothing. A reinstall can lose local data. A factory reset loses everything. The exam rewards this ordering.
An app that fails to launch
When an app does nothing on tap, or opens and immediately returns to the home screen, work through these checks in order.
- Close and reopen the app. Swipe it out of the app switcher and launch it again. This clears a hung process without touching data.
- Restart the device. A reboot clears memory, restarts background services, and often fixes a launch failure caused by a stuck system component.
- Check free storage. An app cannot unpack or write its working files when storage is nearly full. Delete unused apps, photos or downloads.
- Check for an app update. A developer may have already fixed the bug. Update the app from the official store.
- Check OS compatibility. Developers raise the minimum OS version over time. An old device may no longer run the newest app version.
- Clear the cache. On Android, open Settings, Apps, choose the app, then Storage, then Clear cache. The cache holds temporary files and is safe to delete.
- Reinstall the app. Remove it and install it again. Local data that is not backed up may be lost, so back up first when the data matters.
> Android and iOS differ here. Android lets you clear one app's cache and its data separately. iOS has no per-app cache button. The closest options are Offload App, which frees the app but keeps its data, and deleting and reinstalling the app.
An app that crashes or will not close
A crash is the app ending itself unexpectedly. A freeze is the app staying open but not responding. Both can come from the same causes.
- Force stop the app. On Android, Settings, Apps, choose the app, then Force stop. On iOS, swipe the app away in the app switcher. This ends the stuck process.
- Check memory pressure. Too many apps open at once can force the OS to kill apps. Close unneeded apps and restart.
- Check permissions. An app that was denied storage, camera or location access may crash when it tries to use them. Review the app's permissions and grant what it legitimately needs.
- Look at timing. If crashes began after an update, either side may be at fault. Check whether a newer app version or OS patch is waiting.
- Suspect the source. A sideloaded or unknown app that crashes repeatedly may be malicious or poorly built. The security chapters return to this.
On an Android device with USB debugging enabled, you can look at the system log for repeated crash records. The -d option dumps the current log and exits instead of streaming it.
adb logcat -dLook for lines that name the same package over and over with words such as FATAL EXCEPTION or ANR. Repeated entries for one package confirm that app is the problem and not the device. The log can be long. In practice you pipe it through a filter, for example adb logcat -d | grep -i "fatal", on a system with grep.
To check which apps the user installed, list third-party packages:
adb shell pm list packages -3This lists apps that did not ship with the device. An unfamiliar name, or an app the user does not remember installing, is a lead worth following. The exam will not ask you to run these commands on a phone, but it can ask you which tool or approach reveals the information.
An app that fails to update
An update that stalls or fails usually has a simple cause. Check these in order:
- Storage. The store needs room to download and then unpack the new version, often more than the update size shown. Free space first.
- Connection. Confirm the device is online. Try Wi-Fi if cellular is limited, or the reverse if the Wi-Fi network blocks the store. Some stores restrict large downloads on cellular by default.
- Date and time. A wrong clock breaks secure connections to the store. Set the device to use network time.
- Account. The user must be signed in to the store with a valid account. A payment problem or an expired sign-in can block updates. Sign out and back in.
- Stuck download. Pause and resume, or cancel and restart the download. Restarting the device clears many stuck queues. On Android, clearing the cache of the store app itself is a common fix.
- OS version. If the update needs a newer OS than the device has, update the OS first.
- Remove and reinstall. If the update still fails, uninstall and reinstall the app, accepting the data caveats above.
Edge cases and traps
- One failing app is not a device fault. Do not reset the phone because one app crashes. A factory reset is the last resort, and it destroys data the user may not have backed up.
- A recent OS update can break an old app. If an app that worked yesterday fails after an OS update, the likely fix is an app update from the developer, not a reinstall of the OS.
- Low storage looks like many different faults. Failed updates, crashes, slow response and a camera that will not save photos can all trace back to a nearly full device. Check storage early.
- Settings sync can hide data loss. Before you clear data or reinstall, confirm the app's data is synced to an account or backed up. Otherwise the fix may erase the user's work.
- Apps that fail only on one network. If an app works on cellular but not on Wi-Fi, the cause is the network, such as a captive portal or a firewall, not the app.
- Unexpected battery or data use during a crash loop. An app that crashes and restarts repeatedly can drain the battery. If you also see unexplained data use or ads, treat it as a possible compromise, not just a bug.
Verify and document
After the fix, open the app, use its main functions, and confirm it stays stable. Check that the update installed by viewing the version in the store or in the app's information page. Record the symptom, the cause you found, the steps you took and the result. If the cause was a user habit such as ignoring updates or running with a full device, note it so you can advise the user. This completes the final steps of the methodology.
Practice
Exercise
A user's banking app opens and closes immediately. Other apps work. Storage is 60 percent free and the device is on the latest OS. Which of these is the best first step: factory reset the phone, reinstall the app, or restart the app and then the device?
Show answer
Restart the app and then the device. Only one app fails, so a factory reset is far too destructive. Reinstalling comes later in the escalation order because it can lose local data. Restarting costs nothing and clears many launch failures. If that does not help, clear the cache, update the app, and then reinstall.
Exercise
An app update on an Android phone keeps failing with a "download unsuccessful" message. The phone shows 200 MB free and the update is 150 MB. What is the likely cause, and what should you do?
Show answer
The phone probably lacks the room the store needs to download and unpack the update, which usually takes more than the stated size. Free more storage by removing unused apps or files, then retry. If it still fails, check the connection, the date and time, and the store sign-in, and clear the store app's cache.
Exercise
On an iPhone, an app crashes at launch. The user does not want to lose its local data. Which action frees the app's storage while keeping its documents and data?
Show answer
Offload App. It removes the app itself but keeps its data, so reinstalling restores the app with that data in place. iOS has no per-app cache clear, so offloading is the closest equivalent.