SlideShare a Scribd company logo
Cyanogen Inc. Proprietary & Confidential
Platform SDK
by Adnan Begovic
Cyanogen Inc. Proprietary & Confidential
Background
What is CyanogenMod?
CyanogenMod (pronounced /saɪ.ˈæn.oʊ.ˌdʒɛn.mɒd/),
usually abbreviated to CM, is an open-source operating
system for smartphones and tablet computers, based on
the Android mobile platform. It is developed as free and
open source software based on the official releases of
Android by Google, with added original and third-party
code. It is based on a rolling release development model.
Cyanogen Inc. Proprietary & Confidential
Background
CyanogenMod User Base:
● 50+ million users
● Users in 190+ different countries
● Localized to 50+ languages via automated crowdin
system
Cyanogen Inc. Proprietary & Confidential
Background
CyanogenMod Developer base:
● Numerous active core developers/maintainers
○ Maintain devices
○ Maintain documentation for features and device specs
○ Maintain and manage their own user bases
○ Maintain crowdin
○ File and resolve bugs reported by community users
● ~163 devices supported
● Receive a substantial amount of OSS contributions
from outside sources.
Cyanogen Inc. Proprietary & Confidential
Developer Base
Cyanogen Inc. Proprietary & Confidential
Crowdsourcing Android Development
Cyanogen Inc. Proprietary & Confidential
An Example Community Contribution
Cyanogen Inc. Proprietary & Confidential
Topics
● OS development is intimidating
● Treehacks Hackathon learnings
● Cyanogen Platform
○ Infrastructure
○ Framework library
○ SDK
○ Resource Package
● Using the SDK (QST examples)
● Contributing API’s
Cyanogen Inc. Proprietary & Confidential
Contributing to an OS
The Treehacks experience
Treehacks:
● 500+ person hackathon with students from all over the country.
● Workshops to get a meaningful contribution to the OSS project
CyanogenMod.
● Open to Stanford students, external students, and outside developers.
Cyanogen Inc. Proprietary & Confidential
Treehacks Experience
Winning Project: CyanTranslate
Using CyanogenMod, the winners modified the Android operating system and
created several new built-in features for manipulating text. By highlighting text
and hitting a button, the user can take advantage of these features. The new
features include:
Automatic translation between languages
● One-tap Google search
● UrbanDictionary definition lookup
● Book information lookup
Cyanogen Inc. Proprietary & Confidential
Treehacks Experience
Cyanogen Inc. Proprietary & Confidential
Treehacks Feedback
Positives Negatives
Open platform High ramp up time
Good infrastructure
● Gerrit Code Review
● Github mirroring
Massive code base
● ~1281 github repos
● 100+ android packages
● 25+ Gb repo size
Build environment documentation
● https://wiki.cyanogenmod.org
High barrier of entry in understanding
Android’s core implementations
Cyanogen Inc. Proprietary & Confidential
Treehacks Experience
- How to decrease the barrier to entry?
- How to extend the CM experience for 3rd party
developers?
Cyanogen Inc. Proprietary & Confidential
The Cyanogen Platform
Cyanogen Inc. Proprietary & Confidential
Cyanogen Platform
The new, more approachable, infrastructure:
● CyanogenMod Platform Library
● CyanogenMod Resource Package
● CyanogenMod Platform SDK
Application
Cyanogen
Platform SDK
Platform API
Core
Resource
Package
Android OS
Cyanogen Inc. Proprietary & Confidential
Cyanogen Platform Library
Framework library similar to Android’s Framework
JAR.
● Contains System Binder Services that get spun up and managed by
Android’s SystemServer.
● Contains the implementation, state management, and persisting of
data for a specific API feature.
● Leveraging Android’s powerful IPC framework for interaction between
an application and the system process.
Further information: Understanding the Structure
Cyanogen Inc. Proprietary & Confidential
Cyanogen Resource Package
Contains exported resources and CyanogenMod specific
permissions to be leveraged by the Application and
framework.
● ex:
○ cyanogenmod.permission.PUBLISH_CUSTOM_TILE
○ cyanogenmod_system_label
Cyanogen Inc. Proprietary & Confidential
Cyanogen Platform SDK
A library that can be included in your application to interact
with CM specific binder services to gain extra functionality.
● Provides objects, object builder’s, helper methods, and simple
interfaces to push or receive data from the platform library.
Cyanogen Inc. Proprietary & Confidential
Using the SDK
Custom Quick Tiles API Example:
● Allows your application to publish a Quick Tile to be hosted in the QS
Panel.
○ Patterns similar to Notification and NotificationManager
Cyanogen Inc. Proprietary & Confidential
Exploration for an API
Bike O’Clock
● Using Quick Settings Tiles to surface commonly
used actions.
Cyanogen Inc. Proprietary & Confidential
Bike O’Clock
Cyanogen Inc. Proprietary & Confidential
Using the SDK
Creating a CustomTile:
CustomTile customTile = new CustomTile.Builder(mContext)
.setLabel("custom label")
.setContentDescription("custom description")
.setOnClickIntent(pendingIntent)
.setOnSettingsClickIntent(intent)
.setOnClickUri(Uri.parse("custom uri"))
.setIcon(R.drawable.ic_launcher)
.build();
Cyanogen Inc. Proprietary & Confidential
Using the SDK
Cyanogen Inc. Proprietary & Confidential
Using the SDK
Publishing:
CMStatusBarManager.getInstance(this)
.publishTile(CUSTOM_TILE_ID, mCustomTile);
Removing:
CMStatusBarManager.getInstance(this)
.removeTile(CUSTOM_TILE_ID, mCustomTile);
Requires:
<uses-permission android:name="cyanogenmod.permission.PUBLISH_CUSTOM_TILE" />
Cyanogen Inc. Proprietary & Confidential
Contributing
Cyanogen Inc. Proprietary & Confidential
Making a change
repo init -u git://github.com/CyanogenMod/android.git -b cm-12.1
repo sync
repo start changes vendor/cmsdk
https://www.github.com/CyanogenMod/cm_platform_sdk
Cyanogen Inc. Proprietary & Confidential
Contributing
Application
Cyanogen
Platform SDK
Platform API
Core
Community
API Core
gerrit (code review, unit tests)
Interface Changes
Unit Tests
SDK Methods
CTS
SDK methods
added to Platform
SDK project
API added along
side core
Interfaces added to
nightly builds
API Council (Change Control Board)
API Check-API
Android OS
Cyanogen Inc. Proprietary & Confidential
Contributing
Documentation generation is automated!
● make org.cyanogenmod.platform.sdk-docs
● Published directly from gerrit merge to github pages
Docs: http://cyanogenmod.github.io/cm_platform_sdk/reference/packages.html
Cyanogen Inc. Proprietary & Confidential
Contribute New APIs & Write More Functional Apps
Cyanogen Inc. Proprietary & Confidential
Questions?
Join the G+ Community: http://bit.ly/1FC6lJI
Cyanogen Inc. Proprietary & Confidential
Appendix for QA
Cyanogen Inc. Proprietary & Confidential
Security
vendor/cm/overlay
<!-- Defines external services to be started by the SystemServer at boot. The service itself
should publish as a binder services in its onStart -->
<string-array name="config_externalCMServices">
<item>org.cyanogenmod.platform.internal.CMStatusBarManagerService</item>
</string-array>
vendor/cm/sepolicy/servicecontexts
cmstatusbar u:object_r:system_server_service:s0
Cyanogen Inc. Proprietary & Confidential
Security
Selinux service_contexts
● service_contexts is used for translating service names into selinux labels.
● MAC check to the svc_can_register function in
service_manager.
https://android.googlesource.com/platform/frameworks/native/+/69154df

