Skip to content

Commit

Permalink
1.4.2 Update
Browse files Browse the repository at this point in the history
  • Loading branch information
0bbedCode committed Mar 16, 2024
1 parent 9157000 commit acb2f2e
Show file tree
Hide file tree
Showing 183 changed files with 4,430 additions and 5,833 deletions.
10 changes: 0 additions & 10 deletions .idea/deploymentTargetDropDown.xml

This file was deleted.

Empty file.
116 changes: 59 additions & 57 deletions app/src/main/assets/configs.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,84 +2,86 @@
{
"name": "Samsung Galaxy Note 9 (SM-N960U) Device",
"settings": {
"build.BOARD": "sdm845", //[Aida64][System] Board
"build.BOOTLOADER": "N960USQU2CSI1", //[Aida64][Android] Bootloader
"build.BRAND": "samsung", //[Aida64][System] Brand
"build.CODENAME": "Crown", //[Aida64][System] Device Codename
"build.DEVICE": "crownqItesq", //[Aida64][System] Device
"build.DISPLAY": "PPR1.180610.011.N960USQU2CSI1", //[Aida64][Android] Build ID
"build.FINGERPRINT": "samsung/crownqItesq/crownqItesq:9/PPR1.180610.011/N960USQU2CSI1:user/release-keys", //[Android] Fingerprint
"build.HARDWARE" : "qcom", //[Aida64][System] Hardware
"build.HOST": "SWDH7920", //[com.ghuman.apps.batterynotifier][Device Info][Device] Host
"build.ID": "PPE1.180610.011", //[Aida64][Android] ID
"build.INCREMENTAL": "N960USQU2CSI1", //[Aida64][Android] Incremental
"build.MANUFACTURER": "samsung", //[Aida64][System] Manufacturer
"build.MODEL": "SM-N960U", //[Aida64][System] Model
"build.PRODUCT": "crownqItesq", //[Aida64][System] Product
"build.RADIO": "unknown", //NA
"build.RELEASE": "9", //[Aida64][Android] Android Version
"build.SECURITY_PATCH" : "2019-09-01", //[Aida64][Android] Android Security Patch Level
"build.SERIAL": "RF8K81K25RW", //[Aida64][System] Serial
"build.SOC_MODEL": "Qualcomm", //[ru.andr7e.deviceinfohw][Device Info HW][SOC] Model
"cpu.soc.model": "sdm845", //[Aida64][System] Board
"device.bootloader": "N960USQU2CSI1", //[Aida64][Android] Bootloader
"device.brand": "samsung", //[Aida64][System] Brand
"device.codename": "Crown", //[Aida64][System] Device Codename
"device.nick.name": "crownqItesq", //[Aida64][System] Device
"android.build.display.id": "PPR1.180610.011.N960USQU2CSI1", //[Aida64][Android] Build ID
"android.build.fingerprint": "samsung/crownqItesq/crownqItesq:9/PPR1.180610.011/N960USQU2CSI1:user/release-keys", //[Android] Fingerprint
"cpu.hardware.name" : "qcom", //[Aida64][System] Hardware
"android.build.host": "SWDH7920", //[com.ghuman.apps.batterynotifier][Device Info][Device] Host
"android.build.id": "PPE1.180610.011", //[Aida64][Android] ID
"android.build.incremental": "N960USQU2CSI1", //[Aida64][Android] Incremental
"device.manufacturer": "samsung", //[Aida64][System] Manufacturer
"device.model": "SM-N960U", //[Aida64][System] Model
"android.build.codename": "crownqItesq", //[Aida64][System] Product
"android.build.radio": "unknown", //NA
"android.build.version": "9", //[Aida64][Android] Android Version
"android.build.patch" : "2019-09-01", //[Aida64][Android] Android Security Patch Level
"unique.serial.no": "RF8K81K25RW", //[Aida64][System] Serial
"android.build.tags": "Qualcomm", //[ru.andr7e.deviceinfohw][Device Info HW][SOC] Model
"build.TAGS": "release-keys", //[Aida64][Android] Tags
"build.TIME": "1609459200000", //Unix Epoch Time Stamp
"build.TYPE": "user", //[Aida64][Android] Type
"build.USER": "dpi", //[ru.andr7e.deviceinfohw][Device Info HW][SYSTEM] Builder (before the '@' symbol)
"android.build.date.utc": "1609459200000", //Unix Epoch Time Stamp
"android.build.type": "user", //[Aida64][Android] Type
"android.build.user": "dpi", //[ru.andr7e.deviceinfohw][Device Info HW][SYSTEM] Builder (before the '@' symbol)

"memory.total": "8", //8GB
"memory.available": "7", //7GB

"buid.CPU_ABI": "arm64-v8a", //NA
"buid.CPU_ABI2": "", //NA
"cpu.abi": "arm64-v8a", //NA
"cpu.abilist": "", //NA

"cpu.processor_count": "8",
"cpu.processor.count": "8",

"cpu.sysname": "Linux", //Termux "uname -a"
"cpu.nodename": "localhost", //Termux "uname -a"
"cpu.release": "4.9.112-16352588", //[ru.andr7e.deviceinfohw][Device Info HW][GENERAL] Kernel (before the '#' symbol)
"cpu.version": "#2 SMP PREEMPT Tue Sep 3 14:02:52 KST 2019", //[ru.andr7e.deviceinfohw][Device Info HW][GENERAL] Kernel (begining '#' symbol)
"cpu.machine": "aarch64" //Termux "uname -a" or [ru.andr7e.deviceinfohw][Device Info HW][SOC] Machine
"android.kernel.sys.name": "Linux", //Termux "uname -a"
"android.kernel.node.name": "localhost", //Termux "uname -a"
"android.kernel.release": "4.9.112-16352588", //[ru.andr7e.deviceinfohw][Device Info HW][GENERAL] Kernel (before the '#' symbol)
"android.kernel.version": "#2 SMP PREEMPT Tue Sep 3 14:02:52 KST 2019", //[ru.andr7e.deviceinfohw][Device Info HW][GENERAL] Kernel (begining '#' symbol)
"cpu.arch": "aarch64" //Termux "uname -a" or [ru.andr7e.deviceinfohw][Device Info HW][SOC] Machine
}
},
//FOR ones with constants have a drop down
{
"name": "Siminn (Iceland) Carrier",
"settings": {
"phone.countryiso": "IS",
"LAC": "2345",
"CID": "98765432", //Unqie
"zone.language.iso": "IS",
"gsm.cell.location.lac": "2345",
"gsm.cell.location.cid": "98765432", //Unqie
"phone.datastate": "2", //DATA_DISCONNECTED=0, DATA_DISCONNECTING=4, DATA_ENABLED_REASON_CARRIER=2, DATA_ENABLED_REASON_OVERRIDE=4, DATA_ENABLED_REASON_POLICY=1, DATA_ENABLED_REASON_THERMAL=3, DATA_ENABLED_REASON_UNKNOWN/DATA_UNKNOWN=-1, DATA_ENABLED_REASON_USER=0, DATA_HANDOVER_IN_PROGRESS=5, DATA_SUSPENDED=3
"value.imei": "%random%", //GSM
"value.meid": "%random%", //CDMA
"phone.mcc": "274",
"phone.mnc": "299",
"phone.msin": "842762952",
"phone.subscriberid": "", //Not needed if MCC and MNC and MSIN Set
"phone.isp": "Siminn", //Carrier Name
"phone.simserial": "%random%",
"phone.simstate": "5", //SIM_STATE_ABSENT=1, SIM_STATE_CARD_IO_ERROR=8, SIM_STATE_CARD_RESTRICTED=9, SIM_STATE_NETWORK_LOCKED=4, SIM_STATE_NOT_READY=6, SIM_STATE_PERM_DISABLED=7, SIM_STATE_PIN_REQUIRED=2, SIM_STATE_PUK_REQUIRED=3, SIM_STATE_READY=5, SIM_STATE_UNKNOWN=0
"unique.gsm.imei": "%random%", //GSM
"unique.gsm.meid": "%random%", //CDMA
"gsm.operator.mcc": "274",
"gsm.operator.mnc": "299",
"gsm.operator.msin": "842762952",
"gsm.operator.id": "", //Not needed if MCC and MNC and MSIN Set
"gsm.network.carrier": "Siminn", //Carrier Name
"unique.gsm.sim.serial": "%random%",
"gsm.sim.state.number": "5", //SIM_STATE_ABSENT=1, SIM_STATE_CARD_IO_ERROR=8, SIM_STATE_CARD_RESTRICTED=9, SIM_STATE_NETWORK_LOCKED=4, SIM_STATE_NOT_READY=6, SIM_STATE_PERM_DISABLED=7, SIM_STATE_PIN_REQUIRED=2, SIM_STATE_PUK_REQUIRED=3, SIM_STATE_READY=5, SIM_STATE_UNKNOWN=0
"value.phone_number": "4652445",
"phone.voicemailid": "4652445",
"phone.sim_type": "1", //SUBSCRIPTION_TYPE_LOCAL_SIM = 0, SUBSCRIPTION_TYPE_REMOTE_SIM = 1
"phone.type": "2" //PHONE_TYPE_CDMA=2, PHONE_TYPE_GSM=1, PHONE_TYPE_NONE=0, PHONE_TYPE_SIP=3
"gsm.sim.state": "1", //SUBSCRIPTION_TYPE_LOCAL_SIM = 0, SUBSCRIPTION_TYPE_REMOTE_SIM = 1
"gsm.phone.type": "2" //PHONE_TYPE_CDMA=2, PHONE_TYPE_GSM=1, PHONE_TYPE_NONE=0, PHONE_TYPE_SIP=3
}
},
{
"name": "Unique Device IDs 1",
"settings": {
"net.mac": "f9:4e:77:73:31:69",
"net.ssid": "SpyNetwork",
"net.bssid": "94:d5:57:e2:2b:b0",
"bluetooth.id": "c1:b2:6c:cc:c5:24",
"phone.subscriberid": "274299842762952",
"phone.simserial": "59672003871946218108",//20
"ad.id": "84630630-u4ls-k487-f35f-h37afe0pomwq",
"gsf.id": "WQF5UZLYM38NBXS2",
"drm.id": "dgau6mczv8jnqx7y9hker325w4sbfttj5v6qngyu4srf32wm9hvgy46n5c",
"value.phone_number": "1111111111",
"value.imei": "201390905257271",
"value.meid": "99000038247101",
"value.android_id": "zrwt2dfhq83ja9mu"
"unique.serial.no":"840er743",
"unique.gsm.subscription.id": "93939251723998531487",
"unique.gsm.imei": "743893156789320",
"unique.gsm.meid": "743893156789320",
"unique.gsm.icc.id": "891004234814455936F",
"unique.gsm.phone.number": "6666666666",
"unique.gsm.sim.serial": "djhwlmt51pd30ar4ymtk",
"unique.gsm.voicemail.id": "abc",
"unique.bluetooth.address": "00:00:00:00:00:00",
"unique.network.mac.address": "00:00:00:00:00:00",
"unique.google.advertising.id": "84630630-u4ls-k487-f35f-h37afe0pomwq",
"unique.android.id": "0329184861423674",
"unique.drm.id": "slvwoputzjflhwfozqjqtloqpxudqrrxtirqjgxtzairmaftdxruhmflneex",
"unique.gsf.id": "FMZIYEVGXZDCENRO",
"unique.network.ssid": "Starbucks Free-Wifi"
}
}
]
4 changes: 3 additions & 1 deletion app/src/main/assets/propmaps.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,11 @@
{ "settingName": "bluetooth.soc", "propNames": [ "vendor.bluetooth.soc" ] },

