Exploit databaseDownload repository ZIP
GH-14fb583d3d1bd2da10251bb1a37b93d6
gitchw/ghostlock-cve-2026-43499
Sources for CVE-2026-43499
170 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files10
gitchw/ghostlock-cve-2026-43499Revision 96acd93156f6
- ↑..Parent directory
- DrawableCompat.java
- IconCompat.java
- IconCompatParcelizer.java
- RoundedBitmapDrawable.java
- RoundedBitmapDrawable21.java
- RoundedBitmapDrawableFactory.java
- TintAwareDrawable.java
- WrappedDrawable.java
- WrappedDrawableApi14.java
- WrappedDrawableApi21.java
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
workspace/decomp/HeyRomUpdate/sources/android/support/v4/graphics/drawable/DrawableCompat.java
Java · 8,612 bytespackage android.support.v4.graphics.drawable;
import android.content.res.ColorStateList;
import android.content.res.Resources;
import android.graphics.ColorFilter;
import android.graphics.PorterDuff;
import android.graphics.drawable.Drawable;
import android.graphics.drawable.DrawableContainer;
import android.graphics.drawable.InsetDrawable;
import android.os.Build;
import android.util.AttributeSet;
import android.util.Log;
import java.io.IOException;
import java.lang.reflect.Method;
import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserException;
/* loaded from: classes.dex */
public final class DrawableCompat {
private static final String TAG = "DrawableCompat";
private static Method sGetLayoutDirectionMethod;
private static boolean sGetLayoutDirectionMethodFetched;
private static Method sSetLayoutDirectionMethod;
private static boolean sSetLayoutDirectionMethodFetched;
@Deprecated
public static void jumpToCurrentState(Drawable drawable) {
drawable.jumpToCurrentState();
}
public static void setAutoMirrored(Drawable drawable, boolean mirrored) {
if (Build.VERSION.SDK_INT >= 19) {
drawable.setAutoMirrored(mirrored);
}
}
public static boolean isAutoMirrored(Drawable drawable) {
if (Build.VERSION.SDK_INT >= 19) {
return drawable.isAutoMirrored();
}
return false;
}
public static void setHotspot(Drawable drawable, float x, float y) {
if (Build.VERSION.SDK_INT >= 21) {
drawable.setHotspot(x, y);
}
}
public static void setHotspotBounds(Drawable drawable, int left, int top, int right, int bottom) {
if (Build.VERSION.SDK_INT >= 21) {
drawable.setHotspotBounds(left, top, right, bottom);
}
}
/* JADX WARN: Multi-variable type inference failed */
public static void setTint(Drawable drawable, int tint) {
if (Build.VERSION.SDK_INT >= 21) {
drawable.setTint(tint);
} else if (drawable instanceof TintAwareDrawable) {
((TintAwareDrawable) drawable).setTint(tint);
}
}
/* JADX WARN: Multi-variable type inference failed */
public static void setTintList(Drawable drawable, ColorStateList tint) {
if (Build.VERSION.SDK_INT >= 21) {
drawable.setTintList(tint);
} else if (drawable instanceof TintAwareDrawable) {
((TintAwareDrawable) drawable).setTintList(tint);
}
}
/* JADX WARN: Multi-variable type inference failed */
public static void setTintMode(Drawable drawable, PorterDuff.Mode tintMode) {
if (Build.VERSION.SDK_INT >= 21) {
drawable.setTintMode(tintMode);
} else if (drawable instanceof TintAwareDrawable) {
((TintAwareDrawable) drawable).setTintMode(tintMode);
}
}
public static int getAlpha(Drawable drawable) {
if (Build.VERSION.SDK_INT >= 19) {
return drawable.getAlpha();
}
return 0;
}
public static void applyTheme(Drawable drawable, Resources.Theme theme) {
if (Build.VERSION.SDK_INT >= 21) {
drawable.applyTheme(theme);
}
}
public static boolean canApplyTheme(Drawable drawable) {
if (Build.VERSION.SDK_INT >= 21) {
return drawable.canApplyTheme();
}
return false;
}
public static ColorFilter getColorFilter(Drawable drawable) {
if (Build.VERSION.SDK_INT >= 21) {
return drawable.getColorFilter();
}
return null;
}
/* JADX WARN: Multi-variable type inference failed */
public static void clearColorFilter(Drawable drawable) {
if (Build.VERSION.SDK_INT >= 23) {
drawable.clearColorFilter();
return;
}
if (Build.VERSION.SDK_INT >= 21) {
drawable.clearColorFilter();
if (drawable instanceof InsetDrawable) {
clearColorFilter(((InsetDrawable) drawable).getDrawable());
return;
}
if (drawable instanceof WrappedDrawable) {
clearColorFilter(((WrappedDrawable) drawable).getWrappedDrawable());
return;
}
if (drawable instanceof DrawableContainer) {
DrawableContainer container = (DrawableContainer) drawable;
DrawableContainer.DrawableContainerState state = (DrawableContainer.DrawableContainerState) container.getConstantState();
if (state != null) {
int count = state.getChildCount();
for (int i = 0; i < count; i++) {
Drawable child = state.getChild(i);
if (child != null) {
clearColorFilter(child);
}
}
return;
}
return;
}
return;
}
drawable.clearColorFilter();
}
public static void inflate(Drawable drawable, Resources res, XmlPullParser parser, AttributeSet attrs, Resources.Theme theme) throws XmlPullParserException, IOException {
if (Build.VERSION.SDK_INT >= 21) {
drawable.inflate(res, parser, attrs, theme);
} else {
drawable.inflate(res, parser, attrs);
}
}
public static Drawable wrap(Drawable drawable) {
if (Build.VERSION.SDK_INT >= 23) {
return drawable;
}
if (Build.VERSION.SDK_INT >= 21) {
if (!(drawable instanceof TintAwareDrawable)) {
return new WrappedDrawableApi21(drawable);
}
return drawable;
}
if (!(drawable instanceof TintAwareDrawable)) {
return new WrappedDrawableApi14(drawable);
}
return drawable;
}
/* JADX WARN: Multi-variable type inference failed */
public static <T extends Drawable> T unwrap(Drawable drawable) {
if (drawable instanceof WrappedDrawable) {
return (T) ((WrappedDrawable) drawable).getWrappedDrawable();
}
return drawable;
}
public static boolean setLayoutDirection(Drawable drawable, int layoutDirection) {
if (Build.VERSION.SDK_INT >= 23) {
return drawable.setLayoutDirection(layoutDirection);
}
if (Build.VERSION.SDK_INT < 17) {
return false;
}
if (!sSetLayoutDirectionMethodFetched) {
try {
Method declaredMethod = Drawable.class.getDeclaredMethod("setLayoutDirection", Integer.TYPE);
sSetLayoutDirectionMethod = declaredMethod;
declaredMethod.setAccessible(true);
} catch (NoSuchMethodException e) {
Log.i(TAG, "Failed to retrieve setLayoutDirection(int) method", e);
}
sSetLayoutDirectionMethodFetched = true;
}
Method method = sSetLayoutDirectionMethod;
if (method != null) {
try {
method.invoke(drawable, Integer.valueOf(layoutDirection));
return true;
} catch (Exception e2) {
Log.i(TAG, "Failed to invoke setLayoutDirection(int) via reflection", e2);
sSetLayoutDirectionMethod = null;
}
}
return false;
}
public static int getLayoutDirection(Drawable drawable) {
if (Build.VERSION.SDK_INT >= 23) {
return drawable.getLayoutDirection();
}
if (Build.VERSION.SDK_INT < 17) {
return 0;
}
if (!sGetLayoutDirectionMethodFetched) {
try {
Method declaredMethod = Drawable.class.getDeclaredMethod("getLayoutDirection", new Class[0]);
sGetLayoutDirectionMethod = declaredMethod;
declaredMethod.setAccessible(true);
} catch (NoSuchMethodException e) {
Log.i(TAG, "Failed to retrieve getLayoutDirection() method", e);
}
sGetLayoutDirectionMethodFetched = true;
}
Method method = sGetLayoutDirectionMethod;
if (method != null) {
try {
return ((Integer) method.invoke(drawable, new Object[0])).intValue();
} catch (Exception e2) {
Log.i(TAG, "Failed to invoke getLayoutDirection() via reflection", e2);
sGetLayoutDirectionMethod = null;
}
}
return 0;
}
private DrawableCompat() {
}
}