forked from LiquidRemix/android_frameworks_base
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change-Id: I8c9f331ca7e4c68c35ea13bed587775ee4abeb30 Signed-off-by: Ivan Iskandar <ivan@prjkt.io> Signed-off-by: Nicholas Chum <nicholas@prjkt.io> Signed-off-by: Harsh Shandilya <harsh@prjkt.io> Signed-off-by: VenkatVishalV <venkatvishal124@gmail.com>
- Loading branch information
1 parent
8ec1689
commit 5251d7b
Showing
18 changed files
with
1,864 additions
and
2 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
144 changes: 144 additions & 0 deletions
144
core/java/android/content/substratum/ISubstratumService.aidl
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 |
---|---|---|
@@ -0,0 +1,144 @@ | ||
/* | ||
* Copyright (C) 2018 Projekt Substratum | ||
* | ||
* 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. | ||
*/ | ||
|
||
package android.content.substratum; | ||
|
||
interface ISubstratumService { | ||
|
||
/** | ||
* Install a list of specified overlay packages | ||
* | ||
* @param paths Filled in with a list of path names for packages to be installed from. | ||
*/ | ||
void installOverlay(in List<String> paths); | ||
|
||
/** | ||
* Uninstall a list of specified overlay packages | ||
* | ||
* @param packages Filled in with a list of path names for packages to be installed from. | ||
* @param restartUi Flag to automatically restart the SystemUI. | ||
*/ | ||
void uninstallOverlay(in List<String> packages, boolean restartUi); | ||
|
||
/** | ||
* Switch the state of specified overlay packages | ||
* | ||
* @param packages Filled in with a list of package names to be switched. | ||
* @param enable Whether to enable the specified overlays. | ||
* @param restartUi Flag to automatically restart the SystemUI. | ||
*/ | ||
void switchOverlay(in List<String> packages, boolean enable, boolean restartUi); | ||
|
||
/** | ||
* Change the priority of a specified list of overlays | ||
* | ||
* @param packages Filled in with a list of package names to be reordered. | ||
* @param restartUi Flag to automatically restart the SystemUI. | ||
*/ | ||
void setPriority(in List<String> packages, boolean restartUi); | ||
|
||
/** | ||
* Restart SystemUI | ||
*/ | ||
void restartSystemUI(); | ||
|
||
/** | ||
* Copy Method | ||
* | ||
* @param source Path of the source file. | ||
* @param destination Path of the source file to be copied to. | ||
*/ | ||
void copy(String source, String destination); | ||
|
||
/** | ||
* Move Method | ||
* | ||
* @param source Path of the source file. | ||
* @param destination Path of the source file to be moved to. | ||
*/ | ||
void move(String source, String destination); | ||
|
||
/** | ||
* Create Directory Method | ||
* | ||
* @param destination Path of the created destination folder. | ||
*/ | ||
void mkdir(String destination); | ||
|
||
/** | ||
* Delete Directory Method | ||
* | ||
* @param destination Path of the directory to be deleted. | ||
* @param withParent Flag to automatically delete the folder encompassing the folder. | ||
*/ | ||
void deleteDirectory(String directory, boolean withParent); | ||
|
||
/** | ||
* Apply a specified bootanimation | ||
* | ||
* @param name Path to extract the bootanimation archive from. | ||
*/ | ||
void applyBootanimation(String name); | ||
|
||
/** | ||
* Apply a specified font pack | ||
* | ||
* @param name Path to extract the font archive from. | ||
*/ | ||
void applyFonts(String pid, String fileName); | ||
|
||
/** | ||
* Apply a specified sound pack | ||
* | ||
* @param name Path to extract the sounds archive from. | ||
*/ | ||
void applySounds(String pid, String fileName); | ||
|
||
/** | ||
* Profile Applicator | ||
* | ||
* @param enable Filled in with a list of package names to be enabled. | ||
* @param disable Filled in with a list of package names to be disabled. | ||
* @param name Name of the profile to be applied. | ||
* @param restartUi Flag to automatically restart the SystemUI. | ||
*/ | ||
void applyProfile(in List<String> enable, in List<String> disable, String name, | ||
boolean restartUi); | ||
|
||
/** | ||
* Apply a specified shutdownanimation | ||
* | ||
* @param name Path to extract the shutdown archive from. | ||
* Use null to clear applied custom shutdown | ||
*/ | ||
void applyShutdownAnimation(String name); | ||
|
||
/** | ||
* Returns information about all installed overlay packages for the | ||
* specified user. If there are no installed overlay packages for this user, | ||
* an empty map is returned (i.e. null is never returned). The returned map is a | ||
* mapping of target package names to lists of overlays. Each list for a | ||
* given target package is sorted in priority order, with the overlay with | ||
* the highest priority at the end of the list. | ||
* | ||
* @param uid The user to get the OverlayInfos for. | ||
* @return A Map<String, List<OverlayInfo>> with target package names | ||
* mapped to lists of overlays; if no overlays exist for the | ||
* requested user, an empty map is returned. | ||
*/ | ||
Map getAllOverlays(in int uid); | ||
} | ||
|
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
23 changes: 23 additions & 0 deletions
23
core/java/com/android/internal/substratum/ISubstratumHelperService.aidl
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/* | ||
* Copyright (C) 2018 Projekt Substratum | ||
* | ||
* 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. | ||
*/ | ||
|
||
package com.android.internal.substratum; | ||
|
||
oneway interface ISubstratumHelperService { | ||
void applyBootAnimation(); | ||
void applyShutdownAnimation(); | ||
void applyProfile(in String name); | ||
} |
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
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
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- | ||
Copyright (c) 2018 Project Substratum | ||
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. | ||
--> | ||
|
||
<permissions> | ||
<!-- Limitation permission to block out themes from being visible on stock | ||
AOSP, or non-OMS devices. --> | ||
|
||
<!-- This is an alias for projekt.substratum.theme --> | ||
<feature name="projekt.substratum.theme" /> | ||
|
||
</permissions> |
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
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# | ||
# Copyright (C) 2018 Projekt Substratum | ||
# | ||
# 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 := $(call my-dir) | ||
include $(CLEAR_VARS) | ||
|
||
LOCAL_MODULE_TAGS := optional | ||
|
||
LOCAL_SRC_FILES := $(call all-java-files-under, src) | ||
LOCAL_PROGUARD_ENABLED := disabled | ||
LOCAL_REQUIRED_MODULES := projekt.substratum.theme.xml | ||
LOCAL_PACKAGE_NAME := SubstratumService | ||
LOCAL_PRIVATE_PLATFORM_APIS := true | ||
LOCAL_CERTIFICATE := platform | ||
LOCAL_PRIVILEGED_MODULE := true | ||
|
||
include $(BUILD_PACKAGE) | ||
|
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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- | ||
/* | ||
* Copyright (c) 2018 Projekt Substratum | ||
* | ||
* 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. | ||
*/ | ||
--> | ||
|
||
|
||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
package="android.substratum.service" | ||
android:sharedUserId="android.uid.system" | ||
android:versionCode="1" | ||
android:versionName="one" > | ||
|
||
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/> | ||
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> | ||
|
||
<application | ||
android:allowBackup="false" | ||
android:label="Substratum Service"> | ||
|
||
<service android:name="android.substratum.service.SubstratumHelperService" | ||
android:enabled="true" | ||
android:exported="true"> | ||
<intent-filter> | ||
<action android:name="android.substratum.service.SubstratumHelperService" /> | ||
</intent-filter> | ||
</service> | ||
|
||
</application> | ||
|
||
</manifest> |
Oops, something went wrong.