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

vendor: Build WeatherProvider #16

Open
wants to merge 5 commits into
base: pie
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion build/tasks/liquid.mk
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ LIQUID_TARGET_PACKAGE := $(PRODUCT_OUT)/liquid_remix-$(LIQUID_VERSION).zip
liquid: $(INTERNAL_OTA_PACKAGE_TARGET)
$(hide) ln -f $(INTERNAL_OTA_PACKAGE_TARGET) $(LIQUID_TARGET_PACKAGE)
$(hide) $(MD5SUM) $(LIQUID_TARGET_PACKAGE) | sed "s|$(PRODUCT_OUT)/||" > $(LIQUID_TARGET_PACKAGE).md5sum
$(hide) ./vendor/liquid/tools/generate_json_build_info.sh $(HAVOC_TARGET_PACKAGE)
$(hide) ./vendor/liquid/tools/generate_json_build_info.sh $(LIQUID_TARGET_PACKAGE)
@echo "Package Complete: $(LIQUID_TARGET_PACKAGE)" >&2
6 changes: 4 additions & 2 deletions config/common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ endif
PRODUCT_PACKAGES += \
AmbientPlayHistoryProvider

# Fonts
PRODUCT_PACKAGES += \
Liquid-Fonts

# Subs OMS
PRODUCT_PACKAGES += \
SubstratumSignature \
Expand Down Expand Up @@ -249,8 +253,6 @@ endif
# Required packages
PRODUCT_PACKAGES += \
Eleven \
Email \
Jelly \
Launcher3

# Liquid packages
Expand Down
3 changes: 3 additions & 0 deletions overlay/common/frameworks/base/core/res/res/values/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -114,4 +114,7 @@
This name is in the ComponentName flattened format (package/class) -->
<string name="config_screenshotEditor" translatable="false">com.google.android.markup/com.google.android.markup.AnnotateActivity</string>

<string-array name="config_fontPackages" translatable="false">
<item>com.liquid.fonts</item>
</string-array>
</resources>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version='1.0' encoding='utf-8' standalone='yes' ?>
<exceptions>

<exception package="com.android.providers.weather">
<permission name="android.permission.ACCESS_FINE_LOCATION" fixed="false"/>
<permission name="android.permission.ACCESS_COARSE_LOCATION" fixed="false"/>
</exception>

</exceptions>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8" ?>

<permissions>
<feature name="com.android.providers.weather.SUPPORTED" />
</permissions>
8 changes: 7 additions & 1 deletion prebuilt/common/prebuilt.mk
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@

# Prebuilt Packages
PRODUCT_PACKAGES += \
Turbo
Turbo \
WeatherProvider

# Permissions
PRODUCT_COPY_FILES += \
Expand All @@ -23,3 +24,8 @@ PRODUCT_COPY_FILES += \
# Sysconfig
PRODUCT_COPY_FILES += \
vendor/liquid/prebuilt/common/etc/sysconfig/turbo.xml:system/etc/sysconfig/turbo.xml

# WeatherProvider
PRODUCT_COPY_FILES += \
vendor/liquid/prebuilt/common/etc/permissions/com.android.providers.weather.xml:system/etc/permissions/com.android.providers.weather.xml \
vendor/liquid/prebuilt/common/etc/default-permissions/com.android.providers.weather.xml:system/etc/default-permissions/com.android.providers.weather.xml
11 changes: 11 additions & 0 deletions themes/Fonts/Android.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)

LOCAL_MODULE_TAGS := optional

LOCAL_PACKAGE_NAME := Liquid-Fonts
LOCAL_SDK_VERSION := current
LOCAL_CERTIFICATE := platform
LOCAL_PRIVILEGED_MODULE := false

include $(BUILD_PACKAGE)
8 changes: 8 additions & 0 deletions themes/Fonts/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.liquid.fonts">

<application android:label="@string/app_name"
android:icon="@mipmap/ic_launcher"
android:hasCode="false"/>

