Skip to content

Instantly share code, notes, and snippets.

@soupslurpr
soupslurpr / flash-current-out-no-wipe.sh
Created November 18, 2025 03:50
flash current build at out without wiping for development
# Copyright 2012 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,

Legend

✅ = working
❔ = unknown
🚫 = not working or has issues
... = skipped settings

OS (Settings app, top to bottom)

| Feature | Status | Note |

@soupslurpr
soupslurpr / query.txt
Last active April 19, 2025 04:10
SQL query to get data for coarse network location provider
SELECT
AVG(ST_Y(geom::geometry)) AS avg_latitude,
AVG(ST_X(geom::geometry)) AS avg_longitude,
STDDEV(ST_Y(geom::geometry)) AS lat_accuracy_radius,
STDDEV(ST_X(geom::geometry)) AS lon_accuracy_radius
FROM
cell
WHERE
mcc = number AND mnc = number AND tac_id = number;
@soupslurpr
soupslurpr / gnss-ttff-test-results.md
Last active April 18, 2025 07:45
GNSS TTFF (time to first fix) test results

TTFF reported by SatStat in seconds, each measurement is recorded at the same location and is after doing adb shell, su, rm -rf /data/vendor/gps, rebooting the device (akita), and then waiting 60 seconds (by opening the Clock app and running stopwatch) to make sure the device has settled and is connected to cell towers.

Make sure a SIM is enabled.

unless otherwise stated: PSDS is on, network location is off

| Setting | Trial 1 | Trial 2 | Trial 3 | Trial 4 | Trial 5 |

@soupslurpr
soupslurpr / grapheneos-minecraft-java.md
Last active March 17, 2025 08:32
GrapheneOS Terminal app setup for Minecraft

In the profile you're running Terminal in, create a directory named linux in your profile's home directory (to clarify, this means from the Files app not the Linux VM). In that directory create a file named virglrenderer to enable VirGL. Content of the file doesn't matter just make sure it's named exactly virglrenderer.

Now open the Terminal and edit these files appropriately. You can use sudo nano FILE_PATH.

Comment out the two last env variables.
/usr/local/bin/enable_display

#!/bin/bash
@soupslurpr
soupslurpr / updating development code when fetching new commits for GrapheneOS development.md
Last active May 22, 2025 03:45
updating development code when fetching new commits for GrapheneOS development

You can add your fork of needed repos as a separate remote. example.

When you repo sync, the GrapheneOS repos will be checked out again. repo sync tries to automatically rebase the current branch by default when syncing, which often doesn't work. To prevent that, you need to use the --detach option which will checkout the manifest commit without touching the current local branch. You can switch the branch in needed repos to your fork again after sync. You can then rebase if needed.

example of adding a fork of frameworks/base as a separate remote

@soupslurpr
soupslurpr / how to update GrapheneOS (or other AOSP-based OS') for development.md
Last active January 13, 2025 00:23
how to update GrapheneOS (or other AOSP-based OS') for development

on Windows/WSL2, make sure the .wslconfig file in the Windows user directory has networkingMode=mirrored.
Mine looks like this:

[wsl2]

swap = 70G
nestedVirtualization = true
guiApplications = true
memory = 56GB
networkingMode=mirrored