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/ubootenv/uboot_env.cpp b/recovery/ubootenv/uboot_env.cpp
deleted file mode 100644
index 887387a..0000000
--- a/recovery/ubootenv/uboot_env.cpp
+++ b/dev/null
@@ -1,107 +0,0 @@
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <fcntl.h>
-
-#include <errno.h>
-#include <sys/stat.h>
-#include <unistd.h>
-
-#include "ubootenv/Ubootenv.h"
-
-
-// ------------------------------------
-// for uboot environment variable operation
-// ------------------------------------
-
-
-int set_bootloader_env(const char* name, const char* value)
-{
- Ubootenv *ubootenv = new Ubootenv();
-
- char ubootenv_name[128] = {0};
- const char *ubootenv_var = "ubootenv.var.";
- sprintf(ubootenv_name, "%s%s", ubootenv_var, name);
-
- if (ubootenv->updateValue(ubootenv_name, value)) {
- fprintf(stderr,"could not set boot env\n");
- return -1;
- }
-
- return 0;
-}
-
-char *get_bootloader_env(const char * name)
-{
- Ubootenv *ubootenv = new Ubootenv();
- char ubootenv_name[128] = {0};
- const char *ubootenv_var = "ubootenv.var.";
- sprintf(ubootenv_name, "%s%s", ubootenv_var, name);
- return (char *)ubootenv->getValue(ubootenv_name);
-}
-
-
-int set_env_optarg(char * optarg)
-{
- int ret = -1;
- char *buffer = NULL, *name = NULL, *value = NULL;
- if ((optarg == NULL) || (strlen(optarg) == 0)) {
- printf("param error!\n");
- return -1;
- }
-
- buffer = strdup(optarg);
- if (!buffer) {
- printf("strdup for buffer failed\n");
- return -1;
- }
-
- name = strtok(buffer, "=");
- if (strlen(name) == strlen(optarg)) {
- printf("strtok for '=' failed\n");
- goto END;
- }
-
- value = optarg + strlen(name) + 1;
- if (strlen(name) == 0) {
- printf("name is NULL\n");
- goto END;
- }
-
- if (strlen(value) == 0) {
- printf("value is NULL\n");
- goto END;
- }
-
- ret = set_bootloader_env(name, value);
- if (ret < 0) {
- printf("set env :%s=%s failed", name, value);
- }
-
-END:
-
- if (buffer != NULL) {
- free(buffer);
- buffer = NULL;
- }
- return ret;
-}
-
-int get_env_optarg(const char * optarg)
-{
- int ret = -1;
-
- if (optarg == NULL) {
- printf("param error!\n");
- return -1;
- }
-
- char *env = get_bootloader_env(optarg);
- if (env != NULL)
- {
- printf("get %s value:%s\n", optarg, env);
- ret = 0;
- }
-
- return ret;
-}