Analysis and Comparison with Android and iPhone Operating System

Download Report

Transcript Analysis and Comparison with Android and iPhone Operating System

Lu Cheng
(l2686604)
Power Consuming Services
 Android and iPhone support energy hungry network
services
 2G/3G: the two-way radio system for long range
service.
 Frequencies for America: GSM 850, GSM 1900
 Frequencies for Europe: GSM 800, GSM 1800
 Wi-Fi: a standard, is a two-way, short range protocol
and operates in two bands
 Bluetooth: a two-way, ultrashort range protocol.
 GPS: a one-way system via satellite
Power Consuming Services
 The most power hungry network service:
 3G radio system
 Wi-Fi
 2G radio system
 Bluetooth
 GPS
Other energy consuming aspect
 Large LCD screen
 3.7 inch in Droid
 3.5 inch in iPhone
 Multi-media
 Audio & video player
 Audio & video recorder
 Camera
Android
 Android Power Management Support
 On top of the standard Linux Power Management
 CPU cannot consume power without applications or
services power requirement
 Simple power management mechanism
 Locks and timer
 Support screen on/off, backlight on/off, adjust screen
brightness
Power manager in Android
 Change phone’s power usage
based on the amount of
battery left
 Triggers
 Plug into A/C adapter, USB
charger or USB port
 Battery level reaching
particular level
 Adjustable features based on
triggers
 Wi-Fi; Bluetooth; GPS; Awake
time; Screen’s brightness, etc
iPhone
 iPhone don’t have power management toolkit
 iPhone supports different mode
 Sleep mode
 Airline mode
Battery and Portable Power
 USB charge
 Car charge
Droid
iPhone
type
lithium-ion battery
lithium-ion battery
Remove
Yes
Built-in inaccessible
Replacement
Yes
No-user replaceable
Standby
Up to 270hr
Up to 277hr
Talk time
327 min
350min
Power Management strategy
 Android and iPhone shares similar power
management strategy
 Turn off unnecessary application
 Charge the cell phone whenever you can!!!
 Android
 T-mobile G1
 One-click Google Search.
 Customizable Home screen with instant Email, text
message and IM notifications.
 Instant access to Google services (Gmail, YouTube,
Maps, Google Talk, Calendar).
System History
 Android
 2005 July: Google bought Android, Inc. At Google, the




team developed a mobile device platform powered by
the Linux kernel
2007 November: Google released Android build on the
Linux kernel version 2.6
2008 October: Opened Android’s source code.
2009 April: Google released Cupcake with Linux
kernel 2.6.27
2009 September: Google released Donut
System History
 iPhone
 2007 June: Apple released the initial version of iPhone




OS
2007 September: Apple released version 1.0.2 with the
iPod
2008 July: Apple released version 2.0 with iPhone 3G
2009 June: Apple released version 3.0 with iPhone 3GS
2010 January: Apple released the latest version 3.2
which support iPad
System Architecture
 Android
 Kernel Linux
 Android relies on Linux
version 2.6 for core system
services
 Libraries
 Android has a set of C/C++
libraries used by various
components of the Android
system
 These libraries are exposed
to developers
System Architecture
 Android
 Runtime
 Core libraries
 Dalvik virtual machine
 Application framwork
 All Android applications are
written with Java
programming language
 Offer developers with the
ability to build applications
System Architecture
 iPhone
 Hardware
 Firmware
 Processor
 iPhone OS
 Objective-C Runtime
 Objective-C dynamically-
linked runtime libraries
 Underlying C libraries
 Frameworks
 Application
Hardware Comparison
Droid
iPhone
Memory
256MB
168MB
Second Storage
32GB
16GB
Media
Camera; Audio; Video;
Up to 24 fps capture
Camera; Audio; Video;
Up to 27 fps capture
Screen
3.7 inch widescreen
3.5-inch widescreen
Multi-Touch display
Battery
1400 Ah Li Ion battery;
Up to 270 hours standby
time
None user-replaceable;
Up to 250 hours standby
time
Sensor
Proximity; Ambient light;
E-Compass
Proximity; Ambient light;
3-axis accelerometer;
Moisture; e-Compass
Memory Management
 Android
 Handles memory management automatically
 Garbage collector destroys the application without active
 May cause performance issues(too many allocations; too large
allocations)
 iPhone
 Has no garbage collection
 Developer maintain the count number for each object
 When count number become 0, destroy the object
 NSObject class helps to keep the track of count number
Security
 Android
 Open platform
 Allow user load third-party application onto a device.
 Enforce security between applications and system at process level
 Permission mechanism enforce restriction on specific operations
with particular process
 iPhone
 iPhone has no security software
 Third party software is not allowed on the device
 Provide passcode lock feature
 When password failure, perform soft reset, lock the device, unlock with
remote unlock service