From d21f4831f923e709a11fd23445bb752b39a14224 Mon Sep 17 00:00:00 2001 From: "lambroslambrou@chromium.org" Date: Wed, 5 Feb 2014 13:01:38 +0000 Subject: Set package name for official builds of Android Chromoting TEST=Build remoting_apk with branding=Chrome, verify it runs OK, and verify 'aapt dump badging out/Debug/apks/ChromeRemoteDesktop.apk' shows new package name. Review URL: https://codereview.chromium.org/155083003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@248973 0039d316-1c4b-4281-b951-d872f2087c98 --- remoting/android/java/AndroidManifest.xml | 23 ----------------- remoting/android/java/AndroidManifest.xml.jinja2 | 23 +++++++++++++++++ remoting/branding_Chrome | 1 + remoting/branding_Chromium | 1 + remoting/remoting_android.gypi | 33 ++++++++++++++++++++++-- 5 files changed, 56 insertions(+), 25 deletions(-) delete mode 100644 remoting/android/java/AndroidManifest.xml create mode 100644 remoting/android/java/AndroidManifest.xml.jinja2 diff --git a/remoting/android/java/AndroidManifest.xml b/remoting/android/java/AndroidManifest.xml deleted file mode 100644 index c5c0ce4..0000000 --- a/remoting/android/java/AndroidManifest.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - - - - - - - - - - - diff --git a/remoting/android/java/AndroidManifest.xml.jinja2 b/remoting/android/java/AndroidManifest.xml.jinja2 new file mode 100644 index 0000000..ba07b53 --- /dev/null +++ b/remoting/android/java/AndroidManifest.xml.jinja2 @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + diff --git a/remoting/branding_Chrome b/remoting/branding_Chrome index 54bb024..478d7f3 100644 --- a/remoting/branding_Chrome +++ b/remoting/branding_Chrome @@ -1,4 +1,5 @@ APK_FILE_NAME=ChromeRemoteDesktop +APK_PACKAGE_NAME=com.google.chromeremotedesktop DAEMON_FILE_NAME=Chrome Remote Desktop Host Service HOST_PLUGIN_FILE_NAME=Chrome Remote Desktop Host IT2ME_HOST_DESCRIPTION=Remote Assistance Host for Chrome Remote Desktop diff --git a/remoting/branding_Chromium b/remoting/branding_Chromium index d72b36c..dc945e2 100644 --- a/remoting/branding_Chromium +++ b/remoting/branding_Chromium @@ -1,4 +1,5 @@ APK_FILE_NAME=Chromoting +APK_PACKAGE_NAME=org.chromium.chromoting DAEMON_FILE_NAME=Chromoting Host Service HOST_PLUGIN_FILE_NAME=Chromoting Host IT2ME_HOST_DESCRIPTION=Remote Assistance Host for Chromoting diff --git a/remoting/remoting_android.gypi b/remoting/remoting_android.gypi index 950bc46..1d2c74c 100644 --- a/remoting/remoting_android.gypi +++ b/remoting/remoting_android.gypi @@ -76,19 +76,48 @@ ], }, # end of target 'remoting_android_resources' { + 'target_name': 'remoting_apk_manifest', + 'type': 'none', + 'sources': [ + 'android/java/AndroidManifest.xml.jinja2', + ], + 'rules': [{ + 'rule_name': 'generate_manifest', + 'extension': 'jinja2', + 'inputs': [ + '<(remoting_localize_path)', + '<(branding_path)', + '<(RULE_INPUT_PATH)', + ], + 'outputs': [ + '<(SHARED_INTERMEDIATE_DIR)/remoting/android/<(RULE_INPUT_ROOT)', + ], + 'action': [ + 'python', '<(remoting_localize_path)', + '--variables', '<(branding_path)', + '--template', '<(RULE_INPUT_PATH)', + '--locale_output', '<@(_outputs)', + 'en', + ], + }], + }, # end of target 'remoting_apk_manifest' + { 'target_name': 'remoting_apk', 'type': 'none', 'dependencies': [ - 'remoting_client_jni', 'remoting_android_resources', + 'remoting_apk_manifest', + 'remoting_client_jni', ], 'variables': { 'apk_name': '