//Unique Identifiers
{ "settingName": "unique.serial.no", "propNames": [ "ro.serialno", "ro.boot.serialno" ] },
{ "settingName": "unique.serial.no", "propNames": [ "ro.serialno", "ro.boot.serialno", "ril.serialnumber", "gsm.sn1", "sys.serialnumber" ] },
{ "settingName": "unique.gsm.imei", "propNames": [ "persist.radio.imei1", "getprop ro.ril.oem.imei1" ] },



//Zone Settings (Time, Date, Region, Language)
{ "settingName": "zone.timezone.id", "propNames": [ "persist.sys.timezone" ] },
{ "settingName": "zone.country.iso", "propNames": [ "persist.sys.country", "gsm.operator.iso-country", "gsm.sim.operator.iso-country" ] },
Expand Down
7 changes: 4 additions & 3 deletions app/src/main/assets/settingdefaults.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{ "name": "device.manufacturer", "description": "Device Manufacturer Name", "value": "OnePlus" },
{ "name": "device.nick.name", "description": "Device Special name or Nick name", "value": "OnePlus7ProNR" },
{ "name": "device.model", "description": "Device Model Identifier", "value": "GM1920" },
{ "name": "device.codename", "description": "Device Codename (usally is food)", "value": "guacamoles" },
{ "name": "device.codename", "description": "Device Codename (usually is food) or something fun", "value": "guacamoles" },
{ "name": "device.bootloader", "description": "Bootloader name", "value": "G1HZK00500" },
{ "name": "device.boot.mode", "description": "Boot Mode", "value": "normal" },

