Skip to content

opt-in to MTE async mode #168

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -514,10 +514,16 @@ tasks.register("generateReleaseNotesForPublishing") {
tasks.register("prepareGuestHoleServers") {
doLast {
def guestHoleUrl = System.getenv("GUEST_HOLE_URL")
if (guestHoleUrl == null)
throw new GradleException("GUEST_HOLE_URL needs to be set for prepareGuestHoleServers")

def allServers = new JsonSlurper().parse(new URL(guestHoleUrl))["LogicalServers"]
def guestHoleHeaders = System.getenv("GUEST_HOLE_HEADERS")
if (guestHoleUrl == null || guestHoleHeaders == null)
throw new GradleException("GUEST_HOLE_URL and GUEST_HOLE_HEADERS need to be set for prepareGuestHoleServers")

def connection = new URL(guestHoleUrl).openConnection()
for (header in new JsonSlurper().parseText(guestHoleHeaders))
connection.setRequestProperty(header.key, header.value)
if (connection.getResponseCode() != 200)
throw new GradleException("Failed to fetch guest hole servers: ${connection.getResponseCode()} ${connection.getResponseMessage()}")
def allServers = new JsonSlurper().parse(connection.getInputStream())["LogicalServers"]
def candidateServers = allServers.stream().filter { s ->
def country = s["ExitCountry"]
def secureCore = (s["Features"] & 1) == 1
Expand Down
1 change: 1 addition & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
<application
android:name=".ProtonApplicationHilt"
android:allowBackup="false"
android:memtagMode="async"
android:banner="@drawable/tv_banner"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
Expand Down
Loading