pa: Initial 8.0 bringup
- Update version number - Cleanup sepolicy, remove theming support - Initial pass at overlays - Remove pa-services for now Change-Id: I933a9fadc9d81da9454c5e369e841fcc22629932 Signed-off-by: Alex Naidis <alex.naidis@linux.com>
This commit is contained in:
parent
807dd61042
commit
2637516bfb
10
main.mk
10
main.mk
|
@ -16,7 +16,7 @@ export VENDOR := pa
|
|||
|
||||
# Include versioning information
|
||||
# Format: Major.minor.maintenance(-TAG)
|
||||
export PA_VERSION := 7.3.1-EOL
|
||||
export PA_VERSION := 8.0.0-DEV
|
||||
|
||||
export ROM_VERSION := $(PA_VERSION)-$(shell date -u +%Y%m%d)
|
||||
PRODUCT_PROPERTY_OVERRIDES += \
|
||||
|
@ -148,11 +148,6 @@ else
|
|||
ADDITIONAL_DEFAULT_PROPERTIES += ro.adb.secure=0
|
||||
endif
|
||||
|
||||
# AOSPA services
|
||||
PRODUCT_PACKAGES += pa-services
|
||||
PRODUCT_PACKAGES += co.aospa.power.ShutdownAOSPA.xml
|
||||
PRODUCT_BOOT_JARS += pa-services
|
||||
|
||||
# TCP Connection Management
|
||||
PRODUCT_PACKAGES += tcmiface
|
||||
PRODUCT_BOOT_JARS += tcmiface
|
||||
|
@ -171,9 +166,6 @@ PRODUCT_PACKAGES += \
|
|||
# Bluetooth Audio (A2DP)
|
||||
PRODUCT_PACKAGES += libbthost_if
|
||||
|
||||
# Substratum
|
||||
PRODUCT_PACKAGES += ThemeInterfacer
|
||||
|
||||
# Include vendor SEPolicy changes
|
||||
include vendor/pa/sepolicy/sepolicy.mk
|
||||
|
||||
|
|
|
@ -20,9 +20,6 @@
|
|||
<!-- These resources are around just to allow their values to be customized -->
|
||||
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
|
||||
|
||||
<!-- When true, show charging animation -->
|
||||
<bool name="config_show_battery_charging_anim">false</bool>
|
||||
|
||||
<!-- The duration in seconds to wait before the dismiss buttons are shown. -->
|
||||
<integer name="recents_task_bar_dismiss_delay_seconds">0</integer>
|
||||
|
||||
|
@ -36,4 +33,7 @@
|
|||
If < 0, uses the value from HardwarePropertiesManager#getDeviceTemperatures. -->
|
||||
<integer name="config_warningTemperature">55</integer>
|
||||
|
||||
<!-- config for showing AM/PM in 12hour format -->
|
||||
<bool name="config_showAmpm">false</bool>
|
||||
|
||||
</resources>
|
||||
|
|
|
@ -1,37 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
/* Copyright (c) 2016, The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are
|
||||
* met:
|
||||
* * Redistributions of source code must retain the above copyright
|
||||
* notice, this list of conditions and the following disclaimer.
|
||||
* * Redistributions in binary form must reproduce the above
|
||||
* copyright notice, this list of conditions and the following
|
||||
* disclaimer in the documentation and/or other materials provided
|
||||
* with the distribution.
|
||||
* * Neither the name of The Linux Foundation nor the names of its
|
||||
* contributors may be used to endorse or promote products derived
|
||||
* from this software without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
|
||||
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
|
||||
* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
|
||||
* BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
||||
* OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
|
||||
* IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
*/
|
||||
-->
|
||||
<resources>
|
||||
|
||||
<!--not display SIP dial icon -->
|
||||
<bool name="config_hide_SIP_dial_icon">true</bool>
|
||||
|
||||
</resources>
|
|
@ -18,7 +18,4 @@
|
|||
<!-- If the Storage Manager settings are enabled. -->
|
||||
<bool name="config_storage_manager_settings_enabled">true</bool>
|
||||
|
||||
<!-- Whether to enable StorageCleaner Settings -->
|
||||
<bool name="enable_storage_cleanup">false</bool>
|
||||
|
||||
</resources>
|
||||
|
|
|
@ -1,36 +0,0 @@
|
|||
LOCAL_PATH := $(call my-dir)
|
||||
|
||||
# Java Library
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_SRC_FILES := $(call all-subdir-java-files)
|
||||
|
||||
LOCAL_MODULE := pa-services
|
||||
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
|
||||
LOCAL_NO_STANDARD_LIBRARIES := true
|
||||
|
||||
LOCAL_JAVA_LIBRARIES := core-oj core-libart framework
|
||||
|
||||
LOCAL_OVERRIDES_PACKAGES := oem-services
|
||||
|
||||
LOCAL_MODULE_OWNER := pa
|
||||
LOCAL_PROGUARD_ENABLED := disabled
|
||||
|
||||
include $(BUILD_JAVA_LIBRARY)
|
||||
|
||||
# Permissions file
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_MODULE := co.aospa.power.ShutdownAOSPA.xml
|
||||
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
|
||||
LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)/permissions
|
||||
|
||||
LOCAL_SRC_FILES := $(LOCAL_MODULE)
|
||||
|
||||
include $(BUILD_PREBUILT)
|
|
@ -1,8 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (c) 2016-2017 Paranoid Android -->
|
||||
|
||||
<!-- This is the library that allows framework to call the shutdown hook -->
|
||||
<permissions>
|
||||
<library name="co.aospa.power.ShutdownAOSPA"
|
||||
file="/system/framework/pa-services.jar" />
|
||||
</permissions>
|
|
@ -1,25 +0,0 @@
|
|||
/*
|
||||
* Copyright (C) 2016-2017 Paranoid Android
|
||||
*
|
||||
*/
|
||||
|
||||
package co.aospa.power;
|
||||
|
||||
import android.util.Log;
|
||||
|
||||
public final class ShutdownAOSPA {
|
||||
private static final String TAG = "AOSPAShutdown";
|
||||
|
||||
public void rebootOrShutdown(boolean isreboot, String rebootreason) {
|
||||
Log.i(TAG, "Triggered!");
|
||||
try {
|
||||
if (com.qti.server.power.SubSystemShutdown.shutdown() != 0) {
|
||||
Log.e(TAG, "Failed to shutdown modem.");
|
||||
} else {
|
||||
Log.i(TAG, "Modem shutdown successful.");
|
||||
}
|
||||
} catch (Exception e) {
|
||||
Log.w(TAG, "Couldn't execute modem shutdown. Skipping...");
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,22 +0,0 @@
|
|||
/*
|
||||
* Copyright (C) 2016-2017 Paranoid Android
|
||||
*
|
||||
*/
|
||||
|
||||
package com.qti.server.power;
|
||||
|
||||
public final class SubSystemShutdown {
|
||||
private static final String TAG = "SubSystemShutdown";
|
||||
|
||||
static {
|
||||
|
||||
try {
|
||||
// Call into the Qualcomm SubSystemShutdown Library
|
||||
System.loadLibrary(TAG);
|
||||
} catch (UnsatisfiedLinkError e) {
|
||||
System.err.println("Failed to load Qualcomm SubSystemShutdown library\n" + e);
|
||||
}
|
||||
|
||||
}
|
||||
public static native int shutdown();
|
||||
}
|
|
@ -1,3 +0,0 @@
|
|||
# Themed resources (i.e. composed icons)
|
||||
allow appdomain theme_data_file:dir r_dir_perms;
|
||||
allow appdomain theme_data_file:file r_file_perms;
|
|
@ -1,4 +0,0 @@
|
|||
# Themed resources (bootanimation)
|
||||
allow bootanim theme_data_file:dir search;
|
||||
allow bootanim theme_data_file:file r_file_perms;
|
||||
allow bootanim system_data_file:file open;
|
|
@ -1,3 +0,0 @@
|
|||
# Themed resources (i.e. composed icons)
|
||||
allow drmserver theme_data_file:dir r_dir_perms;
|
||||
allow drmserver theme_data_file:file r_file_perms;
|
|
@ -1,5 +1,2 @@
|
|||
# Themes
|
||||
type theme_data_file, file_type, data_file_type;
|
||||
|
||||
# Pocket judge
|
||||
type pocket_judge_sysfs, fs_type, sysfs_type;
|
||||
|
|
|
@ -7,8 +7,5 @@
|
|||
/system/bin/fsck\.ntfs u:object_r:fsck_exec:s0
|
||||
/system/bin/fsck\.exfat u:object_r:fsck_exec:s0
|
||||
|
||||
# Themes
|
||||
/data/system/theme(/.*)? u:object_r:theme_data_file:s0
|
||||
|
||||
# Pocket judge
|
||||
/sys/kernel/pocket_judge(/.*)? u:object_r:pocket_judge_sysfs:s0
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
# allow /data/data/ theme attributes for theme_data explicitly without macros
|
||||
allow installd theme_data_file:dir { add_name getattr read relabelto remove_name setattr write open search };
|
||||
allow installd theme_data_file:lnk_file { create getattr unlink };
|
|
@ -1,3 +0,0 @@
|
|||
# Themed resources (i.e. composed icons)
|
||||
allow mediaserver theme_data_file:dir r_dir_perms;
|
||||
allow mediaserver theme_data_file:file r_file_perms;
|
|
@ -1 +0,0 @@
|
|||
allow priv_app system_app_data_file:file rw_file_perms;
|
|
@ -1,4 +1,2 @@
|
|||
type edgegesture_service, system_api_service, system_server_service, service_manager_type;
|
||||
type overlay_service, app_api_service, system_server_service, service_manager_type;
|
||||
type theme_service, system_api_service, system_server_service, service_manager_type;
|
||||
type pocket_service, system_api_service, system_server_service, service_manager_type;
|
||||
|
|
|
@ -1,4 +1,2 @@
|
|||
edgegestureservice u:object_r:edgegesture_service:s0
|
||||
overlay u:object_r:overlay_service:s0
|
||||
theme u:object_r:theme_service:s0
|
||||
pocket u:object_r:pocket_service:s0
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
# Themes
|
||||
allow system_app theme_data_file:dir create_dir_perms;
|
||||
allow system_app theme_data_file:file create_file_perms;
|
|
@ -1,15 +1,10 @@
|
|||
allow system_server edgegesture_service:service_manager { add find };
|
||||
allow system_server theme_service:service_manager { add find };
|
||||
allow system_server pocket_service:service_manager { add find };
|
||||
|
||||
allow system_server media_rw_data_file:dir r_dir_perms;
|
||||
|
||||
allow system_server overlay_service:service_manager find;
|
||||
|
||||
allow system_server proc:file w_file_perms;
|
||||
|
||||
allow system_server theme_data_file:dir search;
|
||||
|
||||
allow system_server user_profile_data_file:dir r_dir_perms;
|
||||
|
||||
allow system_server pocket_judge_sysfs:dir search;
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
allow untrusted_app theme_service:service_manager find;
|
|
@ -1,5 +1 @@
|
|||
allow zygote self:capability sys_nice;
|
||||
|
||||
# Themes
|
||||
allow zygote theme_data_file:file r_file_perms;
|
||||
allow zygote theme_data_file:dir r_dir_perms;
|
||||
|
|
Loading…
Reference in New Issue