Expand Down Expand Up @@ -37,7 +37,7 @@
{ "name": "java.vm.name", "description": "Java Virtual Machine Name", "value": "Dalvik"},

//Android Kernel Default Settings
{ "name": "android.kernel.name", "description": "Kernel Kind Name (Linux, Unix...)", "value": "Linux" },
{ "name": "android.kernel.sys.name", "description": "Kernel Kind Name (Linux, Unix...)", "value": "Linux" },
{ "name": "android.kernel.version", "description": "Kernel Version Info long", "value": "SMP PREEMPT Tue Oct 3 17:44:36 IDT 2023" },
{ "name": "android.kernel.release", "description": "Kernel Release Number", "value": "4.14.326" },
{ "name": "android.kernel.node.name", "description": "Kernel Build nodename (localhost)", "value": "localhost" },
Expand All @@ -53,6 +53,7 @@
{ "name": "cpu.base.band", "description": "CPU Band Name", "value": "mdm" },
{ "name": "cpu.hardware.name", "description": "Like Manufacturer name of Hardware CPU", "value": "qcom" },
{ "name": "cpu.soc.model", "description": "Model Name of SOC", "value": "SM8150" },
{ "name": "cpu.soc.manufacturer", "description": "Manufacturer", "value": "Qualcomm" },
{ "name": "cpu.processor.count", "description": "The Amount of Processors in the CPU", "value": "8" },

