Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
b06c317
Revert "OMS: handle target or overlay package disabled"
sayan7848 Mar 22, 2019
9bb3934
Revert "OMS: try harder not to update assets if nothing changed"
sayan7848 Mar 22, 2019
382b162
Revert "SubstratumService: Rewrite installation method for Pie Instal…
sayan7848 Mar 22, 2019
cc1d664
Revert "Unbreak public api by hiding substratum interfaces"
sayan7848 Mar 22, 2019
e2363fb
Revert "Pie OMS: allow non-system overlays from Substratum"
sayan7848 Mar 22, 2019
3677332
Revert "SubstratumService: Refactor & cleanup according to AOSP conve…
sayan7848 Mar 22, 2019
996c900
Revert "base: modify/define custom overlay management"
sayan7848 Mar 22, 2019
3a5de74
Revert "SubstratumService: unify permissions"
sayan7848 Mar 22, 2019
e42d002
Revert "SubstratumService: allow CHANGE_OVERLAY_PACKAGES permission"
sayan7848 Mar 22, 2019
0cfd235
Revert "base: Introduce SubstratumService"
sayan7848 Mar 22, 2019
3198cca
Revert "OMS: StrictMode and files under /data/system/theme/"
sayan7848 Mar 22, 2019
15cc82b
Revert "Hold "volume up" during boot to disable all overlays"
sayan7848 Mar 22, 2019
a443014
Revert "ThemeSafety: Introduce App Crash Intent"
sayan7848 Mar 22, 2019
c4461a4
Revert "ApplicationsState: add filter for Substratum overlays [2/2]"
sayan7848 Mar 22, 2019
1830806
Revert "Extras: Add dynamic theme sound effects support"
sayan7848 Mar 22, 2019
4f9e436
Revert "Extras: Add dynamic theme shutdown and boot animation support"
sayan7848 Mar 22, 2019
baa92a5
SystemUI: update SoundTile
eyosen Feb 26, 2019
1cd79ab
base: SystemUI: tuner: keyguard battery percent on charging
maxwen Feb 5, 2019
51192f9
base: SystemUI: tuner: keyguard show charging watt
maxwen Feb 12, 2019
b7f4366
base: SystemUI: keyguard battery bar in aod on charging
maxwen Feb 13, 2019
cd687f8
Tuner : Keep the additional settings disabled by default
sayan7848 Feb 17, 2019
6b0f100
Remove duplicate string declarations
sayan7848 Mar 22, 2019
58cf0a7
Make SystemUI Tuner appear in Settings>System
sayan7848 Mar 22, 2019
094627b
Make power menu items follow accent
sayan7848 Mar 22, 2019
5f5499f
base: Actually fix the padding on StatusBar
eldainosor Aug 23, 2018
5a1fc98
Revert "Make SystemUI Tuner appear in Settings>System"
sayan7848 Mar 23, 2019
112c46c
Remove non-existent preference from tuner
sayan7848 Mar 23, 2019
045fee4
Tuner : Add it to Settings>System
sayan7848 Mar 23, 2019
4583d85
Revert "base: SystemUI: tuner: keyguard battery percent on charging"
sayan7848 Apr 13, 2019
5eabc9d
Keep battery-bar on ambient disabled by default [Test]
sayan7848 Mar 28, 2019
28f82a4
Doze: Set Always On Display to off by default
sayan7848 Apr 13, 2019
cb16e8b
Tuner : Disable AOD by default
sayan7848 Apr 13, 2019
3b775a5
Match screenshot icon with accent
sayan7848 Apr 13, 2019
741db33
Revert "FOD: dont show FP icons if FOD is in use"
sayan7848 May 10, 2019
f5beed0
Revert "fod: prevent reapplying modes if theres no changes"
sayan7848 May 10, 2019
9c7af8c
Revert "fod: differentiate dreaming and pulse"
sayan7848 May 10, 2019
16705bd
Revert "Initial support for OnePlus in-display fingerprint sensor"
sayan7848 May 10, 2019
8ef9e84
Avoid a rogue SystemUI crash
sayan7848 Oct 3, 2019
c8e8066
Fix Layout.primaryIsTrailingPreviousAllLineOffsets
mihaipopa12 Jun 25, 2019
0a43e32
HidProfile: sync isPreferred() with HidHostService
Jul 9, 2019
26facb3
Correct argument order in permission check
Jun 27, 2019
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
2 changes: 0 additions & 2 deletions Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ java_library {
"core/java/android/content/pm/dex/IArtManager.aidl",
"core/java/android/content/pm/dex/ISnapshotRuntimeProfileCallback.aidl",
"core/java/android/content/pm/permission/IRuntimePermissionPresenter.aidl",
"core/java/android/content/substratum/ISubstratumService.aidl",
"core/java/android/database/IContentObserver.aidl",
":libcamera_client_aidl",
":libcamera_client_framework_aidl",
Expand Down Expand Up @@ -394,7 +393,6 @@ java_library {
"core/java/com/android/internal/os/IShellCallback.aidl",
"core/java/com/android/internal/statusbar/IStatusBar.aidl",
"core/java/com/android/internal/statusbar/IStatusBarService.aidl",
"core/java/com/android/internal/substratum/ISubstratumHelperService.aidl",
"core/java/com/android/internal/textservice/ISpellCheckerService.aidl",
"core/java/com/android/internal/textservice/ISpellCheckerServiceCallback.aidl",
"core/java/com/android/internal/textservice/ISpellCheckerSession.aidl",
Expand Down
6 changes: 2 additions & 4 deletions cmds/bootanimation/BootAnimation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,9 @@ static const char PRODUCT_BOOTANIMATION_FILE[] = "/product/media/bootanimation.z
static const char SYSTEM_BOOTANIMATION_FILE[] = "/system/media/bootanimation.zip";
static const char PRODUCT_ENCRYPTED_BOOTANIMATION_FILE[] = "/product/media/bootanimation-encrypted.zip";
static const char SYSTEM_ENCRYPTED_BOOTANIMATION_FILE[] = "/system/media/bootanimation-encrypted.zip";
static const char THEME_BOOTANIMATION_FILE[] = "/data/system/theme/bootanimation.zip";
static const char OEM_SHUTDOWNANIMATION_FILE[] = "/oem/media/shutdownanimation.zip";
static const char PRODUCT_SHUTDOWNANIMATION_FILE[] = "/product/media/shutdownanimation.zip";
static const char SYSTEM_SHUTDOWNANIMATION_FILE[] = "/system/media/shutdownanimation.zip";
static const char THEME_SHUTDOWNANIMATION_FILE[] = "/data/system/theme/shutdownanimation.zip";

static const char SYSTEM_DATA_DIR_PATH[] = "/data/system";
static const char SYSTEM_TIME_DIR_NAME[] = "time";
Expand Down Expand Up @@ -325,9 +323,9 @@ status_t BootAnimation::readyToRun() {
}
}
static const char* bootFiles[] =
{THEME_BOOTANIMATION_FILE, PRODUCT_BOOTANIMATION_FILE, OEM_BOOTANIMATION_FILE, SYSTEM_BOOTANIMATION_FILE};
{PRODUCT_BOOTANIMATION_FILE, OEM_BOOTANIMATION_FILE, SYSTEM_BOOTANIMATION_FILE};
static const char* shutdownFiles[] =
{THEME_SHUTDOWNANIMATION_FILE, PRODUCT_SHUTDOWNANIMATION_FILE, OEM_SHUTDOWNANIMATION_FILE, SYSTEM_SHUTDOWNANIMATION_FILE};
{PRODUCT_SHUTDOWNANIMATION_FILE, OEM_SHUTDOWNANIMATION_FILE, SYSTEM_SHUTDOWNANIMATION_FILE};

for (const char* f : (!mShuttingDown ? bootFiles : shutdownFiles)) {
if (access(f, R_OK) == 0) {
Expand Down
11 changes: 0 additions & 11 deletions core/java/android/content/om/OverlayInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ public final class OverlayInfo implements Parcelable {
STATE_ENABLED_STATIC,
STATE_TARGET_UPGRADING,
STATE_OVERLAY_UPGRADING,
STATE_OVERLAY_NOT_AVAILABLE,
})
@Retention(RetentionPolicy.SOURCE)
public @interface State {}
Expand Down Expand Up @@ -98,13 +97,6 @@ public final class OverlayInfo implements Parcelable {
*/
public static final int STATE_ENABLED_STATIC = 6;

/**
* The overlay package is currently disabled by the package manager. For
* all intents and purposes, outside the package manager, it is like the
* overlay package simply was not installed.
*/
public static final int STATE_OVERLAY_NOT_AVAILABLE = 7;

/**
* Overlay category: theme.
* <p>
Expand Down Expand Up @@ -215,7 +207,6 @@ private void ensureValidState() {
case STATE_ENABLED_STATIC:
case STATE_TARGET_UPGRADING:
case STATE_OVERLAY_UPGRADING:
case STATE_OVERLAY_NOT_AVAILABLE:
break;
default:
throw new IllegalArgumentException("State " + state + " is not a valid state");
Expand Down Expand Up @@ -294,8 +285,6 @@ public static String stateToString(@State int state) {
return "STATE_TARGET_UPGRADING";
case STATE_OVERLAY_UPGRADING:
return "STATE_OVERLAY_UPGRADING";
case STATE_OVERLAY_NOT_AVAILABLE:
return "STATE_OVERLAY_NOT_AVAILABLE";
default:
return "<unknown state>";
}
Expand Down
170 changes: 0 additions & 170 deletions core/java/android/content/substratum/ISubstratumService.aidl

This file was deleted.

3 changes: 1 addition & 2 deletions core/java/android/net/Uri.java
Original file line number Diff line number Diff line change
Expand Up @@ -2367,8 +2367,7 @@ public Uri getCanonicalUri() {
*/
public void checkFileUriExposed(String location) {
if ("file".equals(getScheme())
&& (getPath() != null) && !(getPath().startsWith("/system/") ||
getPath().startsWith("/data/system/theme/"))) {
&& (getPath() != null) && !getPath().startsWith("/system/")) {
StrictMode.onFileUriExposed(this, location);
}
}
Expand Down
7 changes: 0 additions & 7 deletions core/java/android/provider/Settings.java
Original file line number Diff line number Diff line change
Expand Up @@ -10610,13 +10610,6 @@ public boolean validate(@Nullable String value) {
*/
public static final String AMBIENT_VISUALIZER_ENABLED = "ambient_visualizer";

/**
* Force authorize Substratum (or equivalent) frontend calling packages by ThemeInterfacer
* The value is boolean (1 or 0).
* @hide
*/
public static final String FORCE_AUTHORIZE_SUBSTRATUM_PACKAGES = "force_authorize_substratum_packages";

/**
* Hide lockscreen shortcuts on secure lock screens
*
Expand Down
9 changes: 6 additions & 3 deletions core/java/android/text/Layout.java
Original file line number Diff line number Diff line change
Expand Up @@ -1099,6 +1099,9 @@ private boolean[] primaryIsTrailingPreviousAllLineOffsets(int line) {
if (limit > lineEnd) {
limit = lineEnd;
}
if (limit == start) {
continue;
}
level[limit - lineStart - 1] =
(byte) ((runs[i + 1] >>> RUN_LEVEL_SHIFT) & RUN_LEVEL_MASK);
}
Expand Down Expand Up @@ -1194,8 +1197,8 @@ private float getHorizontal(int offset, boolean trailing, int line, boolean clam
}

/**
* Computes in linear time the results of calling
* #getHorizontal for all offsets on a line.
* Computes in linear time the results of calling #getHorizontal for all offsets on a line.
*
* @param line The line giving the offsets we compute information for
* @param clamped Whether to clamp the results to the width of the layout
* @param primary Whether the results should be the primary or the secondary horizontal
Expand Down Expand Up @@ -1230,7 +1233,7 @@ private float[] getLineHorizontals(int line, boolean clamped, boolean primary) {
TextLine.recycle(tl);

if (clamped) {
for (int offset = 0; offset <= wid.length; ++offset) {
for (int offset = 0; offset < wid.length; ++offset) {
if (wid[offset] > mWidth) {
wid[offset] = mWidth;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,11 @@ private boolean pulseOnLongPressAvailable() {
}

public boolean alwaysOnEnabled(int user) {
return boolSetting(Settings.Secure.DOZE_ALWAYS_ON, user, mAlwaysOnByDefault ? 1 : 0)
&& alwaysOnAvailable() && !accessibilityInversionEnabled(user);
final boolean aodEnabledDefault = false;
final boolean aodEnabled = Settings.Secure.getIntForUser(mContext.getContentResolver(),
Settings.Secure.DOZE_ALWAYS_ON, aodEnabledDefault ? 1 : 0, user) != 0;
return aodEnabled && alwaysOnAvailable()
&& !accessibilityInversionEnabled(user);
}

public boolean isDozeEnabled() {
Expand Down
1 change: 0 additions & 1 deletion core/java/com/android/internal/statusbar/IStatusBar.aidl
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ oneway interface IStatusBar
void onFingerprintError(String error);
// Used to hide the fingerprint dialog when the authenticationclient is stopped
void hideFingerprintDialog();
void handleInDisplayFingerprintView(boolean show, boolean isEnrolling);

/**
* LIQUID
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ interface IStatusBarService
void onFingerprintError(String error);
// Used to hide the fingerprint dialog when the authenticationclient is stopped
void hideFingerprintDialog();
void handleInDisplayFingerprintView(boolean show, boolean isEnrolling);

/**
* LIQUID
Expand Down

This file was deleted.

16 changes: 0 additions & 16 deletions core/java/com/android/server/SystemConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,6 @@ public static final class PermissionEntry {
// Package names that are exempted from private API blacklisting
final ArraySet<String> mHiddenApiPackageWhitelist = new ArraySet<>();

// These are the packages that are whitelisted to be the signature check for a theme system
final ArraySet<String> mThemeSystemSignatureWhitelistedApps = new ArraySet<>();

// The list of carrier applications which should be disabled until used.
// This function suppresses update notifications for these pre-installed apps.
// In SubscriptionInfoUpdater, the listed applications are disabled until used when all of the
Expand Down Expand Up @@ -247,10 +244,6 @@ public ArraySet<ComponentName> getBackupTransportWhitelist() {
return mBackupTransportWhitelist;
}

public ArraySet<String> getThemeSystemSignatureWhitelistedApps() {
return mThemeSystemSignatureWhitelistedApps;
}

public ArraySet<String> getDisabledUntilUsedPreinstalledCarrierApps() {
return mDisabledUntilUsedPreinstalledCarrierApps;
}
Expand Down Expand Up @@ -633,15 +626,6 @@ private void readPermissionsFromXml(File permFile, int permissionFlag) {
}
}
XmlUtils.skipCurrentTag(parser);
} else if ("theme-system-signature-whitelisted-app".equals(name) && allowAppConfigs) {
String pkgname = parser.getAttributeValue(null, "package");
if (pkgname == null) {
Slog.w(TAG, "<theme-system-signature-whitelisted-app> without package in " + permFile
+ " at " + parser.getPositionDescription());
} else {
mThemeSystemSignatureWhitelistedApps.add(pkgname);
}
XmlUtils.skipCurrentTag(parser);
} else if ("disabled-until-used-preinstalled-carrier-associated-app".equals(name)
&& allowAppConfigs) {
String pkgname = parser.getAttributeValue(null, "package");
Expand Down
Loading