New features in android m upload

14
1 New Features in Android M

Transcript of New features in android m upload

Page 1: New features in android m   upload

1

New Features in Android M

Page 2: New features in android m   upload

2

Agenda

• Framework Modification• New Feature List

Page 3: New features in android m   upload

3

Framework Modification

Removed Services Added Services Existing Service without modification

Existing Service with small modification

Existing Service with big modification

0

5

10

15

20

25

30

35

40

2

9

31

21

36

Count of Services

Count

Modification of services from L to M

Page 4: New features in android m   upload

4

Framework Modification(Cont.)

7 4

10

6

1

7

32

count of services

csw display media securitystorage telephony framework-core

Split modified services according to domain

Page 5: New features in android m   upload

5

New Feature List

• Runtime Permission• Doze Mode• Standby Mode• Carrier Configuration• RRO• Adoptable Storage• Security• Tool

Page 6: New features in android m   upload

6

Runtime Permission

• Support in M• Dangerous permissions can be granted/revoked in runtime.• Other permission will be granted in installation automatically.• Only has to grant permission once per app for each permission group.• No difference for permission enforce

Page 7: New features in android m   upload

7

Doze Mode

• “forced idle” when a device is unused for long periods.• Extend battery life by deferring application background CPUand network activity.• Wakes for maintenance and allows apps to complete pending activities periodically.

Acti ve

Inacti ve

Idl e_pendi ng

Idl e_maintenance Idl e

Turn off screen and unpl ug charge

Ti meout

Ti meout

Regul ar out ofi dl e mode Execute the

pendi ng events

Fi ni sh the pendi ng events

Charge or turn on screen

Charge or turn on screen

Sensi ng

Devi ce i s movi ng

Page 8: New features in android m   upload

8

App Standby

• Allows the system to determine that an app is idle when the user is not actively. 

• When Android deems an app idle, the app loses network access and its sync/jobs are deferred until one of the following occurs.

Page 9: New features in android m   upload

9

Carrier Configuration

Solution to support different requirement of carriers quickly.

Carri erConfi gManager CarrierConfigLoader(system

service)

AOSP APK/Framework

CarrierConfigService(Prebuilt)

CarrierConfigService(Installed by Operator)

mConfi gFromDefaul tAppmConfi gFromCarri erApp

Bi nd to servi ce and l oad defaul t confi gurati on

Query the APK who i mpements

getCarri erPri vi l egeStatus and has same

certi fi cati on

Use confi gurati on i n bundl e to i sol ate

feature and ui

Com.android.phone

com.android.carrierconfi g

Bi nd to servi ce and l oad defaul t confi gurati on

apk

Page 10: New features in android m   upload

10

RRO - Dynamic resource overlay

Page 11: New features in android m   upload

11

Adoptable Storage• Adopting an external storage device encrypts and formats the device tobehave like internal storage.

• Allows users to move both apps and private data ofapps between storage devices.

Page 12: New features in android m   upload

12

Security

• Fingerprint• GateKeep• KeyMaster

Page 13: New features in android m   upload

13

Tools

Javac - > jack + Jill

Page 14: New features in android m   upload

14

Tool (Cont.)

Gcc- > Clang

clang Nexus 9 clang Nexus 9

real 112m50.341s 99m30.494s

user 700m20.836s 629m55.376s

sys 82m5.260s 67m46.403s

Benchmarking Nexus devices running AOSP master built with gcc 4.9 vs. clang 3.6