Skip to content

Instantly share code, notes, and snippets.

View danielfullmer's full-sized avatar

Daniel Fullmer danielfullmer

  • Anduril
  • Costa Mesa
View GitHub Profile
54a55,58
> system/apex/com.android.conscrypt.apex
> system/apex/com.android.media.apex
> system/apex/com.android.media.swcodec.apex
> system/apex/com.android.resolv.apex
56,60c60
< system/apex/com.google.android.conscrypt.apex
< system/apex/com.google.android.media.apex
< system/apex/com.google.android.media.swcodec.apex
< system/apex/com.google.android.resolv.apex
let
robotnix = import (builtins.fetchGit {
url = "https://github.com/danielfullmer/robotnix.git";
rev = "5c0fd0c580b0d303367d2fb6bb0b2fbd78a246c8";
});
in
robotnix { configuration = ./pinephone.nix; }
# Lines starting with "<" are files only in my built vendor image
# Lines starting with ">" are files only in google's vendor image
< vendor/apex
< vendor/apex/com.android.vndk.current.on_vendor.apex
< vendor/bin/hw/[email protected]
< vendor/etc/file_signatures.txt
< vendor/etc/init/[email protected]
< vendor/etc/vintf/manifest/[email protected]
> vendor/etc/vintf/manifest/manifest_wifi_ext.xml
--- /nix/store/n08jvrzynbhvg5yab92d78cvqfs33am0-vendor-diff/upstream-system 2020-09-14 02:31:15.240741909 +0000
+++ /nix/store/n08jvrzynbhvg5yab92d78cvqfs33am0-vendor-diff/built-system 2020-09-14 02:31:15.253742508 +0000
@@ -46,28 +46,26 @@
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
From a96be5768120819c2972d03e2ff9f154dcbb7eb3 Mon Sep 17 00:00:00 2001
From: Daniel Fullmer <[email protected]>
Date: Mon, 28 Sep 2020 21:07:39 -0700
Subject: [PATCH] Allow selective signature spoofing for microG
* Permission FAKE_PACKAGE_SIGNATURE required
* Only microG and FakeStore can spoof signature
* Only the official Google signature can be spoofed, the
"fake-signature" field is unused.
--- /nix/store/isq6pxa5vl37n03rk1d4gsy27bhfi75f-vendor-diff/upstream-product 2020-12-17 10:03:11.583572999 +0000
+++ /nix/store/isq6pxa5vl37n03rk1d4gsy27bhfi75f-vendor-diff/built-product 2020-12-17 10:03:11.586573162 +0000
@@ -1,408 +1,112 @@
app
-app/CalculatorGooglePrebuilt
-app/CalculatorGooglePrebuilt/CalculatorGooglePrebuilt.apk
-app/CalculatorGooglePrebuilt/CalculatorGooglePrebuilt.apk.prof
-app/CalculatorGooglePrebuilt/oat
-app/CalculatorGooglePrebuilt/oat/arm64
--- /nix/store/xnlb821ji0g29jlv12jcd08qcplf0lsx-vendor-diff/product.upstream 2020-12-17 19:10:59.342882984 +0000
+++ /nix/store/xnlb821ji0g29jlv12jcd08qcplf0lsx-vendor-diff/product.built 2020-12-17 19:10:59.348883258 +0000
@@ -1,408 +1,112 @@
app
-app/CalculatorGooglePrebuilt
-app/CalculatorGooglePrebuilt/CalculatorGooglePrebuilt.apk
-app/CalculatorGooglePrebuilt/CalculatorGooglePrebuilt.apk.prof
-app/CalculatorGooglePrebuilt/oat
-app/CalculatorGooglePrebuilt/oat/arm64
--- /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
--- /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
#!/usr/bin/env bash
set -euo pipefail
BUILT=$1
UPSTREAM=$2
cd "$BUILT"
check_partition() {
local partition=$1