androidxref - · pdf fileandroidxref: speeding up the development of android internals....

16
AndroidXRef: Speeding up the development of Android Internals. Android Builders Summit 2012 Feb 13-14 Rodrigo Chiossi - Samsung SIDI Brazil

Upload: doxuyen

Post on 06-Feb-2018

233 views

Category:

Documents


3 download

TRANSCRIPT

Page 1: AndroidXRef -   · PDF fileAndroidXRef: Speeding up the development of Android Internals. Android Builders Summit 2012 –Feb 13-14 Rodrigo Chiossi - Samsung SIDI Brazil

AndroidXRef:Speeding up the development of Android Internals.

Android Builders Summit 2012 – Feb 13-14Rodrigo Chiossi - Samsung SIDI Brazil

Page 2: AndroidXRef -   · PDF fileAndroidXRef: Speeding up the development of Android Internals. Android Builders Summit 2012 –Feb 13-14 Rodrigo Chiossi - Samsung SIDI Brazil

Feb 2012 | androidxref.com

A Little Background...

Page 3: AndroidXRef -   · PDF fileAndroidXRef: Speeding up the development of Android Internals. Android Builders Summit 2012 –Feb 13-14 Rodrigo Chiossi - Samsung SIDI Brazil

Feb 2012 | androidxref.com

What makes Android Great?

• API Documentation.

• Source Code Examples.

• Powerful IDE.

• Pre-built test environment.

It’s all about Availability.

Page 4: AndroidXRef -   · PDF fileAndroidXRef: Speeding up the development of Android Internals. Android Builders Summit 2012 –Feb 13-14 Rodrigo Chiossi - Samsung SIDI Brazil

Feb 2012 | androidxref.com

What makes Android Internals not so Great?

• No API Documentation.

• Fewer Programmers.

• Mostly restricted to manufactures.

– Proprietary Code.

It’s all about Availability.

Page 5: AndroidXRef -   · PDF fileAndroidXRef: Speeding up the development of Android Internals. Android Builders Summit 2012 –Feb 13-14 Rodrigo Chiossi - Samsung SIDI Brazil

Feb 2012 | androidxref.com

Can we make it as easy as App development?

Can we make easier?

NO!

YES!

Page 6: AndroidXRef -   · PDF fileAndroidXRef: Speeding up the development of Android Internals. Android Builders Summit 2012 –Feb 13-14 Rodrigo Chiossi - Samsung SIDI Brazil

Feb 2012 | androidxref.com

The way around the code

• Grep.

• CScope.

• Eclipse.

– Samsung Enterprise SDK.

Page 7: AndroidXRef -   · PDF fileAndroidXRef: Speeding up the development of Android Internals. Android Builders Summit 2012 –Feb 13-14 Rodrigo Chiossi - Samsung SIDI Brazil

Feb 2012 | androidxref.com

A Simple Idea

• Linux Cross Reference: lxr.linux.no

• Online Cross Reference for the Linux Kernel.

• A stand alone system for online source indexing.

• Quick search and no setup time.

High Availability.

Page 8: AndroidXRef -   · PDF fileAndroidXRef: Speeding up the development of Android Internals. Android Builders Summit 2012 –Feb 13-14 Rodrigo Chiossi - Samsung SIDI Brazil

Feb 2012 | androidxref.com

The birth of AndroidXRef

• Android Cross Reference: androidxref.com

• Includes the Android branch of the Linux Kernel.

• Currently has the source code of Android Ice Cream Sandwich.

• Plans to have all major versions of android available.

Page 9: AndroidXRef -   · PDF fileAndroidXRef: Speeding up the development of Android Internals. Android Builders Summit 2012 –Feb 13-14 Rodrigo Chiossi - Samsung SIDI Brazil

Feb 2012 | androidxref.com

Powered by {OpenGrok

• Created by the Open Solaris team.

• Able to handle huge and heterogeneous projects.

• Instant search for symbols and definitions.

• Very rich parser able to identify almost all file types.

• Version control system aware.

• Ease of customization.

Page 10: AndroidXRef -   · PDF fileAndroidXRef: Speeding up the development of Android Internals. Android Builders Summit 2012 –Feb 13-14 Rodrigo Chiossi - Samsung SIDI Brazil

Feb 2012 | androidxref.com

AndroidXref Environment

• OS:– CentOS 5, 32 bits: Unstable

– CentOS 6, 64 bits: Unstable

– Ubuntu 11.04 64 bits: Stable

– Ubuntu 11.10 64 bits: Stable

• Hardware– OpenVZ, 512MB RAM – Very Unstable

– XEN VM, 1024MB RAM - Stable

– Core i7, 4GB RAM - Stable

Page 11: AndroidXRef -   · PDF fileAndroidXRef: Speeding up the development of Android Internals. Android Builders Summit 2012 –Feb 13-14 Rodrigo Chiossi - Samsung SIDI Brazil

Feb 2012 | androidxref.com

But what else?

• Android development environment should be aware of proprietary code.

• Local installs allows for restricting the proprietary code to the inner network.

• Currently 2 options are available:

– Pre configured Virtual Machine.

– Step-By-Step guide for local setup.

• Modified source code available.

Page 12: AndroidXRef -   · PDF fileAndroidXRef: Speeding up the development of Android Internals. Android Builders Summit 2012 –Feb 13-14 Rodrigo Chiossi - Samsung SIDI Brazil

Feb 2012 | androidxref.com

The SIDI Environment

• SIDI: Samsung Research Lab in Brazil.

• Focus in research for Mobile platforms.

• Develops customization and applications for Latin America Market.

• Develops enterprise solutions for the global Market.

SIDI

Page 13: AndroidXRef -   · PDF fileAndroidXRef: Speeding up the development of Android Internals. Android Builders Summit 2012 –Feb 13-14 Rodrigo Chiossi - Samsung SIDI Brazil

Feb 2012 | androidxref.com

The SIDI Environment

• Global Solutions team:

– Mainly focused in android products.

– Manage multiple android version simultaneously.

– Custom kernel and bionic versions.

• Local setup of AndroidXRef with the custom code.

• Fast Adoption.

• Low cost setup.

SIDI

Page 14: AndroidXRef -   · PDF fileAndroidXRef: Speeding up the development of Android Internals. Android Builders Summit 2012 –Feb 13-14 Rodrigo Chiossi - Samsung SIDI Brazil

Feb 2012 | androidxref.com

Timing Results

0

5

10

15

20

25

30

dlmalloc wpa_supplicant Activity@onCreate permissions

Grep

Index

SIDI

Page 15: AndroidXRef -   · PDF fileAndroidXRef: Speeding up the development of Android Internals. Android Builders Summit 2012 –Feb 13-14 Rodrigo Chiossi - Samsung SIDI Brazil

Feb 2012 | androidxref.com

Next Steps

• Gather Contributors.

• Multiple Android versions.

• Multiple kernel versions.

• Updated VMs.

• Improve the Online Infra-Structure.

• Gather new Sponsors.

Page 16: AndroidXRef -   · PDF fileAndroidXRef: Speeding up the development of Android Internals. Android Builders Summit 2012 –Feb 13-14 Rodrigo Chiossi - Samsung SIDI Brazil

Feb 2012 | androidxref.com

Questions?

Rodrigo Chiossi

Samsung SIDI Brazil

[email protected]

@rchiossi