UPI Study › Courses › Introduction to Operating Systems › Free lessons › Lesson 1.6 Free with a free account
Mobile Operating Systems
Introduction to Operating Systems · Chapter 1: Operating System FoundationsSection 1.6 · lesson 6 of 837 min · free with a free account
Free preview
Create a free account to keep watching
It takes a minute and costs nothing. Your free account unlocks all of Chapter 1 and 3 more lessons of Introduction to Operating Systems.
Lesson complete
Earn the 3 college credits for Introduction to Operating Systems
Enrolling adds a quiz after each lesson, the graded work and the official transcript. Recommended for credit by NCCRS.
Next lesson: The Command Line →← Graphical User InterfacesNext lesson: The Command Line →
A free account plays all of Chapter 1 and 3 more lessons of Introduction to Operating Systems. Create a free account →
In this lesson
How Android and iOS save power, sandbox apps, and control permissions.
- Explain how a phone's operating system differs from a laptop's
- Compare Android and iOS by developer and foundation
- Describe how app sandboxes and permissions protect private data
- Explain how suspending and closing background apps saves power and memory
Free study notes
Get this lesson's notes by email
The key points and 4 practice questions with answers, in your inbox. One email, free.
One email. Unsubscribe in one click.
Transcript
Everything said in the video, section by section (915 words). Read along, or search it.
Opening Question
A Computer That Fits in One Hand
The phone in your pocket is a computer that fits in one hand. It runs all day on a small battery, knows where it is, listens for your voice, and sees through a camera. It also holds your photos, your messages, and your bank app. So it needs an operating system that's tough about three things: saving power, keeping apps apart, and working with a finger instead of a mouse.
Comparison
Phones Versus Laptops
A laptop sits on a desk, plugged into the wall, with a keyboard and plenty of memory. A phone is carried everywhere, on a battery. It has a small touch screen, less memory, and a pile of sensors. It's nearly always online, and its apps come from a store. None of this changes the three jobs from lesson 1.1. A phone OS still shares resources, hides the hardware, and protects programs from each other. It just does them more strictly, because a phone holds more private things than most desktops, on a tight energy budget.
Two Systems
Android and iOS
Two systems run almost all smartphones. Android is developed by Google. It's built on the Linux kernel, and its core is open source. So many phone makers, like Samsung and Motorola, ship their own version of it. An Android phone and a Linux server share a family tree. iOS is developed by Apple, and runs on Apple's iPhone. It shares a Unix-like foundation with macOS, and Apple controls both the hardware and the software. Tablets use close relatives: iPadOS on iPads, and Android on many others. And both share the same ideas: a touch interface, app sandboxes, permissions, power saving, and regular updates.
App Sandbox
Every App Behind Its Own Walls
On a desktop, you might install a game and give it free run of your files. A phone is stricter. Every app lives in its own sandbox: a walled area where it can use its own storage and memory, but can't read another app's data. It's the same isolation you met in lesson 1.1, now applied to every app by default.
Permissions
Asking Before Leaving the Sandbox
When an app needs something outside its walls, like the camera, your contacts, or your location, it must ask for a permission. You decide, and the OS enforces your answer. Picture the list a phone keeps. The camera app has camera and storage. A flashlight app has nothing. A maps app has location, and only location. So when the camera app uses the camera, the OS allows it. When the flashlight tries to read your contacts, it's blocked.
Quick Check
A Maps App Reaches for the Camera
Quick check, with the same list. The maps app wants to scan a code, so it tries to open the camera. What does the OS do? Pause, and decide. It blocks it. The OS checks the maps app's own list, and that list holds location, and nothing else. Camera isn't on it. Location is the tempting reason to allow it, but each permission opens one door only. Being installed opens none.
Common Mistake
Tapping Allow on Every Pop-Up
Now say the owner taps Allow on the flashlight's request. Contacts joins its list, and its next try succeeds. But a flashlight has no reason to read your contacts. That's the common mistake: tapping Allow on every pop-up just to make it go away. Each permission is a door into your private life. Ask: does this app need that door to do its job?
Power Saving
Background, Suspended, and Closed Apps
Now power. The processor and the screen use the most of it, so a mobile OS tries hard not to use them. When you leave an app, the OS moves it to the background. Soon after, it freezes it, or suspends it. A suspended app uses almost no processor time, but its state stays in memory, so it can come back instantly. If memory runs short, the OS may close a suspended app entirely. And so a frozen app can still alert you, the OS gathers notifications, and delivers them for the app.
Quick Check
The Game That Restarted
Quick check. You leave a half-finished game to take a photo. Ten minutes later, it's exactly where you left it. The next day, after you've opened a dozen big apps, the game starts again from its main menu, with no crash message. What happened to the game in between? Pause, and decide. Suspended, then closed. While suspended, it used almost no processor time, and its state stayed in memory, so it came back instantly. Later, those dozen big apps needed memory, so the OS closed it, and it had to start fresh. Running all day is the tempting idea. But that would drain the battery, which is exactly what a mobile OS avoids.
Real Example
Notifications Wake a Frozen App
Sam, who runs a small online bakery, wanted his phone to ring whenever an order came in. But his order app sat frozen in the background. Ivy, who looks after the computers at a school, turned on notifications for it. Now the OS wakes the app only when something arrives, she explained, instead of keeping it awake all day, asking whether anything has changed.
Key Takeaways
Same Three Jobs, Done More Strictly
To recap. A phone OS does the same three jobs as any OS, but more strictly, on a battery and a touch screen. Android, from Google, is built on Linux. iOS, from Apple, shares its core with macOS. Every app lives in a sandbox, and reaches outside it only with permissions you grant. And apps you can't see are suspended, and sometimes closed, to save power and memory.
Try It
Auditing Permissions and Battery Use
Here's something to try. Open your phone's settings, and find the permissions list for two apps. Does each app really need every permission it has? And on the battery page: which apps use the most?
About Introduction to Operating Systems at UPI Study
Introduction to Operating Systems (Computer Science 354) is a self-paced online course of 83 video lessons in 10 chapters, from what an operating system does and process scheduling to concurrency, memory, devices, file systems, networks, the internet, security and virtual machines. It carries a NCCRS credit recommendation for 3 semester credits.
Every lesson transcript is free on pages like this one, and the videos are free with a free UPI Study account. Enrolling adds a practice quiz after each lesson, the graded work and final exam that earn the credit, lifetime access, and an official transcript on completion. UPI Study has helped over 130,000 students with college credits. ACE and NCCRS have over 2,100 cooperating colleges that will consider accepting credits; the final decision is with the universities.
Enroll now → Course details Download the syllabus All Computer Science courses Every course with PRO →
Compare: Linux vs Operating Systems
Why take it here
Why students take Introduction to Operating Systems with UPI Study
Where the credit goes
Universities that work with NCCRS
Introduction to Operating Systems carries a NCCRS credit recommendation. These universities work with NCCRS; some are UPI Study's signed partners. ACE and NCCRS have over 2,100 cooperating colleges that will consider accepting credits; the final decision is with the universities.
Thomas Edison State UniversitySigned partner
University of the PeopleSigned partner
Charter Oak State CollegeSigned partner
Strayer UniversitySigned partner
Columbia Southern UniversitySigned partner
Indiana TechSigned partner
Penn StateWorks with NCCRS
Southern New Hampshire UniversityWorks with NCCRS
SUNYWorks with NCCRS
+many more cooperating universitiesFind my college →Find my college → Not listed? Ask Athena in the corner of this page, or book a 15-minute call.
FAQ
Questions students ask us
About Mobile Operating Systems
What is the difference between Android and iOS?
What is an app sandbox on a phone?
How do app permissions work on Android and iPhone?
Why do phone apps sometimes restart when you switch back to them?
About the Introduction to Operating Systems course
How many college credits is Introduction to Operating Systems?
How much does Introduction to Operating Systems cost and what is included?
Which universities accept UPI Study credits?
How long does Introduction to Operating Systems take?
How are the exams done?
How do my credits reach my college?
Ready for the full course? Earn 3 credits in Introduction to Operating Systems.
83 video lessons, a quiz after each one, and the graded work that earns the credit. Recommended for credit by NCCRS.
Updated
3 credits · NCCRSEnroll →