violet: IFAA: Update for S

Ugly... Ugh...

Change-Id: Ie2861678104fd81c7c8e0791df3d98754a6e50c3
This commit is contained in:
Pig
2022-02-03 11:07:26 -05:00
committed by Joker-V2
parent b99293f3a9
commit 8196845258
2 changed files with 114 additions and 3 deletions

View File

@@ -20,13 +20,17 @@
android:sharedUserId="android.uid.system">
<uses-sdk
android:minSdkVersion="28"
android:targetSdkVersion="28" />
android:minSdkVersion="30"
android:targetSdkVersion="30" />
<application
android:label="IFAAService">
<service android:name=".IFAAService"
android:exported="true" />
android:exported="true" >
<intent-filter>
<action android:name="org.ifaa.aidl.manager.IfaaManagerService"/>
</intent-filter>
</service>
</application>
</manifest>

View File

@@ -0,0 +1,107 @@
package org.ifaa.aidl.manager;
import android.os.Binder;
import android.os.IBinder;
import android.os.IInterface;
import android.os.Parcel;
import android.os.RemoteException;
/* loaded from: classes.dex */
public interface IFAAManagerService extends IInterface {
String getDeviceModel() throws RemoteException;
int getEnabled(int i) throws RemoteException;
String getExtInfo(int i, String str) throws RemoteException;
int[] getIDList(int i) throws RemoteException;
int getSupportBIOTypes() throws RemoteException;
int getVersion() throws RemoteException;
byte[] processCmd(byte[] bArr) throws RemoteException;
void setExtInfo(int i, String str, String str2) throws RemoteException;
int startBIOManager(int i) throws RemoteException;
/* loaded from: classes.dex */
public static abstract class Stub extends Binder implements IFAAManagerService {
@Override // android.os.IInterface
public IBinder asBinder() {
return this;
}
public Stub() {
attachInterface(this, "org.ifaa.aidl.manager.IfaaManagerService");
}
@Override // android.os.Binder
public boolean onTransact(int i, Parcel parcel, Parcel parcel2, int i2) throws RemoteException {
if (i != 1598968902) {
switch (i) {
case 1:
parcel.enforceInterface("org.ifaa.aidl.manager.IfaaManagerService");
int supportBIOTypes = getSupportBIOTypes();
parcel2.writeNoException();
parcel2.writeInt(supportBIOTypes);
return true;
case 2:
parcel.enforceInterface("org.ifaa.aidl.manager.IfaaManagerService");
int startBIOManager = startBIOManager(parcel.readInt());
parcel2.writeNoException();
parcel2.writeInt(startBIOManager);
return true;
case 3:
parcel.enforceInterface("org.ifaa.aidl.manager.IfaaManagerService");
String deviceModel = getDeviceModel();
parcel2.writeNoException();
parcel2.writeString(deviceModel);
return true;
case 4:
parcel.enforceInterface("org.ifaa.aidl.manager.IfaaManagerService");
byte[] createByteArray = parcel.createByteArray();
byte[] processCmd = processCmd(createByteArray);
parcel2.writeNoException();
parcel2.writeByteArray(processCmd);
parcel2.writeByteArray(createByteArray);
return true;
case 5:
parcel.enforceInterface("org.ifaa.aidl.manager.IfaaManagerService");
int version = getVersion();
parcel2.writeNoException();
parcel2.writeInt(version);
return true;
case 6:
parcel.enforceInterface("org.ifaa.aidl.manager.IfaaManagerService");
String extInfo = getExtInfo(parcel.readInt(), parcel.readString());
parcel2.writeNoException();
parcel2.writeString(extInfo);
return true;
case 7:
parcel.enforceInterface("org.ifaa.aidl.manager.IfaaManagerService");
setExtInfo(parcel.readInt(), parcel.readString(), parcel.readString());
parcel2.writeNoException();
return true;
case 8:
parcel.enforceInterface("org.ifaa.aidl.manager.IfaaManagerService");
int enabled = getEnabled(parcel.readInt());
parcel2.writeNoException();
parcel2.writeInt(enabled);
return true;
case 9:
parcel.enforceInterface("org.ifaa.aidl.manager.IfaaManagerService");
int[] iDList = getIDList(parcel.readInt());
parcel2.writeNoException();
parcel2.writeIntArray(iDList);
return true;
default:
return super.onTransact(i, parcel, parcel2, i2);
}
} else {
parcel2.writeString("org.ifaa.aidl.manager.IfaaManagerService");
return true;
}
}
}
}