Android 5.x OTA Update official documentation (VII. Building devices), androidota

Source: Internet
Author: User

Android 5.x OTA Update official documentation (VII. Building devices), androidota

Call the make_device () function in recovery_ui.cpp to create a Device instance, as shown below:

class TardisDevice : public Device {   // ... all the above methods ...};Device* make_device() {    return new TardisDevice();}

Compile recovery_ui.cpp

Next, we will introduce how to create a static database for recovery_ui.cpp through the previous introduction to recovery_ui.cpp.

Device/yoyodyne/tardis/recovery/Android. mk

LOCAL_PATH := $(call my-dir)include $(CLEAR_VARS)LOCAL_MODULE_TAGS := engLOCAL_C_INCLUDES += bootable/recoveryLOCAL_SRC_FILES := recovery_ui.cpp# should match TARGET_RECOVERY_UI_LIB set in BoardConfig.mkLOCAL_MODULE := librecovery_ui_tardisinclude $(BUILD_STATIC_LIBRARY)

Then, specify the TARGET_RECOVERY_UI_LIB value in the static library in the BoardConfig. mk file, as shown below:

device/yoyodyne/tardis/BoardConfig.mk [...]# device-specific extensions to the recovery UITARGET_RECOVERY_UI_LIB := librecovery_ui_tardis


 


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.