लागू करना
Android 9 और इससे पहले के वर्शन वाले ऐसे डिवाइस जिनमें A/B पार्टीशन हैं, वे Android पर काम करते हैं
बंद किए गए system_other
वाले हिस्से का इस्तेमाल करें (उद��हरण के लिए,
system_b
जब slot_a
चालू हो) पहले से ऑप्टिमाइज़ किया गया डेटा सेव करें
VDEX/ODEX फ़ाइलें. system_other
का इस्तेमाल करने पर,
पैकेज मैनेजर के लिए, ro.cp_system_other_odex
को 1 पर सेट किया गया है
cppreopts.rc
के लिए sys.cppreopt=requested
को सेट करने वाली सेवा
उस पर कार्रवाई करने के लिए किया जा सकता है.
Android 10 में, libfs_avb
को एवीबी की पुष्टि करने की सुविधा उपलब्ध कराई गई है, ताकि
system_other
विभाजन. इस तरह के विभाजन का VBMeta है
विभाजन के अंत में जोड़ा जाता है, जिसकी पुष्टि किसी अपेक्षित सार्वजनिक कुंजी से की जाती है
फ़ाइल सिस्टम से. Android बिल्ड सिस्टम में साइन इन करने की सुविधा उपलब्ध है
system_other.img
और इससे जुड़ी साइनिंग पासकोड शामिल करें
/product/etc/security/avb/system_other.avbpubkey
से कम. रिलीज़
sign_target_files_apks.py
टूल का इस्तेमाल करके,
रिलीज़ वर्शन को हाइलाइट करने की सुविधा मिलती है.
Android 10 से पहले लॉन्च किए गए A/B डिवाइसों में फ़िज़िकल तौर पर उपलब्ध
system_other
पार्टीशन, भले ही उसे Android 10 में अपग्रेड किया गया हो
PRODUCT_RETROFIT_DYNAMIC_PARTITIONS
को true
पर सेट किया गया.
Android 10 के साथ लॉन्च किए गए A/B डिवाइसों में,
system_other
विभाजन. नीचे दिए गए उदाहरण में, आम तौर पर
एवीबी की सुविधा चालू करने वाली fstab.postinstall
फ़ाइल
system_other
.
#<dev> <mnt_point> <type> <mnt_flags options> <fs_mgr_flags> system /postinstall ext4 ro,nosuid,nodev,noexec slotselect_other,logical,avb_keys=/product/etc/security/avb/system_other.avbpubkey
वे डिवाइस जिनके लिए system_other
पार्टिशन में AVB को चालू करना ज़रूरी है
को fstab
फ़ाइल को प्रॉडक्ट विभाजन में रखना चाहिए और
प्रॉपर्टी ro.postinstall.fstab.prefix
से /product
के लिए.
# Use /product/etc/fstab.postinstall to mount system_other. PRODUCT_PRODUCT_PROPERTIES += \ ro.postinstall.fstab.prefix=/product PRODUCT_COPY_FILES += \ $(LOCAL_PATH)/fstab.postinstall:$(TARGET_COPY_OUT_PRODUCT)/etc/fstab.postinstall