Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

styx: Add GSI target #9

Open
wants to merge 33 commits into
base: S
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
0f7a94b
overlay: SystemUI: Enable Monet and Conversations.
kdrag0n Oct 16, 2021
44ca115
overlay: Launcher3: Use ThemePicker as the wallpaper picker.
kdrag0n Oct 16, 2021
a8d2ed4
packages: Build ThemePicker.
gaganmalvi Oct 16, 2021
8300743
styx: fonts: Import from ProtonAOSP.
kdrag0n Oct 16, 2021
fb8ed5e
prebuilts: telephony: Add up APNs for Bangladesh carriers.
rokusenpaii Oct 16, 2021
536f6e7
overlays: SystemUI: drop RRO overrideable flag.
gaganmalvi Oct 16, 2021
5d794fe
overlay: SystemUI: follow light/dark theme in power menu
kdrag0n Oct 16, 2021
aa45329
overlay: core: Use accent color for progress bar background
kdrag0n Oct 16, 2021
55aba6b
overlay: SystemUI: Remove power menu shadow
kdrag0n Oct 16, 2021
7925bc6
overlay: core: Define the wallpaper cropper package.
kdrag0n Oct 16, 2021
3ff10aa
overlay: core: Add chroma to light surface highlight color
kdrag0n Oct 16, 2021
c073897
overlay: Launcher3: Use custom LocalColorExtractor implementation
kdrag0n Oct 16, 2021
b9312f4
overlay: SystemUI: Use custom component factory
kdrag0n Oct 16, 2021
e61bef3
STOPSHIP: overlay: Launcher3: add themed icons from pixel spb3
kdrag0n Oct 16, 2021
1d97dab
overlay: frameworks: show battery estimate in QS.
shutter-cat Oct 16, 2021
055667a
overlay: rro: Change target packages.
gaganmalvi Oct 17, 2021
d9c141d
soc: Initialize Qualcomm-specific common permissions and whitelists.
gaganmalvi Oct 17, 2021
31a654f
prebuilts: telephony: apn: Fix broken APN
gaganmalvi Oct 17, 2021
34f25bb
soc: mediatek: Initialize MediaTek-specific permissions and bits.
gaganmalvi Oct 17, 2021
b942b4b
versioning: Bump to alpha2
gaganmalvi Oct 17, 2021
cf2fb92
overlay: Launcher3: Do not compile Launcher3 overlays as a RRO.
gaganmalvi Oct 17, 2021
9d902a0
config: BoardConfigKernel: Fix VDSO32 compile for 4.19+ kernels.
libxzr Oct 17, 2021
9d2810a
soc: qcom: qssi: Compile QTI VNDK framework detect libraries.
gaganmalvi Oct 17, 2021
4e9bb2e
overlay: frameworks: make the icons rounded.
gaganmalvi Oct 17, 2021
059f8a8
properties: system: Do not write to XML files in binary format.
chil360 Oct 20, 2021
4c00463
scripts: merge-aosp: This is Android 12
gaganmalvi Oct 20, 2021
6a85961
styx: versioning: bump to alpha3
gaganmalvi Oct 20, 2021
62ff004
soc: qcom: qssi: only compile vendor variants of vndfwk libraries.
gaganmalvi Oct 20, 2021
2d269f0
versioning: Styx Project 2.0 Alpha Rollout
gaganmalvi Oct 20, 2021
8395966
config: common: Inherit GMS configuration.
gaganmalvi Oct 20, 2021
6027849
overlay: frameworks: Set mask for icons.
gaganmalvi Oct 21, 2021
aed6668
packages: Compile GrapheneOS Camera.
gaganmalvi Oct 21, 2021
d48335c
styx: Add GSI target
00p513-dev Oct 22, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions build/target/product/AndroidProducts.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#
# Copyright (C) 2021 The Styx Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

PRODUCT_MAKEFILES := \
$(LOCAL_DIR)/styx_arm64.mk

COMMON_LUNCH_CHOICES := \
styx_arm64-eng \
styx_arm64-userdebug
30 changes: 30 additions & 0 deletions build/target/product/styx_arm64.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Copyright (C) 2018-2020 The LineageOS Project
# Copyright (C) 2021 The Styx Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

$(call inherit-product, build/target/product/aosp_arm64.mk)
$(call inherit-product, build/target/product/gsi_release.mk)

$(call inherit-product, vendor/styx/config/common.mk)

PRODUCT_COPY_FILES += \
device/generic/goldfish/data/etc/permissions/privapp-permissions-goldfish.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/privapp-permissions-goldfish.xml \

# Allow building otatools
TARGET_FORCE_OTA_PACKAGE := true

TARGET_PROVIDES_KERNEL_MAKEFILE := true
TARGET_NO_KERNEL := true

PRODUCT_NAME := styx_arm64
1 change: 1 addition & 0 deletions config/BoardConfigKernel.mk
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ endif
# Needed for CONFIG_COMPAT_VDSO, safe to set for all arm64 builds
ifeq ($(KERNEL_ARCH),arm64)
KERNEL_CROSS_COMPILE += CROSS_COMPILE_ARM32="$(KERNEL_TOOLCHAIN_arm)/$(KERNEL_TOOLCHAIN_PREFIX_arm)"
KERNEL_CROSS_COMPILE += CROSS_COMPILE_COMPAT="$(KERNEL_TOOLCHAIN_arm)/$(KERNEL_TOOLCHAIN_PREFIX_arm)"
endif

