APK反编译源代码展示 - 南明离火平台提供

应用版本信息
应用名称:GPS Status
版本号:11.3.314
包名称:com.eclipsim.gpsstatus2

MD5 校验值:1307767a726185fc43c57c361d8f8db9

反编译源代码说明

e.java 文件包含反编译后的源代码,请注意,该内容仅供学习和参考使用,不得用于非法用途。


package k3;

import android.app.Activity;
import android.app.ProgressDialog;
import android.util.Xml;
import bin.mt.signature.KillerApplication;
import ca.gbNB.sVXbwUjcR;
import com.eclipsim.gpsstatus2.R;
import h9.f;
import i.x;
import java.io.File;
import java.io.FileWriter;
import java.io.StringWriter;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;
import org.xmlpull.v1.XmlSerializer;
import r9.h;
import y7.t1;

public final class e extends x {

    public final int f3706c;

    public e(Activity activity, int i10) {
        this.f3706c = i10;
        h.e(activity, "mCallerActivity");
        this.f3072a = activity;
        ProgressDialog progressDialog = new ProgressDialog(activity);
        progressDialog.setCancelable(true);
        progressDialog.setCanceledOnTouchOutside(false);
        progressDialog.setMessage(activity.getString(R.string.dialog_export_progress_text));
        progressDialog.setProgressStyle(0);
        progressDialog.setTitle(R.string.dialog_export_progress_title);
        this.f3073b = progressDialog;
    }

    @Override
    public final String f(List list) {
        switch (this.f3706c) {
            case 0:
                StringBuilder sb = new StringBuilder();
                List list2 = list;
                ArrayList arrayList = new ArrayList(f.L(list2));
                Iterator it = list2.iterator();
                while (it.hasNext()) {
                    arrayList.add(j7.b.f((n3.b) it.next()).toString());
                }
                Iterator it2 = arrayList.iterator();
                while (it2.hasNext()) {
                    sb.append((String) it2.next());
                }
                String sb2 = sb.toString();
                h.d(sb2, "toString(...)");
                return sb2;
            case 1:
                StringWriter stringWriter = new StringWriter();
                XmlSerializer newSerializer = Xml.newSerializer();
                int i10 = 1 << 1;
                newSerializer.setFeature("http://xmlpull.org/v1/doc/features.html#indent-output", true);
                newSerializer.setOutput(stringWriter);
                newSerializer.startDocument("UTF-8", Boolean.TRUE);
                newSerializer.setPrefix("xsi", "http://www.w3.org/2001/XMLSchema-instance");
                newSerializer.setPrefix("gpx10", "http://www.topografix.com/GPX/1/0");
                newSerializer.startTag("", "gpx");
                newSerializer.attribute(null, "version", "1.1");
                newSerializer.attribute(null, "creator", KillerApplication.PACKAGE);
                newSerializer.attribute("http://www.w3.org/2001/XMLSchema-instance", "schemaLocation", "http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1gpx.xsd");
                newSerializer.attribute(null, "xmlns", "http://www.topografix.com/GPX/1/1");
                Iterator it3 = list.iterator();
                while (it3.hasNext()) {
                    n3.b bVar = (n3.b) it3.next();
                    newSerializer.startTag("", "wpt");
                    newSerializer.attribute("", "lat", Double.toString(bVar.getLatitude()));
                    newSerializer.attribute("", "lon", Double.toString(bVar.getLongitude()));
                    newSerializer.startTag("", "ele");
                    newSerializer.text(Double.toString(bVar.getAltitude()));
                    newSerializer.endTag("", "ele");
                    newSerializer.startTag("", "name");
                    newSerializer.text(bVar.b());
                    newSerializer.endTag("", "name");
                    newSerializer.endTag("", "wpt");
                }
                newSerializer.endTag("", "gpx");
                newSerializer.endDocument();
                String stringWriter2 = stringWriter.toString();
                h.d(stringWriter2, "toString(...)");
                return stringWriter2;
            default:
                StringWriter stringWriter3 = new StringWriter();
                XmlSerializer newSerializer2 = Xml.newSerializer();
                newSerializer2.setFeature("http://xmlpull.org/v1/doc/features.html#indent-output", true);
                newSerializer2.setOutput(stringWriter3);
                newSerializer2.startDocument("UTF-8", Boolean.TRUE);
                newSerializer2.setPrefix("xsi", "http://www.w3.org/2001/XMLSchema-instance");
                String str = sVXbwUjcR.jUnHYXOzgIJYT;
                String str2 = sVXbwUjcR.BoGXpRaDgKoc;
                newSerializer2.setPrefix(str, str2);
                newSerializer2.startTag("", str);
                newSerializer2.attribute("http://www.w3.org/2001/XMLSchema-instance", "schemaLocation", "http://www.opengis.net/kml/2.2 http://schemas.opengis.net/kml/2.2.0/ogckml22.xsd");
                newSerializer2.attribute(null, "xmlns", str2);
                newSerializer2.startTag("", "Folder");
                Iterator it4 = list.iterator();
                while (it4.hasNext()) {
                    n3.b bVar2 = (n3.b) it4.next();
                    newSerializer2.startTag("", "Placemark");
                    newSerializer2.startTag("", "name");
                    newSerializer2.text(bVar2.b());
                    newSerializer2.endTag("", "name");
                    newSerializer2.startTag("", "Point");
                    newSerializer2.startTag("", "coordinates");
                    newSerializer2.text(Double.toString(bVar2.getLongitude()) + "," + Double.toString(bVar2.getLatitude()) + "," + Double.toString(bVar2.getAltitude()));
                    newSerializer2.endTag("", "coordinates");
                    newSerializer2.endTag("", "Point");
                    newSerializer2.endTag("", "Placemark");
                }
                newSerializer2.endTag("", "Folder");
                newSerializer2.endTag("", str);
                newSerializer2.endDocument();
                String stringWriter4 = stringWriter3.toString();
                h.d(stringWriter4, "toString(...)");
                return stringWriter4;
        }
    }

