1 # Privacy Browser copyright © 2015-2020 Soren Stoutner <soren@stoutner.com>.
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.
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.
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/>.#
16 # The source code is available from git.stoutner.com.
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
22 # Define the `LOCAL_PATH` variable.
23 LOCAL_PATH := $(call my-dir)
25 # Clear the build variables.
28 # Name the module that will be compiled into the ROM.
29 LOCAL_MODULE := privacy-browser
31 # The name of the source APK.
32 LOCAL_SRC_FILES := PrivacyBrowser3.3.apk
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
37 # Append the correct suffix `.apk` to the app.
38 LOCAL_MODULE_SUFFIX := $(COMMON_ANDROID_PACKAGE_SUFFIX)
40 # Keep the current package signature, which will allow users to upgrade Privacy Browser with packages signed by Stoutner.
41 LOCAL_CERTIFICATE := PRESIGNED
43 # Replace the `Browser` and `Browser2` packages with Privacy Browser.
44 LOCAL_OVERRIDES_PACKAGES := Browser Browser2
46 # Indicate that this is an optional build (as opposed to `users`, `eng`, or `tests`).
47 LOCAL_MODULE_TAGS := optional
49 # Tell the compiler to use the prebuilt APK.
50 include $(BUILD_PREBUILT)