# Clear this first to prevent accidental poisoning from env
Expand Down
16 changes: 15 additions & 1 deletion config/common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ $(call inherit-product, vendor/styx/config/versioning.mk)
# Inherit from our kernel/header generator
$(call inherit-product, vendor/styx/config/BoardConfigStyx.mk)

# Inherit system packages
# Inherit from fonts
$(call inherit-product, vendor/styx/fonts/fonts.mk)

# Inherit prebuilt packages
$(call inherit-product, vendor/styx/prebuilts/targets.mk)

# Inherit overlays
Expand All @@ -31,3 +34,14 @@ $(call inherit-product, vendor/styx/overlay/overlays.mk)
# Inherit properties
TARGET_PRODUCT_PROP += vendor/styx/config/properties/product.prop
TARGET_SYSTEM_PROP += vendor/styx/config/properties/system.prop

# Inherit system packages
$(call inherit-product, vendor/styx/config/packages.mk)

# Inherit SoC-specific bits
$(call inherit-product, vendor/styx/soc/soc.mk)

# Inherit GMS
ifneq ($(TARGET_DISABLES_GMS), true)
$(call inherit-product-if-exists, vendor/google/gms/config.mk)
endif
23 changes: 23 additions & 0 deletions config/packages.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#
# Copyright (C) 2021 The Styx Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

# Styles and Wallpapers
PRODUCT_PACKAGES += \
ThemePicker

# GrapheneOS Camera
PRODUCT_PACKAGES += \
Camera
3 changes: 3 additions & 0 deletions config/properties/system.prop
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@ dalvik.vm.dex2oat64.enabled=true

# Disable MTE async for system_server
arm64.memtag.process.system_server=off

# Disable writing to XML as binary.
persist.sys.binary_xml=false
2 changes: 1 addition & 1 deletion config/versioning.mk
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#

PLATFORM_STYX_VERSION_MAJOR := 2.0
PLATFORM_STYX_VERSION_MINOR := alpha1
PLATFORM_STYX_VERSION_MINOR := alpha
PLATFORM_STYX_RELEASE := $(PLATFORM_STYX_VERSION_MAJOR)-$(PLATFORM_STYX_VERSION_MINOR)

TARGET_PRODUCT_SHORT := $(subst styx_,,$(TARGET_DEVICE))
Expand Down
25 changes: 25 additions & 0 deletions fonts/fira-code/Android.bp
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/**
* Copyright (C) 2021 The Proton AOSP Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

prebuilt_font {
name: "CutiveMono.ttf",
src: "FiraCode-Regular_CutiveMono.ttf",
}

prebuilt_font {
name: "DroidSansMono.ttf",
src: "FiraCode-Regular_DroidSansMono.ttf",
}
Binary file added fonts/fira-code/FiraCode-Regular_CutiveMono.ttf
Binary file not shown.
Binary file not shown.
93 changes: 93 additions & 0 deletions fonts/fira-code/NOTICE
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
Copyright (c) 2014, The Fira Code Project Authors (https://github.com/tonsky/FiraCode)

This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
http://scripts.sil.org/OFL


-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------

PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.

The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.

DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.

"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).

"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).

"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.

"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.

PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:

1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.

2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.

3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.

4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.

5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.

TERMINATION
This license becomes null and void if any of the above conditions are
not met.

DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.
42 changes: 42 additions & 0 deletions fonts/font_files.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Copyright (C) 2021 The Proton AOSP Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

LOCAL_PATH := vendor/styx/fonts

# We have to use PRODUCT_PACKAGES (together with BUILD_PREBUILT) instead of
# PRODUCT_COPY_FILES to install the font files, so that the NOTICE file can
# get installed too.

PRODUCT_PACKAGES += \
CutiveMono.ttf \
DroidSansMono.ttf \
Roboto-Regular.ttf \
Manrope-VF.ttf \
NotoSans-Italic-VF.ttf \
NotoSans-VF.ttf \
Recursive-VF.ttf \
RobotoFallback-VF.ttf \
RobotoSystem-VF.ttf \
RobotoStatic-Regular.ttf \
SourceSans3-Italic-VF.otf \
SourceSans3-VF.otf \
NotoSerif-BoldItalic.ttf \
NotoSerif-Bold.ttf \
NotoSerif-Italic.ttf \
NotoSerif-Regular.ttf \

# Register new fonts
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/fonts_customization.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/fonts_customization.xml \

34 changes: 34 additions & 0 deletions fonts/fonts.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Copyright (C) 2021 The Proton AOSP Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

LOCAL_PATH := vendor/styx/fonts

# Copy font files
include vendor/styx/fonts/font_files.mk

# Register custom fonts
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/fonts_customization.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/fonts_customization.xml \

# Overlays for UI font styles
PRODUCT_PACKAGES += \
FontHKGroteskOverlay \
FontManropeOverlay \
FontNotoSansOverlay \
FontRecursiveCasualOverlay \
FontRecursiveLinearOverlay \
FontRobotoOverlay \
FontSourceSansOverlay \
FontSourceSerifOverlay \
FontHarmonyOSSansOverlay \
Loading