SlideShare une entreprise Scribd logo
1  sur  31
Télécharger pour lire hors ligne
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

Contenu connexe

Similaire à Ubuntu Application Lifecycle

AusNOG 2013 - The Rapid Rise of the Mobile Multihomed Host, and What it Might...
AusNOG 2013 - The Rapid Rise of the Mobile Multihomed Host, and What it Might...AusNOG 2013 - The Rapid Rise of the Mobile Multihomed Host, and What it Might...
AusNOG 2013 - The Rapid Rise of the Mobile Multihomed Host, and What it Might...
Mark Smith
 

Similaire à Ubuntu Application Lifecycle (20)

Artificial intelligence and sensor based assistive sytem for visually impaire...
Artificial intelligence and sensor based assistive sytem for visually impaire...Artificial intelligence and sensor based assistive sytem for visually impaire...
Artificial intelligence and sensor based assistive sytem for visually impaire...
 
Open Text Content World - Executive Summit presentation
Open Text Content World - Executive Summit presentationOpen Text Content World - Executive Summit presentation
Open Text Content World - Executive Summit presentation
 
Web 2.0 NY: When Products Start Talking Back
Web 2.0 NY: When Products Start Talking BackWeb 2.0 NY: When Products Start Talking Back
Web 2.0 NY: When Products Start Talking Back
 
AusNOG 2013 - The Rapid Rise of the Mobile Multihomed Host, and What it Might...
AusNOG 2013 - The Rapid Rise of the Mobile Multihomed Host, and What it Might...AusNOG 2013 - The Rapid Rise of the Mobile Multihomed Host, and What it Might...
AusNOG 2013 - The Rapid Rise of the Mobile Multihomed Host, and What it Might...
 
Technology, Complexity, and Change: The Creative Frictions of Today
Technology, Complexity, and Change:  The Creative Frictions of TodayTechnology, Complexity, and Change:  The Creative Frictions of Today
Technology, Complexity, and Change: The Creative Frictions of Today
 
Technology, Complexity & Change: Creative Frictions of the Present
Technology, Complexity & Change:  Creative Frictions of the PresentTechnology, Complexity & Change:  Creative Frictions of the Present
Technology, Complexity & Change: Creative Frictions of the Present
 
Using social media as a business tool
Using social media as a business toolUsing social media as a business tool
Using social media as a business tool
 
Internet security
Internet securityInternet security
Internet security
 
Internet security
Internet securityInternet security
Internet security
 
Bring your own-computer_to work
Bring your own-computer_to workBring your own-computer_to work
Bring your own-computer_to work
 
ACS Talk (Melbourne) - The future of security
ACS Talk (Melbourne) - The future of securityACS Talk (Melbourne) - The future of security
ACS Talk (Melbourne) - The future of security
 
Endpoint Security Fundamentals Part 2: Leveraging the Right Enforcement Controls
Endpoint Security Fundamentals Part 2: Leveraging the Right Enforcement ControlsEndpoint Security Fundamentals Part 2: Leveraging the Right Enforcement Controls
Endpoint Security Fundamentals Part 2: Leveraging the Right Enforcement Controls
 
A Year in Open Data
A Year in Open DataA Year in Open Data
A Year in Open Data
 
IRJET - Movie Opinion Mining & Emotions Rating Software
IRJET -  	  Movie Opinion Mining & Emotions Rating SoftwareIRJET -  	  Movie Opinion Mining & Emotions Rating Software
IRJET - Movie Opinion Mining & Emotions Rating Software
 
IRJET- Trend Analysis on Twitter
IRJET- Trend Analysis on TwitterIRJET- Trend Analysis on Twitter
IRJET- Trend Analysis on Twitter
 
Socialmedia in Extension
Socialmedia in ExtensionSocialmedia in Extension
Socialmedia in Extension
 
Securing the Fog
Securing the FogSecuring the Fog
Securing the Fog
 
