summaryrefstree
path: root/system/init.vivo.common.rc
blob: f3f412a83168850b019befa909ab1f1983b62141 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
#init.rc for vivo
on post-fs-data
    # vivo xiejiyuan add for vrt begin
    mkdir /data/vusbd 0775 root shell encryption=Attempt
    # vivo xiejiyuan add for vrt end

    #20201023 xiangjizu add for apkslim
    chmod 0777 /data/vivo-common/gallery_res
    chmod 0777 /data/vivo-common/gallery_res/README.txt
    chmod 0777 /data/vivo-common/gallery_res/assets

    chmod 0777 /data/vivo-common/gallery_res/assets/aesthetics
    chmod 0777 /data/vivo-common/gallery_res/assets/aesthetics/mobilenetv2_nearest_portrait_finetune_weights_reordered.vaim
    chmod 0777 /data/vivo-common/gallery_res/assets/aesthetics/config.xlx

    chmod 0777 /data/vivo-common/gallery_res/assets/all_model_asset
    chmod 0777 /data/vivo-common/gallery_res/assets/all_model_asset/config.xlx

    chmod 0777 /data/vivo-common/gallery_res/assets/clusterrank
    chmod 0777 /data/vivo-common/gallery_res/assets/clusterrank/mbn_ranker_128.ckpt-15000_tf1.12.vaim
    chmod 0777 /data/vivo-common/gallery_res/assets/clusterrank/config.xlx


    chmod 0777 /data/vivo-common/gallery_res/assets/ocr
    chmod 0777 /data/vivo-common/gallery_res/assets/ocr/plate_number.zip
    chmod 0777 /data/vivo-common/gallery_res/assets/ocr/config.xlx

    chmod 0777 /data/vivo-common/gallery_res/assets/similar
    chmod 0777 /data/vivo-common/gallery_res/assets/similar/l2net.bin
    chmod 0777 /data/vivo-common/gallery_res/assets/similar/l2net.param.bin
    chmod 0777 /data/vivo-common/gallery_res/assets/similar/config.xlx

    chmod 0777 /data/vivo-common/gallery_res/assets/tagcreater
    chmod 0777 /data/vivo-common/gallery_res/assets/tagcreater/c279-epoch35-v3-circleloss_0901_nc4hw4_fp16.vaim
    chmod 0777 /data/vivo-common/gallery_res/assets/tagcreater/config.xlx

    chmod 0777 /data/vivo-common/gallery_res/assets/videoclassify
    chmod 0777 /data/vivo-common/gallery_res/assets/videoclassify/videoclassify_v6.4_v4.0_0725.pb
    chmod 0777 /data/vivo-common/gallery_res/assets/videoclassify/config.xlx

    chmod 0777 /data/vivo-common/gallery_res/assets/facegroup
    chmod 0777 /data/vivo-common/gallery_res/assets/facegroup/config.xlx

    chmod 0777 /data/vivo-common/gallery_res/assets_in

    chmod 0777 /data/vivo-common/gallery_res/assets_in/facegroup
    chmod 0777 /data/vivo-common/gallery_res/assets_in/facegroup/face_feature_extrace.vaim

    chmod 0777 /data/vivo-common/gallery_res/assets/aiportrait
    chmod 0777 /data/vivo-common/gallery_res/assets/aiportrait/Backbone_MobileNetV2_Epoch_10.vaim
    chmod 0777 /data/vivo-common/gallery_res/assets/aiportrait/facealign_weights_reordered.vaim
    chmod 0777 /data/vivo-common/gallery_res/assets/aiportrait/FaceDetector_lrelu_320.vaim
    chmod 0777 /data/vivo-common/gallery_res/assets/aiportrait/config.xlx

    chmod 0777 /data/vivo-common/gallery_res/assets/bestphoto
    chmod 0777 /data/vivo-common/gallery_res/assets/bestphoto/best_face_score_210311.vaim
    chmod 0777 /data/vivo-common/gallery_res/assets/bestphoto/face_align_model.vaim
    chmod 0777 /data/vivo-common/gallery_res/assets/bestphoto/face_detect_model.vaim
    chmod 0777 /data/vivo-common/gallery_res/assets/bestphoto/face_feature_extrace.vaim
    chmod 0777 /data/vivo-common/gallery_res/assets/bestphoto/mobilenetv2_0.5_17e_200907.vaim
    chmod 0777 /data/vivo-common/gallery_res/assets/bestphoto/config.xlx
    #20201023 xiangjizu add for apkslim

# vivo lingengbiao add for aiservice begin
    chown system system /data/vivo-common/aiservice_res
    chown system system /data/vivo-common/aiservice_res/README.txt
    chown system system /data/vivo-common/aiservice_res/config.json
    chown system system /data/vivo-common/aiservice_res/aiservice_data.zip
    chmod 0777 /data/vivo-common/aiservice_res
    chmod 0777 /data/vivo-common/aiservice_res/README.txt
    chmod 0777 /data/vivo-common/aiservice_res/config.json
    chmod 0777 /data/vivo-common/aiservice_res/aiservice_data.zip
# vivo lingengbiao add fro aiservice end

# vivo xiejiyuan add for vrt begin
on property:sys.vendor.adbd=1
    rm /data/vusbd/sec_certificate
    rm /data/vusbd/load
    rm /data/mdl/.vrp_test

service vrp_p /system/bin/vrp -p
    disabled
    user root
    group root system
    capabilities IPC_LOCK SYS_NICE
    priority -20
    ioprio rt 0
    oneshot

service vrp_r /system/bin/vrp -r
    disabled
    user root
    group root system
    capabilities IPC_LOCK SYS_NICE
    priority -20
    ioprio rt 0
    oneshot

on property:ro.build.type=user && property:service.vrp.wait=p
   start vrp_p

on property:ro.build.type=user && property:service.vrp.wait=r
   start vrp_r
# vivo xiejiyuan add for vrt end

# vivo chg add for charger start
on property:persist.vivo.fixed_temp_with_key_verification=*
	write /sys/class/cms_class/fixed_temp_with_key_verification ${persist.vivo.fixed_temp_with_key_verification}
# vivo chg add for charger end