Compare commits

...

5 commits

Author SHA1 Message Date
0ce7d0d07a init_gsi: Stop spoofing the SPL property
This is the AOSP branch, and we no longer really want to do the spoofing
for SN right now. We don't have the framework-side SPL spoofing anyway.
2022-08-17 13:55:16 -04:00
216e24536a build OpenEUICC package 2022-08-01 15:45:10 -04:00
f7df65f03b sepolicy: Address qmipriod denials on Xperia 5 II 2022-06-04 09:34:39 -04:00
1ea8d32986 device.mk: Include our UnifiedNlp v2 app
This should be added as a prebuilt in vendor/foss.
2022-06-02 22:59:49 -04:00
ceedb72c33 init_gsi: Disable A2DP offload on qcom 2022-06-01 23:01:17 -04:00
4 changed files with 17 additions and 4 deletions

View file

@ -42,6 +42,12 @@ include device/peter/gsi/quirks/quirks.mk
PRODUCT_COPY_FILES += \ PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.telephony.euicc.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/permissions/android.hardware.telephony.euicc.xml frameworks/native/data/etc/android.hardware.telephony.euicc.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/permissions/android.hardware.telephony.euicc.xml
PRODUCT_PACKAGES += \
OpenEUICC
# vendor/foss
PRODUCT_PACKAGES += \
UnifiedNlp
# Enable ro.adb.secure on userdebug and user # Enable ro.adb.secure on userdebug and user
ifeq (,$(filter eng,$(TARGET_BUILD_VARIANT))) ifeq (,$(filter eng,$(TARGET_BUILD_VARIANT)))

View file

@ -40,8 +40,6 @@ void handle_device_model_props() {
string brand = base::GetProperty("ro.product.vendor.brand", ""); string brand = base::GetProperty("ro.product.vendor.brand", "");
string manufacturer = base::GetProperty("ro.product.vendor.manufacturer", ""); string manufacturer = base::GetProperty("ro.product.vendor.manufacturer", "");
string fingerprint = base::GetProperty("ro.vendor.build.fingerprint", ""); string fingerprint = base::GetProperty("ro.vendor.build.fingerprint", "");
string spl = base::GetProperty("ro.vendor.build.security_patch", "");
string spl_orig = base::GetProperty("ro.build.version.security_patch", "");
for (const auto& source : RO_PROP_SOURCES) { for (const auto& source : RO_PROP_SOURCES) {
override_ro_prop("ro.product", source, "device", device); override_ro_prop("ro.product", source, "device", device);
@ -54,8 +52,6 @@ void handle_device_model_props() {
override_ro_prop("ro", "", "build.stock_fingerprint", fingerprint); override_ro_prop("ro", "", "build.stock_fingerprint", fingerprint);
override_ro_prop("ro", "", "build.flavor", name + "-user"); override_ro_prop("ro", "", "build.flavor", name + "-user");
override_ro_prop("ro", "", "build.tags", "release-keys"); override_ro_prop("ro", "", "build.tags", "release-keys");
override_ro_prop("ro", "", "build.version.security_patch", spl);
override_ro_prop("ro", "", "build.version.real_security_patch", spl_orig);
} }
int main(int argc, char **argv) { int main(int argc, char **argv) {

View file

@ -1,5 +1,7 @@
#include "../../quirks.h" #include "../../quirks.h"
#include <android-base/properties.h>
#include <filesystem> #include <filesystem>
using namespace std; using namespace std;
@ -15,6 +17,10 @@ public:
if (filesystem::exists("/vendor/etc/a2dp_audio_policy_configuration.xml")) { if (filesystem::exists("/vendor/etc/a2dp_audio_policy_configuration.xml")) {
Quirks::OverrideFileReplaceSubstr("/vendor/etc/a2dp_audio_policy_configuration.xml", "bluetooth_qti", "a2dp"); Quirks::OverrideFileReplaceSubstr("/vendor/etc/a2dp_audio_policy_configuration.xml", "bluetooth_qti", "a2dp");
} }
// Disable A2DP offload on qcom
android::base::SetProperty("persist.bluetooth.a2dp_offload.disabled", "true");
android::base::SetProperty("persist.bluetooth.bluetooth_audio_hal.disabled", "true");
} }
}; };

View file

@ -0,0 +1,5 @@
type vendor_qmipriod, domain;
type vendor_qmipriod_data_file, file_type, data_file_type;
r_dir_file(vendor_qmipriod, vendor_qmipriod_data_file);
allow vendor_qmipriod vendor_qmipriod_data_file:file w_file_perms;