Skip to content
This repository was archived by the owner on Apr 18, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
ce9afcd
SettingsLib: Implement preference category UI changes
minaripenguin Oct 20, 2023
9618487
core: pm: Wipe package cache on upgrade
krasCGQ Aug 23, 2022
61bf952
base: Delete media tests
evan-a-a Nov 6, 2013
1e7f2f4
Disable/reduce functionality of various ad/analytics libraries
SkewedZeppelin May 21, 2018
a5fc2a8
SystemUI: Enable production-ready feature flags
kdrag0n Mar 14, 2022
159d5a1
config: Downscale task snapshots to 80%
kdrag0n Oct 9, 2022
24bcfa3
base: SystemUI: Enable new biometrics animation
rk134 Jul 19, 2023
599440e
SettingsLib: Import xdroid-OSS collapsing toolbar layout
mukesh22584 Oct 15, 2023
a84d1b9
SettingsLib: Adjust xdroid-OSS collapsing toolbar padding
DylanAkp Nov 1, 2024
6d27441
SettingsLib: Make IllustrationPreference bg protection transparent
minaripenguin Jan 11, 2023
65c1eab
SettingsLib: Adapt xdroid-OSS collapsing toolbar to new Android 15 co…
DylanAkp Nov 3, 2024
0b9c251
SystemUI: Add hotspot toggle in QS internet dialog
adithya2306 Sep 17, 2022
e15a351
base: Add Bootanimation styles [1/3]
DylanAkp Apr 19, 2024
96f4cbf
base: Add support for application downgrade [1/2]
libxzr Mar 17, 2022
c3a6343
Reset all package signatures on boot once
xboxfanj Nov 10, 2022
59a389a
SystemUI: Introduce Flashlight Strength Tile
anayw2001 May 10, 2024
0d0a06a
Add colors to assistant animation
suphon-t Sep 14, 2019
ecf7cfb
base: set scrolling friction to 0.006f
xboxfanj Oct 14, 2016
9bd2389
aapt: Default to 0 compression ratio
arter97 Apr 7, 2015
b6df3f3
SystemUI: Show daily data usage in QS footer
adithya2306 Jun 18, 2023
49ecec0
core: Remove bugreport from PowerMenu
DylanAkp Nov 27, 2024
f9139ee
base: Add support for window ignore secure [1/2]
libxzr Mar 18, 2022
201f062
SystemUI: Implement hide gestural navigation hint bar
jesec May 19, 2020
d676647
SomeImitationHooks: Introduce SomeImitationHooks
DylanAkp Nov 30, 2024
2b96985
SettingsLib: make BluetoothAdapter public
DylanAkp Apr 23, 2024
2b688d6
SystemUI: Enable production-ready feature flags
kdrag0n Mar 14, 2022
75e757b
SomeImitationHooks: Add GPhotos Pixel flags
DylanAkp Dec 9, 2024
c668b8c
SystemUI: Don't hide the default stream when adjusting music
ArianK16a Jan 30, 2022
456e21d
VolumeDialogImpl: Drop unnecessary layout gravity defines and handle …
fazilsheik96 Feb 10, 2025
6b60cde
VolumeDialogImpl: Set touchable region properly for left gravity
ArianK16a Nov 7, 2023
e2ede21
VolumeDialogImpl: Respect left gravity in ringer drawer
ArianK16a Nov 7, 2023
1e2fcb5
VolumeDialogImpl: Handle the outmost row with respect to left gravity
ArianK16a Nov 7, 2023
9c4fad2
SystemUI: Bring back good ol' circle battery style
luca020400 Nov 30, 2019
67e346a
Battery Styles: Show a bolt ⚡ when charging
neobuddy89 Dec 28, 2024
101b901
SystemUI: Network Traffic [1/2]
Dhina17 Jun 13, 2024
ee69919
Network Traffic: Consider CLAT interfaces (IPv6)
fazilsheik96 Aug 21, 2024
5b3959e
SystemUI: Don't store pending ControlAction if the device is locked
luk1337 Feb 21, 2022
e10f12e
frameworks: Import Lineage GlobalActions service
erfanoabdi Jun 12, 2022
d49cdf9
frameworks: Add support for advanced restart options
mikeNG Jan 20, 2018
bafa499
frameworks: Add more power menu customizations
zakaryan2004 Mar 29, 2021
0bf2e32
frameworks: Add device controls shortcut to power menu
luk1337 Feb 25, 2022
e1ac4bc
SystemUI: fix global_actions_power_dialog_flow formatting
trautamaki Feb 16, 2024
cc069d6
SystemUI: Remove icon tint for user switch items in global actions
Dhina17 Jun 6, 2024
888bd30
EasterEgg: allow using toy without unlocking
nift4 Nov 5, 2022
81ef506
neko/Cat: Mark FLAG_IMMUTABLE PendingIntent with FLAG_MUTABLE
PainKiller3 Dec 30, 2021
ef33703
EasterEgg: Fix some warnings
BadDaemon Apr 10, 2021
62d2919
Revert "Remove "Device Controls" from Settings"
nift4 Mar 16, 2022
ce048c7
Revert "Controls in QS"
nift4 Mar 17, 2022
5c1c33e
Power menu styles: Initial checkin for 15 [1/3]
nift4 Apr 5, 2023
61489da
SystemUI: Fix NPE on creating taskview for controls ui
Dhina17 Aug 2, 2024
965543c
SystemUI: Use grid view for user switch in global actions
Dhina17 Jun 5, 2024
d30284d
frameworks: Add restart systemui shortcut to power menu [1/2]
ezio84 Jan 15, 2023
5e28292
base: Export Receiver for PhoneWindowManager
fazilsheik96 Sep 12, 2024
78008eb
SystemUI: volume dialog: Align padding/margin for left and right
ArianK16a Nov 7, 2023
eece2cf
VolumeDialogImpl: Update rows when adding one while the panel is showing
ArianK16a Oct 5, 2024
0d44c2f
SystemUI: Move our proguard rules to proguard_common.flags
Dhina17 Oct 25, 2024
1b8db5f
fixup! SystemUI: Use grid view for user switch in global actions
Dhina17 Jun 5, 2024
15603f0
SystemUI: Don't store pending ControlAction if the device is locked
luk1337 Feb 21, 2022
52e0cda
SystemUI: Clock position customization
luca020400 Jul 15, 2018
b58a077
SystemUI: Clock AM/PM style customization
fazilsheik96 Sep 28, 2024
61cca9f
SystemUI: Fix height for center and right clock
neobuddy89 Dec 14, 2023
995f753
SystemUI: Fix the right clock's gravity
luca020400 Dec 21, 2022
0bba82b
Fix build error
tony-mak Aug 17, 2024
f6bf087
Implement click to take partial screenshot [1/3]
jesec May 17, 2020
d140d00
SystemUI: screenshot: open long screenshot activity for partial scree…
Demon000 Jun 23, 2022
a94b63c
SystemUI: screenshot: add extra crop boundaries
Demon000 Jun 25, 2022
ed34ecd
SystemUI: screenshot: disable magnification for partial screenshots
Demon000 Jun 25, 2022
bc690d4
SystemUI: screenshot: close QS after launching long screenshot activity
luk1337 Jun 26, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
22 changes: 21 additions & 1 deletion cmds/bootanimation/BootAnimation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@

