From afd80d6fbda2a58c45bef2901852a2746f07e747 Mon Sep 17 00:00:00 2001 From: William Bourke Date: Mon, 20 Oct 2014 16:42:50 -0700 Subject: Sample OEM setup customization Bug: 17721780 Change-Id: Idea405d0322bde98936100692ea43f9b62de3d95 --- apps/SetupCustomizer/Android.mk | 13 ++++++++ apps/SetupCustomizer/AndroidManifest.xml | 23 ++++++++++++++ apps/SetupCustomizer/proguard-project.txt | 20 +++++++++++++ .../res/drawable-xhdpi/welcome_background.png | Bin 0 -> 12117 bytes .../res/drawable-xhdpi/welcome_image.png | Bin 0 -> 2822 bytes .../res/drawable-xhdpi/welcome_logo_bottomleft.png | Bin 0 -> 2690 bytes .../res/drawable-xhdpi/welcome_logo_topleft.png | Bin 0 -> 10630 bytes apps/SetupCustomizer/res/values/bools.xml | 8 +++++ apps/SetupCustomizer/res/values/colors.xml | 4 +++ apps/SetupCustomizer/res/values/dimens.xml | 8 +++++ apps/SetupCustomizer/res/values/strings.xml | 8 +++++ .../tvsetup/partnercustomizer/PartnerReceiver.java | 33 +++++++++++++++++++++ 12 files changed, 117 insertions(+) create mode 100644 apps/SetupCustomizer/Android.mk create mode 100644 apps/SetupCustomizer/AndroidManifest.xml create mode 100644 apps/SetupCustomizer/proguard-project.txt create mode 100644 apps/SetupCustomizer/res/drawable-xhdpi/welcome_background.png create mode 100644 apps/SetupCustomizer/res/drawable-xhdpi/welcome_image.png create mode 100644 apps/SetupCustomizer/res/drawable-xhdpi/welcome_logo_bottomleft.png create mode 100644 apps/SetupCustomizer/res/drawable-xhdpi/welcome_logo_topleft.png create mode 100644 apps/SetupCustomizer/res/values/bools.xml create mode 100644 apps/SetupCustomizer/res/values/colors.xml create mode 100644 apps/SetupCustomizer/res/values/dimens.xml create mode 100644 apps/SetupCustomizer/res/values/strings.xml create mode 100644 apps/SetupCustomizer/src/com/android/tvsetup/partnercustomizer/PartnerReceiver.java (limited to 'apps') diff --git a/apps/SetupCustomizer/Android.mk b/apps/SetupCustomizer/Android.mk new file mode 100644 index 0000000..9312a36 --- /dev/null +++ b/apps/SetupCustomizer/Android.mk @@ -0,0 +1,13 @@ +LOCAL_PATH:= $(call my-dir) +include $(CLEAR_VARS) + +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_PATH := $(PRODUCT_OUT)/system/priv-app + +LOCAL_SRC_FILES := $(call all-java-files-under, src) + +LOCAL_PACKAGE_NAME := TvSetupCustomizer + +LOCAL_SDK_VERSION := current + +include $(BUILD_PACKAGE) diff --git a/apps/SetupCustomizer/AndroidManifest.xml b/apps/SetupCustomizer/AndroidManifest.xml new file mode 100644 index 0000000..bdd31ff --- /dev/null +++ b/apps/SetupCustomizer/AndroidManifest.xml @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/apps/SetupCustomizer/proguard-project.txt b/apps/SetupCustomizer/proguard-project.txt new file mode 100644 index 0000000..f2fe155 --- /dev/null +++ b/apps/SetupCustomizer/proguard-project.txt @@ -0,0 +1,20 @@ +# To enable ProGuard in your project, edit project.properties +# to define the proguard.config property as described in that file. +# +# Add project specific ProGuard rules here. +# By default, the flags in this file are appended to flags specified +# in ${sdk.dir}/tools/proguard/proguard-android.txt +# You can edit the include path and order by changing the ProGuard +# include property in project.properties. +# +# For more details, see +# http://developer.android.com/guide/developing/tools/proguard.html + +# Add any project specific keep options here: + +# If your project uses WebView with JS, uncomment the following +# and specify the fully qualified class name to the JavaScript interface +# class: +#-keepclassmembers class fqcn.of.javascript.interface.for.webview { +# public *; +#} diff --git a/apps/SetupCustomizer/res/drawable-xhdpi/welcome_background.png b/apps/SetupCustomizer/res/drawable-xhdpi/welcome_background.png new file mode 100644 index 0000000..e8cd090 Binary files /dev/null and b/apps/SetupCustomizer/res/drawable-xhdpi/welcome_background.png differ diff --git a/apps/SetupCustomizer/res/drawable-xhdpi/welcome_image.png b/apps/SetupCustomizer/res/drawable-xhdpi/welcome_image.png new file mode 100644 index 0000000..b6c099f Binary files /dev/null and b/apps/SetupCustomizer/res/drawable-xhdpi/welcome_image.png differ diff --git a/apps/SetupCustomizer/res/drawable-xhdpi/welcome_logo_bottomleft.png b/apps/SetupCustomizer/res/drawable-xhdpi/welcome_logo_bottomleft.png new file mode 100644 index 0000000..af6cfc2 Binary files /dev/null and b/apps/SetupCustomizer/res/drawable-xhdpi/welcome_logo_bottomleft.png differ diff --git a/apps/SetupCustomizer/res/drawable-xhdpi/welcome_logo_topleft.png b/apps/SetupCustomizer/res/drawable-xhdpi/welcome_logo_topleft.png new file mode 100644 index 0000000..96b1638 Binary files /dev/null and b/apps/SetupCustomizer/res/drawable-xhdpi/welcome_logo_topleft.png differ diff --git a/apps/SetupCustomizer/res/values/bools.xml b/apps/SetupCustomizer/res/values/bools.xml new file mode 100644 index 0000000..234f35f --- /dev/null +++ b/apps/SetupCustomizer/res/values/bools.xml @@ -0,0 +1,8 @@ + + + + + + true + + diff --git a/apps/SetupCustomizer/res/values/colors.xml b/apps/SetupCustomizer/res/values/colors.xml new file mode 100644 index 0000000..810e40e --- /dev/null +++ b/apps/SetupCustomizer/res/values/colors.xml @@ -0,0 +1,4 @@ + + + #FFFF00FF + diff --git a/apps/SetupCustomizer/res/values/dimens.xml b/apps/SetupCustomizer/res/values/dimens.xml new file mode 100644 index 0000000..fc7a365 --- /dev/null +++ b/apps/SetupCustomizer/res/values/dimens.xml @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/apps/SetupCustomizer/res/values/strings.xml b/apps/SetupCustomizer/res/values/strings.xml new file mode 100644 index 0000000..7572d9f --- /dev/null +++ b/apps/SetupCustomizer/res/values/strings.xml @@ -0,0 +1,8 @@ + + + SetupCustomizer + + + welcome_message + + diff --git a/apps/SetupCustomizer/src/com/android/tvsetup/partnercustomizer/PartnerReceiver.java b/apps/SetupCustomizer/src/com/android/tvsetup/partnercustomizer/PartnerReceiver.java new file mode 100644 index 0000000..cf8efd9 --- /dev/null +++ b/apps/SetupCustomizer/src/com/android/tvsetup/partnercustomizer/PartnerReceiver.java @@ -0,0 +1,33 @@ +/* + * Copyright (C) 2014 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. + */ + +package com.google.android.tvsetup.partnercustomizer; + +import android.content.BroadcastReceiver; +import android.content.Context; +import android.content.Intent; + +/** + * This class allows the system/setup app to find the partner customization package. + * + * Package must be a system app to be used for partner customization. + */ +public class PartnerReceiver extends BroadcastReceiver { + + @Override + public void onReceive(Context context, Intent intent) { + } +} -- cgit v1.2.3