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 files5
gitchw/ghostlock-cve-2026-43499Revision 96acd93156f6
- ↑..Parent directory
- ActivityInfoCompat.java
- PackageInfoCompat.java
- PermissionInfoCompat.java
- ShortcutInfoCompat.java
- ShortcutManagerCompat.java
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
workspace/decomp/HeyRomUpdate/sources/android/support/v4/content/pm/ShortcutInfoCompat.java
Java · 5,063 bytespackage android.support.v4.content.pm;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.content.pm.ShortcutInfo;
import android.graphics.drawable.Drawable;
import android.support.v4.graphics.drawable.IconCompat;
import android.text.TextUtils;
import java.util.Arrays;
/* loaded from: classes.dex */
public class ShortcutInfoCompat {
ComponentName mActivity;
Context mContext;
CharSequence mDisabledMessage;
IconCompat mIcon;
String mId;
Intent[] mIntents;
boolean mIsAlwaysBadged;
CharSequence mLabel;
CharSequence mLongLabel;
private ShortcutInfoCompat() {
}
public ShortcutInfo toShortcutInfo() {
ShortcutInfo.Builder builder = new ShortcutInfo.Builder(this.mContext, this.mId).setShortLabel(this.mLabel).setIntents(this.mIntents);
IconCompat iconCompat = this.mIcon;
if (iconCompat != null) {
builder.setIcon(iconCompat.toIcon());
}
if (!TextUtils.isEmpty(this.mLongLabel)) {
builder.setLongLabel(this.mLongLabel);
}
if (!TextUtils.isEmpty(this.mDisabledMessage)) {
builder.setDisabledMessage(this.mDisabledMessage);
}
ComponentName componentName = this.mActivity;
if (componentName != null) {
builder.setActivity(componentName);
}
return builder.build();
}
/* JADX INFO: Access modifiers changed from: package-private */
public Intent addToIntent(Intent outIntent) {
outIntent.putExtra("android.intent.extra.shortcut.INTENT", this.mIntents[r0.length - 1]).putExtra("android.intent.extra.shortcut.NAME", this.mLabel.toString());
if (this.mIcon != null) {
Drawable badge = null;
if (this.mIsAlwaysBadged) {
PackageManager pm = this.mContext.getPackageManager();
ComponentName componentName = this.mActivity;
if (componentName != null) {
try {
badge = pm.getActivityIcon(componentName);
} catch (PackageManager.NameNotFoundException e) {
}
}
if (badge == null) {
badge = this.mContext.getApplicationInfo().loadIcon(pm);
}
}
this.mIcon.addToShortcutIntent(outIntent, badge, this.mContext);
}
return outIntent;
}
public String getId() {
return this.mId;
}
public ComponentName getActivity() {
return this.mActivity;
}
public CharSequence getShortLabel() {
return this.mLabel;
}
public CharSequence getLongLabel() {
return this.mLongLabel;
}
public CharSequence getDisabledMessage() {
return this.mDisabledMessage;
}
public Intent getIntent() {
return this.mIntents[r0.length - 1];
}
public Intent[] getIntents() {
Intent[] intentArr = this.mIntents;
return (Intent[]) Arrays.copyOf(intentArr, intentArr.length);
}
/* loaded from: classes.dex */
public static class Builder {
private final ShortcutInfoCompat mInfo;
public Builder(Context context, String id) {
ShortcutInfoCompat shortcutInfoCompat = new ShortcutInfoCompat();
this.mInfo = shortcutInfoCompat;
shortcutInfoCompat.mContext = context;
this.mInfo.mId = id;
}
public Builder setShortLabel(CharSequence shortLabel) {
this.mInfo.mLabel = shortLabel;
return this;
}
public Builder setLongLabel(CharSequence longLabel) {
this.mInfo.mLongLabel = longLabel;
return this;
}
public Builder setDisabledMessage(CharSequence disabledMessage) {
this.mInfo.mDisabledMessage = disabledMessage;
return this;
}
public Builder setIntent(Intent intent) {
return setIntents(new Intent[]{intent});
}
public Builder setIntents(Intent[] intents) {
this.mInfo.mIntents = intents;
return this;
}
public Builder setIcon(IconCompat icon) {
this.mInfo.mIcon = icon;
return this;
}
public Builder setActivity(ComponentName activity) {
this.mInfo.mActivity = activity;
return this;
}
public Builder setAlwaysBadged() {
this.mInfo.mIsAlwaysBadged = true;
return this;
}
public ShortcutInfoCompat build() {
if (TextUtils.isEmpty(this.mInfo.mLabel)) {
throw new IllegalArgumentException("Shortcut must have a non-empty label");
}
if (this.mInfo.mIntents == null || this.mInfo.mIntents.length == 0) {
throw new IllegalArgumentException("Shortcut must have an intent");
}
return this.mInfo;
}
}
}