MyRecorder v1.01.90.0219版本的 MD5 值为:c361f51174a0bf833abfa72929caf8d3
以下内容为反编译后的 a.java 源代码,内容仅作参考
package zd;
import com.google.android.gms.auth.api.signin.GoogleSignInAccount;
import com.google.api.client.extensions.android.http.AndroidHttp;
import com.google.api.client.googleapis.extensions.android.gms.auth.GoogleAccountCredential;
import com.google.api.client.http.FileContent;
import com.google.api.client.json.gson.GsonFactory;
import com.google.api.services.drive.Drive;
import com.google.api.services.drive.model.File;
import com.myviocerecorder.voicerecorder.App;
import java.util.Collections;
import java.util.List;
public class a {
public static a f55939b;
public final Drive f55940a;
public a() {
App b10 = App.f39143g.b();
GoogleSignInAccount a10 = b.a(b10);
GoogleAccountCredential usingOAuth2 = GoogleAccountCredential.usingOAuth2(b10, Collections.singleton("https://www.googleapis.com/auth/drive.file"));
usingOAuth2.setSelectedAccount(a10.getAccount());
this.f55940a = new Drive.Builder(AndroidHttp.newCompatibleTransport(), new GsonFactory(), usingOAuth2).setApplicationName(b10.getPackageName()).build();
}
public static void a() {
f55939b = null;
}
public static a d() {
if (f55939b == null) {
synchronized (a.class) {
if (f55939b == null) {
f55939b = new a();
}
}
}
return f55939b;
}
public File b() throws Exception {
File file = new File();
file.setName("MyRecorder");
file.setMimeType("application/vnd.google-apps.folder");
return this.f55940a.files().create(file).setFields2("id, name, parents, createdTime, modifiedTime").execute();
}
public File c(java.io.File file, String str) throws Exception {
File file2 = new File();
file2.setName(file.getName());
file2.setParents(Collections.singletonList(str));
return this.f55940a.files().create(file2, new FileContent("", file)).setFields2("id, name, parents, createdTime, modifiedTime").execute();
}
public List<File> e(String str) throws Exception {
return this.f55940a.files().list().setFields2("files(id, name, parents, createdTime, modifiedTime)").setQ("name contains 'MyRecorder'").execute().getFiles();
}
}