Skip to content

Instantly share code, notes, and snippets.

View danielfullmer's full-sized avatar

Daniel Fullmer danielfullmer

  • Anduril
  • Costa Mesa
View GitHub Profile
{ pkgs, ... }:
{
flavor = "twrp";
device = "marlin";
# At least marlin needs this... https://github.com/minimal-manifest-twrp/platform_manifest_twrp_omni/issues/33
envVars.ALLOW_MISSING_DEPENDENCIES = "true";
# https://forum.xda-developers.com/t/how-to-building-twrp-from-source-with-goodies.4029449/
{
source.dirs."prebuilts/clang/host/linux-x86".postPatch = let
proton-clang = pkgs.fetchFromGitHub {
<complete this>
};
in ''
cp -r ${proton-clang} proton-clang
'';
}
{ config, pkgs, ... }:
{
device = "pyxis";
flavor = "lineageos";
source.dirs."device/xiaomi/pyxis".src = pkgs.fetchgit {
deepClone = false;
fetchSubmodules = false;
leaveDotGit = false;
rev = "12317390e31d3a3388e2a2f4d77d5d58bd359289";
{ config, pkgs, ... }:
{
device = "pyxis";
flavor = "lineageos";
source.dirs."device/xiaomi/pyxis".src = pkgs.fetchgit {
deepClone = false;
fetchSubmodules = false;
leaveDotGit = false;
rev = "12317390e31d3a3388e2a2f4d77d5d58bd359289";
diff -ur /nix/store/gczlmh82jz0cdydjpj5fykdr3gvgms7y-kernel_google_sunfish-f9428b4/.gitmodules /nix/store/2dq6fkq4820l3vxm71naj92w3askv1bg-kernel_google_sunfish-0490c71/.gitmodules
--- /nix/store/gczlmh82jz0cdydjpj5fykdr3gvgms7y-kernel_google_sunfish-f9428b4/.gitmodules 1969-12-31 16:00:01.000000000 -0800
+++ /nix/store/2dq6fkq4820l3vxm71naj92w3askv1bg-kernel_google_sunfish-0490c71/.gitmodules 1969-12-31 16:00:01.000000000 -0800
@@ -12,4 +12,4 @@
url = https://github.com/GrapheneOS/kernel_google_sunfish_techpack_audio
[submodule "drivers/input/touchscreen/fts_touch"]
path = drivers/input/touchscreen/fts_touch
- url = https://android.googlesource.com/kernel/msm-modules/fts_touch
+ url = https://android.googlesource.com/kernel/msm-modules/fts_touch_s5
diff -ur /nix/store/zhb5wk1mw6gg2b8ych4468rp7z4hib29-device_google_sunfish-d6eb9cf/overlay/frameworks/base/core/res/res/values/config.xml /nix/store/zcgay4a1f6snwdbspw74id5g571ghggs-device_google_sunfish-b58f629/overlay/frameworks/base/core/res/res/values/config.xml
--- /nix/store/zhb5wk1mw6gg2b8ych4468rp7z4hib29-device_google_sunfish-d6eb9cf/overlay/frameworks/base/core/res/res/values/config.xml 1969-12-31 16:00:01.000000000 -0800
+++ /nix/store/zcgay4a1f6snwdbspw74id5g571ghggs-device_google_sunfish-b58f629/overlay/frameworks/base/core/res/res/values/config.xml 1969-12-31 16:00:01.000000000 -0800
@@ -307,8 +307,8 @@
<item>"/apex/com.android.art/javalib/core-oj.jar"</item>
<item>"/apex/com.android.art/javalib/core-libart.jar"</item>
<item>"/apex/com.android.media/javalib/updatable-media.jar"</item>
- <item>"/product/priv-app/SystemUI/SystemUI.apk"</item>
- <item>"/product/priv-app/SystemUI/oat/arm64/SystemUI.odex"</item>
+ <item>"/system_ext/priv-app/SystemUI/Sy
--- /nix/store/hva068vdcdrvbn4rhbygp0bvmyb6hn10-vendor-diff/system_ext.upstream 2021-01-04 06:48:02.275432198 +0000
+++ /nix/store/hva068vdcdrvbn4rhbygp0bvmyb6hn10-vendor-diff/system_ext.built 2021-01-04 06:48:02.278432340 +0000
@@ -1,41 +1,11 @@
app
-app/DeviceStatisticsService
-app/DeviceStatisticsService/DeviceStatisticsService.apk
-app/DeviceStatisticsService/oat
-app/DeviceStatisticsService/oat/arm64
-app/DeviceStatisticsService/oat/arm64/DeviceStatisticsService.odex
#!/usr/bin/env bash
set -euo pipefail
BUILT=$1
UPSTREAM=$2
cd "$BUILT"
check_partition() {
local partition=$1
--- /nix/store/iv6vzkarjpgq6q5r8p8bv3l5caydld1p-vendor-diff/system.upstream 2020-12-18 00:01:28.646412057 +0000
+++ /nix/store/iv6vzkarjpgq6q5r8p8bv3l5caydld1p-vendor-diff/system.built 2020-12-18 00:01:28.653412386 +0000
@@ -45,28 +45,27 @@
sys
system
system/apex
+system/apex/com.android.adbd.apex
system/apex/com.android.apex.cts.shim.apex
system/apex/com.android.art.release.apex
+system/apex/com.android.cellbroadcast.apex
--- /nix/store/xnlb821ji0g29jlv12jcd08qcplf0lsx-vendor-diff/system.upstream 2020-12-17 19:10:59.319881929 +0000
+++ /nix/store/xnlb821ji0g29jlv12jcd08qcplf0lsx-vendor-diff/system.built 2020-12-17 19:10:59.329882388 +0000
@@ -45,28 +45,27 @@
sys
system
system/apex
+system/apex/com.android.adbd.apex
system/apex/com.android.apex.cts.shim.apex
system/apex/com.android.art.release.apex
+system/apex/com.android.cellbroadcast.apex