#include <filesystem>
#include <vector>
#include <string>
#include <cstdlib>

#include <stdint.h>
#include <inttypes.h>
Expand Down Expand Up @@ -748,6 +750,24 @@ bool BootAnimation::findBootAnimationFileInternal(const std::vector<std::string>
return false;
}

std::string getBootAnimationPath() {
std::string propValue = android::base::GetProperty("persist.sys.somethingos.bootanimation", "");

static const std::unordered_map<std::string, std::string> bootAnimationPaths {
{"somethingos", "/product/media/bootanimation.zip"},
{"fox", "/product/media/fox.zip"},
{"legacy", "/product/media/legacy.zip"},
{"circle", "/product/media/circle.zip"}
};

auto it = bootAnimationPaths.find(propValue);
if (it != bootAnimationPaths.end()) {
return it->second;
} else {
return "/product/media/bootanimation.zip";
}
}

void BootAnimation::findBootAnimationFile() {

std::string custAnimProp = !mShuttingDown ?
Expand All @@ -764,7 +784,7 @@ void BootAnimation::findBootAnimationFile() {
ATRACE_CALL();
const bool playDarkAnim = android::base::GetIntProperty("ro.boot.theme", 0) == 1;
static const std::vector<std::string> bootFiles = {
APEX_BOOTANIMATION_FILE, playDarkAnim ? PRODUCT_BOOTANIMATION_DARK_FILE : PRODUCT_BOOTANIMATION_FILE,
APEX_BOOTANIMATION_FILE, playDarkAnim ? PRODUCT_BOOTANIMATION_DARK_FILE : getBootAnimationPath(),
OEM_BOOTANIMATION_FILE, SYSTEM_BOOTANIMATION_FILE
};
static const std::vector<std::string> shutdownFiles = {
Expand Down
4 changes: 3 additions & 1 deletion core/java/android/app/ApplicationPackageManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@
import com.android.internal.annotations.VisibleForTesting;
import com.android.internal.os.SomeArgs;
import com.android.internal.util.UserIcons;
import com.android.internal.util.SomeImitationHooks;

import dalvik.system.VMRuntime;

Expand Down Expand Up @@ -828,7 +829,8 @@ public Boolean recompute(HasSystemFeatureQuery query) {

@Override
public boolean hasSystemFeature(String name, int version) {
return mHasSystemFeatureCache.query(new HasSystemFeatureQuery(name, version));
return SomeImitationHooks.hasSystemFeature(name,
mHasSystemFeatureCache.query(new HasSystemFeatureQuery(name, version)));
}

/** @hide */
Expand Down
3 changes: 3 additions & 0 deletions core/java/android/app/Instrumentation.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
import android.view.WindowManagerGlobal;

import com.android.internal.content.ReferrerIntent;
import com.android.internal.util.SomeImitationHooks;

import java.io.File;
import java.lang.annotation.Retention;
Expand Down Expand Up @@ -1352,6 +1353,7 @@ public Application newApplication(ClassLoader cl, String className, Context cont
Application app = getFactory(context.getPackageName())
.instantiateApplication(cl, className);
app.attach(context);
SomeImitationHooks.setProps(app);
return app;
}

Expand All @@ -1369,6 +1371,7 @@ static public Application newApplication(Class<?> clazz, Context context)
ClassNotFoundException {
Application app = (Application)clazz.newInstance();
app.attach(context);
SomeImitationHooks.setProps(app);
return app;
}

Expand Down
18 changes: 18 additions & 0 deletions core/java/android/app/SystemServiceRegistry.java
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,11 @@
import com.android.internal.policy.PhoneLayoutInflater;
import com.android.internal.util.Preconditions;

import com.android.internal.lineage.app.LineageContextConstants;
import com.android.internal.lineage.app.LineageGlobalActions;
import com.android.internal.lineage.app.ILineageGlobalActions;

import java.util.HashMap;
import java.util.Map;
import java.util.Objects;

Expand Down Expand Up @@ -1017,6 +1022,19 @@ public PocketManager createService(ContextImpl ctx) {
return new PocketManager(ctx.getOuterContext(), service);
}});

registerService(LineageContextConstants.LINEAGE_GLOBAL_ACTIONS_SERVICE, LineageGlobalActions.class,
new CachedServiceFetcher<LineageGlobalActions>() {
@Override
public LineageGlobalActions createService(ContextImpl ctx)
throws ServiceNotFoundException {
final IBinder binder =
ServiceManager.getServiceOrThrow(LineageContextConstants.LINEAGE_GLOBAL_ACTIONS_SERVICE);
final ILineageGlobalActions service =
ILineageGlobalActions.Stub.asInterface(binder);
return new LineageGlobalActions(service);
}
});

registerService(Context.TV_INTERACTIVE_APP_SERVICE, TvInteractiveAppManager.class,
new CachedServiceFetcher<TvInteractiveAppManager>() {
@Override
Expand Down
14 changes: 14 additions & 0 deletions core/java/android/content/pm/PackageParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -5603,6 +5603,20 @@ private Bundle parseMetaData(Resources res,

if (data == null) {
data = new Bundle();
data.putBoolean("batch_opted_out_by_default", true);
data.putBoolean("com.ad4screen.no_geoloc", true);
data.putBoolean("com.facebook.sdk.AutoLogAppEventsEnabled", false);
data.putBoolean("com.mixpanel.android.MPConfig.UseIpAddressForGeolocation", false);
data.putBoolean("com.webengage.sdk.android.location_tracking", false);
data.putBoolean("firebase_analytics_collection_deactivated", true);
data.putBoolean("firebase_analytics_collection_enabled", false);
data.putBoolean("firebase_crash_collection_enabled", false);
data.putBoolean("firebase_performance_collection_deactivated", true);
data.putBoolean("google_analytics_adid_collection_enabled", false);
data.putBoolean("google_analytics_ssaid_collection_enabled", false);
data.putBoolean("google_analytics_default_allow_ad_personalization_signals", false);
data.putString("com.ad4screen.tracking_mode", "Restricted");
data.putString("com.sprooki.LOCATION_SERVICES", "disable");
}

String name = sa.getNonConfigurationString(
Expand Down
2 changes: 2 additions & 0 deletions core/java/android/os/IPowerManager.aidl
Original file line number Diff line number Diff line change
Expand Up @@ -170,4 +170,6 @@ interface IPowerManager
const int GO_TO_SLEEP_REASON_MAX = 10;
const int GO_TO_SLEEP_FLAG_NO_DOZE = 1 << 0;

// custom API
void rebootCustom(boolean confirm, String reason, boolean wait);
}
39 changes: 39 additions & 0 deletions core/java/android/os/PowerManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -872,6 +872,27 @@ public int hashCode() {
*/
public static final String REBOOT_RECOVERY_UPDATE = "recovery-update";

/**
* The value to pass as the 'reason' argument to reboot() to
* reboot into bootloader mode
* @hide
*/
public static final String REBOOT_BOOTLOADER = "bootloader";

/**
* The value to pass as the 'reason' argument to reboot() to
* reboot into download mode
* @hide
*/
public static final String REBOOT_DOWNLOAD = "download";

/**
* The value to pass as the 'reason' argument to reboot() to
* reboot into fastboot mode
* @hide
*/
public static final String REBOOT_FASTBOOT = "fastboot";

/**
* The value to pass as the 'reason' argument to reboot() when device owner requests a reboot on
* the device.
Expand Down Expand Up @@ -1894,6 +1915,24 @@ public void reboot(@Nullable String reason) {
}
}

/**
* Reboot the device. Will not return if the reboot is successful.
* <p>
* Requires the {@link android.Manifest.permission#REBOOT} permission.
* </p>
*
* @param reason code to pass to the kernel (e.g., "recovery", "bootloader", "download") to
* request special boot modes, or null.
* @hide
*/
public void rebootCustom(String reason) {
try {
mService.rebootCustom(false, reason, true);
} catch (RemoteException e) {
throw e.rethrowFromSystemServer();
}
}

/**
* Reboot the device. Will not return if the reboot is successful.
* <p>
Expand Down
Loading