Android power management, current and future trends

32
Android Power Management: Current and Future Trends Soumya Kanti Datta Research Engineer EURECOM France

Transcript of Android power management, current and future trends

Page 1: Android power management, current and future trends

Android Power Management: Current and Future Trends

Soumya Kanti DattaResearch Engineer

EURECOMFrance

Page 2: Android power management, current and future trends

Projet : « Smart 4G Tablet»

LPCIM : Laboratoire de Physique des

Interfaces et des Couches Minces

Page 3: Android power management, current and future trends

Contents

• Introduction

• Android power management architecture

• Present research on power consumption & management

• Survey on power saving Android apps

• Future directions

• Privacy & security concerns

• Conclusion

18/06/2012 ETSIoT 2012, Seoul 3

Page 4: Android power management, current and future trends

Introduction

• Smart device features that consume power

– CPU, Wi-Fi, GPS, colorful bright display, 3G, auto

sync, Bluetooth etc.

– third party advertisements shown in free Android

apps

• Many power saving apps written

– control Wi-Fi, 2G and 3G connections, brightness

level, CPU frequency, GPS etc.

18/06/2012 ETSIoT 2012, Seoul 4

Page 5: Android power management, current and future trends

Contents

• Introduction

• Android power management architecture

• Present research on power consumption & management

• Survey on power saving Android apps

• Future directions

• Privacy & security concerns

• Conclusion

18/06/2012 ETSIoT 2012, Seoul 5

Page 6: Android power management, current and future trends

Android Power Management

• Power driver addition to Linux kernel.

• Wake Locks – It prevents the system from entering suspend or other

low-power states.

– Android apps are required to request CPU resources with wake locks.

18/06/2012 ETSIoT 2012, Seoul 6

Page 7: Android power management, current and future trends

Android PM Architecture

18/06/2012 ETSIoT 2012, Seoul 7

Page 8: Android power management, current and future trends

Contents

• Introduction

• Android power management architecture

• Present research on power consumption &

management

• Survey on power saving Android apps

• Future directions

• Privacy & security concerns

• Conclusion

18/06/2012 ETSIoT 2012, Seoul 8

Page 9: Android power management, current and future trends

Power consumption of connectivity

features

• Reducing power dissipation in Wi-Fi, 3G/4G,

GPS

• Location Based Apps (LBA)

– Social networking, weather, traffic, ad etc.

– Adaptive location sensing framework

18/06/2012 ETSIoT 2012, Seoul 9

Page 10: Android power management, current and future trends

Context Aware PM

• Employs several monitoring system to extract

contexts (CABMAN)

– Location

– Battery

– Process

– Call

• Can predict the next charging opportunity

18/06/2012 ETSIoT 2012, Seoul 10

Page 11: Android power management, current and future trends

Power Model Generation

• PowerBooter technique & PowerTutor app is

introduced in [].

• Monitoring & recording battery consumption.

• Each hardware element has several states and

power consumption depends on the states.

• Power consumption is correlated with the

hardware elements of the smartphones.

18/06/2012 ETSIoT 2012, Seoul 11

Page 12: Android power management, current and future trends

Other Approaches on PM

• Analysis using smartphone usage pattern

– An Android app ‘battery logger’ is used to collect

usage pattern and send it to a server.

• Internal energy consumption of apps

• Human Battery Interaction

18/06/2012 ETSIoT 2012, Seoul 12

Page 13: Android power management, current and future trends

Contents

• Introduction

• Android power management architecture

• Present research on power consumption & management

• Survey on power saving Android apps

• Future directions

• Privacy & security concerns

• Conclusion

18/06/2012 ETSIoT 2012, Seoul 13

Page 14: Android power management, current and future trends

Approach for power saving

Primary Approach Secondary Approach App Example

CPU frequency

scaling

Toggling other

features

Setcpu, cputuner

Control

smartphone

features

CPU frequency

optimization

Juice defencder,

extended control

and more

18/06/2012 ETSIoT 2012, Seoul 14

Page 15: Android power management, current and future trends

Increasing power efficiency

• Toggle control on Wi-Fi, Bluetooth, GPS, auto sync, airplane mode, auto screen lock, USB mass storage, screen-always-on, torch, 2G, 3G, 4G/Wimax (if present) and mobile data (APN).

• Change brightness level of display.

• Volume and vibration control.

• Alter screen timeout value.

• Scheduling – night, weekend, peak.

• Setting Wi-Fi timeout.

• Setting dark home screen wallpaper for OLED display.

18/06/2012 ETSIoT 2012, Seoul 15

Page 16: Android power management, current and future trends

Root Access

Select CPU GovernorAdvanced

Options

Condition Monitor

Appropriate

ProfileSystem Info

Battery Monitor

Priorit

y

Smartphone features

are controlled

Required for CPU

freq. scaling

OndemandConservativeinteractive

Advanced Monitoring

Single condition

Several conditions

Primary focus is CPU

freq. scaling

Example: setcpu

Overall Architecture for CPU frequency

scaling approaches

18/06/2012 ETSIoT 2012, Seoul 16

