diff --git a/common/system.prop b/common/system.prop index 3d427899..d6335cff 100644 --- a/common/system.prop +++ b/common/system.prop @@ -1,3 +1,5 @@ # This file will be read by resetprop # Example: Change dpi # ro.sf.lcd_density=320 + +persist.camera.HAL3.enabled=1 \ No newline at end of file diff --git a/config.sh b/config.sh index af7e65cb..e39e2269 100644 --- a/config.sh +++ b/config.sh @@ -25,14 +25,14 @@ # This will be the folder name under /magisk # This should also be the same as the id in your module.prop to prevent confusion -MODID=template +MODID=Camera2_Enabler # Set to true if you need to enable Magic Mount # Most mods would like it to be enabled -AUTOMOUNT=true +AUTOMOUNT=false # Set to true if you need to load system.prop -PROPFILE=false +PROPFILE=true # Set to true if you need post-fs-data script POSTFSDATA=false @@ -48,7 +48,7 @@ LATESTARTSERVICE=false print_modname() { ui_print "*******************************" - ui_print " Magisk Module Template " + ui_print " Camera2 API Enabler " ui_print "*******************************" } diff --git a/module.prop b/module.prop index 4aca12e6..4269a804 100644 --- a/module.prop +++ b/module.prop @@ -1,7 +1,7 @@ -id=template -name=Template Module +id=Camera2_Enabler +name=Enable Camera2 API version=v1 versionCode=1 -author=topjohnwu -description=A short description +author=zanglang +description=Enables the Android Camera2 API by setting the "persist.camera.HAL3.enabled" property template=4