SlideShare a Scribd company logo
1 of 22
Android – Mobile OS
Case study 2
Silberschatz, Galvin, Gagne. Operating System Concepts Essentials. 8th
Edition.
ISBN: 978-0-470-88920-6
A. Tanenbaum. Modern Operating Systems. 3rd Edition.
ISBN: 0136006639
H. Al-Rayes. Studying Main Differences between Android & Linux
Operating Systems. Diyala University.
Android Developer Website. http://developer.android.com
Sources and extra reading
 History of Android
 Android design principles
 Android Architecture
 Memory Management
 Threads and Scheduling
 Android File System
 Security
 Programming Interface
Topics covered in this session
- What is android? Linux 2.6 based operating system for mobile
devices.
- Open source and released under Apache Licence (Carriers can modify
it before distributing).
- Google acquired android in 2005.
- Android 1.0 released 2008.
- In 2012 Android 4.2 released
- Improvements include support for new devices:
- Cameras
- Multi core CPU
- Barometer
- etc
History of Android
 Long battery life.
 Fast boot up.
 Fast response.
 Applications (Programming environment?)
 Security
 How do these differ from the needs of a desktop system?
 Consider how the above are met by the system design.
Design principles – What is required of a
mobile OS?
 Battery
 Touch screen
 Portable (Mobile CPU)
 More limited memory
 Fewer devices
Mobile hardware differences
Android Architecture
Source: http://developer.android.com/about/versions/index.html
Android Architecture
Source: http://developer.android.com/about/versions/index.html
Android Architecture
Source: http://developer.android.com/about/versions/index.html
Android Architecture
Source: http://developer.android.com/about/versions/index.html
Android Architecture
Source: http://developer.android.com/about/versions/index.html
Application life cycle
 Android uses it’s own virtual machine to manage application
memory.
 Dalvik VM allows multiple instances of VM to be running
efficiently in parallel.
Memory management
 Differences between mobile app cycle and desktop app
cycle?
 Key principles:
 Android does not usually kill an app, they keep running even after you switch,
but saves state
 Task killers?
 Android kills apps when memory usage too high.
 But saves it’s state for quick restart.
 Uses Linux’s time sliced scheduling policy based on priority
Process Management
Process Priorities
 Split into background and
foreground.
 What happens if UI thread is
starved?
Flash Hard Disk Drives
Random Access ~0.1ms 5-10ms
File fragment impact No Greatly impacted
Total power ½ to 1/3 of HDD Up to 15+ watts
Reliability Reliable Less reliable due to mechanical
parts
Write longevity Limited number of writes. Less of a problem
Capacity <=512GB Up to 4TB
Price $1.5 - 2.0 GB $0.10 - 0.20 GB
Disk I/O
 What needs storing? Consider a map application (Lat/long).
 Swapping to flash affecting life.
Why not use swapping?
 Supports multiple different file systems (based on Linux Kernel).
 Usually yaffs2/vfat/ext4, depending on device manufacturer.
 Partitions:
 /boot (Included android kernel)
 /system (Android GUI and pre-installed applications). – Read only
 /recovery (Backup)
 /data (User data)
 /cache (Frequently accessed data)
 /misc (Contains misc system settings in form of on/off switches)
 /sdcard (SD card)
Android File System
 Android seeks to be the most secure and usable operating system for
mobile platforms by re-purposing traditional operating system
security controls to:
 Protect user data
 Protect system resources (including the network)
 Provide application isolation
 To achieve these objectives, Android provides these key security
features:
 Robust security at the OS level through the Linux kernel
 Mandatory application sandbox for all applications
 Secure interprocess communication
 Application signing
 Application-defined and user-granted permissions
Security
 Assigns .unique user ID (UID) to each android application.
 Uses UNIX style file permissions due to different UIDs
 Ensures app A doesn’t read app B’s files.
 Ensures app A doesn’t exhaust B’s memory
 Ensures app A doesn’t exhaust B’s CPU usage
 Ensures app A doesn’t exhaust user Bs devices (GPS, BT)
 Linux kernel enforces security between applications
 Stops memory corruption errors causing vulnerabilities.
 Read only system partition
Security Continued
 Use of restricted APIs require
application permissions.
 Application Signing. Application
packages are signed to identify author
and prevent tampering. Some windows
7 system files are signed in a similar
way.
Security Continued
 Each program runs in it’s own VM.
 Need to understand an activities lifecycle.
 Make use of Android SDK
 Applications programmed in Java, with layouts coded in XML.
 Packaged as .apk files for delivery through Android store.
 Importance of file size + data usage.
Programming for Android

More Related Content

Similar to 5945632 (1).ppt

