Exploit database

GH-a0f77c22e28ccf1d448a870981135b35

moclg/time-my-galaxy

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2026-98260

63 sources

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source

Repository files21
moclg/time-my-galaxyRevision 4e9b8077a210

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

app/src/main/java/dev/lukag/timemygalaxy/Targets.java

Java · 2,261 bytes
package dev.lukag.timemygalaxy;

import java.io.File;
import java.util.Collections;
import java.util.Set;

/**
 * One firmware build's payload metadata, taken from the signed manifest that
 * describes the installed bundle.
 *
 * Nothing is bundled in the APK. profile.json still carries the porter's
 * model, SoC and Android fields, but the trusted copy of the verified flag and
 * of the file hashes lives in the signed manifest.
 */
final class Targets {

    static final class Target {
        final String build;
        final String model;
        final String soc;
        final String android;
        final boolean verified;
        final int rev;
        final File dir;
        final boolean custom;
        final Set<String> providers;

        Target(String build, String model, String soc, String android, boolean verified,
                int rev, File dir) {
            this(build, model, soc, android, verified, rev, dir, false,
                    Collections.singleton(Provider.LEGACY_ID));
        }

        Target(String build, String model, String soc, String android, boolean verified,
                int rev, File dir, boolean custom, Set<String> providers) {
            this.build = build;
            this.model = model == null || model.isEmpty() ? "unknown" : model;
            this.soc = soc;
            this.android = android;
            this.verified = verified;
            this.rev = rev;
            this.dir = dir;
            this.custom = custom;
            this.providers = providers == null || providers.isEmpty()
                    ? Collections.singleton(Provider.LEGACY_ID) : providers;
        }

        String label() {
            return model + " / " + build;
        }

        String describe() {
            StringBuilder out = new StringBuilder(model);
            if (soc != null) {
                out.append(", ").append(soc);
            }
            if (android != null) {
                out.append(", Android ").append(android);
            }
            if (!verified) {
                out.append(", untested");
            }
            if (custom) {
                out.append(", custom");
            }
            return out.toString();
        }
    }

    private Targets() {
    }
}