Skip to content

Commit

Permalink
PIHooks: Drop WallpaperEffect
Browse files Browse the repository at this point in the history
Change-Id: Ibf6ebd572edfd16183751de8f014d58a00d90e26
  • Loading branch information
basamaryan committed Aug 11, 2023
1 parent 8a01fc1 commit 7c9ea37
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions core/java/com/android/internal/util/PropImitationHooks.java
Expand Up @@ -65,7 +65,6 @@ public class PropImitationHooks {
private static final String PACKAGE_VELVET = "com.google.android.googlequicksearchbox";
private static final String PACKAGE_LIVE_WALLPAPER = "com.google.pixel.livewallpaper";
private static final String PACKAGE_WALLPAPER_EMOJI = "com.google.android.apps.emojiwallpaper";
private static final String PACKAGE_WALLPAPER_EFFECT = "com.google.android.wallpaper.effects";
private static final String PACKAGE_PIXEL_LAUNCHER = "com.google.android.apps.nexuslauncher";

private static final String PROCESS_GMS_PERSISTENT = PACKAGE_GMS + ".persistent";
Expand Down Expand Up @@ -144,7 +143,7 @@ public static void setProps(Context context) {
/* Set certified properties for GMSCore
* Set stock fingerprint for ARCore
* Set Pixel 5 for Snapchat, SMS Organizer, Google, ASI and GMS device configurator
* Set Pixel 7 Pro for WallpaperEmoji and WallpaperEffect
* Set Pixel 7 Pro for Live wallpaper and WallpaperEmoji
* Set Pixel XL for Google Photos
* Set custom model for Netflix
*/
Expand All @@ -162,8 +161,7 @@ public static void setProps(Context context) {
dlog("Spoofing Pixel 5 for: " + packageName + " process: " + processName);
sPixelProps.forEach(PropImitationHooks::setPropValue);
} else if (sSpoofGapps && (packageName.equals(PACKAGE_WALLPAPER_EMOJI)
|| packageName.equals(PACKAGE_LIVE_WALLPAPER)
|| packageName.equals(PACKAGE_WALLPAPER_EFFECT))) {
|| packageName.equals(PACKAGE_LIVE_WALLPAPER))) {
dlog("Spoofing Pixel 7 Pro for: " + packageName + " process: " + processName);
sPixel7Props.forEach(PropImitationHooks::setPropValue);
} else if (sIsPhotos) {
Expand Down

0 comments on commit 7c9ea37

Please sign in to comment.