Andriod - Technical Review
Andriod - Technical ReviewAndriod - Technical Review
Andriod - Technical ReviewFolio3 Software
 
Android overview
Android overviewAndroid overview
Android overviewHas Taiar
 
Introduction to Mobile Operating System.pptx
Introduction to Mobile Operating System.pptxIntroduction to Mobile Operating System.pptx
Introduction to Mobile Operating System.pptxaparna14patil
 
Androidoverview 100405150711-phpapp01
Androidoverview 100405150711-phpapp01Androidoverview 100405150711-phpapp01
Androidoverview 100405150711-phpapp01Santosh Sh
 
Mobile application security
Mobile application securityMobile application security
Mobile application securityShubhneet Goel
 
Mobile Application Security
Mobile Application SecurityMobile Application Security
Mobile Application SecurityIshan Girdhar
 
Android Operating System
Android Operating System Android Operating System
Android Operating System Mehvish Mushtaq
 
Android development-tutorial
Android development-tutorialAndroid development-tutorial
Android development-tutorialilias ahmed
 
Android Application Development
Android Application DevelopmentAndroid Application Development
Android Application DevelopmentRamesh Prasad
 
Android– forensics and security testing
Android– forensics and security testingAndroid– forensics and security testing
Android– forensics and security testingSanthosh Kumar
 
First Steps with Android - An Exciting Introduction
First Steps with Android - An Exciting IntroductionFirst Steps with Android - An Exciting Introduction
First Steps with Android - An Exciting IntroductionCesar Augusto Nogueira
 
Optimization Of Storage Management In Android - S3CA
Optimization Of Storage Management In Android - S3CAOptimization Of Storage Management In Android - S3CA
Optimization Of Storage Management In Android - S3CAVivek Raj Agarwal
 
Android vs ios System Architecture in OS perspective
Android vs ios System Architecture in OS perspectiveAndroid vs ios System Architecture in OS perspective
Android vs ios System Architecture in OS perspectiveRaj Pratim Bhattacharya
 
Ch1 hello, android
Ch1 hello, androidCh1 hello, android
Ch1 hello, androidJehad2012
 
Know all about android development
Know all about android developmentKnow all about android development
Know all about android developmentDeepika Chaudhary
 
Android 130923124440-phpapp01
Android 130923124440-phpapp01Android 130923124440-phpapp01
Android 130923124440-phpapp01rajesh kumar
 
Introduction to Android Development Part 1
Introduction to Android Development Part 1Introduction to Android Development Part 1
Introduction to Android Development Part 1Kainda Kiniel Daka
 

Similar to 5945632 (1).ppt (20)

Andriod - Technical Review
Andriod - Technical ReviewAndriod - Technical Review
Andriod - Technical Review
 
Android overview
Android overviewAndroid overview
Android overview
 
Introduction to Mobile Operating System.pptx
Introduction to Mobile Operating System.pptxIntroduction to Mobile Operating System.pptx
Introduction to Mobile Operating System.pptx
 
Androidoverview 100405150711-phpapp01
Androidoverview 100405150711-phpapp01Androidoverview 100405150711-phpapp01
Androidoverview 100405150711-phpapp01
 
Mobile application security
Mobile application securityMobile application security
Mobile application security
 
Mobile Application Security
Mobile Application SecurityMobile Application Security
Mobile Application Security
 
Android
AndroidAndroid
Android
 
Android Operating System
Android Operating System Android Operating System
Android Operating System
 
Android development-tutorial
Android development-tutorialAndroid development-tutorial
Android development-tutorial
 
Android Application Development
Android Application DevelopmentAndroid Application Development
Android Application Development
 
Android– forensics and security testing
Android– forensics and security testingAndroid– forensics and security testing
Android– forensics and security testing
 
First Steps with Android - An Exciting Introduction
First Steps with Android - An Exciting IntroductionFirst Steps with Android - An Exciting Introduction
First Steps with Android - An Exciting Introduction
 
Optimization Of Storage Management In Android - S3CA
Optimization Of Storage Management In Android - S3CAOptimization Of Storage Management In Android - S3CA
Optimization Of Storage Management In Android - S3CA
 
Android vs ios System Architecture in OS perspective
Android vs ios System Architecture in OS perspectiveAndroid vs ios System Architecture in OS perspective
Android vs ios System Architecture in OS perspective
 
Android report
Android reportAndroid report
Android report
 
Ch1 hello, android
Ch1 hello, androidCh1 hello, android
Ch1 hello, android
 
Android platform
Android platform Android platform
Android platform
 
Know all about android development
Know all about android developmentKnow all about android development
Know all about android development
 
Android 130923124440-phpapp01
Android 130923124440-phpapp01Android 130923124440-phpapp01
Android 130923124440-phpapp01
 
