summaryrefslogtreecommitdiff
Diffstat
-rw-r--r--audio.mk15
-rw-r--r--hdcp_rx22/arm_tools/aictool4831
-rw-r--r--hdcp_rx22/arm_tools/hdcprxkeys3909
-rw-r--r--hdcp_rx22/firmware/esm_config.i2
-rw-r--r--hdcp_rx22/firmware/firmware.le862
-rw-r--r--hdcp_rx22/hdcp_rx22208
-rw-r--r--hdcp_tx22/hdcp_tx22.contenttype1165
-rw-r--r--patch/frameworks#base#0001.patch41
-rw-r--r--products/tv/init.amlogic.rc7
-rw-r--r--products/tv/product_tv.mk99
-rw-r--r--recovery/Android.mk8
-rw-r--r--recovery/check/Android.mk27
-rw-r--r--recovery/check/dtbcheck.cpp860
-rw-r--r--recovery/check/dtbcheck.h15
-rw-r--r--recovery/check/security.cpp578
-rw-r--r--recovery/check/security.h158
-rw-r--r--recovery/fdt/Android.mk18
-rw-r--r--recovery/fdt/Makefile.libfdt10
-rw-r--r--recovery/fdt/fdt.c222
-rw-r--r--recovery/fdt/fdt.h60
-rw-r--r--recovery/fdt/fdt_empty_tree.c84
-rw-r--r--recovery/fdt/fdt_ro.c574
-rw-r--r--recovery/fdt/fdt_rw.c492
-rw-r--r--recovery/fdt/fdt_strerror.c96
-rw-r--r--recovery/fdt/fdt_sw.c256
-rw-r--r--recovery/fdt/fdt_wip.c118
-rw-r--r--recovery/fdt/libfdt.h1478
-rw-r--r--recovery/fdt/libfdt_env.h29
-rw-r--r--recovery/fdt/libfdt_internal.h95
-rw-r--r--recovery/recovery_extra/Android.mk31
-rw-r--r--recovery/recovery_extra/recovery_amlogic.cpp392
-rw-r--r--recovery/recovery_extra/recovery_amlogic.h25
-rw-r--r--recovery/ubootenv/Android.mk17
-rw-r--r--recovery/ubootenv/set_display_mode.cpp24
-rw-r--r--recovery/ubootenv/set_display_mode.h4
-rw-r--r--recovery/ubootenv/uboot_env.cpp107
-rw-r--r--recovery/ubootenv/uboot_env.h24
-rw-r--r--recovery/ui/Android.mk32
-rw-r--r--recovery/ui/amlogic_ui.cpp205
-rw-r--r--recovery/ui/amlogic_ui.h25
-rw-r--r--recovery/updater_extra/Android.mk24
-rw-r--r--recovery/updater_extra/install_amlogic.cpp751
-rw-r--r--recovery/updater_extra/install_amlogic.h20
43 files changed, 4922 insertions, 12076 deletions
diff --git a/recovery/check/security.h b/recovery/check/security.h
deleted file mode 100644
index d42e412..0000000
--- a/recovery/check/security.h
+++ b/dev/null
@@ -1,158 +0,0 @@
-/*
- * Copyright (C) 2007 The Android Open Source Project
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#ifndef _SECURITY_H_
-#define _SECURITY_H_
-
-#define DTB_IMG "dtb.img"
-#define BOOT_IMG "boot.img"
-#define RECOVERY_IMG "recovery.img"
-#define BOOTLOADER_IMG "bootloader.img"
-#define ARRAY_SIZE(x) (int)(sizeof(x)/sizeof(x[0]))
-
-#define NORMALBOOT_NAME_SIZE 16
-#define NORMALBOOT_ARGS_SIZE 512
-#define NORMALBOOT_MAGIC_SIZE 8
-#define NORMALBOOT_MAGIC "ANDROID!"
-
-#define SECUREBOOT_MAGIC "AMLSECU!"
-#define SECUREBOOT_MAGIC_SIZE 16
-#define SECUREBOOT_MAGIC_VESRION 0x0801
-
-#define DECRYPT_DTB "/sys/class/defendkey/decrypt_dtb"
-
-#define DEFEND_KEY \
- "/dev/defendkey"
-#define SECURE_CHECK \
- "/sys/class/defendkey/defendkey/secure_check"
-
-#define SECURE_CHECK_BAK \
- "/sys/class/defendkey/secure_check"
-
-
-#ifndef SECURITY_DEBUG
-#define secureDbg(fmt ...)
-#else
-#define secureDbg(fmt ...) printf(fmt)
-#endif
-
-typedef enum Kernel_version {
- KernelV_3_10,
- KernelV_3_14
-}T_KernelVersion;
-
-typedef enum SecureCheck {
- FAIL,
- ENCRYPT,
- UNENCRYPT,
- TYPE_MAX,
-} T_SecureCheck;
-
-static const char *s_pStatus[TYPE_MAX] = {
- "fail",
- "encrypt",
- "raw",
-};
-
-typedef struct NormalBootImgHdr {
- unsigned char magic[NORMALBOOT_MAGIC_SIZE];
- unsigned kernel_size;
- unsigned kernel_addr;
- unsigned ramdisk_size;
- unsigned ramdisk_addr;
- unsigned second_size;
- unsigned second_addr;
- unsigned tags_addr; // physical addr for kernel tags
- unsigned page_size; // flash page size we assume
- unsigned unused[2];
- unsigned char name[NORMALBOOT_NAME_SIZE];
- unsigned char cmdline[NORMALBOOT_ARGS_SIZE];
- unsigned id[8];
-} T_NormalBootImgHdr;
-
-typedef struct EncryptBootImgInfo {
- // magic to identify whether it is a encrypted boot image
- unsigned char magic[SECUREBOOT_MAGIC_SIZE];
-
- // version for this header struct
- unsigned int version;
-
- // total length after encrypted with AMLETool (including the 2K header)
- unsigned int totalLenAfterEncrypted;
-
- unsigned char unused[1024 - SECUREBOOT_MAGIC_SIZE - 2 * sizeof(unsigned int)];
-} T_EncryptBootImgInfo, *pT_EncryptBootImgInfo;
-
-typedef struct SecureBootImgHdr {
- T_NormalBootImgHdr normalBootImgHdr;
- unsigned char reserve4Other[1024 - sizeof(T_NormalBootImgHdr)];
- T_EncryptBootImgInfo encryptBootImgInfo;
-} *pT_SecureBootImgHdr;
-
-
-//S905 SECURE BOOT HEAD
-#define AML_SECU_BOOT_IMG_HDR_MAGIC "AMLSECU!"
-#define AML_SECU_BOOT_IMG_HDR_MAGIC_SIZE (8)
-#define AML_SECU_BOOT_IMG_HDR_VESRION (0x0905)
-
-
-typedef struct __aml_enc_blk{
- unsigned int nOffset;
- unsigned int nRawLength;
- unsigned int nSigLength;
- unsigned int nAlignment;
- unsigned int nTotalLength;
- unsigned char szPad[12];
- unsigned char szSHA2IMG[32];
- unsigned char szSHA2KeyID[32];
-}t_aml_enc_blk;
-
-typedef struct {
-
- unsigned char magic[AML_SECU_BOOT_IMG_HDR_MAGIC_SIZE];//magic to identify whether it is a encrypted boot image
-
- unsigned int version; //ersion for this header struct
- unsigned int nBlkCnt;
-
- unsigned char szTimeStamp[16];
-
- t_aml_enc_blk amlKernel;
- t_aml_enc_blk amlRamdisk;
- t_aml_enc_blk amlDTB;
-
-}AmlEncryptBootImgInfo, *p_AmlEncryptBootImgInfo;
-
-typedef struct _boot_img_hdr_secure_boot
-{
- unsigned char reserve4ImgHdr[1024];
-
- AmlEncryptBootImgInfo encrypteImgInfo;
-
-}*AmlSecureBootImgHeader;
-
-int RecoverySecureCheck(const ZipArchiveHandle zipArchive);
-
-int DtbImgEncrypted(
- const char *imageName,
- const unsigned char *imageBuffer,
- const int imageSize,
- const char *flag,
- unsigned char *encryptedbuf);
-
-
-//extern RecoveryUI *ui;
-
-#endif /* _SECURITY_H_ */