Skip to content

Instantly share code, notes, and snippets.

diff --git a/app/src/main/java/org/lineageos/recorder/utils/MediaProviderHelper.java b/app/src/main/java/org/lineageos/recorder/utils/MediaProviderHelper.java
index df30740..4cdcd47 100644
--- a/app/src/main/java/org/lineageos/recorder/utils/MediaProviderHelper.java
+++ b/app/src/main/java/org/lineageos/recorder/utils/MediaProviderHelper.java
@@ -45,6 +45,8 @@ public final class MediaProviderHelper {
private static final String MY_RECORDS_SORT =
MediaStore.Audio.Media.DATE_ADDED + " DESC";
+ private static final String MY_RELATIVE_PATH = "Music/Sound records/";
+
diff --git a/app/src/main/java/org/lineageos/recorder/DialogActivity.java b/app/src/main/java/org/lineageos/recorder/DialogActivity.java
index e4be5fd..d2af9f0 100644
--- a/app/src/main/java/org/lineageos/recorder/DialogActivity.java
+++ b/app/src/main/java/org/lineageos/recorder/DialogActivity.java
@@ -162,17 +162,19 @@ public class DialogActivity extends AppCompatActivity implements
dialog.setOnDismissListener(d -> finish());
dialog.show();
}
+
private void setupAsSettingsScreen() {
diff --git a/src/compiler/clang.rs b/src/compiler/clang.rs
index 1563cfd..d93e446 100644
--- a/src/compiler/clang.rs
+++ b/src/compiler/clang.rs
@@ -119,7 +119,6 @@ counted_array!(pub static ARGS: [ArgInfo<gcc::ArgData>; _] = [
flag!("-fprofile-instr-generate", ProfileGenerate),
// Can be either -fprofile-instr-use or -fprofile-instr-use=path
take_arg!("-fprofile-instr-use", OsString, Concatenated, TooHard),
- take_arg!("-fsanitize-blacklist", PathBuf, Concatenated('='), ExtraHashFile),
take_arg!("-gcc-toolchain", OsString, Separated, PassThrough),
diff --git a/app/src/main/java/org/lineageos/jelly/MainActivity.kt b/app/src/main/java/org/lineageos/jelly/MainActivity.kt
index 9c6dcab..cbe382b 100644
--- a/app/src/main/java/org/lineageos/jelly/MainActivity.kt
+++ b/app/src/main/java/org/lineageos/jelly/MainActivity.kt
@@ -361,7 +361,10 @@ class MainActivity : WebViewExtActivity(), SearchBarController.OnCancelListener,
mSearchActive = false
}
- private fun shareUrl(url: String) {
+ private fun shareUrl(url: String?) {
diff --git a/app/src/main/java/org/lineageos/jelly/MainActivity.kt b/app/src/main/java/org/lineageos/jelly/MainActivity.kt
index 9c6dcab..cbe382b 100644
--- a/app/src/main/java/org/lineageos/jelly/MainActivity.kt
+++ b/app/src/main/java/org/lineageos/jelly/MainActivity.kt
@@ -361,7 +361,10 @@ class MainActivity : WebViewExtActivity(), SearchBarController.OnCancelListener,
mSearchActive = false
}
- private fun shareUrl(url: String) {
+ private fun shareUrl(url: String?) {
From 1c814d20b08b1ed359d808e251c56aa2905b390b Mon Sep 17 00:00:00 2001
From: Luca Stefani <[email protected]>
Date: Wed, 9 Sep 2020 12:43:54 +0200
Subject: [PATCH] libfscrypt: Bail out if we can't open directory
* On QCOM vendor API 29 init.qcom.rc has a 'mkdir' entry
for /data/system
* While the encryption policy matches and is applied properly in
permissive, vendor_init doesn't have enough perms to open
and run ioctl over system_data_file to check its policy
From 2e5a6f0453d6782ca14b24a4e18999fd02ce4c62 Mon Sep 17 00:00:00 2001
From: Luca Stefani <[email protected]>
Date: Wed, 9 Sep 2020 12:43:54 +0200
Subject: [PATCH] libfscrypt: Don't bail out if we can't open directory
* On QCOM vendor API 29 init.qcom.rc has a 'mkdir' entry
for /data/system
* While the encryption policy matches and is applied properly in
permissive, vendor_init doesn't have enough perms to open
and run ioctl over system_data_file to check its policy
From 533e767a3abfa855add156f166b5b7dd7c596c4e Mon Sep 17 00:00:00 2001
From: Luca Stefani <[email protected]>
Date: Thu, 27 Aug 2020 10:31:24 +0200
Subject: [PATCH] Don't assign codecs to a size fixed array
* A2dpCodecConfig.assignCodecConfigPriorities() returns an array of
length BluetoothCodecConfig.SOURCE_CODEC_TYPE_MAX but always populates
only 5 of those entries.
Change-Id: I589d63c635e29ff3cef8b688acc85637d5f096c3
From ae09825bef85f26a3d9c9b0c941d60142cce71bc Mon Sep 17 00:00:00 2001
From: Luca Stefani <[email protected]>
Date: Thu, 27 Aug 2020 10:31:24 +0200
Subject: [PATCH] Don't assign codecs to a size fixed array
Change-Id: I589d63c635e29ff3cef8b688acc85637d5f096c3
---
.../bluetooth/a2dp/A2dpCodecConfig.java | 58 +++++++------------
1 file changed, 22 insertions(+), 36 deletions(-)
diff --git a/utils/src/mkdtboimg.py b/utils/src/mkdtboimg.py
index 5f1b607..ebfd82d 100755
--- a/utils/src/mkdtboimg.py
+++ b/utils/src/mkdtboimg.py
@@ -899,7 +899,7 @@ def create_dtbo_image_from_config(fout, argv):
for dt_arg in dt_args:
filepath = None
for root, dirnames, filenames in os.walk(args.dtbdir):
- for filename in fnmatch.filter(filenames, dt_arg['filename']):
+ for filename in fnmatch.filter(filenames, os.path.basename(dt_arg['filename'])):