导航菜单

页面标题

页面副标题

Pesohere v1.0.5 - UploadLbsCowHereService.java 源代码

正在查看: Pesohere v1.0.5 应用的 UploadLbsCowHereService.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package com.cow.here.uicowhereanddto.scowhereervice;

import android.annotation.SuppressLint;
import android.app.IntentService;
import android.content.Intent;
import android.location.Location;
import android.location.LocationListener;
import android.location.LocationManager;
import android.os.Bundle;
import com.cow.here.appcowherelication.AppCowHereLication;
import com.cow.here.netcowherework.dcowhereto.requestcowhere.LbsRequestCowHereDto;
import com.cow.here.netcowherework.dcowhereto.responsecowhere.ErrorCowHereDto;
import f.c.a.c;
import f.c.a.g.i;
import f.c.a.g.j;
import i.u.b.f;
import i.x.n;

public final class UploadLbsCowHereService extends IntentService {
    public String b;

    public static final class a implements LocationListener {
        public final LocationManager a;
        public final UploadLbsCowHereService b;

        public a(LocationManager locationManager, UploadLbsCowHereService uploadLbsCowHereService) {
            this.a = locationManager;
            this.b = uploadLbsCowHereService;
        }

        @Override
        public void onLocationChanged(Location location) {
            f.f(location, c.a("AQ4RChEdHx05CQkHAA=="));
            this.a.removeUpdates(this);
            this.b.c(location);
        }

        @Override
        public void onProviderDisabled(String str) {
            f.f(str, c.a("HRMdHQwQFQE="));
        }

        @Override
        public void onProviderEnabled(String str) {
            f.f(str, c.a("HRMdHQwQFQE="));
        }

        @Override
        public void onStatusChanged(String str, int i2, Bundle bundle) {
            f.f(str, c.a("HRMdHQwQFQE="));
            f.f(bundle, c.a("CBkGGQQH"));
        }
    }

    public static final class b extends i<String> {
        @Override
        public void a(ErrorCowHereDto errorCowHereDto) {
            f.f(errorCowHereDto, c.a("CBMABBc="));
        }

        @Override
        public void b(String str) {
            f.f(str, c.a("CRUd"));
        }
    }

    public UploadLbsCowHereService() {
        super(c.a("OBEeBAQQPBEcKwoFLQgTFzgABgYaDA0="));
    }

    public final String b() {
        return this.b;
    }

    public final void c(Location location) {
        LbsRequestCowHereDto lbsRequestCowHereDto = new LbsRequestCowHereDto();
        lbsRequestCowHereDto.loCowHeretn = location.getLongitude();
        lbsRequestCowHereDto.laCowHeret = location.getLatitude();
        lbsRequestCowHereDto.maCowHeretp = c.a("Cg4dDAkR");
        lbsRequestCowHereDto.typCowHerete = b();
        lbsRequestCowHereDto.actioCowHeretn = AppCowHereLication.f443f;
        j.f2572c.b().f(null, null, c.a("QhEXGAoyBR1AHRVdCQ8SOg4XESAbQA=="), lbsRequestCowHereDto, false, String.class, new b(), (r19 & 128) != 0 ? c.a("ChIdBQ==") : null);
    }

    @Override
    @SuppressLint({"MissingPermission"})
    public void onHandleIntent(Intent intent) {
        boolean z;
        String stringExtra;
        LocationManager locationManager;
        try {
            String b2 = f.c.a.e.a.c().b();
            if (b2 != null && !n.k(b2)) {
                z = false;
                if (!z || d.i.f.a.a(this, c.a("DA8WGQodFF0fDRcfDB4SGwQLWjEwLC02ITouLjM5NjEvPyArJCYsIi8=")) != 0) {
                    return;
                }
                if (intent != null) {
                    stringExtra = intent.getStringExtra(c.a("GRgCDg=="));
                    if (stringExtra != null) {
                    }
                    this.b = stringExtra;
                    Object systemService = getSystemService(c.a("AQ4RChEdHx0="));
                    locationManager = systemService instanceof LocationManager ? (LocationManager) systemService : null;
                    if (locationManager == null) {
                        return;
                    }
                    Location lastKnownLocation = locationManager.getLastKnownLocation(c.a("ChEB"));
                    if (lastKnownLocation != null) {
                        c(lastKnownLocation);
                        return;
                    }
                    Location lastKnownLocation2 = locationManager.getLastKnownLocation(c.a("AwQGHAoGGw=="));
                    if (lastKnownLocation2 != null) {
                        c(lastKnownLocation2);
                        return;
                    } else {
                        locationManager.requestLocationUpdates(c.a("AwQGHAoGGw=="), 3000L, 50.0f, new a(locationManager, this));
                        return;
                    }
                }
                stringExtra = c.a("GA8ZBQoDHg==");
                this.b = stringExtra;
                Object systemService2 = getSystemService(c.a("AQ4RChEdHx0="));
                locationManager = systemService2 instanceof LocationManager ? (LocationManager) systemService2 : null;
                if (locationManager == null) {
                }
            }
            z = true;
            if (!z) {
                return;
            }
            if (intent != null) {
            }
            stringExtra = c.a("GA8ZBQoDHg==");
            this.b = stringExtra;
            Object systemService22 = getSystemService(c.a("AQ4RChEdHx0="));
            locationManager = systemService22 instanceof LocationManager ? (LocationManager) systemService22 : null;
            if (locationManager == null) {
            }
        } catch (Exception unused) {
        }
    }
}