diff --git a/helpers/DATA/firefox/android/branding/configure.sh b/helpers/DATA/firefox/android/branding/configure.sh new file mode 100644 index 0000000000000000000000000000000000000000..808e2a9f4d88bc6d5e7d02ea21322d5c77cba898 --- /dev/null +++ b/helpers/DATA/firefox/android/branding/configure.sh @@ -0,0 +1,11 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +MOZ_UPDATER= +MOZ_ANDROID_ANR_REPORTER= +MOZ_ANDROID_GCM_SENDERID=965234145045 +MOZ_MMA_GCM_SENDERID=242693410970 +ANDROID_PACKAGE_NAME=org.gnu.abrowser +MOZ_APP_DISPLAYNAME="Abrowser" +MOZ_ANDROID_SHARED_ID=org.gnu.abrowser.sharedID diff --git a/helpers/DATA/firefox/android/branding/content/about.png b/helpers/DATA/firefox/android/branding/content/about.png new file mode 100644 index 0000000000000000000000000000000000000000..c80a815fdf5d28b733a6a95497cc3afbfc3ab74d Binary files /dev/null and b/helpers/DATA/firefox/android/branding/content/about.png differ diff --git a/helpers/DATA/firefox/android/branding/content/favicon32.png b/helpers/DATA/firefox/android/branding/content/favicon32.png new file mode 100644 index 0000000000000000000000000000000000000000..4601dcb425a7f06766d373503caec928b7114c91 Binary files /dev/null and b/helpers/DATA/firefox/android/branding/content/favicon32.png differ diff --git a/helpers/DATA/firefox/android/branding/content/favicon64.png b/helpers/DATA/firefox/android/branding/content/favicon64.png new file mode 100644 index 0000000000000000000000000000000000000000..deab8059f57ad8d055ffb8e73fee5e1dfdce1fae Binary files /dev/null and b/helpers/DATA/firefox/android/branding/content/favicon64.png differ diff --git a/helpers/DATA/firefox/android/branding/content/jar.mn b/helpers/DATA/firefox/android/branding/content/jar.mn new file mode 100644 index 0000000000000000000000000000000000000000..e49cc40416a0604e78e256df63703007eb9be1c8 --- /dev/null +++ b/helpers/DATA/firefox/android/branding/content/jar.mn @@ -0,0 +1,9 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +chrome.jar: +% content branding %content/branding/ contentaccessible=yes + content/branding/about.png (about.png) + content/branding/favicon32.png (favicon32.png) + content/branding/favicon64.png (favicon64.png) diff --git a/helpers/DATA/firefox/android/branding/content/moz.build b/helpers/DATA/firefox/android/branding/content/moz.build new file mode 100644 index 0000000000000000000000000000000000000000..eb4454d28f88bf1075c4e70e38a0f7943b6ffb1f --- /dev/null +++ b/helpers/DATA/firefox/android/branding/content/moz.build @@ -0,0 +1,7 @@ +# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*- +# vim: set filetype=python: +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +JAR_MANIFESTS += ['jar.mn'] \ No newline at end of file diff --git a/helpers/DATA/firefox/android/branding/locales/en-US/brand.dtd b/helpers/DATA/firefox/android/branding/locales/en-US/brand.dtd new file mode 100644 index 0000000000000000000000000000000000000000..c66b367bb5e8f25db74cc3e1bd82600c3a9ace29 --- /dev/null +++ b/helpers/DATA/firefox/android/branding/locales/en-US/brand.dtd @@ -0,0 +1,10 @@ +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> + +<!ENTITY brandShortName "Abrowser"> +<!ENTITY brandFullName "Abrowser"> + +<!ENTITY brandPocket "Pocket"> + +<!ENTITY vendorShortName "Trisquel"> diff --git a/helpers/DATA/firefox/android/branding/locales/en-US/brand.properties b/helpers/DATA/firefox/android/branding/locales/en-US/brand.properties new file mode 100644 index 0000000000000000000000000000000000000000..5aaf02501cce4ed863c007ee5e1a4b4080b44ddf --- /dev/null +++ b/helpers/DATA/firefox/android/branding/locales/en-US/brand.properties @@ -0,0 +1,6 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +brandShortName=Abrowser +brandFullName=Abrowser diff --git a/helpers/DATA/firefox/android/branding/locales/jar.mn b/helpers/DATA/firefox/android/branding/locales/jar.mn new file mode 100644 index 0000000000000000000000000000000000000000..2ea47e1684a9a81f9c6bcfc98731352518066db0 --- /dev/null +++ b/helpers/DATA/firefox/android/branding/locales/jar.mn @@ -0,0 +1,11 @@ +#filter substitution +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + + +@AB_CD@.jar: +% locale branding @AB_CD@ %locale/branding/ +# Branding only exists in en-US + locale/branding/brand.dtd (en-US/brand.dtd) + locale/branding/brand.properties (en-US/brand.properties) diff --git a/helpers/DATA/firefox/android/branding/locales/moz.build b/helpers/DATA/firefox/android/branding/locales/moz.build new file mode 100644 index 0000000000000000000000000000000000000000..eb4454d28f88bf1075c4e70e38a0f7943b6ffb1f --- /dev/null +++ b/helpers/DATA/firefox/android/branding/locales/moz.build @@ -0,0 +1,7 @@ +# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*- +# vim: set filetype=python: +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +JAR_MANIFESTS += ['jar.mn'] \ No newline at end of file diff --git a/helpers/DATA/firefox/android/branding/moz.build b/helpers/DATA/firefox/android/branding/moz.build new file mode 100644 index 0000000000000000000000000000000000000000..04084b1ace0f0988bf46bd2e59a1432a2f683bf3 --- /dev/null +++ b/helpers/DATA/firefox/android/branding/moz.build @@ -0,0 +1,7 @@ +# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*- +# vim: set filetype=python: +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +DIRS += ['content', 'locales'] diff --git a/helpers/DATA/firefox/android/branding/res/drawable-hdpi/icon.png b/helpers/DATA/firefox/android/branding/res/drawable-hdpi/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..bc978ae69f9d85f8ee465dfdb1944ab45dad7ab0 Binary files /dev/null and b/helpers/DATA/firefox/android/branding/res/drawable-hdpi/icon.png differ diff --git a/helpers/DATA/firefox/android/branding/res/drawable-hdpi/large_icon.png b/helpers/DATA/firefox/android/branding/res/drawable-hdpi/large_icon.png new file mode 100644 index 0000000000000000000000000000000000000000..c9b394745f7c5060ee9980662196e5f408147e9f Binary files /dev/null and b/helpers/DATA/firefox/android/branding/res/drawable-hdpi/large_icon.png differ diff --git a/helpers/DATA/firefox/android/branding/res/drawable-nodpi/firstrun_welcome.png b/helpers/DATA/firefox/android/branding/res/drawable-nodpi/firstrun_welcome.png new file mode 100644 index 0000000000000000000000000000000000000000..320c48176a5d51d07dfbc345832eb656c8a096e1 Binary files /dev/null and b/helpers/DATA/firefox/android/branding/res/drawable-nodpi/firstrun_welcome.png differ diff --git a/helpers/DATA/firefox/android/branding/res/drawable-xhdpi/icon.png b/helpers/DATA/firefox/android/branding/res/drawable-xhdpi/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..ad0158afc3d83e199a6af3f94d01d73bf83411d6 Binary files /dev/null and b/helpers/DATA/firefox/android/branding/res/drawable-xhdpi/icon.png differ diff --git a/helpers/DATA/firefox/android/branding/res/drawable-xhdpi/large_icon.png b/helpers/DATA/firefox/android/branding/res/drawable-xhdpi/large_icon.png new file mode 100644 index 0000000000000000000000000000000000000000..1fcdb1fbc35a38b94fde4a1d6207d804b177d37c Binary files /dev/null and b/helpers/DATA/firefox/android/branding/res/drawable-xhdpi/large_icon.png differ diff --git a/helpers/DATA/firefox/android/branding/res/drawable-xxhdpi/icon.png b/helpers/DATA/firefox/android/branding/res/drawable-xxhdpi/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..9ede261cd0b9bf2149462e39ad50441c6ef848b7 Binary files /dev/null and b/helpers/DATA/firefox/android/branding/res/drawable-xxhdpi/icon.png differ diff --git a/helpers/DATA/firefox/android/branding/res/drawable-xxhdpi/large_icon.png b/helpers/DATA/firefox/android/branding/res/drawable-xxhdpi/large_icon.png new file mode 100644 index 0000000000000000000000000000000000000000..a5831ce9d3d36abaacde94d8a6075d6cf4e52b2b Binary files /dev/null and b/helpers/DATA/firefox/android/branding/res/drawable-xxhdpi/large_icon.png differ diff --git a/helpers/DATA/firefox/android/branding/res/drawable-xxxhdpi/icon.png b/helpers/DATA/firefox/android/branding/res/drawable-xxxhdpi/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..02376a1496c267694ed03e45a92ebe8c1361e9cc Binary files /dev/null and b/helpers/DATA/firefox/android/branding/res/drawable-xxxhdpi/icon.png differ diff --git a/helpers/DATA/firefox/android/images/logo-hdpi.png b/helpers/DATA/firefox/android/images/logo-hdpi.png new file mode 100644 index 0000000000000000000000000000000000000000..b242e173621a29adb488b7ff43481f0fcfe80109 Binary files /dev/null and b/helpers/DATA/firefox/android/images/logo-hdpi.png differ diff --git a/helpers/DATA/firefox/android/images/wordmark-hdpi.png b/helpers/DATA/firefox/android/images/wordmark-hdpi.png new file mode 100644 index 0000000000000000000000000000000000000000..259ba38aceabdbc3af4ba712d65f5981e9c2a52c Binary files /dev/null and b/helpers/DATA/firefox/android/images/wordmark-hdpi.png differ diff --git a/helpers/DATA/firefox/android/mobile.ico b/helpers/DATA/firefox/android/mobile.ico new file mode 100644 index 0000000000000000000000000000000000000000..be8747d7265ff33f1b3caeeca86abb49ddc734e9 Binary files /dev/null and b/helpers/DATA/firefox/android/mobile.ico differ diff --git a/helpers/DATA/firefox/android/res/main/drawable-hdpi/icon_home_empty_abrowser.png b/helpers/DATA/firefox/android/res/main/drawable-hdpi/icon_home_empty_abrowser.png new file mode 100644 index 0000000000000000000000000000000000000000..2cde5f03d82c49d47d3426f9e4a6daf90bc39838 Binary files /dev/null and b/helpers/DATA/firefox/android/res/main/drawable-hdpi/icon_home_empty_abrowser.png differ diff --git a/helpers/DATA/firefox/android/res/main/drawable-hdpi/icon_search_empty_abrowser.png b/helpers/DATA/firefox/android/res/main/drawable-hdpi/icon_search_empty_abrowser.png new file mode 100644 index 0000000000000000000000000000000000000000..23d7df5385f9f3530ee823059a546bc4a53a7788 Binary files /dev/null and b/helpers/DATA/firefox/android/res/main/drawable-hdpi/icon_search_empty_abrowser.png differ diff --git a/helpers/DATA/firefox/android/res/main/drawable-xhdpi/icon_home_empty_abrowser.png b/helpers/DATA/firefox/android/res/main/drawable-xhdpi/icon_home_empty_abrowser.png new file mode 100644 index 0000000000000000000000000000000000000000..110536b7e973a8c7f58be59be98f4e16590dc5b8 Binary files /dev/null and b/helpers/DATA/firefox/android/res/main/drawable-xhdpi/icon_home_empty_abrowser.png differ diff --git a/helpers/DATA/firefox/android/res/main/drawable-xhdpi/icon_search_empty_abrowser.png b/helpers/DATA/firefox/android/res/main/drawable-xhdpi/icon_search_empty_abrowser.png new file mode 100644 index 0000000000000000000000000000000000000000..d4cef56edfd979703fd8fc88c3a2f28c9930c125 Binary files /dev/null and b/helpers/DATA/firefox/android/res/main/drawable-xhdpi/icon_search_empty_abrowser.png differ diff --git a/helpers/DATA/firefox/android/res/main/drawable-xxhdpi/icon_search_empty_abrowser.png b/helpers/DATA/firefox/android/res/main/drawable-xxhdpi/icon_search_empty_abrowser.png new file mode 100644 index 0000000000000000000000000000000000000000..1fa0107e5413a0e4760c6067f0ec78c3e989b4f0 Binary files /dev/null and b/helpers/DATA/firefox/android/res/main/drawable-xxhdpi/icon_search_empty_abrowser.png differ diff --git a/helpers/DATA/firefox/android/res/main/raw/bookmarkdefaults_favicon_restricted_support.png b/helpers/DATA/firefox/android/res/main/raw/bookmarkdefaults_favicon_restricted_support.png new file mode 100644 index 0000000000000000000000000000000000000000..09547088a1a92670f45c4ae7b145a9ca2ebc4051 Binary files /dev/null and b/helpers/DATA/firefox/android/res/main/raw/bookmarkdefaults_favicon_restricted_support.png differ diff --git a/helpers/DATA/firefox/android/res/main/raw/bookmarkdefaults_favicon_support.png b/helpers/DATA/firefox/android/res/main/raw/bookmarkdefaults_favicon_support.png new file mode 100644 index 0000000000000000000000000000000000000000..09547088a1a92670f45c4ae7b145a9ca2ebc4051 Binary files /dev/null and b/helpers/DATA/firefox/android/res/main/raw/bookmarkdefaults_favicon_support.png differ diff --git a/helpers/DATA/firefox/android/res/photon/drawable-hdpi/ic_status_logo.png b/helpers/DATA/firefox/android/res/photon/drawable-hdpi/ic_status_logo.png new file mode 100644 index 0000000000000000000000000000000000000000..be02c225438a705c71b4b729721e37b1e39fe22b Binary files /dev/null and b/helpers/DATA/firefox/android/res/photon/drawable-hdpi/ic_status_logo.png differ diff --git a/helpers/DATA/firefox/android/res/photon/drawable-xhdpi/ic_status_logo.png b/helpers/DATA/firefox/android/res/photon/drawable-xhdpi/ic_status_logo.png new file mode 100644 index 0000000000000000000000000000000000000000..74aa51d8a51073ac5247ab63c3e34a3f5874d82c Binary files /dev/null and b/helpers/DATA/firefox/android/res/photon/drawable-xhdpi/ic_status_logo.png differ diff --git a/helpers/DATA/firefox/android/res/photon/drawable-xxhdpi/ic_status_logo.png b/helpers/DATA/firefox/android/res/photon/drawable-xxhdpi/ic_status_logo.png new file mode 100644 index 0000000000000000000000000000000000000000..05a47ba6f30ac6d211fb1f2abfa8179a0f751be6 Binary files /dev/null and b/helpers/DATA/firefox/android/res/photon/drawable-xxhdpi/ic_status_logo.png differ diff --git a/helpers/DATA/firefox/android/res/photon/drawable-xxxhdpi/ic_status_logo.png b/helpers/DATA/firefox/android/res/photon/drawable-xxxhdpi/ic_status_logo.png new file mode 100644 index 0000000000000000000000000000000000000000..c584186c55ed9798ecbd91d922adad42ac271218 Binary files /dev/null and b/helpers/DATA/firefox/android/res/photon/drawable-xxxhdpi/ic_status_logo.png differ diff --git a/helpers/make-firefox b/helpers/make-firefox index 54858cdc6dc29442761294ff450ca6d3396de349..265e9cee678e302f49c00326059709333f183596 100644 --- a/helpers/make-firefox +++ b/helpers/make-firefox @@ -250,6 +250,52 @@ sed s/_temp_/AbrowserProfileMigrator/ -i browser/components/migration/moz.build # js settings cat $DATA/settings.js >> debian/vendor-abrowser.js +################# +# Android stuff # +################# + +# Settings +cat << EOF >> mobile/android/confvars.sh +# Abrowser settings +MOZ_APP_BASENAME=Abrowser +MOZ_APP_VENDOR=Trisquel +MOZ_PAY=0 +MOZ_SERVICES_HEALTHREPORT=0 +MOZ_SERVICES_HEALTHREPORTER=0 +MOZ_SERVICES_METRICS=0 +MOZ_DATA_REPORTING=0 +MOZ_DEVICES=0 +MOZ_ANDROID_GOOGLE_PLAY_SERVICES=0 +MOZ_TELEMETRY_REPORTING=0 +MOZ_ADDON_SIGNING=0 +EOF + +sed '/SENDERID/d' -i mobile/android/app/mobile.js + +# Fix locale +cat << EOF >> mobile/locales/en-US/chrome/region.properties +browser.search.defaultenginename=DuckDuckGo +browser.search.order.1=DuckDuckGo +browser.search.order.2=Google +browser.search.order.3=Yahoo +browser.suggestedsites.restricted_mozilla.url=https://www.trisquel.info +browser.suggestedsites.webmaker.title=GNU Project +browser.suggestedsites.webmaker.url=https://www.gnu.org +EOF + +sed -i '/aboutPage.logoTrademark/d' \ +mobile/android/locales/en-US/chrome/about.dtd +echo -e '\n<!ENTITY aboutPage.logoTrademark "Abrowser and the Abrowser logos are trademarks of the Free Software Foundation.">' >> \ +mobile/android/locales/en-US/chrome/about.dtd + +# Branding +rm mobile/android/branding/{official,unofficial,beta,nightly} -rf +cp -a $DATA/android/branding/ mobile/android/branding/official +cp $DATA/android/mobile.ico mobile/android/app/ +cp $DATA/android/images/* mobile/android/themes/core/images/ +cp -a $DATA/android/res/main/* mobile/android/app/src/main/res/ +cp -a $DATA/android/res/photon/* mobile/android/app/src/photon/res/ + # Postinst script to manage profile migration and system links echo '