commit f4c99a1817504f2ef153e11e07fd4a15bafdabd0 Author: Chaitanyakm <88253340+Chaitanyakm@users.noreply.github.com> Date: Sat May 27 19:10:57 2023 +0530 Initial Upload diff --git a/README.md b/README.md new file mode 100644 index 0000000..5474e0a --- /dev/null +++ b/README.md @@ -0,0 +1,25 @@ +## Add In Rom + +Add This Line In device.mk + +$(call inherit-product, vendor/bcr/bcr.mk) + +## Features + +* Supports Android 9 through 13 +* Supports output in various formats: + * OGG/Opus - Lossy, smallest files, default on Android 10+ + * M4A/AAC - Lossy, smaller files, default on Android 9 + * FLAC - Lossless, larger files + * WAV/PCM - Lossless, largest files, least CPU usage +* Supports Android's Storage Access Framework (can record to SD cards, USB devices, etc.) +* Per-contact auto-record rules +* Quick settings toggle +* Material You dynamic theming +* No persistent notification unless a recording is in progress +* No network access permission +* Works with call screening on Pixel devices (records the caller, but not the automated system) + +## Credits + +Thanks to [chenxiaolong](https://github.com/chenxiaolong) For Base Repo And [StudioKeys](https://github.com/StudioKeys) For Helping Me diff --git a/bcr.mk b/bcr.mk new file mode 100644 index 0000000..8ac6099 --- /dev/null +++ b/bcr.mk @@ -0,0 +1,5 @@ +LOCAL_PATH := $(call my-dir) +include $(call all-subdir-makefiles,$(LOCAL_PATH)) + +# Include prebuilts packages +include vendor/bcr/prebuilts/prebuilts.mk \ No newline at end of file diff --git a/prebuilts/prebuilts.mk b/prebuilts/prebuilts.mk new file mode 100644 index 0000000..eee8a71 --- /dev/null +++ b/prebuilts/prebuilts.mk @@ -0,0 +1,6 @@ +# Copy permission files +PRODUCT_COPY_FILES += $(call find-copy-subdir-files,*,vendor/bcr/prebuilts/product/etc/permissions,$(TARGET_COPY_OUT_PRODUCT)/etc/permissions) + +# Build apps +PRODUCT_PACKAGES += \ + bcr \ No newline at end of file diff --git a/prebuilts/product/Android.mk b/prebuilts/product/Android.mk new file mode 100644 index 0000000..fecba84 --- /dev/null +++ b/prebuilts/product/Android.mk @@ -0,0 +1 @@ +include $(call all-subdir-makefiles,$(LOCAL_PATH)) \ No newline at end of file diff --git a/prebuilts/product/etc/permissions/privapp-permissions-com.chiller3.bcr.xml b/prebuilts/product/etc/permissions/privapp-permissions-com.chiller3.bcr.xml new file mode 100644 index 0000000..8dc08f5 --- /dev/null +++ b/prebuilts/product/etc/permissions/privapp-permissions-com.chiller3.bcr.xml @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/prebuilts/product/priv-app/Android.mk b/prebuilts/product/priv-app/Android.mk new file mode 100644 index 0000000..fecba84 --- /dev/null +++ b/prebuilts/product/priv-app/Android.mk @@ -0,0 +1 @@ +include $(call all-subdir-makefiles,$(LOCAL_PATH)) \ No newline at end of file diff --git a/prebuilts/product/priv-app/com.chiller3.bcr/Android.mk b/prebuilts/product/priv-app/com.chiller3.bcr/Android.mk new file mode 100644 index 0000000..ff4bc1b --- /dev/null +++ b/prebuilts/product/priv-app/com.chiller3.bcr/Android.mk @@ -0,0 +1,11 @@ +LOCAL_PATH:= $(call my-dir) + +include $(CLEAR_VARS) +LOCAL_MODULE := bcr +LOCAL_SRC_FILES := bcr.apk +LOCAL_PRODUCT_MODULE := true +LOCAL_MODULE_CLASS := APPS +LOCAL_CERTIFICATE := PRESIGNED +LOCAL_PRIVILEGED_MODULE := true +LOCAL_MODULE_SUFFIX := $(COMMON_ANDROID_PACKAGE_SUFFIX) +include $(BUILD_PREBUILT) diff --git a/prebuilts/product/priv-app/com.chiller3.bcr/bcr.apk b/prebuilts/product/priv-app/com.chiller3.bcr/bcr.apk new file mode 100644 index 0000000..686d1e8 Binary files /dev/null and b/prebuilts/product/priv-app/com.chiller3.bcr/bcr.apk differ