More Related Content

What's hot

Android Things Internals
Android Things InternalsAndroid Things Internals
Android Things Internals
Opersys inc.
 
What to do after Rooting ?
What to do after Rooting ?What to do after Rooting ?
What to do after Rooting ?
Arnav Gupta
 
Android Things Internals
Android Things InternalsAndroid Things Internals
Android Things Internals
Opersys inc.
 
Android OTA updates
Android OTA updatesAndroid OTA updates
Android OTA updates
Gary Bisson
 
Android Things: Android for IoT
Android Things: Android for IoTAndroid Things: Android for IoT
Android Things: Android for IoT
Opersys inc.
 
Android Things Latest News / Aug 25, 2017
Android Things Latest News / Aug 25, 2017Android Things Latest News / Aug 25, 2017
Android Things Latest News / Aug 25, 2017
Masahiro Hidaka
 
Brillo / Weave Internals
Brillo / Weave InternalsBrillo / Weave Internals
Brillo / Weave Internals
Opersys inc.
 
Android Things, Alexey Rybakov, Technical Evangelist, DataArt
Android Things, Alexey Rybakov, Technical Evangelist, DataArtAndroid Things, Alexey Rybakov, Technical Evangelist, DataArt
Android Things, Alexey Rybakov, Technical Evangelist, DataArt
Alina Vilk
 
Hacking the third Smartphone OS and Some Mobile device in #COSCUP 2019  第三款智能...
Hacking the third Smartphone OS and Some Mobile device in #COSCUP 2019  第三款智能...Hacking the third Smartphone OS and Some Mobile device in #COSCUP 2019  第三款智能...
Hacking the third Smartphone OS and Some Mobile device in #COSCUP 2019  第三款智能...
Netwalker lab kapper
 
Brillo / Weave Internals
Brillo / Weave InternalsBrillo / Weave Internals
Brillo / Weave Internals
Opersys inc.
 
