mirror of
https://github.com/MGislv/NekoX.git
synced 2024-07-04 11:13:36 +00:00
max accounts to 8 & support installing apk
This commit is contained in:
parent
c0a606aadd
commit
d5d5ceb104
|
@ -137,9 +137,24 @@ ConnectionsManager& ConnectionsManager::getInstance(int32_t instanceNum) {
|
|||
static ConnectionsManager instance1(1);
|
||||
return instance1;
|
||||
case 2:
|
||||
default:
|
||||
static ConnectionsManager instance2(2);
|
||||
return instance2;
|
||||
case 3:
|
||||
static ConnectionsManager instance3(3);
|
||||
return instance3;
|
||||
case 4:
|
||||
static ConnectionsManager instance4(4);
|
||||
return instance4;
|
||||
case 5:
|
||||
static ConnectionsManager instance5(5);
|
||||
return instance5;
|
||||
case 6:
|
||||
static ConnectionsManager instance6(6);
|
||||
return instance6;
|
||||
case 7:
|
||||
default:
|
||||
static ConnectionsManager instance7(7);
|
||||
return instance7;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
#define DOWNLOAD_CONNECTIONS_COUNT 2
|
||||
#define UPLOAD_CONNECTIONS_COUNT 4
|
||||
#define CONNECTION_BACKGROUND_KEEP_TIME 10000
|
||||
#define MAX_ACCOUNT_COUNT 3
|
||||
#define MAX_ACCOUNT_COUNT 8
|
||||
#define USE_DELEGATE_HOST_RESOLVE
|
||||
|
||||
#define DOWNLOAD_CHUNK_SIZE 1024 * 32
|
||||
|
|
|
@ -46,6 +46,7 @@
|
|||
<uses-permission android:name="android.permission.CAMERA" />
|
||||
<uses-permission android:name="android.permission.BLUETOOTH" />
|
||||
<uses-permission android:name="android.permission.MANAGE_OWN_CALLS"/>
|
||||
<uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES"/>
|
||||
|
||||
<uses-permission android:name="com.sec.android.provider.badge.permission.READ"/>
|
||||
<uses-permission android:name="com.sec.android.provider.badge.permission.WRITE"/>
|
||||
|
|
|
@ -67,7 +67,7 @@ import java.util.concurrent.CountDownLatch;
|
|||
public class DataQuery {
|
||||
|
||||
private int currentAccount;
|
||||
private static volatile DataQuery[] Instance = new DataQuery[3];
|
||||
private static volatile DataQuery[] Instance = new DataQuery[8];
|
||||
public static DataQuery getInstance(int num) {
|
||||
DataQuery localInstance = Instance[num];
|
||||
if (localInstance == null) {
|
||||
|
|
|
@ -22,7 +22,7 @@ import java.io.File;
|
|||
public class UserConfig {
|
||||
|
||||
public static int selectedAccount;
|
||||
public final static int MAX_ACCOUNT_COUNT = 3;
|
||||
public final static int MAX_ACCOUNT_COUNT = 8;
|
||||
|
||||
private final Object sync = new Object();
|
||||
private boolean configLoaded;
|
||||
|
|
Loading…
Reference in New Issue
Block a user