Page 17: Android power management, current and future trends

Condition

Monitor

Appropriate

ProfileSystem Info

Battery Monitor

Smartphone features

are controlled

Context Monitor

Decision

LocationTime

Battery LevelPhone Idle

Triggers

1. Predefined2. Customized by user

Toggle connectivityKeep on some apps

CPU freq. scaling is

secondary focusExample:

Juicedefender

Not used for any learning

Overall Architecture for Control

Smartphone Features Approaches

18/06/2012 ETSIoT 2012, Seoul 17

Page 18: Android power management, current and future trends

Limitations of studied apps

• Static profiling (one customizable profile)– Not customized for specific user

• “Controlling” – not intelligent

• Requirement for root access– For CPU freq. scaling

• No focus on power consumption pattern (except power tutor)

• Context information is not used for any learning purpose

• Do not focus on learning the power consumption pattern of users.

• In-app advertising: waste of energy

18/06/2012 ETSIoT 2012, Seoul 18

Page 19: Android power management, current and future trends

Contents

• Introduction

• Android power management architecture

• Present research on power consumption & management

• Survey on power saving Android apps

• Future directions

• Privacy & security concerns

• Conclusion

18/06/2012 ETSIoT 2012, Seoul 19

Page 20: Android power management, current and future trends

Apps for Power Management

• Monitoring subsystem– Extracts several

information likelocation, date & time,battery dischargebehavior, apps running[usage pattern]

• Controlling subsystem– Control

smartphone/tabletfeatures based onusage pattern

18/06/2012 ETSIoT 2012, Seoul 20

• Two types of

architectures

• Client server

• Learning engine

Page 21: Android power management, current and future trends

Overall System Architecture

18/06/2012 ETSIoT 2012, Seoul 21

Learning engine Client server

Monitoring subsystem

Control subsystem

Page 22: Android power management, current and future trends

Advantages of Client Server

Architecture

• Generation of smartphone usage pattern

• The context in which most power is spent

• Clustering similar usage pattern at the server

– Derive power saving profiles based on clusters

• Evolution of clusters

• Network usage pattern

– Useful for service providers

• But threat to privacy

18/06/2012 ETSIoT 2012, Seoul 22

Page 23: Android power management, current and future trends

Advantages of Learning Engine

• Intelligent learning engine

• Usage pattern and power saving profile are

generated locally

• No threat on private data

• But network usage pattern could not be

known

18/06/2012 ETSIoT 2012, Seoul 23

Page 24: Android power management, current and future trends

Other Avenues

• Adding a photovoltaic cell to generate

additional power

– WYSIPS has introduced this

• Adaptive display

– Shorten the display screen when battery level falls

below a predefined threshold

18/06/2012 ETSIoT 2012, Seoul 24

Page 25: Android power management, current and future trends

Contents

• Introduction

• Android power management architecture

• Present research on power consumption & management

• Survey on power saving Android apps

• Future directions

• Privacy & security concerns

• Conclusion

18/06/2012 ETSIoT 2012, Seoul 25

Page 26: Android power management, current and future trends

Privacy Concerns

• Today’s smart devices contain user sensitive

information.

• Usage pattern is mutually exclusive.

• Collecting usage logs to interpret usage pattern

raises the issue of privacy.

• Generation of usage pattern must be privacy

aware

18/06/2012 ETSIoT 2012, Seoul 26

Page 27: Android power management, current and future trends

Privacy Concerns

• Raw usage data � User behavior

• App stores info in a log file � another app could access it and send to other remote server

• Location information � 3rd party ad and Location privacy is compromised

• Some app with similar approach could also collect

– MAC address of Android device

– IP address

– Account credentials

– Phone number

18/06/2012 ETSIoT 2012, Seoul 27

Page 28: Android power management, current and future trends

Solutions

• Store monitoring info in a secure database instead of writing

into a file.

• Encrypt the collected information.

• The app randomly decides when to send the database dump

to the remote server.

• Database dump is sent over a secure connection.

• The user should be given some control over how much usage

information is to be sent to the remote server.

• The remote server must employ some privacy preserving data

mining algorithm to generate the usage patterns.

• Such patterns should never be revealed to any third party.

18/06/2012 ETSIoT 2012, Seoul 28

Page 29: Android power management, current and future trends

Repackaging Attack

18/06/2012 ETSIoT 2012, Seoul 29

Page 30: Android power management, current and future trends

Contents

• Introduction

• Android power management architecture

• Present research on power consumption & management

• Survey on power saving Android apps

• Future directions

• Privacy & security concerns

• Conclusion

18/06/2012 ETSIoT 2012, Seoul 30

Page 31: Android power management, current and future trends

Conclusions

• Highlighting the need of efficient power

management for Android devices

• Different research directions are discussed.

• Survey on power saving apps

• Future direction on power management

• Privacy threats & repackaging attack

18/06/2012 ETSIoT 2012, Seoul 31

Page 32: Android power management, current and future trends

Thank you

18/06/2012 ETSIoT 2012, Seoul 32