</manifest>
Binary file added themes/Fonts/assets/fonts/Alpaca.zip
Binary file not shown.
Binary file added themes/Fonts/assets/fonts/Amarante.zip
Binary file not shown.
Binary file added themes/Fonts/assets/fonts/Anaheim.zip
Binary file not shown.
Binary file added themes/Fonts/assets/fonts/Asap.zip
Binary file not shown.
Binary file added themes/Fonts/assets/fonts/Assassin.zip
Binary file not shown.
Binary file added themes/Fonts/assets/fonts/Atma.zip
Binary file not shown.
Binary file added themes/Fonts/assets/fonts/Audiowide.zip
Binary file not shown.
Binary file added themes/Fonts/assets/fonts/Bariol.zip
Binary file not shown.
Binary file added themes/Fonts/assets/fonts/Big_River_Script.zip
Binary file not shown.
Binary file added themes/Fonts/assets/fonts/Cagliostro.zip
Binary file not shown.
Binary file added themes/Fonts/assets/fonts/Calibri.zip
Binary file not shown.
Binary file added themes/Fonts/assets/fonts/Caviar_Dreams.zip
Binary file not shown.
Binary file added themes/Fonts/assets/fonts/Chinacat.zip
Binary file not shown.
Binary file added themes/Fonts/assets/fonts/Chococooky.zip
Binary file not shown.
Binary file added themes/Fonts/assets/fonts/Chromia.zip
Binary file not shown.
Binary file added themes/Fonts/assets/fonts/Circular_Std.zip
Binary file not shown.
Binary file added themes/Fonts/assets/fonts/Clear_Sans.zip
Binary file not shown.
Binary file added themes/Fonts/assets/fonts/Cocon.zip
Binary file not shown.
Binary file added themes/Fonts/assets/fonts/Comfortaa.zip
Binary file not shown.
Binary file added themes/Fonts/assets/fonts/Comic_Sans.zip
Binary file not shown.
Binary file added themes/Fonts/assets/fonts/Comicneuesansid.zip
Binary file not shown.
Binary file added themes/Fonts/assets/fonts/Coolstory.zip
Binary file not shown.
Binary file added themes/Fonts/assets/fonts/Exo_2.zip
Binary file not shown.
Binary file added themes/Fonts/assets/fonts/Filth_Of_Icarus.zip
Binary file not shown.
Binary file added themes/Fonts/assets/fonts/Fira_Sans.zip
Binary file not shown.
Binary file added themes/Fonts/assets/fonts/FoxAndCat.zip
Binary file not shown.
Binary file added themes/Fonts/assets/fonts/GinoraSans.zip
Binary file not shown.
Binary file added themes/Fonts/assets/fonts/Gotham_Nights.zip
Binary file not shown.
Binary file added themes/Fonts/assets/fonts/HYCoffee.zip
Binary file not shown.
Binary file added themes/Fonts/assets/fonts/HappyTime.zip
Binary file not shown.
Binary file added themes/Fonts/assets/fonts/Helvetica_Neue.zip
Binary file not shown.
Binary file added themes/Fonts/assets/fonts/I_Hate_Comic_Sans.zip
Binary file not shown.
Binary file added themes/Fonts/assets/fonts/Imaki.zip
Binary file not shown.
Binary file added themes/Fonts/assets/fonts/Inkferno.zip
Binary file not shown.
Binary file added themes/Fonts/assets/fonts/Kenyan_Coffee.zip
Binary file not shown.
Binary file added themes/Fonts/assets/fonts/LG_Smart_Gothic.zip
Binary file not shown.
Binary file added themes/Fonts/assets/fonts/Liberation_Serif.zip
Binary file not shown.
Binary file added themes/Fonts/assets/fonts/Lovelyn.zip
Binary file not shown.
Binary file added themes/Fonts/assets/fonts/Malgun_Gothic.zip
Binary file not shown.
Binary file added themes/Fonts/assets/fonts/NK57.zip
Binary file not shown.
Binary file added themes/Fonts/assets/fonts/Neoneon.zip
Binary file not shown.
Binary file added themes/Fonts/assets/fonts/Noir.zip
Binary file not shown.
Binary file added themes/Fonts/assets/fonts/Nokia_Pure.zip
Binary file not shown.
Binary file added themes/Fonts/assets/fonts/Nunito.zip
Binary file not shown.
Binary file added themes/Fonts/assets/fonts/Ohd5.zip
Binary file not shown.
Binary file added themes/Fonts/assets/fonts/Poppins.zip
Binary file not shown.
Binary file added themes/Fonts/assets/fonts/Qontra.zip
Binary file not shown.
Binary file added themes/Fonts/assets/fonts/Quick.zip
Binary file not shown.
Binary file added themes/Fonts/assets/fonts/Quicksand.zip
Binary file not shown.
Binary file added themes/Fonts/assets/fonts/Roboto.zip
Binary file not shown.
Binary file added themes/Fonts/assets/fonts/Rosemary.zip
Binary file not shown.
Binary file added themes/Fonts/assets/fonts/Rosemary_Roman.zip
Binary file not shown.
Binary file added themes/Fonts/assets/fonts/Rounded_Elegance.zip
Binary file not shown.
Binary file added themes/Fonts/assets/fonts/Samarkan.zip
Binary file not shown.
Binary file added themes/Fonts/assets/fonts/SamsungOne.zip
Binary file not shown.
Binary file added themes/Fonts/assets/fonts/San_Francisco_Pro.zip
Binary file not shown.
Binary file added themes/Fonts/assets/fonts/Sertig.zip
Binary file not shown.
Binary file added themes/Fonts/assets/fonts/SlateFromOnePlus.zip
Binary file not shown.
Binary file added themes/Fonts/assets/fonts/Sony_Sketch.zip
Binary file not shown.
Binary file added themes/Fonts/assets/fonts/Squared.zip
Binary file not shown.
Binary file added themes/Fonts/assets/fonts/Storopia.zip
Binary file not shown.
Binary file added themes/Fonts/assets/fonts/Techno_At_Dusk.zip
Binary file not shown.
Binary file added themes/Fonts/assets/fonts/Timeless.zip
Binary file not shown.
Binary file added themes/Fonts/assets/fonts/Titillium_Web.zip
Binary file not shown.
Binary file added themes/Fonts/assets/fonts/Typography.zip
Binary file not shown.
Binary file added themes/Fonts/assets/fonts/Ubuntu.zip
Binary file not shown.
Binary file added themes/Fonts/assets/fonts/Unicorn.zip
Binary file not shown.
Binary file added themes/Fonts/assets/fonts/Voces.zip
Binary file not shown.
Binary file added themes/Fonts/assets/fonts/Walkway.zip
Binary file not shown.
Binary file added themes/Fonts/assets/fonts/Xolonium.zip
Binary file not shown.
Binary file added themes/Fonts/assets/fonts/Xperia_Z3.zip
Binary file not shown.
Binary file added themes/Fonts/res/mipmap-hdpi/ic_launcher.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added themes/Fonts/res/mipmap-mdpi/ic_launcher.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added themes/Fonts/res/mipmap-xhdpi/ic_launcher.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added themes/Fonts/res/mipmap-xxhdpi/ic_launcher.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added themes/Fonts/res/mipmap-xxxhdpi/ic_launcher.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions themes/Fonts/res/values/bools.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
/**
* Copyright (c) 2017, The Android Open Source 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.
*/
-->
<resources>

<bool name="custom_rom_font_provider">true</bool>

</resources>
23 changes: 23 additions & 0 deletions themes/Fonts/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
/**
* Copyright (c) 2017, The Android Open Source 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.
*/
-->
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">

<string name="app_name">Liquid Fonts</string>

</resources>
15 changes: 13 additions & 2 deletions tools/changelog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,18 @@

export Changelog=$PWD/Changelog.txt

if [ -f $Changelog ];
if [ -z $CHGLOGDUR ];
then
CHGLOGDUR="10"
fi

if [ $CHGLOGDUR -gt 30 ];
then
echo "Duration greater than 30 is not allowed, resetting to 10"
CHGLOGDUR="10"
fi

if [ -f $Changelog ];
then
rm -f $Changelog
fi
Expand All @@ -11,7 +22,7 @@ touch $Changelog

echo "Generating changelog..."

for i in $(seq 10);
for i in $(seq $CHGLOGDUR);
do
export After_Date=`date --date="$i days ago" +%m-%d-%Y`
k=$(expr $i - 1)
Expand Down