Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- New activity/fragment structure - Use AppCompat as little as possible - Inherit DeviceDefault settings theme by default - Theme setting - Added back color picker preference - Added back SeekBarPreferenceCham - Add back stats, this time without GoogleAnalytics - Add back changelog - Introduce adaptive icon - Add SystemSettingsStore To make any preference a SystemSettingsPreference, call myWhateverPreference.setPreferenceDataStore(new SystemSettingsStore(context.getContentResolver())); - Added new SystemSettingsSwitchPreference that uses the new SystemSettingsStore - Add Util.requireRoot() to remove preferences when no su found Util.requireRoot(myPreference) after initialization to hide the preference on devices without su - Add back AICP log it - AICP log it share zip workaround: temporarily disable death on file uri exposure - Add back SELinux switch, make reading current state work rootless, also show toast when switching to enforcing on devices that are permissive by default and when su was denied - Add back custom bootanimation - Add own AnimationDrawable subclass so we don't need frameworks modifications anymore - Create backup dir in case it doesn't already exist - Add back system app remover Use mount options rw,remount instead of remount,rw to fix error "Device or resource busy" - Add back launcher shortcuts, change color to amber & get it from color resources - Add back restart systemui utils - Rewrite them to use classes directly, we're system app! PS2: - Update dashboard logo PS3: - Fix light theme -> dark theme switch keeping icons suited for light statusbar themes only PS4: - Fix SELinux preference in wrong sharedPreferences - Fix double-tapping SELinux switch before denying SU leading to wrong checked status PS5: - Make it a privileged app again Change-Id: Idd6e924ce2399dae9c02b8107c43e9e767bc8a0f
- Loading branch information
1 parent
83bb111
commit 75b568b
Showing
341 changed files
with
4,597 additions
and
34,373 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,66 +1,59 @@ | ||
# Copyright (C) 2015 The Android Open Source Project | ||
# | ||
# Copyright (C) 2015 The Pure Nexus 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 | ||
# | ||
# 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 | ||
# | ||
# 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. | ||
|
||
# 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:= $(call my-dir) | ||
|
||
include $(CLEAR_VARS) | ||
|
||
LOCAL_MODULE_TAGS := optional | ||
|
||
#Include res dir from libraries | ||
appcompat_dir := ../../../$(SUPPORT_LIBRARY_ROOT)/v7/appcompat/res | ||
cardview_dir := ../../../$(SUPPORT_LIBRARY_ROOT)/v7/cardview/res | ||
recyclerview_dir := ../../../$(SUPPORT_LIBRARY_ROOT)/v7/recyclerview/res | ||
design_dir := ../../../$(SUPPORT_LIBRARY_ROOT)/design/res | ||
LOCAL_PROGUARD_ENABLED := disabled | ||
|
||
res_dirs := res $(appcompat_dir) $(cardview_dir) $(recyclerview_dir) $(design_dir) | ||
LOCAL_SRC_FILES := $(call all-java-files-under, src) | ||
|
||
LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res | ||
LOCAL_RESOURCE_DIR += $(SUPPORT_LIBRARY_ROOT)/v7/appcompat/res | ||
LOCAL_RESOURCE_DIR += $(SUPPORT_LIBRARY_ROOT)/v7/cardview/res | ||
LOCAL_RESOURCE_DIR += $(SUPPORT_LIBRARY_ROOT)/v7/recyclerview/res | ||
LOCAL_RESOURCE_DIR += $(SUPPORT_LIBRARY_ROOT)/design/res | ||
|
||
################################################## | ||
# Build APK | ||
include $(CLEAR_VARS) | ||
LOCAL_ASSET_DIR := $(LOCAL_PATH)/assets | ||
|
||
LOCAL_PACKAGE_NAME := AicpExtras | ||
LOCAL_CERTIFICATE := platform | ||
LOCAL_PRIVILEGED_MODULE := true | ||
LOCAL_PROGUARD_ENABLED := disabled | ||
|
||
LOCAL_STATIC_JAVA_LIBRARIES := \ | ||
android-support-v4 \ | ||
android-support-v7-appcompat \ | ||
android-support-v7-recyclerview \ | ||
android-support-v7-cardview \ | ||
android-support-v13 \ | ||
android-support-design \ | ||
libsuperuser \ | ||
play \ | ||
org.cyanogenmod.platform.internal \ | ||
particles | ||
|
||
LOCAL_JAVA_LIBRARIES := org.cyanogenmod.hardware | ||
LOCAL_STATIC_JAVA_LIBRARIES := particles | ||
LOCAL_STATIC_JAVA_LIBRARIES += android-support-v4 | ||
LOCAL_STATIC_JAVA_LIBRARIES += android-support-v7-appcompat | ||
LOCAL_STATIC_JAVA_LIBRARIES += android-support-v7-cardview | ||
LOCAL_STATIC_JAVA_LIBRARIES += android-support-v7-recyclerview | ||
LOCAL_STATIC_JAVA_LIBRARIES += android-support-design | ||
|
||
# Apache http for stats | ||
LOCAL_JAVA_LIBRARIES := org.apache.http.legacy | ||
|
||
LOCAL_SRC_FILES := $(call all-java-files-under, src) | ||
LOCAL_RESOURCE_DIR := $(addprefix $(LOCAL_PATH)/, $(res_dirs)) | ||
LOCAL_AAPT_FLAGS := --auto-add-overlay | ||
LOCAL_AAPT_FLAGS += --extra-packages android.support.v7.appcompat:android.support.v7.cardview:android.support.v7.recyclerview:android.support.design | ||
|
||
LOCAL_PACKAGE_NAME := AicpExtras | ||
|
||
LOCAL_CERTIFICATE := platform | ||
LOCAL_PRIVILEGED_MODULE := true | ||
|
||
include $(BUILD_PACKAGE) | ||
|
||
include $(CLEAR_VARS) | ||
|
||
LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := libsuperuser:lib/libsuperuser.jar \ | ||
particles:lib/LeonidsLib-1.3.2.jar | ||
LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := particles:lib/LeonidsLib-1.3.2.jar | ||
|
||
include $(BUILD_MULTI_PREBUILT) | ||
|
||
include $(call all-makefiles-under, $(LOCAL_PATH)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Diff not rendered.
Diff not rendered.
Oops, something went wrong.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Oops, something went wrong.