Opened 2 years ago

Closed 9 months ago

#24107 closed defect (implemented)

Write a design document for the control interface for enhanced battery awareness on Android devices

Reported by: ahf Owned by: ahf
Priority: Medium Milestone: Tor: unspecified
Component: Core Tor/Tor Version:
Severity: Normal Keywords: TorCoreTeam201711.1, 034-triage-20180328, 034-roadmap-subticket, 034-included-20180405, 034-deferred-20180602, 035-removed-20180711
Cc: ahf, hellais, darkk, brade, mcs, sbs, mtigas Actual Points:
Parent ID: #25499 Points:
Reviewer: Sponsor:

Description

We should begin writing a design document for the control interface for enhanced control of battery utilisation.

We should investigate how Tor and Orbot currently interacts with the platform and how this could be improved. Ideally in a manner that potentially could become useful for other mobile platforms such as iOS as well.

Android documents that might be worth reading for better knowledge of platform features when it comes to standby:

Child Tickets

Attachments (1)

xxx-hibernation-api.txt (7.2 KB) - added by nickm 2 years ago.

Download all attachments as: .zip

Change History (16)

comment:1 Changed 2 years ago by ahf

Owner: set to nickm
Status: newassigned

Assigning to Nick.

comment:2 Changed 2 years ago by nickm

Keywords: TorCoreTeam201711.1 added

comment:3 Changed 2 years ago by nickm

Attaching a draft for initial comment. I'll send it to tor-dev next week.

Changed 2 years ago by nickm

Attachment: xxx-hibernation-api.txt added

comment:4 Changed 2 years ago by nickm

Cc: ahf hellais darkk brade mcs sbs mike@… added

comment:5 Changed 2 years ago by arma

Cc: mtigas added; mike@… removed

comment:6 Changed 2 years ago by mtigas

This looks great to me. Don't know the specifics of Android, but what you've got would be super useful for the limited callbacks we get on iOS: https://developer.apple.com/library/content/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/TheAppLifeCycle/TheAppLifeCycle.html#//apple_ref/doc/uid/TP40007072-CH2-SW3

The app's applicationWillResignActive: or applicationDidEnterBackground : are where I'd likely call SIGNAL SLEEP, and likewise with applicationDidBecomeActive: and SIGNAL WAKEUP. (Right now I think I only call SIGNAL HUP at applicationDidBecomeActive: time, which doesn't always gracefully recover from the iOS background state. So think this will be very useful.)

But yeah, LGTM (from the iOS point of view).

comment:7 Changed 23 months ago by nickm

I've added the proposal above as proposal 286.

comment:8 Changed 19 months ago by nickm

Keywords: 034-triage-20180328 added

comment:9 Changed 19 months ago by nickm

Keywords: 034-removed-20180328 added

Per our triage process, these tickets are pending removal from 0.3.4.

comment:10 Changed 19 months ago by nickm

Keywords: 034-roadmap-subticket 034-included-20180405 added; 034-removed-20180328 removed
Parent ID: #25499

comment:11 Changed 17 months ago by nickm

Owner: changed from nickm to ahf

comment:12 Changed 17 months ago by nickm

Keywords: 034-deferred-20180602 added
Milestone: Tor: 0.3.4.x-finalTor: 0.3.5.x-final

Deferring non-must tickets to 0.3.5

comment:13 Changed 15 months ago by nickm

Keywords: 035-removed-20180711 added
Milestone: Tor: 0.3.5.x-finalTor: unspecified

These tickets are being triaged out of 0.3.5. The ones marked "035-roadmap-proposed" may return.

comment:14 Changed 9 months ago by gaba

Keywords: s8-battery s8-control s8-201711 removed
Sponsor: Sponsor8

comment:15 Changed 9 months ago by nickm

Resolution: implemented
Status: assignedclosed

Subsumed in Dormant* options.

Note: See TracTickets for help on using tickets.