Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Android/device/device/generic/trusty/   (Android Betriebssystem Version 17©)  Datei vom 26.5.2026 mit Größe 5 kB image not shown  

Quelle  init.qemu_trusty_base.rc   Sprache: unbekannt

 
Spracherkennung für: .rc vermutete Sprache: Unknown {[0] [0] [0]} [Methode: Schwerpunktbildung, einfache Gewichte, sechs Dimensionen]

on fs
    mount_all /vendor/etc/fstab.qemu_trusty

on early-init
    mount debugfs debugfs /sys/kernel/debug mode=755

# legacy cpp implementation - to be deprecated
on post-fs && property:ro.boot.vendor.apex.com.android.hardware.keymint=\
com.android.hardware.keymint.trusty_tee.cpp
    enable vendor.keymint-service.trusty_tee.cpp

# rust implementation - nonsecure flavor for qemu (provisioned via host)
on post-fs && property:ro.boot.vendor.apex.com.android.hardware.keymint=\
com.android.hardware.keymint.trusty_tee
    enable vendor.keymint-service.trusty_tee.nonsecure

on early-init && property:ro.boot.vendor.apex.com.android.hardware.keymint=\
com.android.hardware.keymint.trusty_system_vm
    # Enable the Trusty Security VM
    setprop trusty.security_vm.enabled 1
    # Enable KeyMint that connects to the Trusty Security VM
    setprop trusty.security_vm.keymint.enabled 1

on post-fs
    # Ensure rpmb_virt_device is ready and start storageproxyd
    # on-post-fs at the latest because vold
    # needs secure storage for rollback protection
    # of the data partition encryption key
    wait /dev/vport/rpmb0

    # Setup fake vendor/persist directory before storageproxyd starts.
    # If /data/vendor/ss and the /data/vendor/ss/persist symlink has already
    # been created on a previous boot cycle, then tdp will be mounted the
    # first time storageproxyd starts instead of the second time.
    mkdir /mnt/vendor/persist 0770 root system
    mkdir /mnt/vendor/persist/ss 0770 root system
    restorecon_recursive /mnt/vendor/persist/ss

on post-fs-data
    mkdir /data/vendor/ss 0770 root system
    symlink /mnt/vendor/persist/ss /data/vendor/ss/persist
    chown root system /data/vendor/ss/persist
    chmod 0770 /data/vendor/ss/persist
    write /dev/kmsg "boot_kpi: K - restart storageproxyd"
    restart storageproxyd

on boot
    write /dev/kmsg "boot_kpi: K - init.rc 'on boot'"
    chown root system /sys/power/wake_lock
    chown root system /sys/power/wake_unlock
setprop ro.radio.use-ppp no
    setprop ro.build.product generic
    setprop ro.product.device generic
    setprop ro.hardware.audio.primary goldfish
    setprop ro.setupwizard.mode EMULATOR

# fake some battery state
    setprop status.battery.state Slow
    setprop status.battery.level 5
    setprop status.battery.level_raw  50
    setprop status.battery.level_scale 9

# set up the GPU caching
    setprop ro.hwui.texture_cache_size 72
    setprop ro.hwui.layer_cache_size 48
    setprop ro.hwui.r_buffer_cache_size 8
    setprop ro.hwui.path_cache_size 32
    setprop ro.hwui.gradient_cache_size 1
    setprop ro.hwui.drop_shadow_cache_size 6
    setprop ro.hwui.texture_cache_flushrate 0.4
    setprop ro.hwui.text_small_cache_width 1024
    setprop ro.hwui.text_small_cache_height 1024
    setprop ro.hwui.text_large_cache_width 2048
    setprop ro.hwui.text_large_cache_height 1024

# disable some daemons the emulator doesn't want
    stop dund
    stop akmd

# start essential services
# These were written for the classic emulator, but are applicable to ranchu
    start goldfish-logcat
#    start goldfish-setup


# enable Google-specific location features,
# like NetworkLocationProvider and LocationCollector
    setprop ro.com.google.locationfeatures 1

#emulator is not much useful before boot complete
#start it later
on property:sys.boot_completed=1
    setprop sys.usb.config adb
    start adbd
    start goldfish-logcat
    start qemu_trusty-net

on property:qemu.adbd=start
    setprop sys.usb.config adb
    start adbd
    start goldfish-logcat

service qemu_trusty-net /vendor/bin/dhcpclient -i eth0
    class late_start
    user root
    group root wakelock

# The qemu-props program is used to set various system
# properties on boot. It must be run early during the boot
# process to avoid race conditions with other daemons that
# might read them (e.g. surface flinger), so define it in
# class 'core'
#
service qemu-props /vendor/bin/qemu-props
    class core
    user root
    group root
    oneshot

on property:qemu.logcat=start
    start goldfish-logcat

# -Q is a special logcat option that forces the
# program to check whether it runs on the emulator
# if it does, it redirects its output to the device
# named by the androidboot.console kernel option
# if not, is simply exits immediately
# logd user added to prevent logcat from logging content.
# log group added to support access to read logs socket.
service goldfish-logcat /system/bin/logcat -Q
    user logd
    group log
    oneshot

service fingerprintd /system/bin/fingerprintd
    class late_start
    user system

service bugreport /system/bin/dumpstate -d -p
    class main
    disabled
    user root
    oneshot
    keycodes 114 115 116

service storageproxydlogs /system/bin/logcat -s storageproxyd:*
    class early_hal
    user logd
    group log
    console

# start storageproxyd when rpmb virtual port is ready
service storageproxyd /vendor/bin/storageproxyd -d /dev/trusty-ipc-dev0 \
        -r /dev/vport/rpmb0 -p /data/vendor/ss -t virt \
        --file_storage_mapping 0:/dev/block/vdg \
        --file_storage_mapping_no_link persist/0:/dev/block/vdf
    class early_hal
    user system
    group system
    task_profiles MaxPerformance

[Dauer der Verarbeitung: 0.14 Sekunden, vorverarbeitet 2026-06-27]