File tree 7 files changed +59
-2
lines changed
7 files changed +59
-2
lines changed Original file line number Diff line number Diff line change 17
17
.cxx
18
18
local.properties
19
19
app /src /headless /assets
20
+ /.knownPackages
21
+ /* .patch
22
+ /build-tools
23
+ /emulator
24
+ /licenses
25
+ /patcher
26
+ /platform-tools
27
+ /platforms
28
+ /tools
Original file line number Diff line number Diff line change
1
+ prebuilt_etc {
2
+ name : " privapp_whitelist_com.celzero.bravedns" ,
3
+ product_specific : true ,
4
+ sub_dir : " permissions" ,
5
+ src : " com.celzero.bravedns.xml" ,
6
+ filename_from_src : true ,
7
+ }
8
+
9
+ prebuilt_etc {
10
+ name : " com.celzero.bravedns_whitelist" ,
11
+ product_specific : true ,
12
+ sub_dir : " sysconfig" ,
13
+ src : " com.celzero.bravedns_whitelist.xml" ,
14
+ filename_from_src : true ,
15
+ }
Original file line number Diff line number Diff line change
1
+ LOCAL_PATH := $(call my-dir)
2
+
3
+ include $(CLEAR_VARS )
4
+
5
+ LOCAL_MODULE := Rethink
6
+
7
+ ifeq ($(TARGET_BUILD_VARIANT ) , userdebug)
8
+ LOCAL_SRC_FILES := app/build/outputs/apk/fdroidHeadless/debug/app-fdroid-headless-debug.apk
9
+ else
10
+ LOCAL_SRC_FILES := app/build/outputs/apk/fdroidHeadless/release/app-fdroid-headless-release.apk
11
+ endif
12
+ LOCAL_CERTIFICATE := testkey
13
+ LOCAL_PRODUCT_MODULE := true
14
+ LOCAL_PRIVILEGED_MODULE := true
15
+ LOCAL_MODULE_CLASS := APPS
16
+ LOCAL_DEX_PREOPT := false
17
+ LOCAL_REQUIRED_MODULES := privapp_whitelist_com.celzero.bravedns com.celzero.bravedns_whitelist
18
+ include $(BUILD_PREBUILT )
Original file line number Diff line number Diff line change 12
12
<!-- Allows applications to change network connectivity state -->
13
13
<uses-permission android : name =" android.permission.CHANGE_NETWORK_STATE" />
14
14
<uses-permission android : name =" android.permission.INTERNET" />
15
- <uses-permission android : name =" android.permission.RECEIVE_BOOT_COMPLETED" />
16
15
<!-- Android 11 introduces changes related to package visibility. These changes affect
17
16
apps only if they target Android 11.
18
17
https://developer.android.com/training/package-visibility -->
22
21
<!-- Allows the app to perform actions across different users on the device. -->
23
22
<uses-permission
24
23
android : name =" android.permission.INTERACT_ACROSS_USERS"
25
- android : protectionLevel =" signature"
26
24
tools : ignore =" ProtectedPermissions" />
27
25
28
26
<!-- https://github.com/celzero/rethink-app/issues/786 set memtagMode to off -->
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" utf-8" ?>
2
+ <permissions >
3
+ <privapp-permissions package =" com.celzero.bravedns" >
4
+ <permission name =" android.permission.INTERACT_ACROSS_USERS" />
5
+ </privapp-permissions >
6
+ </permissions >
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" utf-8" ?>
2
+ <config >
3
+ <allow-in-power-save package =" com.celzero.bravedns" />
4
+ <install-in-user-type package =" com.celzero.bravedns" >
5
+ <install-in user-type =" SYSTEM" />
6
+ </install-in-user-type >
7
+ </config >
Original file line number Diff line number Diff line change
1
+ SCRIPT_DIR=$( cd -- " $( dirname -- " ${BASH_SOURCE[0]} " ) " & > /dev/null && pwd )
2
+ yes | prebuilts/cmdline-tools/tools/bin/sdkmanager --licenses --sdk_root=" $SCRIPT_DIR "
3
+ TASK=" assembleFdroidHeadless"
4
+ ANDROID_HOME=" $SCRIPT_DIR " JAVA_HOME=prebuilts/jdk/jdk17/linux-x86 " $SCRIPT_DIR " /gradlew -p " $SCRIPT_DIR " " $TASK "
You can’t perform that action at this time.
0 commit comments