Sub topic 2
How Mobile Platforms Handle Apps, Sandboxing and Updates
This chapter explains how Android and iOS install apps, isolate them from each other, and deliver updates. Later chapters build on this model when they cover app failures, update failures, rooting, jailbreaking and sideloading.
Prerequisites assumed: you can navigate Settings on Android and iOS, you know what an app store is, and you know the basic terms Wi-Fi, Bluetooth and IP address.
Why the platform model matters for troubleshooting
Most mobile faults on the exam come from one of three places: the app, the operating system (OS), or the way the two interact. If you know where an app's files live, what the app is allowed to touch, and who delivers updates, you can predict which fix will work and which will cause needless data loss.
A mobile OS is built differently from a desktop OS in several ways:
- Apps are installed from a managed source, usually an app store.
- Each app runs inside a restricted area called a sandbox.
- The user does not normally have administrator-level control of the OS.
- Updates come from the device maker or carrier on a controlled schedule.
App sources and app packages
An app store is a vendor-run service that distributes apps. The vendor reviews submissions, signs the packages, and can remove an app that turns out to be harmful.
| Platform | Official store | Package format | Other install paths |
|---|---|---|---|
| Android | Google Play | APK (or app bundles delivered by the store) | Sideloading from other stores or files, vendor stores such as Samsung Galaxy Store |
| iOS and iPadOS | Apple App Store | IPA | Enterprise or developer distribution, TestFlight beta builds, and in some regions alternative marketplaces |
A package is the file that contains an app's code and resources. A digital signature on the package proves who built it and shows that the contents were not changed after signing. The OS checks the signature at install time.
Sideloading means installing an app from outside the official store. On Android this is possible by allowing installs from a chosen source, such as a browser or file manager. On a stock iOS device it is much more restricted. The security chapters return to this topic because unreviewed apps are a common way for malware to arrive.
Trusted and untrusted sources
On Android, installing from an unknown source is controlled per app. You grant a browser or file manager the permission to install other apps. This is safer than the old single switch that allowed all unknown sources, because you can revoke it for one app. When you troubleshoot a suspicious device, check which apps hold this permission.
Sandboxing
A sandbox is a restricted environment that limits what an app can read, write and run. Each app gets its own private storage area and its own identity in the OS. By default an app cannot read another app's data, cannot read system files, and cannot change system settings.
How apps get outside the sandbox
An app that needs more than its own space must ask for a permission. Examples include camera, microphone, location, contacts and storage. The OS shows a prompt, and the user allows or denies the request. Permissions can be changed later in Settings.
- On Android, runtime permissions are granted per app and can be set to allow always, allow only while using the app, ask every time, or deny.
- On iOS, permissions appear in the same prompt style and can be reviewed under Settings and Privacy.
- Both platforms let apps exchange data only through defined channels, such as the share sheet, system file pickers, or a shared storage service that the user approves.
Permissions are a frequent cause of "the app doesn't work" tickets. If a user denied camera access, a video-call app can open but show a black screen. The fix is to restore the permission, not to reinstall the app.
What the sandbox does when an app misbehaves
Because each app is isolated, a crash in one app normally does not bring down the OS or other apps. The OS can also stop an app that uses too much memory. This helps explain several symptoms:
- An app that closes by itself may have been ended by the OS to free memory.
- An app that fails to open may have corrupt data inside its own sandbox, and clearing that data resets only that app.
- Two apps that conflict usually do so through a shared resource such as the network or a background service, not by editing each other's files.
App data, cache and storage
Each app keeps two kinds of data in its sandbox.
- Cache is temporary data the app can rebuild, such as thumbnails or downloaded page elements. Clearing it is low risk.
- App data is settings, sign-in state and local content. Clearing it makes the app behave as if it were freshly installed, so the user may lose unsynced work.
Android exposes both options under Settings, Apps, then the app's Storage page. iOS does not offer a per-app "clear cache" button for most apps. The equivalent steps are to offload the app, which removes the app but keeps its data, or to delete and reinstall it, which removes the data too.
| Action | Android | iOS | Data loss risk |
|---|---|---|---|
| Close and reopen | Swipe away from recent apps | Swipe up from the app switcher | None |
| Clear cache | Storage, Clear cache | Usually not available | Very low |
| Clear data | Storage, Clear storage | Not available | High for unsynced data |
| Remove app, keep data | Not standard | Offload App | None |
| Reinstall | Uninstall, then install | Delete App, then install | Depends on cloud sync |
The exam often rewards the least destructive step that could plausibly work. Closing the app or clearing the cache usually comes before clearing data or reinstalling.
Background activity and resource limits
Mobile operating systems control what apps can do when they are not on screen. Background refresh, location updates and push notifications are managed by the OS to save battery. A user can limit these per app.
This explains common complaints:
- Notifications that arrive late may be caused by battery saver mode or by restricted background activity for that app.
- An app that uses a lot of battery may be allowed to run constantly in the background. Settings shows battery usage per app.
- An app that is very active while the screen is off deserves a closer look, since it could be misbehaving or hostile.
How updates work
There are two kinds of updates, and they travel through different channels.
- App updates come through the app store. They can be automatic or manual, and they usually need network access and free storage space.
- OS updates come from the device maker, and on some devices through the carrier. They include new features, bug fixes and security patches.
On iOS, Apple delivers OS updates directly to all supported devices at about the same time. On Android, the timing varies. Google publishes the base OS, then the device maker (and sometimes the carrier) adds its changes and releases an update when it is ready. Older devices may stop receiving updates entirely, which leaves known vulnerabilities unfixed.
Over-the-air updates
An over-the-air (OTA) update downloads wirelessly, with no computer needed. Most OS updates use OTA. A typical OTA update needs:
- A reliable Wi-Fi connection, because the download can be large.
- Enough free storage for the download and the installation.
- Enough battery charge, often at least 50 percent or a connected charger.
- A device that has not been rooted or jailbroken in a way that breaks the verification of system files.
If any of these is missing, the update may stall or fail. The later chapter on update failures goes through the fixes in order.
Why updates matter for security
Security patches close holes that attackers use. A device that is several versions behind is easier to attack, so keeping the OS and apps current is a baseline control. App stores also push updates that remove bugs and close permission problems.
A simple lifecycle view
The diagram below shows how an app moves from the store to a running, sandboxed state and how updates re-enter the cycle.
Common errors and exam traps
- Reinstalling first. Reinstalling removes data and is rarely the first step. Try closing the app, restarting the device, checking permissions and clearing the cache first.
- Blaming the OS for an app fault. If only one app misbehaves, start with that app's settings, storage and update status.
- Assuming all updates are alike. An app update comes from the store. An OS update comes from the maker and needs power, storage and Wi-Fi.
- Ignoring permissions. A feature that does nothing, such as a camera or location feature, often points to a denied permission.
- Treating sideloading as normal. An app from outside the official store has not been reviewed. On a managed device it may also violate policy.
- Forgetting end-of-support. A device that no longer gets security updates remains a risk even when it works fine.
Putting it together
Suppose a user says a photo app opens, but the camera view is black and the app then closes. Using the model from this chapter:
- Only one app is affected, so the fault is probably in the app and not the OS.
- A black camera view suggests a missing camera permission.
- The sandbox means the app can only use the camera if the user allowed it.
- Check Settings for the app's permissions, restore camera access, and test.
- If it still fails, restart the device, check for an app update, and clear the cache before considering a reinstall.
This order moves from the least to the most disruptive action, which is the pattern the exam expects.
Exercise
A user's banking app crashes at launch on an Android phone. Other apps work normally. The user wants to keep all saved settings. Which of these steps should you try first: clearing the app's data, uninstalling the app, or force-stopping the app and clearing its cache? Explain why.
Show answer
Force-stop the app and clear its cache. The sandbox limits the fault to this one app. Clearing the cache removes only temporary, rebuildable data and keeps the user's settings. Clearing data or uninstalling would remove saved settings and sign-in state, and should be tried only if the lighter steps fail.
Exercise
A user says a video-call app opens, but other people cannot hear them. Other apps can use the microphone. What is the most likely cause, and where do you check?
Show answer
The app probably lacks microphone permission, because each sandboxed app must be granted access separately. Check the app's permissions in Settings (Apps on Android, or Privacy on iOS), allow the microphone, and test the call again.
Exercise
Name two reasons an OS update might fail to install through an over-the-air download, and give one safe fix for each.
Show answer
Examples: not enough free storage (free space by removing unused apps or media, or moving files to the cloud), and weak Wi-Fi or low battery (connect to a stable network or plug in the charger). Other valid reasons include an interrupted download, which is fixed by retrying on a stable connection.