Basics of the Google Glass programming
Basics of the Google Glass programmingBasics of the Google Glass programming
Basics of the Google Glass programmingMiki Yutani
 
Android.
Android.Android.
Optimized Android N MR1 + 4.4 Kernel
Optimized Android N MR1 + 4.4 KernelOptimized Android N MR1 + 4.4 Kernel
Optimized Android N MR1 + 4.4 Kernel
Linaro
 
Android things intro
Android things introAndroid things intro
Android things intro
Matteo Bonifazi
 
Koubei banquet 31
Koubei banquet 31Koubei banquet 31
Koubei banquet 31Koubei UED
 
BUD17-DF15 - Optimized Android N MR1 + 4.9 Kernel
BUD17-DF15 - Optimized Android N MR1 + 4.9 KernelBUD17-DF15 - Optimized Android N MR1 + 4.9 Kernel
BUD17-DF15 - Optimized Android N MR1 + 4.9 Kernel
Linaro
 

What's hot (16)

Android Things Internals
Android Things InternalsAndroid Things Internals
Android Things Internals
 
What to do after Rooting ?
What to do after Rooting ?What to do after Rooting ?
What to do after Rooting ?
 
Android Things Internals
Android Things InternalsAndroid Things Internals
Android Things Internals
 
Android OTA updates
Android OTA updatesAndroid OTA updates
Android OTA updates
 
Android Things: Android for IoT
Android Things: Android for IoTAndroid Things: Android for IoT
Android Things: Android for IoT
 
Android Things Latest News / Aug 25, 2017
Android Things Latest News / Aug 25, 2017Android Things Latest News / Aug 25, 2017
Android Things Latest News / Aug 25, 2017
 
Brillo / Weave Internals
Brillo / Weave InternalsBrillo / Weave Internals
Brillo / Weave Internals
 
Android Things, Alexey Rybakov, Technical Evangelist, DataArt
Android Things, Alexey Rybakov, Technical Evangelist, DataArtAndroid Things, Alexey Rybakov, Technical Evangelist, DataArt
Android Things, Alexey Rybakov, Technical Evangelist, DataArt
 
Hacking the third Smartphone OS and Some Mobile device in #COSCUP 2019  第三款智能...
Hacking the third Smartphone OS and Some Mobile device in #COSCUP 2019  第三款智能...Hacking the third Smartphone OS and Some Mobile device in #COSCUP 2019  第三款智能...
Hacking the third Smartphone OS and Some Mobile device in #COSCUP 2019  第三款智能...
 
Brillo / Weave Internals
Brillo / Weave InternalsBrillo / Weave Internals
Brillo / Weave Internals
 
Basics of the Google Glass programming
Basics of the Google Glass programmingBasics of the Google Glass programming
Basics of the Google Glass programming
 
Android.
Android.Android.
Android.
 
Optimized Android N MR1 + 4.4 Kernel
Optimized Android N MR1 + 4.4 KernelOptimized Android N MR1 + 4.4 Kernel
Optimized Android N MR1 + 4.4 Kernel
 
Android things intro
Android things introAndroid things intro
Android things intro
 
Koubei banquet 31
Koubei banquet 31Koubei banquet 31
Koubei banquet 31
 
BUD17-DF15 - Optimized Android N MR1 + 4.9 Kernel
BUD17-DF15 - Optimized Android N MR1 + 4.9 KernelBUD17-DF15 - Optimized Android N MR1 + 4.9 Kernel
BUD17-DF15 - Optimized Android N MR1 + 4.9 Kernel
 

Similar to Cyanogen Platform SDK

Platform SDK Update
Platform SDK UpdatePlatform SDK Update
Platform SDK Update
Adnan Begovic
 
Delivery Pipelines as a First Class Citizen @deliverAgile2019
Delivery Pipelines as a First Class Citizen @deliverAgile2019Delivery Pipelines as a First Class Citizen @deliverAgile2019
Delivery Pipelines as a First Class Citizen @deliverAgile2019
ciberkleid
 
Build Smart Service on GCP - Google DevFest 2018 Taiwan
Build Smart Service on GCP - Google DevFest 2018 TaiwanBuild Smart Service on GCP - Google DevFest 2018 Taiwan
Build Smart Service on GCP - Google DevFest 2018 Taiwan
David Chen
 
Building Kick Ass Video Games for the Cloud
Building Kick Ass Video Games for the CloudBuilding Kick Ass Video Games for the Cloud
Building Kick Ass Video Games for the Cloud
Chris Schalk
 
Java Meetup - 12-03-15 - Android Development Workshop
Java Meetup - 12-03-15 - Android Development WorkshopJava Meetup - 12-03-15 - Android Development Workshop
Java Meetup - 12-03-15 - Android Development Workshop
Kasun Dananjaya Delgolla
 
