Skip to content

Instantly share code, notes, and snippets.

View danielfullmer's full-sized avatar

Daniel Fullmer danielfullmer

  • Anduril
  • Costa Mesa
View GitHub Profile
--- /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/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
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/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
# 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
let
robotnix = import (builtins.fetchGit {
url = "https://github.com/danielfullmer/robotnix.git";
rev = "5c0fd0c580b0d303367d2fb6bb0b2fbd78a246c8";
});
in
robotnix { configuration = ./pinephone.nix; }
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
156a157
> bin/hw/[email protected]
584a586
> etc/file_signatures.txt
631a634
> etc/init/[email protected]
1335a1339
> lib/libnetfilter_conntrack.so
1339a1344
> lib/libnfnetlink.so
============================= test session starts ==============================
platform linux -- Python 3.7.7, pytest-5.3.5, py-1.8.1, pluggy-0.13.1 -- /nix/store/ihy2vly61ndky6qlv1q4dfdiv28vszkh-python3-3.7.7/bin/python3.7
cachedir: .pytest_cache
rootdir: /build/bcachefs-tools-5d6e237/tests
collected 28 items
test_basic.py::test_help PASSED [ 3%]
test_basic.py::test_format FAILED [ 7%]
test_basic.py::test_fsck FAILED [ 10%]
test_basic.py::test_list FAILED [ 14%]
--- pkgs/applications/networking/browsers/chromium-git/mk-vendor-file.py 2019-12-30 16:30:56.947645764 -0500
+++ /home/danielrf/NixDroid/apks/chromium/mk-vendor-file.py 2019-12-30 15:18:29.068764104 -0500
@@ -1,5 +1,6 @@
#!/usr/bin/env nix-shell
-#!nix-shell -i python -p python2 nix git nix-prefetch-git
+#!nix-shell -i python -p python2 nix git nix-prefetch-git cipd -I nixpkgs=../../pkgs.nix
+# TODO: Include cipd above
from __future__ import print_function