Introduction to Android Development Part 1
Introduction to Android Development Part 1Introduction to Android Development Part 1
Introduction to Android Development Part 1
 

Recently uploaded

Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidNikhilNagaraju
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxupamatechverse
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoão Esperancinha
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSSIVASHANKAR N
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...srsj9000
 
Analog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAnalog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAbhinavSharma374939
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxwendy cai
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxpranjaldaimarysona
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSCAESB
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 

Recently uploaded (20)

Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfid
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
 
Analog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAnalog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog Converter
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptx
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptx
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentation
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
 

5945632 (1).ppt

  • 1. Android – Mobile OS Case study 2
  • 2. Silberschatz, Galvin, Gagne. Operating System Concepts Essentials. 8th Edition. ISBN: 978-0-470-88920-6 A. Tanenbaum. Modern Operating Systems. 3rd Edition. ISBN: 0136006639 H. Al-Rayes. Studying Main Differences between Android & Linux Operating Systems. Diyala University. Android Developer Website. http://developer.android.com Sources and extra reading
  • 3.  History of Android  Android design principles  Android Architecture  Memory Management  Threads and Scheduling  Android File System  Security  Programming Interface Topics covered in this session
  • 4. - What is android? Linux 2.6 based operating system for mobile devices. - Open source and released under Apache Licence (Carriers can modify it before distributing). - Google acquired android in 2005. - Android 1.0 released 2008. - In 2012 Android 4.2 released - Improvements include support for new devices: - Cameras - Multi core CPU - Barometer - etc History of Android
  • 5.  Long battery life.  Fast boot up.  Fast response.  Applications (Programming environment?)  Security  How do these differ from the needs of a desktop system?  Consider how the above are met by the system design. Design principles – What is required of a mobile OS?
  • 6.  Battery  Touch screen  Portable (Mobile CPU)  More limited memory  Fewer devices Mobile hardware differences
  • 13.  Android uses it’s own virtual machine to manage application memory.  Dalvik VM allows multiple instances of VM to be running efficiently in parallel. Memory management
  • 14.  Differences between mobile app cycle and desktop app cycle?  Key principles:  Android does not usually kill an app, they keep running even after you switch, but saves state  Task killers?  Android kills apps when memory usage too high.  But saves it’s state for quick restart.  Uses Linux’s time sliced scheduling policy based on priority Process Management
  • 15. Process Priorities  Split into background and foreground.  What happens if UI thread is starved?
  • 16. Flash Hard Disk Drives Random Access ~0.1ms 5-10ms File fragment impact No Greatly impacted Total power ½ to 1/3 of HDD Up to 15+ watts Reliability Reliable Less reliable due to mechanical parts Write longevity Limited number of writes. Less of a problem Capacity <=512GB Up to 4TB Price $1.5 - 2.0 GB $0.10 - 0.20 GB Disk I/O
  • 17.  What needs storing? Consider a map application (Lat/long).  Swapping to flash affecting life. Why not use swapping?
  • 18.  Supports multiple different file systems (based on Linux Kernel).  Usually yaffs2/vfat/ext4, depending on device manufacturer.  Partitions:  /boot (Included android kernel)  /system (Android GUI and pre-installed applications). – Read only  /recovery (Backup)  /data (User data)  /cache (Frequently accessed data)  /misc (Contains misc system settings in form of on/off switches)  /sdcard (SD card) Android File System
  • 19.  Android seeks to be the most secure and usable operating system for mobile platforms by re-purposing traditional operating system security controls to:  Protect user data  Protect system resources (including the network)  Provide application isolation  To achieve these objectives, Android provides these key security features:  Robust security at the OS level through the Linux kernel  Mandatory application sandbox for all applications  Secure interprocess communication  Application signing  Application-defined and user-granted permissions Security
  • 20.  Assigns .unique user ID (UID) to each android application.  Uses UNIX style file permissions due to different UIDs  Ensures app A doesn’t read app B’s files.  Ensures app A doesn’t exhaust B’s memory  Ensures app A doesn’t exhaust B’s CPU usage  Ensures app A doesn’t exhaust user Bs devices (GPS, BT)  Linux kernel enforces security between applications  Stops memory corruption errors causing vulnerabilities.  Read only system partition Security Continued
  • 21.  Use of restricted APIs require application permissions.  Application Signing. Application packages are signed to identify author and prevent tampering. Some windows 7 system files are signed in a similar way. Security Continued
  • 22.  Each program runs in it’s own VM.  Need to understand an activities lifecycle.  Make use of Android SDK  Applications programmed in Java, with layouts coded in XML.  Packaged as .apk files for delivery through Android store.  Importance of file size + data usage. Programming for Android