A Love Story with Kubevirt and Backstage from Cloud Native NoVA meetup Feb 2024
A Love Story with Kubevirt and Backstage from Cloud Native NoVA meetup Feb 2024A Love Story with Kubevirt and Backstage from Cloud Native NoVA meetup Feb 2024
A Love Story with Kubevirt and Backstage from Cloud Native NoVA meetup Feb 2024
Cloud Native NoVA
 
Webinar: Extend The Power of The ForgeRock Identity Platform Through Scripting
Webinar: Extend The Power of The ForgeRock Identity Platform Through ScriptingWebinar: Extend The Power of The ForgeRock Identity Platform Through Scripting
Webinar: Extend The Power of The ForgeRock Identity Platform Through Scripting
ForgeRock
 
CIP Developing Curator Tool Wizards
CIP Developing Curator Tool WizardsCIP Developing Curator Tool Wizards
CIP Developing Curator Tool Wizards
Edwin Rojas
 
Why Pay for Open Source Linux? Avoid the Hidden Cost of DIY
Why Pay for Open Source Linux? Avoid the Hidden Cost of DIYWhy Pay for Open Source Linux? Avoid the Hidden Cost of DIY
Why Pay for Open Source Linux? Avoid the Hidden Cost of DIY
Enterprise Management Associates
 
Is Android the New King of Embedded OSes at Embedded World 2014
Is Android the New King of Embedded OSes at Embedded World 2014Is Android the New King of Embedded OSes at Embedded World 2014
Is Android the New King of Embedded OSes at Embedded World 2014Opersys inc.
 
The Ultimate Android Security Checklist (Mdevcon 2014)
The Ultimate Android Security Checklist (Mdevcon 2014)The Ultimate Android Security Checklist (Mdevcon 2014)
The Ultimate Android Security Checklist (Mdevcon 2014)
Ron Munitz
 
#Interactive Session by Kirti Ranjan Satapathy and Nandini K, "Elements of Qu...
#Interactive Session by Kirti Ranjan Satapathy and Nandini K, "Elements of Qu...#Interactive Session by Kirti Ranjan Satapathy and Nandini K, "Elements of Qu...
#Interactive Session by Kirti Ranjan Satapathy and Nandini K, "Elements of Qu...
Agile Testing Alliance
 
Room 2 - 4 - Juncheng Anthony Lin - Redhat - A Practical Approach to Traditio...
Room 2 - 4 - Juncheng Anthony Lin - Redhat - A Practical Approach to Traditio...Room 2 - 4 - Juncheng Anthony Lin - Redhat - A Practical Approach to Traditio...
Room 2 - 4 - Juncheng Anthony Lin - Redhat - A Practical Approach to Traditio...
Vietnam Open Infrastructure User Group
 
Accelerating Enterprise Software Engineering with Platformless
Accelerating Enterprise Software Engineering with PlatformlessAccelerating Enterprise Software Engineering with Platformless
Accelerating Enterprise Software Engineering with Platformless
WSO2
 
GCP - Continuous Integration and Delivery into Kubernetes with GitHub, Travis...
GCP - Continuous Integration and Delivery into Kubernetes with GitHub, Travis...GCP - Continuous Integration and Delivery into Kubernetes with GitHub, Travis...
GCP - Continuous Integration and Delivery into Kubernetes with GitHub, Travis...
Oleg Shalygin
 
