/
product.mk
executable file
·57 lines (44 loc) · 1.56 KB
/
product.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
########################################
############## Packages ################
########################################
# Remove Gello
# noGello/Android.mk
PRODUCT_PACKAGES += \
noGello
# Add wanted packages
PRODUCT_PACKAGES += \
FDroidPrivilegedExtension \
FDroid
########################################
############### Root ###################
########################################
# Hell yeah I want root baked in
PRODUCT_PACKAGES += \
su
# Enable Root for adb and apps
# BUG: Does not allow root access in adb shell unless you go into Developer Options and select the option. Weird.
PRODUCT_PROPERTY_OVERRIDES += \
persist.sys.root_access=3
########################################
############# Settings #################
########################################
PRODUCT_PROPERTY_OVERRIDES += \
dalvik.vm.debug.alloc=0 \
ro.setupwizard.enterprise_mode=1 \
ro.com.android.dateformat=MM-dd-yyyy \
ro.debuggable=1
# Enable data roaming
PRODUCT_PROPERTY_OVERRIDES := $(subst dataroaming=false,dataroaming=true,$(PRODUCT_PROPERTY_OVERRIDES))
# Disable multiuser
PRODUCT_PROPERTY_OVERRIDES += \
fw.show_multiuserui=0
# Enable ADB authentication
ADDITIONAL_DEFAULT_PROPERTIES += ro.adb.secure=1
# Updates overlay settings
PRODUCT_PACKAGE_OVERLAYS += vendor/extra/overlay
# Don't compile SystemUITests
EXCLUDE_SYSTEMUI_TESTS := true
# This breaks stuff. Don't use right now.
# PRODUCT_COPY_FILES += \
# vendor/extra/prebuilt/common/data/local/userinit.sh:root/data/local/userinit.sh \
# vendor/extra/prebuilt/common/etc/resolv.conf:root/etc/resolv.conf