diff --git a/embedding/android/AndroidManifest.xml.in b/embedding/android/AndroidManifest.xml.in index 76c2f052b72..6f10cc73c87 100644 --- a/embedding/android/AndroidManifest.xml.in +++ b/embedding/android/AndroidManifest.xml.in @@ -4,7 +4,8 @@ package="@ANDROID_PACKAGE_NAME@" android:installLocation="auto" android:versionCode="@ANDROID_VERSION_CODE@" - android:versionName="@MOZ_APP_VERSION@"> + android:versionName="@MOZ_APP_VERSION@" + android:sharedUserId="@MOZ_ANDROID_SHARED_ID@"> diff --git a/embedding/android/Makefile.in b/embedding/android/Makefile.in index ae13449013f..dd8f9cda55d 100644 --- a/embedding/android/Makefile.in +++ b/embedding/android/Makefile.in @@ -101,9 +101,17 @@ GARBAGE_DIRS += classes res ifeq ($(MOZ_APP_NAME),fennec) ICON_PATH = $(topsrcdir)/$(MOZ_BRANDING_DIRECTORY)/content/fennec_48x48.png ICON_PATH_HDPI = $(topsrcdir)/$(MOZ_BRANDING_DIRECTORY)/content/fennec_72x72.png +ifeq (org.mozilla.fennec_unofficial,$(ANDROID_PACKAGE_NAME)) +DEFINES += -DMOZ_ANDROID_SHARED_ID="org.mozilla.fennec_unofficial.sharedID" +else ifeq (,$(MOZ_OFFICIAL_BRANDING)) +DEFINES += -DMOZ_ANDROID_SHARED_ID="org.mozilla.fennec.sharedID" +else +DEFINES += -DMOZ_ANDROID_SHARED_ID="org.mozilla.firefox.sharedID" +endif else ICON_PATH = $(topsrcdir)/$(MOZ_BRANDING_DIRECTORY)/content/icon48.png ICON_PATH_HDPI = $(topsrcdir)/$(MOZ_BRANDING_DIRECTORY)/content/icon64.png +DEFINES += -DMOZ_ANDROID_SHARED_ID="$(ANDROID_PACKAGE_NAME).sharedID" endif RES_LAYOUT = \