Cassandra on Google Cloud Platform (Ravi Madasu, Google / Ben Lackey, DataSta...
Cassandra on Google Cloud Platform (Ravi Madasu, Google / Ben Lackey, DataSta...Cassandra on Google Cloud Platform (Ravi Madasu, Google / Ben Lackey, DataSta...
Cassandra on Google Cloud Platform (Ravi Madasu, Google / Ben Lackey, DataSta...
DataStax
 
#MBLTdev: Разработка backend для мобильного приложения с использованием Googl...
#MBLTdev: Разработка backend для мобильного приложения с использованием Googl...#MBLTdev: Разработка backend для мобильного приложения с использованием Googl...
#MBLTdev: Разработка backend для мобильного приложения с использованием Googl...
e-Legion
 
The Ultimate Android Security Checklist (AnDevCon Boston 2014)
The Ultimate Android Security Checklist (AnDevCon Boston 2014)The Ultimate Android Security Checklist (AnDevCon Boston 2014)
The Ultimate Android Security Checklist (AnDevCon Boston 2014)
Ron Munitz
 
Android App Development 01 : Getting Start
Android App Development 01 : Getting StartAndroid App Development 01 : Getting Start
Android App Development 01 : Getting StartAnuchit Chalothorn
 
OSMC 2009 | NConf - Enterprise Nagios configurator by Angelo Gargiulo
OSMC 2009 | NConf - Enterprise Nagios configurator by Angelo GargiuloOSMC 2009 | NConf - Enterprise Nagios configurator by Angelo Gargiulo
OSMC 2009 | NConf - Enterprise Nagios configurator by Angelo Gargiulo
NETWAYS
 

Similar to Cyanogen Platform SDK (20)

Platform SDK Update
Platform SDK UpdatePlatform SDK Update
Platform SDK Update
 
Delivery Pipelines as a First Class Citizen @deliverAgile2019
Delivery Pipelines as a First Class Citizen @deliverAgile2019Delivery Pipelines as a First Class Citizen @deliverAgile2019
Delivery Pipelines as a First Class Citizen @deliverAgile2019
 
Build Smart Service on GCP - Google DevFest 2018 Taiwan
Build Smart Service on GCP - Google DevFest 2018 TaiwanBuild Smart Service on GCP - Google DevFest 2018 Taiwan
Build Smart Service on GCP - Google DevFest 2018 Taiwan
 
Building Kick Ass Video Games for the Cloud
Building Kick Ass Video Games for the CloudBuilding Kick Ass Video Games for the Cloud
Building Kick Ass Video Games for the Cloud
 
Java Meetup - 12-03-15 - Android Development Workshop
Java Meetup - 12-03-15 - Android Development WorkshopJava Meetup - 12-03-15 - Android Development Workshop
Java Meetup - 12-03-15 - Android Development Workshop
 
A Love Story with Kubevirt and Backstage from Cloud Native NoVA meetup Feb 2024
A Love Story with Kubevirt and Backstage from Cloud Native NoVA meetup Feb 2024A Love Story with Kubevirt and Backstage from Cloud Native NoVA meetup Feb 2024
A Love Story with Kubevirt and Backstage from Cloud Native NoVA meetup Feb 2024
 
Webinar: Extend The Power of The ForgeRock Identity Platform Through Scripting
Webinar: Extend The Power of The ForgeRock Identity Platform Through ScriptingWebinar: Extend The Power of The ForgeRock Identity Platform Through Scripting
Webinar: Extend The Power of The ForgeRock Identity Platform Through Scripting
 
CIP Developing Curator Tool Wizards
CIP Developing Curator Tool WizardsCIP Developing Curator Tool Wizards
CIP Developing Curator Tool Wizards
 
Why Pay for Open Source Linux? Avoid the Hidden Cost of DIY
Why Pay for Open Source Linux? Avoid the Hidden Cost of DIYWhy Pay for Open Source Linux? Avoid the Hidden Cost of DIY
Why Pay for Open Source Linux? Avoid the Hidden Cost of DIY
 
Is Android the New King of Embedded OSes at Embedded World 2014
Is Android the New King of Embedded OSes at Embedded World 2014Is Android the New King of Embedded OSes at Embedded World 2014
Is Android the New King of Embedded OSes at Embedded World 2014
 
The Ultimate Android Security Checklist (Mdevcon 2014)
The Ultimate Android Security Checklist (Mdevcon 2014)The Ultimate Android Security Checklist (Mdevcon 2014)
The Ultimate Android Security Checklist (Mdevcon 2014)
 
#Interactive Session by Kirti Ranjan Satapathy and Nandini K, "Elements of Qu...
#Interactive Session by Kirti Ranjan Satapathy and Nandini K, "Elements of Qu...#Interactive Session by Kirti Ranjan Satapathy and Nandini K, "Elements of Qu...
#Interactive Session by Kirti Ranjan Satapathy and Nandini K, "Elements of Qu...
 
Room 2 - 4 - Juncheng Anthony Lin - Redhat - A Practical Approach to Traditio...
Room 2 - 4 - Juncheng Anthony Lin - Redhat - A Practical Approach to Traditio...Room 2 - 4 - Juncheng Anthony Lin - Redhat - A Practical Approach to Traditio...
Room 2 - 4 - Juncheng Anthony Lin - Redhat - A Practical Approach to Traditio...
 
Accelerating Enterprise Software Engineering with Platformless
Accelerating Enterprise Software Engineering with PlatformlessAccelerating Enterprise Software Engineering with Platformless
Accelerating Enterprise Software Engineering with Platformless
 
GCP - Continuous Integration and Delivery into Kubernetes with GitHub, Travis...
GCP - Continuous Integration and Delivery into Kubernetes with GitHub, Travis...GCP - Continuous Integration and Delivery into Kubernetes with GitHub, Travis...
GCP - Continuous Integration and Delivery into Kubernetes with GitHub, Travis...
 
Cassandra on Google Cloud Platform (Ravi Madasu, Google / Ben Lackey, DataSta...
Cassandra on Google Cloud Platform (Ravi Madasu, Google / Ben Lackey, DataSta...Cassandra on Google Cloud Platform (Ravi Madasu, Google / Ben Lackey, DataSta...
Cassandra on Google Cloud Platform (Ravi Madasu, Google / Ben Lackey, DataSta...
 
#MBLTdev: Разработка backend для мобильного приложения с использованием Googl...
#MBLTdev: Разработка backend для мобильного приложения с использованием Googl...#MBLTdev: Разработка backend для мобильного приложения с использованием Googl...
#MBLTdev: Разработка backend для мобильного приложения с использованием Googl...
 
The Ultimate Android Security Checklist (AnDevCon Boston 2014)
The Ultimate Android Security Checklist (AnDevCon Boston 2014)The Ultimate Android Security Checklist (AnDevCon Boston 2014)
The Ultimate Android Security Checklist (AnDevCon Boston 2014)
 
Android App Development 01 : Getting Start
Android App Development 01 : Getting StartAndroid App Development 01 : Getting Start
Android App Development 01 : Getting Start
 
OSMC 2009 | NConf - Enterprise Nagios configurator by Angelo Gargiulo
OSMC 2009 | NConf - Enterprise Nagios configurator by Angelo GargiuloOSMC 2009 | NConf - Enterprise Nagios configurator by Angelo Gargiulo
OSMC 2009 | NConf - Enterprise Nagios configurator by Angelo Gargiulo
 

Recently uploaded

Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology SolutionsProsigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns
 
Accelerate Enterprise Software Engineering with Platformless
Accelerate Enterprise Software Engineering with PlatformlessAccelerate Enterprise Software Engineering with Platformless
Accelerate Enterprise Software Engineering with Platformless
WSO2
 
GlobusWorld 2024 Opening Keynote session
GlobusWorld 2024 Opening Keynote sessionGlobusWorld 2024 Opening Keynote session
GlobusWorld 2024 Opening Keynote session
Globus
 
SOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar Research Team: Latest Activities of IntelBrokerSOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar
 
Software Testing Exam imp Ques Notes.pdf
Software Testing Exam imp Ques Notes.pdfSoftware Testing Exam imp Ques Notes.pdf
Software Testing Exam imp Ques Notes.pdf
MayankTawar1
 
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, BetterWebinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
XfilesPro
 
Corporate Management | Session 3 of 3 | Tendenci AMS
Corporate Management | Session 3 of 3 | Tendenci AMSCorporate Management | Session 3 of 3 | Tendenci AMS
Corporate Management | Session 3 of 3 | Tendenci AMS
Tendenci - The Open Source AMS (Association Management Software)
 
Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024
Paco van Beckhoven
 
Using IESVE for Room Loads Analysis - Australia & New Zealand
Using IESVE for Room Loads Analysis - Australia & New ZealandUsing IESVE for Room Loads Analysis - Australia & New Zealand
Using IESVE for Room Loads Analysis - Australia & New Zealand
IES VE
 
Enhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdfEnhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdf
Globus
 
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Globus
 
Explore Modern SharePoint Templates for 2024
Explore Modern SharePoint Templates for 2024Explore Modern SharePoint Templates for 2024
Explore Modern SharePoint Templates for 2024
Sharepoint Designs
 
Globus Connect Server Deep Dive - GlobusWorld 2024
Globus Connect Server Deep Dive - GlobusWorld 2024Globus Connect Server Deep Dive - GlobusWorld 2024
Globus Connect Server Deep Dive - GlobusWorld 2024
Globus
 
De mooiste recreatieve routes ontdekken met RouteYou en FME
De mooiste recreatieve routes ontdekken met RouteYou en FMEDe mooiste recreatieve routes ontdekken met RouteYou en FME
De mooiste recreatieve routes ontdekken met RouteYou en FME
Jelle | Nordend
 
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoamOpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
takuyayamamoto1800
 
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERRORTROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
Tier1 app
 
Quarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden ExtensionsQuarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden Extensions
Max Andersen
 
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital TransformationWSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2
 
How to Position Your Globus Data Portal for Success Ten Good Practices
How to Position Your Globus Data Portal for Success Ten Good PracticesHow to Position Your Globus Data Portal for Success Ten Good Practices
How to Position Your Globus Data Portal for Success Ten Good Practices
Globus
 
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.ILBeyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Natan Silnitsky
 

Recently uploaded (20)

Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology SolutionsProsigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology Solutions
 
Accelerate Enterprise Software Engineering with Platformless
Accelerate Enterprise Software Engineering with PlatformlessAccelerate Enterprise Software Engineering with Platformless
Accelerate Enterprise Software Engineering with Platformless
 
GlobusWorld 2024 Opening Keynote session
GlobusWorld 2024 Opening Keynote sessionGlobusWorld 2024 Opening Keynote session
GlobusWorld 2024 Opening Keynote session
 
SOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar Research Team: Latest Activities of IntelBrokerSOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar Research Team: Latest Activities of IntelBroker
 
Software Testing Exam imp Ques Notes.pdf
Software Testing Exam imp Ques Notes.pdfSoftware Testing Exam imp Ques Notes.pdf
Software Testing Exam imp Ques Notes.pdf
 
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, BetterWebinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
 
Corporate Management | Session 3 of 3 | Tendenci AMS
Corporate Management | Session 3 of 3 | Tendenci AMSCorporate Management | Session 3 of 3 | Tendenci AMS
Corporate Management | Session 3 of 3 | Tendenci AMS
 
Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024
 
Using IESVE for Room Loads Analysis - Australia & New Zealand
Using IESVE for Room Loads Analysis - Australia & New ZealandUsing IESVE for Room Loads Analysis - Australia & New Zealand
Using IESVE for Room Loads Analysis - Australia & New Zealand
 
Enhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdfEnhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdf
 
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
 
Explore Modern SharePoint Templates for 2024
Explore Modern SharePoint Templates for 2024Explore Modern SharePoint Templates for 2024
Explore Modern SharePoint Templates for 2024
 
Globus Connect Server Deep Dive - GlobusWorld 2024
Globus Connect Server Deep Dive - GlobusWorld 2024Globus Connect Server Deep Dive - GlobusWorld 2024
Globus Connect Server Deep Dive - GlobusWorld 2024
 
De mooiste recreatieve routes ontdekken met RouteYou en FME
De mooiste recreatieve routes ontdekken met RouteYou en FMEDe mooiste recreatieve routes ontdekken met RouteYou en FME
De mooiste recreatieve routes ontdekken met RouteYou en FME
 
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoamOpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
 
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERRORTROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
 
Quarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden ExtensionsQuarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden Extensions
 
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital TransformationWSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
 
How to Position Your Globus Data Portal for Success Ten Good Practices
How to Position Your Globus Data Portal for Success Ten Good PracticesHow to Position Your Globus Data Portal for Success Ten Good Practices
How to Position Your Globus Data Portal for Success Ten Good Practices
 
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.ILBeyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
 

Cyanogen Platform SDK

  • 1. Cyanogen Inc. Proprietary & Confidential Platform SDK by Adnan Begovic
  • 2. Cyanogen Inc. Proprietary & Confidential Background What is CyanogenMod? CyanogenMod (pronounced /saɪ.ˈæn.oʊ.ˌdʒɛn.mɒd/), usually abbreviated to CM, is an open-source operating system for smartphones and tablet computers, based on the Android mobile platform. It is developed as free and open source software based on the official releases of Android by Google, with added original and third-party code. It is based on a rolling release development model.
  • 3. Cyanogen Inc. Proprietary & Confidential Background CyanogenMod User Base: ● 50+ million users ● Users in 190+ different countries ● Localized to 50+ languages via automated crowdin system
  • 4. Cyanogen Inc. Proprietary & Confidential Background CyanogenMod Developer base: ● Numerous active core developers/maintainers ○ Maintain devices ○ Maintain documentation for features and device specs ○ Maintain and manage their own user bases ○ Maintain crowdin ○ File and resolve bugs reported by community users ● ~163 devices supported ● Receive a substantial amount of OSS contributions from outside sources.
  • 5. Cyanogen Inc. Proprietary & Confidential Developer Base
  • 6. Cyanogen Inc. Proprietary & Confidential Crowdsourcing Android Development
  • 7. Cyanogen Inc. Proprietary & Confidential An Example Community Contribution
  • 8. Cyanogen Inc. Proprietary & Confidential Topics ● OS development is intimidating ● Treehacks Hackathon learnings ● Cyanogen Platform ○ Infrastructure ○ Framework library ○ SDK ○ Resource Package ● Using the SDK (QST examples) ● Contributing API’s
  • 9. Cyanogen Inc. Proprietary & Confidential Contributing to an OS The Treehacks experience Treehacks: ● 500+ person hackathon with students from all over the country. ● Workshops to get a meaningful contribution to the OSS project CyanogenMod. ● Open to Stanford students, external students, and outside developers.
  • 10. Cyanogen Inc. Proprietary & Confidential Treehacks Experience Winning Project: CyanTranslate Using CyanogenMod, the winners modified the Android operating system and created several new built-in features for manipulating text. By highlighting text and hitting a button, the user can take advantage of these features. The new features include: Automatic translation between languages ● One-tap Google search ● UrbanDictionary definition lookup ● Book information lookup
  • 11. Cyanogen Inc. Proprietary & Confidential Treehacks Experience
  • 12. Cyanogen Inc. Proprietary & Confidential Treehacks Feedback Positives Negatives Open platform High ramp up time Good infrastructure ● Gerrit Code Review ● Github mirroring Massive code base ● ~1281 github repos ● 100+ android packages ● 25+ Gb repo size Build environment documentation ● https://wiki.cyanogenmod.org High barrier of entry in understanding Android’s core implementations
  • 13. Cyanogen Inc. Proprietary & Confidential Treehacks Experience - How to decrease the barrier to entry? - How to extend the CM experience for 3rd party developers?
  • 14. Cyanogen Inc. Proprietary & Confidential The Cyanogen Platform
  • 15. Cyanogen Inc. Proprietary & Confidential Cyanogen Platform The new, more approachable, infrastructure: ● CyanogenMod Platform Library ● CyanogenMod Resource Package ● CyanogenMod Platform SDK Application Cyanogen Platform SDK Platform API Core Resource Package Android OS
  • 16. Cyanogen Inc. Proprietary & Confidential Cyanogen Platform Library Framework library similar to Android’s Framework JAR. ● Contains System Binder Services that get spun up and managed by Android’s SystemServer. ● Contains the implementation, state management, and persisting of data for a specific API feature. ● Leveraging Android’s powerful IPC framework for interaction between an application and the system process. Further information: Understanding the Structure
  • 17. Cyanogen Inc. Proprietary & Confidential Cyanogen Resource Package Contains exported resources and CyanogenMod specific permissions to be leveraged by the Application and framework. ● ex: ○ cyanogenmod.permission.PUBLISH_CUSTOM_TILE ○ cyanogenmod_system_label
  • 18. Cyanogen Inc. Proprietary & Confidential Cyanogen Platform SDK A library that can be included in your application to interact with CM specific binder services to gain extra functionality. ● Provides objects, object builder’s, helper methods, and simple interfaces to push or receive data from the platform library.
  • 19. Cyanogen Inc. Proprietary & Confidential Using the SDK Custom Quick Tiles API Example: ● Allows your application to publish a Quick Tile to be hosted in the QS Panel. ○ Patterns similar to Notification and NotificationManager
  • 20. Cyanogen Inc. Proprietary & Confidential Exploration for an API Bike O’Clock ● Using Quick Settings Tiles to surface commonly used actions.
  • 21. Cyanogen Inc. Proprietary & Confidential Bike O’Clock
  • 22. Cyanogen Inc. Proprietary & Confidential Using the SDK Creating a CustomTile: CustomTile customTile = new CustomTile.Builder(mContext) .setLabel("custom label") .setContentDescription("custom description") .setOnClickIntent(pendingIntent) .setOnSettingsClickIntent(intent) .setOnClickUri(Uri.parse("custom uri")) .setIcon(R.drawable.ic_launcher) .build();
  • 23. Cyanogen Inc. Proprietary & Confidential Using the SDK
  • 24. Cyanogen Inc. Proprietary & Confidential Using the SDK Publishing: CMStatusBarManager.getInstance(this) .publishTile(CUSTOM_TILE_ID, mCustomTile); Removing: CMStatusBarManager.getInstance(this) .removeTile(CUSTOM_TILE_ID, mCustomTile); Requires: <uses-permission android:name="cyanogenmod.permission.PUBLISH_CUSTOM_TILE" />
  • 25. Cyanogen Inc. Proprietary & Confidential Contributing
  • 26. Cyanogen Inc. Proprietary & Confidential Making a change repo init -u git://github.com/CyanogenMod/android.git -b cm-12.1 repo sync repo start changes vendor/cmsdk https://www.github.com/CyanogenMod/cm_platform_sdk
  • 27. Cyanogen Inc. Proprietary & Confidential Contributing Application Cyanogen Platform SDK Platform API Core Community API Core gerrit (code review, unit tests) Interface Changes Unit Tests SDK Methods CTS SDK methods added to Platform SDK project API added along side core Interfaces added to nightly builds API Council (Change Control Board) API Check-API Android OS
  • 28. Cyanogen Inc. Proprietary & Confidential Contributing Documentation generation is automated! ● make org.cyanogenmod.platform.sdk-docs ● Published directly from gerrit merge to github pages Docs: http://cyanogenmod.github.io/cm_platform_sdk/reference/packages.html
  • 29. Cyanogen Inc. Proprietary & Confidential Contribute New APIs & Write More Functional Apps
  • 30. Cyanogen Inc. Proprietary & Confidential Questions? Join the G+ Community: http://bit.ly/1FC6lJI
  • 31. Cyanogen Inc. Proprietary & Confidential Appendix for QA
  • 32. Cyanogen Inc. Proprietary & Confidential Security vendor/cm/overlay <!-- Defines external services to be started by the SystemServer at boot. The service itself should publish as a binder services in its onStart --> <string-array name="config_externalCMServices"> <item>org.cyanogenmod.platform.internal.CMStatusBarManagerService</item> </string-array> vendor/cm/sepolicy/servicecontexts cmstatusbar u:object_r:system_server_service:s0
  • 33. Cyanogen Inc. Proprietary & Confidential Security Selinux service_contexts ● service_contexts is used for translating service names into selinux labels. ● MAC check to the svc_can_register function in service_manager. https://android.googlesource.com/platform/frameworks/native/+/69154df