Skip to content

Commit

Permalink
Add pre-commit hook and tidy up patch final lines
Browse files Browse the repository at this point in the history
  • Loading branch information
cawilliamson committed Feb 22, 2024
1 parent 7105204 commit 92835ae
Show file tree
Hide file tree
Showing 188 changed files with 12 additions and 189 deletions.
9 changes: 9 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-xml
- id: end-of-file-fixer
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
exclude: '^patches/'
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,13 @@ export CCACHE_COMPRESS=1
export CCACHE_MAXSIZE=50G # 50 GB
```

## Compilation
## Compilation
In the ROM folder, run this for building a non-gapps build:

```bash
. build/envsetup.sh
ccache -M 50G -F 0
lunch treble_arm64_bvN-userdebug
lunch treble_arm64_bvN-userdebug
make systemimage -j$(nproc --all)
```

Expand All @@ -73,7 +73,7 @@ After compiling the GSI, you can run this to reduce the `system.img` file size:
```bash
cd out/target/product/tdgsi_arm64_ab
xz -9 -T0 -v -z system.img
xz -9 -T0 -v -z system.img
```

## Troubleshooting
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,3 @@ index 33a8638..32dd621 100644

--
2.42.0

Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,3 @@ index eb12c67..2673354 100644

--
2.34.1

Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,3 @@ index 23f1e1b..25c0450 100644
echo -e "ccache enabled and CCACHE_EXEC has been set to : $ccache_path"
--
2.42.0

Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,3 @@ index 83bb3f7..91d523c 100644
ro.logd.kernel=true \
--
2.34.1

Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,3 @@ index d2a73a8..c22c37f 100644
}
--
2.42.0

Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,3 @@ index 5dc493f..9ea5f8b 100644
if [ -f "$f" ];then
--
2.39.2

Original file line number Diff line number Diff line change
Expand Up @@ -62886,4 +62886,3 @@ HcmV?d00001

--
2.34.1

Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,3 @@ index 839a9ec..afe97f1 100644

--
2.42.0

Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,3 @@ index f131e88..551bb8f 100644
+BUILD_BROKEN_MISSING_REQUIRED_MODULES := true
--
2.42.0

Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,3 @@ index 0000000..ea10cc1
+</config>
--
2.34.1

Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,3 @@ index b5644c9..68543eb 100644
vendor.lineage.livedisplay::IAdaptiveBacklight u:object_r:hal_lineage_livedisplay_hwservice:s0
--
2.42.0

Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,3 @@ index ad181701..61c7d05c 100644
rotatedResources.getDimensionPixelSize(R.dimen.ongoing_appops_dot_min_padding)
--
2.42.0

Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,3 @@ index 61af9c84..6ce73854 100644
<integer name="config_ntpTimeout">5000</integer>
--
2.42.0

Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,3 @@ index 5bf00f6263..347fbf12ca 100644
mHasExplicitIdentity = origHasExplicitIdentity;
--
2.34.1

Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,3 @@ index 683c24c..b9e2084 100644
-}
--
2.34.1

Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,3 @@ index 6abcfe2..de4c2dc 100644
</webviewproviders>
--
2.42.0

Original file line number Diff line number Diff line change
Expand Up @@ -178,4 +178,3 @@ index 84d3e46..2ddec52 100644

--
2.42.0

Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,3 @@ index cb19a9a..eb4a20d 100644
org.voltage.version=$(VOLTAGEVERSION)
--
2.34.1

Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,3 @@ index 8dfde5c..4b9204b 100644
</webviewproviders>
--
2.42.0

Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,3 @@ index 700ac69..448cae0 100644
cc_library_headers {
--
2.42.0

Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,3 @@ index c6702bb..c1dae2f 100644
</resources>
--
2.42.0

Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,3 @@ index 5457bbc..1a8956a 100644

--
2.42.0

Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,3 @@ index 1a8956a..e7d936c 100644
BtHelper
--
2.42.0

Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,3 @@ index 4a7147d..daee5e5 100644
endif
--
2.42.0

Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,3 @@ index 17b574fc1..c863f8ea6 100644
if (insert_pos == std::string::npos) {
--
2.25.1

Original file line number Diff line number Diff line change
Expand Up @@ -133,4 +133,3 @@ index 1cb15c3df..057199318 100644
static bool is_read_only(const char* name) {
--
2.25.1

Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,3 @@ index a0160e2f..24d6ccab 100644
uint32_t current_slot = module->GetCurrentSlot();
--
2.25.1

Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,3 @@ index f71b275b0e..62984253f3 100644
+# ro.setupwizard.mode?=DISABLED
--
2.25.1

Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,3 @@ index 6c907db0ed..0adced1672 100644
# Special settings for GSI releasing
--
2.25.1

Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,3 @@ index 9d102ea515..ec42b2ce77 100644
PRODUCT_PACKAGES += gsi_overlay_systemui
--
2.25.1

Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,3 @@ index a3f5ab3470..0096f23b3d 100644
locksettings \
--
2.25.1

Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,3 @@ index 0c086ee090..6006a5e8f5 100644
31.0 \
--
2.25.1

Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,3 @@ index 44af367a38..4adec48daa 100644
echo "ro.$(1).build.fingerprint=$(BUILD_FINGERPRINT_FROM_FILE)" >> $(2);\
--
2.25.1

Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,3 @@ index 80d3583d..a51630b2 100644
{"verbose", no_argument, 0, 'v'},
--
2.25.1

Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,3 @@ index d2bfdc81..91fa1075 100644
}
--
2.25.1

Original file line number Diff line number Diff line change
Expand Up @@ -113,4 +113,3 @@ index 91fa1075..d20fb7ee 100644

--
2.25.1

Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,3 @@ index a7c66ead..99410da0 100644
static int cil_post_netifcon_context_compare(const void *a, const void *b)
--
2.25.1

Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,3 @@ index 77f7a1eb..55a30944 100644
(SELINUX_WARNING,
--
2.25.1

Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,3 @@ index 99410da0..7f614c03 100644
return 0;
--
2.25.1

Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,3 @@ index 118de1f5..77e130d1 100644
goto exit;
--
2.25.1

Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,3 @@ index 77e130d1..daf8b8b3 100644
return SEPOL_OK;
--
2.25.1

Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,3 @@ index 7f614c03..1703b3b6 100644
bypass = 1;
--
2.25.1

Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,3 @@ index 1703b3b6..5428005d 100644
}
--
2.25.1

Original file line number Diff line number Diff line change
Expand Up @@ -323,4 +323,3 @@ index 863c785b08..41930138c4 100644

--
2.25.1

Original file line number Diff line number Diff line change
Expand Up @@ -128,4 +128,3 @@ index 3d5c1d2e42..5ca409cfe7 100644
for (const xmlNode *children = cur->xmlChildrenNode; children != NULL;
--
2.25.1

Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,3 @@ index 208138f4ab..4ac9362621 100644

--
2.25.1

Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,3 @@ index 5ca409cfe7..14b19e76ad 100644
// Global Configuration
--
2.25.1

Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,3 @@ index 14b19e76ad..b30ad7e8af 100644
RouteTraits::Collection routes;
--
2.25.1

Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,3 @@ index b30ad7e8af..53fabcc71e 100644
return BAD_VALUE;
--
2.25.1

Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,3 @@ index fac6e4e189..0ec647a941 100644

--
2.25.1

Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,3 @@ index 5f14ee4623..166ab7acbb 100644

--
2.25.1

Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,3 @@ index 8ff5c3fb01..d498ecbee5 100644
__FUNCTION__, mProviderName.c_str(), linked.description().c_str());
--
2.25.1

Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,3 @@ index c3f6e4925e..971d40f7fd 100644

--
2.25.1

Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,3 @@ index 53fabcc71e..83eafc2f79 100644

--
2.25.1

Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,3 @@ index 218aff80e6..c7ea035191 100644
addSupportedAttributesToGroup(group, volumeGroup, strategy);
--
2.25.1

Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,3 @@ index 0ec647a941..bba0fedaea 100644
return SystemCameraKind::PUBLIC;
--
2.25.1

Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,3 @@ index d498ecbee5..587d3eeda7 100644
ret = interface->getCameraIdList(cb);
--
2.25.1

Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,3 @@ index 83eafc2f79..91fc5f57da 100644
reinterpret_cast<const char*>(attachedDevice.get()));
--
2.25.1

Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,3 @@ index 91fc5f57da..d2fcc13b00 100644
} else if (source == NULL) {
--
2.25.1

Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,3 @@ index ca78ce7213..59211577c4 100644
return BAD_VALUE;
--
2.25.1

Original file line number Diff line number Diff line change
Expand Up @@ -151,4 +151,3 @@ index eef60b506c..e303e54b41 100644
#else
--
2.25.1

Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,3 @@ index 587d3eeda7..a345d6a2bf 100644

--
2.25.1

Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,3 @@ index d2fcc13b00..fc6cc72c1c 100644
return BAD_VALUE;
--
2.25.1

Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,3 @@ index fc6cc72c1c..8b3a1f0e4f 100644
devTag = strtok(NULL, ",");
--
2.25.1

Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,3 @@ index 8b3a1f0e4f..913cbc0e90 100644
}
--
2.25.1

Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,3 @@ index 913cbc0e90..6bf5d14c3c 100644
if (source == NULL) {
--
2.25.1

Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,3 @@ index b18cbd41a4..9ea1bee67d 100644
std::string type, id;
--
2.25.1

Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,3 @@ index 89e75b3342..bbf2f57592 100644
}
--
2.25.1

Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,3 @@ index d7489f2c7b91..8e890a39e6de 100644
}
--
2.25.1

Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,3 @@ index 2464eb0141b8..b0ebab8e4002 100644
}
--
2.25.1

Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,3 @@ index 536ef31f334a..bebab95189d7 100644
@NonNull
--
2.25.1

Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,3 @@ index 63daa3503bd5..d068ec06fc14 100644

--
2.25.1

Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,3 @@ index c80124c4c2ec..b13979d2359b 100644
public static boolean cameraStatusesContains(CameraStatus[] cameraStatuses, String id) {
--
2.25.1

Loading

0 comments on commit 92835ae

Please sign in to comment.