Benefits and Risks of Social Technologies
Benefits and Risks of Social TechnologiesBenefits and Risks of Social Technologies
Benefits and Risks of Social Technologies
 
Kinect-like Devices: Principles, Brands and Cross-Applications
Kinect-like Devices: Principles, Brands and Cross-ApplicationsKinect-like Devices: Principles, Brands and Cross-Applications
Kinect-like Devices: Principles, Brands and Cross-Applications
 
Iot and prediction 2015
Iot and prediction 2015Iot and prediction 2015
Iot and prediction 2015
 

Dernier

CALL ON ➥8923113531 🔝Call Girls Gomti Nagar Lucknow best Night Fun service
CALL ON ➥8923113531 🔝Call Girls Gomti Nagar Lucknow best Night Fun serviceCALL ON ➥8923113531 🔝Call Girls Gomti Nagar Lucknow best Night Fun service
CALL ON ➥8923113531 🔝Call Girls Gomti Nagar Lucknow best Night Fun service
anilsa9823
 
CALL ON ➥8923113531 🔝Call Girls Saharaganj Lucknow best sexual service
CALL ON ➥8923113531 🔝Call Girls Saharaganj Lucknow best sexual serviceCALL ON ➥8923113531 🔝Call Girls Saharaganj Lucknow best sexual service
CALL ON ➥8923113531 🔝Call Girls Saharaganj Lucknow best sexual service
anilsa9823
 

Dernier (7)

BDSM⚡Call Girls in Sector 71 Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 71 Noida Escorts >༒8448380779 Escort ServiceBDSM⚡Call Girls in Sector 71 Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 71 Noida Escorts >༒8448380779 Escort Service
 
CALL ON ➥8923113531 🔝Call Girls Gomti Nagar Lucknow best Night Fun service
CALL ON ➥8923113531 🔝Call Girls Gomti Nagar Lucknow best Night Fun serviceCALL ON ➥8923113531 🔝Call Girls Gomti Nagar Lucknow best Night Fun service
CALL ON ➥8923113531 🔝Call Girls Gomti Nagar Lucknow best Night Fun service
 
Powerful Love Spells in Arkansas, AR (310) 882-6330 Bring Back Lost Lover
Powerful Love Spells in Arkansas, AR (310) 882-6330 Bring Back Lost LoverPowerful Love Spells in Arkansas, AR (310) 882-6330 Bring Back Lost Lover
Powerful Love Spells in Arkansas, AR (310) 882-6330 Bring Back Lost Lover
 
CALL ON ➥8923113531 🔝Call Girls Saharaganj Lucknow best sexual service
CALL ON ➥8923113531 🔝Call Girls Saharaganj Lucknow best sexual serviceCALL ON ➥8923113531 🔝Call Girls Saharaganj Lucknow best sexual service
CALL ON ➥8923113531 🔝Call Girls Saharaganj Lucknow best sexual service
 
Call US Pooja 9892124323 ✓Call Girls In Mira Road ( Mumbai ) secure service,
Call US Pooja 9892124323 ✓Call Girls In Mira Road ( Mumbai ) secure service,Call US Pooja 9892124323 ✓Call Girls In Mira Road ( Mumbai ) secure service,
Call US Pooja 9892124323 ✓Call Girls In Mira Road ( Mumbai ) secure service,
 
9892124323 | Book Call Girls in Juhu and escort services 24x7
9892124323 | Book Call Girls in Juhu and escort services 24x79892124323 | Book Call Girls in Juhu and escort services 24x7
9892124323 | Book Call Girls in Juhu and escort services 24x7
 
FULL ENJOY - 9999218229 Call Girls in {Mahipalpur}| Delhi NCR
FULL ENJOY - 9999218229 Call Girls in {Mahipalpur}| Delhi NCRFULL ENJOY - 9999218229 Call Girls in {Mahipalpur}| Delhi NCR
FULL ENJOY - 9999218229 Call Girls in {Mahipalpur}| Delhi NCR
 

Ubuntu Application Lifecycle