Bug: 378120929 Flag: build.RELEASE_PIXEL_VENDOR_INTELLIGENCE_AID Change-Id: I20b1fb2eb21d0db63c69d9eb30e89b0a824540f8 Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
22 lines
558 B
Bash
Executable file
22 lines
558 B
Bash
Executable file
#!/vendor/bin/sh
|
|
#
|
|
# The script belongs to the feature of AI preload feature, go/gemini-package
|
|
|
|
property="persist.vendor.intelligence"
|
|
partition="/dev/block/by-name/userdata_exp.ai"
|
|
mount_point="/data/vendor/intelligence"
|
|
backend_file="/data/userdata_exp.ai"
|
|
|
|
request=`getprop $property`
|
|
|
|
if [ "$request" == "on" ]; then
|
|
mounted=`grep $mount_point /proc/mounts`
|
|
if [ "$mounted" ]; then
|
|
setprop $property on
|
|
else
|
|
setprop $property remove
|
|
fi
|
|
elif [ "$request" == "off" ]; then
|
|
dd if=/dev/zero of=$partition bs=4k count=2
|
|
setprop $property remove
|
|
fi
|