This is an old revision of the document!
About this Article
Replace the lichee/tools/pack_brandy/chips/sun7i/configs/android/sugar-xxx/bootlogo.bmp file
Replace the android/device/softwinner/sugar-xxx/initlogo.rle file This file can use general BMP images with lichee/tools/tools_win/LogoGen tool to generate
Storage self-checking logo is: The startup process of the box , if internal storage failure, will be displayed on the screen of the logo image, power can remind users don't wait for repair is completed, its size is the same as inilogo, same format. Replace the android/device/softwinner/sugar-xxx/initlogo.rle file After the replacement if you want to test the effect, can be in adb sheell environment using the following commands:
#set_ext4_err_bit /dev/block/by-name/cache #reboot
Self-checking interface can be seen after reboot
Add your own solutions directory in the device directory XXX (such as sugar - ref001), configuration of software, all on this directory, each project files in the directory name and structure is basically the same, the following in the sugar - ref001, for example.
Inside the file defines the internal need to customize the information, such as the need of pre-loaded apk, needs to be compiled apk source code, product name, and so on. Should change the file name to his own plan,such as: sugar-ref001.mk. File a few more important value of the variable is likely to change, meaning is as follows:
Here defines the need to add the product package, after added, will compile the source code, packaged in the firmware after will have the apk or library file, you need to add the generated apk or .so file, should put it “.mk”file defined in the PACKAGENAME added value, such as box using the application package for Homlet TvdSettings, TvdLauncher, TvdVideo, TvdFileManager.
Compile time put the environment variables defined in the copied to the specified path, such as in the scheme of sugar - ref001 directory of custom made one for infrared remote button mapping file, want to copy it at compile time to "system/usr/keylayout" directory, so to write:
PRODUCT_COPY_FILES += \ device/softwinner/sugar-ref001/sun7i-ir.kl:system/usr/keylayout/sun7i-ir.kl \
This command is used to add system properties to the android system, these attributes would be collected during compilation, eventually into the system of "the system/build.prop" file, is loaded when the phone is switched on, can be read from a system to be set accordingly. Such as the following attribute defines the default time zone of the firmware, country, language.
PRODUCT_PROPERTY_OVERRIDES += \ persist.sys.timezone=Asia/Shanghai \ persist.sys.language=zh \ persist.sys.country=CN