//Android GPU Default Settings
Expand Down Expand Up @@ -102,7 +103,6 @@
{ "name": "unique.gsf.id", "description": "Google Services Framework ID", "value": "FMZIYEVGXZDCENRO" },
{ "name": "unique.network.ssid", "description": "Wifi SSID", "value": "Starbucks Free-Wifi" },


//Zone Default Settings (Time, Date, Region, Language)
{ "name": "zone.timezone.id", "description": "TimeZone ID (Atlantic/Reykjavik)", "value": "Atlantic/Reykjavik" },
{ "name": "zone.country.iso", "description": "Country ISO3 ID", "value": "IS" },
Expand Down Expand Up @@ -137,6 +137,7 @@
{ "name": "gsm.phone.type", "description": "GSM=(1) CDMA=(2) NONE=(0) SIP=(3)", "value": "1" },
{ "name": "gsm.sim.type", "description": "LOCAL_SIM=(0) REMOTE_SIM=(1)", "value": "0" },
{ "name": "gsm.sim.state", "description": "State of the SIM Card (SIM_STATE_READY)", "value": "READY" },
{ "name": "gsm.sim.state.number", "description": "State of the SIM Card (SIM_STATE_READY) Number", "value": "5" },
{ "name": "gsm.data.state", "description": "Current data connection state (cellular)", "value": "2" },
{ "name": "gsm.sim.card.id", "description": "The card ID of the SIM card which contains the subscription.", "value": "8457894" },

Expand Down
3 changes: 2 additions & 1 deletion app/src/main/java/eu/faircode/xlua/ActivityMain.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
import androidx.fragment.app.FragmentManager;
import androidx.fragment.app.FragmentTransaction;

import eu.faircode.xlua.api.standard.UserIdentityPacket;
import eu.faircode.xlua.api.xlua.provider.XLuaHookProvider;
import eu.faircode.xlua.api.xlua.XLuaCall;

