]> gitweb.stoutner.com Git - PrivacyBrowserROMIntegration.git/blob - Android.mk
a38b26f986a3f230311fdadfc4141f06db536074
[PrivacyBrowserROMIntegration.git] / Android.mk
1 # Privacy Browser copyright © 2017 Soren Stoutner <soren@stoutner.com>.
2 #
3 # Privacy Browser is free software: you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation, either version 3 of the License, or
6 # (at your option) any later version.
7 #
8 # Privacy Browser is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with Privacy Browser.  If not, see <http://www.gnu.org/licenses/>.#
15 #
16 # The source code is available from git.stoutner.com.
17 #
18 # Documentation of the commands in this file can be found at
19 # http://android.mk and
20 # https://developer.android.com/ndk/guides/android_mk.html
21
22 # Define the `LOCAL_PATH` variable.
23 LOCAL_PATH := $(call my-dir)
24
25 # Clear the build variables.
26 include $(CLEAR_VARS)
27
28 # Name the module that will be compiled into the ROM.
29 LOCAL_MODULE := privacy-browser
30
31 # The name of the source APK.
32 LOCAL_SRC_FILES := PrivacyBrowser2.7.apk
33
34 # Integrate Privacy Browser as a low privilege app under `/system/app` instead of high privilege app under `/system/priv-app`.
35 LOCAL_MODULE_CLASS := APPS
36
37 # Append the correct suffix `.apk` to the app.
38 LOCAL_MODULE_SUFFIX := $(COMMON_ANDROID_PACKAGE_SUFFIX)
39
40 # Keep the current package signature, which will allow users to upgrade Privacy Browser with packages signed by Stoutner.
41 LOCAL_CERTIFICATE := PRESIGNED
42
43 # Replace the `Browser` and `Browser2` packages with Privacy Browser.
44 LOCAL_OVERRIDES_PACKAGES := Browser Browser2
45
46 # Indicate that this is an optional build (as opposed to `users`, `eng`, or `tests`).
47 LOCAL_MODULE_TAGS := optional
48
49 # Tell the compiler to use the prebuilt APK.
50 include $(BUILD_PREBUILT)