Files
vendor_xiaomi_klee/proprietary/odm/etc/camera/cameracustomize.json
T
2026-07-07 11:36:01 +00:00

46 lines
1.7 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/*
注释:
配置说明:
目前三方定制化框架支持两个功能:第一种:应用客制化,第二种:功能开/关客制化
应用客制化(CUSTOMIZABLE_APK:
ApkFunctionType:客制化功能名,如:扫一扫白名单
Mode:0代表应用包名客制化,1代表activity客制化
ApkTable:使用此客制化功能的包名/activity名列表
功能客制化(FEATURE_SWITCH:
FeatureType:功能名,如:此项目open相机时是否关闭NFC,避免硬件上的干扰
State:功能开关状态,0代表关,1代表开
##FEATURE_SWITCH的state只有两种值,当有多种状态或者属性时,FEATURE_SWITCH无法满足需求,因此对FEATURE_SWITCH进行功能扩展
扩展的功能客制化(EXTENDED_FEATURE_SWITCH
ExtendedFeatureType:扩展功能名,如:此机型是否跳过关闭NFC的设置
SwitchList:扩展功能开关状态列表,如:["1","3","4","0","5"],代表当cameraid为1/3/4/0/5时,SkipDisableNfc为1,跳过DisableNfc。这里的SwitchList也可是其他属性值。
*/
{
"CUSTOMIZABLE_APK":[
{
"ApkFunctionType":"None",
"Mode": 0,
"ApkTable" :[""]
}
],
"FEATURE_SWITCH":[
{
"FeatureType":"DisableNFC",
"State": 1
},
{
"FeatureType":"FrontDisableNFC",
"State": 0
},
{
"FeatureType":"DistinguishDeviceVersion",
"State": 0
}
],
"EXTENDED_FEATURE_SWITCH":[
{
"ExtendedFeatureType":"SkipDisableNfc",
"SwitchList" :["0","2","4"]
}
]
}