Expand Down Expand Up @@ -466,7 +467,7 @@ private void menuHelp() {
private void menuConfig() { startActivity(new Intent(this, ActivityConfig.class)); }
private void menuSettings() {
Intent settingIntent = new Intent(this, ActivitySettings.class);
settingIntent.putExtra("packageName", "Global");
settingIntent.putExtra("packageName", UserIdentityPacket.GLOBAL_NAMESPACE);
startActivity(settingIntent);
//startActivity(new Intent(this, ActivitySettings.class));
}
Expand Down
42 changes: 40 additions & 2 deletions app/src/main/java/eu/faircode/xlua/ActivityProperties.java
Original file line number Diff line number Diff line change
@@ -1,22 +1,37 @@
package eu.faircode.xlua;

import android.content.Intent;
import android.annotation.SuppressLint;
import android.content.Context;
import android.content.res.Configuration;
import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;
import android.util.Log;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.widget.Toast;

import androidx.appcompat.widget.SearchView;
import androidx.fragment.app.FragmentManager;
import androidx.fragment.app.FragmentTransaction;

public class ActivityProperties extends ActivityBase {
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

import eu.faircode.xlua.api.XResult;
import eu.faircode.xlua.api.properties.MockPropPacket;
import eu.faircode.xlua.api.xmock.XMockCall;
import eu.faircode.xlua.dialogs.IPropertyDialogListener;

public class ActivityProperties extends ActivityBase implements IPropertyDialogListener {
private static final String TAG = "XLua.ActivityProperties";
private FragmentProperties fragmentProps;
private Menu menu = null;

private final ExecutorService executor = Executors.newSingleThreadExecutor();
private final Object lock = new Object();

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Expand Down Expand Up @@ -114,4 +129,27 @@ public boolean onOptionsItemSelected(MenuItem item) {
return super.onOptionsItemSelected(item);
//return false;
}

@Override
public void pushMockPropPacket(final MockPropPacket setting) {
final Context context = getApplicationContext();
Log.i(TAG, "Packet being sent to bridge =" + setting);

executor.submit(new Runnable() {
@Override
public void run() {
synchronized (lock) {
final XResult ret = XMockCall.putMockProp(context, setting);
new Handler(Looper.getMainLooper()).post(new Runnable() {
@SuppressLint("NotifyDataSetChanged")
@Override
public void run() {
Toast.makeText(context, ret.getResultMessage(), Toast.LENGTH_SHORT).show();
fragmentProps.loadData();
}
});
}
}
});
}
}
41 changes: 40 additions & 1 deletion app/src/main/java/eu/faircode/xlua/ActivitySettings.java
Original file line number Diff line number Diff line change
@@ -1,21 +1,37 @@
package eu.faircode.xlua;

import android.annotation.SuppressLint;
import android.content.Context;
import android.content.res.Configuration;
import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;
import android.util.Log;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.widget.Toast;

import androidx.appcompat.widget.SearchView;
import androidx.fragment.app.FragmentManager;
import androidx.fragment.app.FragmentTransaction;

public class ActivitySettings extends ActivityBase {
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

import eu.faircode.xlua.api.XResult;
import eu.faircode.xlua.api.settings.LuaSettingPacket;
import eu.faircode.xlua.api.xlua.XLuaCall;
import eu.faircode.xlua.dialogs.ISettingDialogListener;

public class ActivitySettings extends ActivityBase implements ISettingDialogListener {
private static final String TAG = "XLua.ActivitySettings";
private FragmentSettings fragmentSettings;
private Menu menu = null;

private final ExecutorService executor = Executors.newSingleThreadExecutor();
private final Object lock = new Object();

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Expand Down Expand Up @@ -104,4 +120,27 @@ public boolean onOptionsItemSelected(MenuItem item) {
return super.onOptionsItemSelected(item);
//return false;
}

@Override
public void pushSettingPacket(final LuaSettingPacket packet) {
final Context context = getApplicationContext();
Log.i(TAG, "Packet being sent to bridge =" + packet);

executor.submit(new Runnable() {
@Override
public void run() {
synchronized (lock) {
final XResult ret = XLuaCall.sendMockSetting(context, packet);
new Handler(Looper.getMainLooper()).post(new Runnable() {
@SuppressLint("NotifyDataSetChanged")
@Override
public void run() {
Toast.makeText(context, ret.getResultMessage(), Toast.LENGTH_SHORT).show();
fragmentSettings.loadData();
}
});
}
}
});
}
}
Loading

0 comments on commit acb2f2e

Please sign in to comment.