27 Mart 2025'ten itibaren AOSP'yi derlemek ve AOSP'ye katkıda bulunmak için aosp-main yerine android-latest-release kullanmanızı öneririz. Daha fazla bilgi için AOSP'de yapılan değişiklikler başlıklı makaleyi inceleyin.
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
Önyükleme görüntüsü profili, derleme zamanında kod optimizasyonuna rehberlik ederek sistem performansını artırmak için tasarlanmıştır. Temelde, sistemin başlatma işlemi sırasında ve temel sistem bileşenleri tarafından kodun hangi bölümlerinin en sık kullanıldığı hakkında bilgi veren bir veri kümesidir. Bu bilgiler, sistemin çalışma zamanı ortamının bu kritik kodu önceden derleyip optimize etmesine olanak tanır. Bu da daha hızlı başlatma süreleri, daha sorunsuz uygulama başlatma ve genel olarak sistem yanıt hızında iyileşme sağlar.
Önyükleme görüntüsü profilleri hakkında daha fazla bilgi için Önyükleme görüntüsü profilleri başlıklı makaleyi inceleyin.
Başlatma sınıf yolu için profil
(vendor/auto/embedded/products/boot-image-profile.txt). Başlatma sınıf yolundaki hangi yöntemlerin optimize edileceğini belirler.
Etkili bir şekilde profil oluşturmak ve gerçekçi bir önyükleme görüntüsü profili oluşturmak için özelleştirilmiş CUJ'lerinizle önyükleme görüntüsü profilleri oluşturma başlıklı makaleyi inceleyin.
Özellikle Google Haritalar ve Google Play'in başlatıldığı örnek AAOS CUJ'leri için hızlı bir önyükleme görüntüsü profili oluşturmak üzere art/tools/boot-image-profile-aaos-sample-generate.py komut dosyasını kullanın. Bu komut dosyası, söz konusu bağlantıda belirtilen adımları içerir.
Başlayın
Android'i oluşturmak, Cuttlefish'i başlatmak ve örnek bir AAOS önyükleme görüntüsü profili oluşturmak için aşağıdaki komutları çalıştırın.
Android'i derleme
Bir hedef seçin ve aşağıdakileri çalıştırın (örneğin
aosp_cf_x86_64_auto-ap4a-userdebug):
sourcebuild/envsetup.sh
lunch<target>
m
Cuttlefish'i başlatma
Cuttlefish hedefini başlatmak için Başlayın bölümündeki adımları uygulayın.
Bu sayfadaki içerik ve kod örnekleri, İçerik Lisansı sayfasında açıklanan lisanslara tabidir. Java ve OpenJDK, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2025-07-15 UTC.
[[["Anlaması kolay","easyToUnderstand","thumb-up"],["Sorunumu çözdü","solvedMyProblem","thumb-up"],["Diğer","otherUp","thumb-up"]],[["İhtiyacım olan bilgiler yok","missingTheInformationINeed","thumb-down"],["Çok karmaşık / çok fazla adım var","tooComplicatedTooManySteps","thumb-down"],["Güncel değil","outOfDate","thumb-down"],["Çeviri sorunu","translationIssue","thumb-down"],["Örnek veya kod sorunu","samplesCodeIssue","thumb-down"],["Diğer","otherDown","thumb-down"]],["Son güncelleme tarihi: 2025-07-15 UTC."],[],[],null,["# Boot image profiles\n\nA *boot image profile* is designed to enhance system performance by guiding the\noptimization of code at compile time. In essence, it's a set of data that\ninforms the system about which parts of the code are most frequently used\nduring the boot process and by core system components. This information allows\nthe system's runtime environment to preemptively compile and optimize this\ncritical code, leading to faster boot times, smoother app launches, and\nimproved overall system responsiveness.\n\nFor more information on boot image profiles, see\n[Boot image profiles](/docs/core/runtime/boot-image-profiles).\n\nBoot image profile data\n-----------------------\n\nAAOS boot image profiles include the following:\n\n- **Profile for the boot classpath** (`vendor/auto/embedded/products/boot-image-profile.txt`). Determines which methods from the boot classpath get optimized.\n\n### Example profile contents\n\n Landroid/accounts/AccountManager;\n Landroid/app/ActivityManager;\n Landroid/app/ActivityTaskManager;\n Landroid/app/ActivityThread;\n Landroid/app/AlarmManager;\n Landroid/app/AlertDialog;\n Landroid/car/Car;\n Landroid/car/input/CarInputManager;\n Landroid/car/media/CarAudioManager;\n\nGenerate boot image profiles\n----------------------------\n\nTo effectively profile and generate a realistic boot image profile, refer to\n[Generate boot image profiles](/docs/core/runtime/boot-image-profiles#generating-boot-image-profiles)\nwith your customized CUJs.\n\nFor a quick generation of a boot image profile specifically for sample AAOS\nCUJs, that is launching Google Maps and Google Play, use the\n`art/tools/boot-image-profile-aaos-sample-generate.py` script. This script\nincorporates the steps outlined in the aforementioned link.\n\n### Get started\n\nRun the following to build Android, launch Cuttlefish, and run the script to\ngenerate a sample AAOS boot image profile.\n\n#### Build Android\n\nChoose a target and run the following (for example\n`aosp_cf_x86_64_auto-ap4a-userdebug`): \n\n source build/envsetup.sh\n lunch \u003ctarget\u003e\n m\n\n#### Launch Cuttlefish\n\nFollow [Get started](/docs/devices/cuttlefish/get-started)\nto launch the Cuttlefish target.\n\n#### Run the script\n\n python3 art/tools/boot-image-profile-aaos-sample-generate.py\n\n| **Note:** The current `LOGCAT_READY_PATTERN` is set to when CarLauncher is displayed, to enable logcat wait functionality. You can customize your `LOGCAT_READY_PATTERN` by modifying the script.\n\n#### Optional: Specify ADB device\n\n export ANDROID_SERIAL=\u003cyour_device_serial\u003e\n\n| **Note:** If multiple devices are connected, set the `ANDROID_SERIAL` environment variable to specify the default ADB device. To revert, run `unset\n| ANDROID_SERIAL`."]]