TopTV v3.0.1版本的 MD5 值为:0fc1b9ce94885bc92edd11a6ee3e5932

以下内容为反编译后的 CastServerService.java 源代码,内容仅作参考


package com.toptvone.toptviptvbox.miscelleneious.chromecastfeature.castserver;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.util.Log;
import c.k.a.g.m.d.b;
import c.k.a.g.m.d.c;
import com.amazonaws.services.s3.model.InstructionFileId;
import java.io.File;
import java.io.IOException;
public class CastServerService extends Service {
    public b f24328b;

    @Override
    public IBinder onBind(Intent intent) {
        return null;
    }

    @Override
    public void onDestroy() {
        Log.i("HTTPSERVICE", "Destroying httpService");
        this.f24328b.p();
        super.onDestroy();
    }

    @Override
    public int onStartCommand(Intent intent, int i2, int i3) {
        Log.i("HTTPSERVICE", "Creating and starting httpService");
        super.onCreate();
        c cVar = new c(intent.getStringExtra("127.0.0.1"), 8080, new File(intent.getStringExtra(InstructionFileId.DOT)), false);
        this.f24328b = cVar;
        try {
            cVar.o();
            return 2;
        } catch (IOException e2) {
            Log.i("HTTPSERVICE", "IOException: " + e2.getMessage());
            return 2;
        }
    }
}