New features in android m upload
-
Upload
bin-yang -
Category
Engineering
-
view
114 -
download
3
Transcript of New features in android m upload
1
New Features in Android M
2
Agenda
• Framework Modification• New Feature List
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
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
5
New Feature List
• Runtime Permission• Doze Mode• Standby Mode• Carrier Configuration• RRO• Adoptable Storage• Security• Tool
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
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
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.
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
10
RRO - Dynamic resource overlay
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.
12
Security
• Fingerprint• GateKeep• KeyMaster
13
Tools
Javac - > jack + Jill
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