    @Override
    public final void g(File file, List list) {
        switch (this.f3706c) {
            case 0:
                FileWriter fileWriter = new FileWriter(file);
                try {
                    List list2 = list;
                    ArrayList arrayList = new ArrayList(f.L(list2));
                    Iterator it = list2.iterator();
                    while (it.hasNext()) {
                        arrayList.add(j7.b.f((n3.b) it.next()).toString());
                    }
                    Iterator it2 = arrayList.iterator();
                    while (it2.hasNext()) {
                        fileWriter.write((String) it2.next());
                    }
                    t1.g(fileWriter, null);
                    return;
                } catch (Throwable th) {
                    try {
                        throw th;
                    } catch (Throwable th2) {
                        t1.g(fileWriter, th);
                        throw th2;
                    }
                }
            case 1:
                if (list.isEmpty()) {
                    return;
                }
                FileWriter fileWriter2 = new FileWriter(file);
                try {
                    fileWriter2.write(f(list));
                    t1.g(fileWriter2, null);
                    return;
                } catch (Throwable th3) {
                    try {
                        throw th3;
                    } catch (Throwable th4) {
                        t1.g(fileWriter2, th3);
                        throw th4;
                    }
                }
            default:
                if (list.isEmpty()) {
                    return;
                }
                FileWriter fileWriter3 = new FileWriter(file);
                try {
                    fileWriter3.write(f(list));
                    t1.g(fileWriter3, null);
                    return;
                } catch (Throwable th5) {
                    try {
                        throw th5;
                    } catch (Throwable th6) {
                        t1.g(fileWriter3, th5);
                        throw th6;
                    }
                }
        }
    }

    @Override
    public final String i() {
        switch (this.f3706c) {
            case 0:
                return t1.a.x("gpsstatus-", new SimpleDateFormat("yyMMdd-HHmmss").format(new Date()), ".csv");
            case 1:
                return t1.a.x("gpsstatus-", new SimpleDateFormat("yyMMdd-HHmmss").format(new Date()), ".gpx");
            default:
                return t1.a.x("gpsstatus-", new SimpleDateFormat("yyMMdd-HHmmss").format(new Date()), ".kml");
        }
    }
}