SlideShare a Scribd company logo
Ubuntu Application
Lifecycle
Or: How I learned to stop
worrying and trust application
developers
Ubuntu Application
Lifecycle
Or: How I learned to stop
worrying and trust application
developers
Ted Gould
ted@canonical.com
@tedjgould
Texas Linux Fest
22 Aug 2015
“I'm more worried about Murphy
than I am Machievilli”
— Michi Henning
Ideal
Cracker
Diminished User Experience
© Andy Armstrong — CC-BY-SA — https://www.flickr.com/photos/andyarmstrong/190078748/
Dead
Battery
© Josh Hallett — CC-BY — https://www.flickr.com/photos/hyku/368912557/
Data
Protection
© Antti T. Nissinen — CC-BY — https://www.flickr.com/photos/54177777@N00/373864777/
Physical
Destruction
Phone Usage
http://hbr.org/2013/01/how-people-really-use-mobile/
PID
Click
Manifest
Desktop
File
Helper
Config
Unity
Screen
AppArmor
Profile
Upstart
Instance
App
App
Application
Switcher
Presentation Application Switcher
Infinite App Illusion
Technical User
How many
apps can I run?
1 GB RAM
1 GHz Quad Core
Active
Application
Paused Apps
(RAM)
Stopped Offline
Stateless Stopped
Paused
Active
Stateless Stopped
Paused
Active
User
Interaction
Only!!!
Paused
Active
Stateless Stopped
Stateless
Active
Stopped
Paused
Linux Kernel
OOM Killer
(want to include
graphics resources in
the future)
Stateless Stopped
Paused
Active
What happens:
●
App is asked to save
state
●
Graphic buffers
grabbed for screenshot
●
Timeout, then all
processes are sent
SIGSTOP
Paused
Active
Stateless Stopped
What happens:
●
NOTHING!Stateless
Active
Stopped
Paused
Positive:
Ask to save state nicely via life cycle
Stop using processing when not asked
Negative:
SIGSTOP apps
SIGKILL apps on OOM killer
Likelytobekilled
Stopped App
Untrusted Helpers
Active Application
Unity
Trusted Helpers
●
Download Manager — Downloads content to
the device while the application isn't focused.
●
Push Messages — Background process that
collects JSON messages targeted at app/user
●
Location Service — Uses GPS and other
sources to establish location continually.
●
Content Hub — Shares files between
application contexts securely.
●
Media Hub — Plays audio files and play lists.
App
Location
Online
Accounts
URL
Dispatcher
Address
Book
AppArmor
TrustedConfined
DBus Trusted
Helpers
App
URL
Dispatcher
Upstart
Browser
Unity
USER
Click on a link Show the browser
File
Server
Push
Message
Download
Manager
App
Push
Server
Save in App Cache
New File
Simple Sync
Request permission at
time of use
Ubuntu Applications are:
●
Confined — By default the applications are
restricted from using a lot of functionality that
might be expected from a traditional Linux user
session.
●
Managed — The application lifecycle works to
keep the user in control of what is draining the
battery and using resources.
●
Have Friends — Trusted helpers provide ways
to implement the functionality you need and
work with confinement.
Review
Additional Info
http://www.ubuntu.com/phone
https://developer.ubuntu.com
https://wiki.ubuntu.com/Security/AppArmor
https://wiki.ubuntu.com/Mir
© Stéfan — CC-BY-SA — https://www.flickr.com/photos/st3f4n/143623934

More Related Content

PDF
OSCNagoya 2011「App inventor入門」
PDF
Coaching with the brain in mind
PDF
Snap Your App
PPTX
Linux process management
PPTX
Linux ppt
PPTX
Linux.ppt
PPT
Ubuntu application confinement
PPTX
07 wp7 application lifecycle
OSCNagoya 2011「App inventor入門」
Coaching with the brain in mind
Snap Your App
Linux process management
Linux ppt
Linux.ppt
Ubuntu application confinement
07 wp7 application lifecycle

Recently uploaded (6)

DOC
证书学历UoA毕业证,澳大利亚中汇学院毕业证国外大学毕业证
PDF
Lesson 13- HEREDITY _ pedSAWEREGFVCXZDSASEWFigree.pdf
DOC
Camb毕业证学历认证,格罗斯泰斯特主教大学毕业证仿冒文凭毕业证
PPTX
ASMS Telecommunication company Profile
PPTX
Introduction to Packet Tracer Course Overview - Aug 21 (1).pptx
PDF
6-UseCfgfhgfhgfhgfhgfhfhhaseActivity.pdf
证书学历UoA毕业证,澳大利亚中汇学院毕业证国外大学毕业证
Lesson 13- HEREDITY _ pedSAWEREGFVCXZDSASEWFigree.pdf
Camb毕业证学历认证,格罗斯泰斯特主教大学毕业证仿冒文凭毕业证
ASMS Telecommunication company Profile
Introduction to Packet Tracer Course Overview - Aug 21 (1).pptx
6-UseCfgfhgfhgfhgfhgfhfhhaseActivity.pdf
Ad
Ad

Ubuntu Application Lifecycle