Skip to content
This repository has been archived by the owner on Apr 8, 2024. It is now read-only.

Commit

Permalink
デコンパイル済みライブラリを追加
Browse files Browse the repository at this point in the history
  • Loading branch information
s1204IT committed May 3, 2023
1 parent 664bbd2 commit 5ae2b16
Show file tree
Hide file tree
Showing 15 changed files with 4,961 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
package android.p000os;

import android.p000os.IBenesseExtensionService;
import java.io.File;

/* renamed from: android.os.BenesseExtension */
public class BenesseExtension {
public static final File COUNT_DCHA_COMPLETED_FILE = new File("/factory/count_dcha_completed");
public static final File IGNORE_DCHA_COMPLETED_FILE = new File("/factory/ignore_dcha_completed");
static IBenesseExtensionService mBenesseExtensionService;

BenesseExtension() {
}

public static boolean checkPassword(String str) {
if (getBenesseExtensionService() == null) {
return false;
}
try {
return mBenesseExtensionService.checkPassword(str);
} catch (RemoteException e) {
return false;
}
}

static IBenesseExtensionService getBenesseExtensionService() {
if (mBenesseExtensionService == null) {
mBenesseExtensionService = IBenesseExtensionService.Stub.asInterface(ServiceManager.getService("benesse_extension"));
}
return mBenesseExtensionService;
}

public static int getDchaState() {
if (getBenesseExtensionService() == null) {
return 0;
}
try {
return mBenesseExtensionService.getDchaState();
} catch (RemoteException e) {
return 0;
}
}

public static int getInt(String str) {
if (getBenesseExtensionService() == null) {
return -1;
}
try {
return mBenesseExtensionService.getInt(str);
} catch (RemoteException e) {
return -1;
}
}

public static String getString(String str) {
if (getBenesseExtensionService() == null) {
return null;
}
try {
return mBenesseExtensionService.getString(str);
} catch (RemoteException e) {
return null;
}
}

public static boolean putInt(String str, int i) {
if (getBenesseExtensionService() == null) {
return false;
}
try {
return mBenesseExtensionService.putInt(str, i);
} catch (RemoteException e) {
return false;
}
}

public static void setDchaState(int i) {
if (getBenesseExtensionService() != null) {
try {
mBenesseExtensionService.setDchaState(i);
} catch (RemoteException e) {
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,205 @@
package android.p000os;

/* renamed from: android.os.IBenesseExtensionService */
public interface IBenesseExtensionService extends IInterface {

/* renamed from: android.os.IBenesseExtensionService$Stub */
public static abstract class Stub extends Binder implements IBenesseExtensionService {
private static final String DESCRIPTOR = "android.os.IBenesseExtensionService";
static final int TRANSACTION_checkPassword = 6;
static final int TRANSACTION_getDchaState = 1;
static final int TRANSACTION_getInt = 4;
static final int TRANSACTION_getString = 3;
static final int TRANSACTION_putInt = 5;
static final int TRANSACTION_setDchaState = 2;

/* renamed from: android.os.IBenesseExtensionService$Stub$Proxy */
private static class Proxy implements IBenesseExtensionService {
private IBinder mRemote;

Proxy(IBinder iBinder) {
this.mRemote = iBinder;
}

public IBinder asBinder() {
return this.mRemote;
}

public boolean checkPassword(String str) throws RemoteException {
boolean z = false;
Parcel obtain = Parcel.obtain();
Parcel obtain2 = Parcel.obtain();
try {
obtain.writeInterfaceToken(Stub.DESCRIPTOR);
obtain.writeString(str);
this.mRemote.transact(Stub.TRANSACTION_checkPassword, obtain, obtain2, 0);
obtain2.readException();
if (obtain2.readInt() != 0) {
z = true;
}
return z;
} finally {
obtain2.recycle();
obtain.recycle();
}
}

public int getDchaState() throws RemoteException {
Parcel obtain = Parcel.obtain();
Parcel obtain2 = Parcel.obtain();
try {
obtain.writeInterfaceToken(Stub.DESCRIPTOR);
this.mRemote.transact(Stub.TRANSACTION_getDchaState, obtain, obtain2, 0);
obtain2.readException();
return obtain2.readInt();
} finally {
obtain2.recycle();
obtain.recycle();
}
}

public int getInt(String str) throws RemoteException {
Parcel obtain = Parcel.obtain();
Parcel obtain2 = Parcel.obtain();
try {
obtain.writeInterfaceToken(Stub.DESCRIPTOR);
obtain.writeString(str);
this.mRemote.transact(Stub.TRANSACTION_getInt, obtain, obtain2, 0);
obtain2.readException();
return obtain2.readInt();
} finally {
obtain2.recycle();
obtain.recycle();
}
}

public String getInterfaceDescriptor() {
return Stub.DESCRIPTOR;
}

public String getString(String str) throws RemoteException {
Parcel obtain = Parcel.obtain();
Parcel obtain2 = Parcel.obtain();
try {
obtain.writeInterfaceToken(Stub.DESCRIPTOR);
obtain.writeString(str);
this.mRemote.transact(Stub.TRANSACTION_getString, obtain, obtain2, 0);
obtain2.readException();
return obtain2.readString();
} finally {
obtain2.recycle();
obtain.recycle();
}
}

public boolean putInt(String str, int i) throws RemoteException {
boolean z = false;
Parcel obtain = Parcel.obtain();
Parcel obtain2 = Parcel.obtain();
try {
obtain.writeInterfaceToken(Stub.DESCRIPTOR);
obtain.writeString(str);
obtain.writeInt(i);
this.mRemote.transact(Stub.TRANSACTION_putInt, obtain, obtain2, 0);
obtain2.readException();
if (obtain2.readInt() != 0) {
z = true;
}
return z;
} finally {
obtain2.recycle();
obtain.recycle();
}
}

public void setDchaState(int i) throws RemoteException {
Parcel obtain = Parcel.obtain();
Parcel obtain2 = Parcel.obtain();
try {
obtain.writeInterfaceToken(Stub.DESCRIPTOR);
obtain.writeInt(i);
this.mRemote.transact(Stub.TRANSACTION_setDchaState, obtain, obtain2, 0);
obtain2.readException();
} finally {
obtain2.recycle();
obtain.recycle();
}
}
}

public Stub() {
attachInterface(this, DESCRIPTOR);
}

public static IBenesseExtensionService asInterface(IBinder iBinder) {
if (iBinder == null) {
return null;
}
IInterface queryLocalInterface = iBinder.queryLocalInterface(DESCRIPTOR);
return (queryLocalInterface == null || !(queryLocalInterface instanceof IBenesseExtensionService)) ? new Proxy(iBinder) : (IBenesseExtensionService) queryLocalInterface;
}

public IBinder asBinder() {
return this;
}

public boolean onTransact(int i, Parcel parcel, Parcel parcel2, int i2) throws RemoteException {
if (i != 1598968902) {
switch (i) {
case TRANSACTION_getDchaState /*1*/:
parcel.enforceInterface(DESCRIPTOR);
int dchaState = getDchaState();
parcel2.writeNoException();
parcel2.writeInt(dchaState);
return true;
case TRANSACTION_setDchaState /*2*/:
parcel.enforceInterface(DESCRIPTOR);
setDchaState(parcel.readInt());
parcel2.writeNoException();
return true;
case TRANSACTION_getString /*3*/:
parcel.enforceInterface(DESCRIPTOR);
String string = getString(parcel.readString());
parcel2.writeNoException();
parcel2.writeString(string);
return true;
case TRANSACTION_getInt /*4*/:
parcel.enforceInterface(DESCRIPTOR);
int i3 = getInt(parcel.readString());
parcel2.writeNoException();
parcel2.writeInt(i3);
return true;
case TRANSACTION_putInt /*5*/:
parcel.enforceInterface(DESCRIPTOR);
boolean putInt = putInt(parcel.readString(), parcel.readInt());
parcel2.writeNoException();
parcel2.writeInt(putInt ? 1 : 0);
return true;
case TRANSACTION_checkPassword /*6*/:
parcel.enforceInterface(DESCRIPTOR);
boolean checkPassword = checkPassword(parcel.readString());
parcel2.writeNoException();
parcel2.writeInt(checkPassword ? 1 : 0);
return true;
default:
return super.onTransact(i, parcel, parcel2, i2);
}
} else {
parcel2.writeString(DESCRIPTOR);
return true;
}
}
}

boolean checkPassword(String str) throws RemoteException;

int getDchaState() throws RemoteException;

int getInt(String str) throws RemoteException;

String getString(String str) throws RemoteException;

boolean putInt(String str, int i) throws RemoteException;

void setDchaState(int i) throws RemoteException;
}
Loading

0 comments on commit 5ae2b16

Please sign in to comment.