Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • briar briar
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 785
    • Issues 785
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 10
    • Merge requests 10
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • briarbriar
  • briarbriar
  • Merge requests
  • !1451

Show instructions for locking Briar to the Xiaomi recent apps list

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged akwizgran requested to merge 2009-xiaomi-setup-screen into master May 05, 2021
  • Overview 24
  • Commits 3
  • Pipelines 4
  • Changes 10

This branch adds a button to the setup screen showing instructions for locking Briar to the recent apps list on Xiaomi/Redmi phones.

The ability to lock apps to the recent apps list has existed since MIUI 6 (released in 2014) and perhaps earlier. Since MIUI 10, locking is done by long-pressing on the app rather that swiping down, so the instructions depend on the MIUI version, which is independent from the Android version and has to be looked up using a system property.

I've only tested this branch on one phone, the Redmi Note 7 (MIUI 12). It's possible that the system property holding the MIUI version is missing or has a different format on other devices. If we can't parse the system property we default to showing the instructions for MIUI < 10.

It's possible that some users are running MIUI < 6 on Android 4. I haven't been able to find out whether the lock feature exists on MIUI < 6. Checking the system property for a version < 6 doesn't seem very useful, as we don't know if the system property exists on those versions. So users running those versions may see instructions that don't apply to their device, but they can still continue with setup.

Closes #2009 (closed)

device-2021-05-05-130002 device-2021-05-05-130017

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: 2009-xiaomi-setup-screen