diff --git a/app/aarch64/release/output-metadata.json b/app/aarch64/release/output-metadata.json
deleted file mode 100644
index fc33ebb5..00000000
--- a/app/aarch64/release/output-metadata.json
+++ /dev/null
@@ -1,59 +0,0 @@
-{
- "version": 2,
- "artifactType": {
- "type": "APK",
- "kind": "Directory"
- },
- "applicationId": "com.darkweb.genesissearchengine",
- "variantName": "aarch64Release",
- "elements": [
- {
- "type": "ONE_OF_MANY",
- "filters": [
- {
- "filterType": "ABI",
- "value": "x86_64"
- }
- ],
- "versionCode": 1001,
- "versionName": "Build | Dark-Origin 1.1",
- "outputFile": "app-aarch64-x86_64-release.apk"
- },
- {
- "type": "ONE_OF_MANY",
- "filters": [
- {
- "filterType": "ABI",
- "value": "x86"
- }
- ],
- "versionCode": 1001,
- "versionName": "Build | Dark-Origin 1.1",
- "outputFile": "app-aarch64-x86-release.apk"
- },
- {
- "type": "ONE_OF_MANY",
- "filters": [
- {
- "filterType": "ABI",
- "value": "armeabi-v7a"
- }
- ],
- "versionCode": 1001,
- "versionName": "Build | Dark-Origin 1.1",
- "outputFile": "app-aarch64-armeabi-v7a-release.apk"
- },
- {
- "type": "ONE_OF_MANY",
- "filters": [
- {
- "filterType": "ABI",
- "value": "arm64-v8a"
- }
- ],
- "versionCode": 1001,
- "versionName": "Build | Dark-Origin 1.1",
- "outputFile": "app-aarch64-arm64-v8a-release.apk"
- }
- ]
-}
\ No newline at end of file
diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index 490f09aa..c11ac1e0 100755
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -126,6 +126,8 @@
android:launchMode="singleTop"
android:screenOrientation="portrait"
android:windowSoftInputMode="adjustPan">
+
@@ -143,6 +145,10 @@
+
+
+
diff --git a/app/src/main/ic_launcher-playstore.png b/app/src/main/ic_launcher-playstore.png
index e53e4c41..3e8091ac 100644
Binary files a/app/src/main/ic_launcher-playstore.png and b/app/src/main/ic_launcher-playstore.png differ
diff --git a/app/src/main/java/com/darkweb/genesissearchengine/appManager/homeManager/geckoManager/geckoSession.java b/app/src/main/java/com/darkweb/genesissearchengine/appManager/homeManager/geckoManager/geckoSession.java
index 36f120a5..bf5c3a57 100644
--- a/app/src/main/java/com/darkweb/genesissearchengine/appManager/homeManager/geckoManager/geckoSession.java
+++ b/app/src/main/java/com/darkweb/genesissearchengine/appManager/homeManager/geckoManager/geckoSession.java
@@ -1023,11 +1023,12 @@ public class geckoSession extends GeckoSession implements GeckoSession.MediaDele
}
private void checkApplicationRate(){
- if(status.sRateCount==40){
- event.invokeObserver(Arrays.asList(mCurrentURL,mSessionID,mCurrentTitle, mTheme), M_RATE_APPLICATION);
+ if(status.sSettingIsAppStarted){
+ if(status.sRateCount==40){
+ event.invokeObserver(Arrays.asList(mCurrentURL,mSessionID,mCurrentTitle, mTheme), M_RATE_APPLICATION);
+ }
+ status.sRateCount+=1;
+ event.invokeObserver(Arrays.asList(mCurrentURL,mSessionID,mCurrentTitle, mTheme), M_RATE_COUNT);
}
- status.sRateCount+=1;
- event.invokeObserver(Arrays.asList(mCurrentURL,mSessionID,mCurrentTitle, mTheme), M_RATE_COUNT);
}
-
}
diff --git a/app/src/main/java/com/darkweb/genesissearchengine/appManager/homeManager/homeController/homeController.java b/app/src/main/java/com/darkweb/genesissearchengine/appManager/homeManager/homeController/homeController.java
index 523e8d26..3121a8a7 100644
--- a/app/src/main/java/com/darkweb/genesissearchengine/appManager/homeManager/homeController/homeController.java
+++ b/app/src/main/java/com/darkweb/genesissearchengine/appManager/homeManager/homeController/homeController.java
@@ -706,6 +706,10 @@ public class homeController extends AppCompatActivity implements ComponentCallba
@SuppressLint("ClickableViewAccessibility")
@Override
protected void onDestroy() {
+ if(!status.sSettingIsAppStarted){
+ super.onDestroy();
+ return;
+ }
pluginController.getInstance().onOrbotInvoke(null, pluginEnums.eOrbotManager.M_DESTROY);
mBackSplash.setImageDrawable(null);
mBackSplash.setBackground(null);
@@ -1900,10 +1904,7 @@ public class homeController extends AppCompatActivity implements ComponentCallba
intent.addFlags(FLAG_ACTIVITY_NEW_TASK);
this.startActivity(intent);
overridePendingTransition(R.anim.popup_anim_in, R.anim.popup_anim_out);
- if (this
- instanceof Activity) {
- ((Activity) this).finish();
- }
+ ((Activity) this).finish();
Runtime.getRuntime().exit(0);
diff --git a/app/src/main/java/com/darkweb/genesissearchengine/appManager/settingManager/settingHomePage/settingHomeController.java b/app/src/main/java/com/darkweb/genesissearchengine/appManager/settingManager/settingHomePage/settingHomeController.java
index adb626b0..9fdf1466 100644
--- a/app/src/main/java/com/darkweb/genesissearchengine/appManager/settingManager/settingHomePage/settingHomeController.java
+++ b/app/src/main/java/com/darkweb/genesissearchengine/appManager/settingManager/settingHomePage/settingHomeController.java
@@ -1,10 +1,14 @@
package com.darkweb.genesissearchengine.appManager.settingManager.settingHomePage;
+import android.content.ClipData;
+import android.content.ClipboardManager;
+import android.content.Context;
import android.content.Intent;
import android.content.res.Configuration;
import android.os.Build;
import android.os.Bundle;
import android.view.View;
+import android.widget.Toast;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
@@ -86,6 +90,10 @@ public class settingHomeController extends AppCompatActivity
{
}
+ public void cicadaClipboard(View view) {
+ Toast.makeText(getApplicationContext(),"Authorization Failed", Toast.LENGTH_SHORT).show();
+ }
+
/*View Callbacks*/
private class settingViewCallback implements eventObserver.eventListener{
diff --git a/app/src/main/java/com/darkweb/genesissearchengine/constants/sql.java b/app/src/main/java/com/darkweb/genesissearchengine/constants/sql.java
index d1e2008e..d2dceb17 100644
--- a/app/src/main/java/com/darkweb/genesissearchengine/constants/sql.java
+++ b/app/src/main/java/com/darkweb/genesissearchengine/constants/sql.java
@@ -6,6 +6,7 @@ public class sql
public static final String SQL_CLEAR_HISTORY = "delete from history where 1";
public static final String SQL_CLEAR_BOOKMARK = "delete from bookmark where 1";
+ public static final String SQL_CLEAR_TAB = "delete from tab where 1";
}
diff --git a/app/src/main/java/com/darkweb/genesissearchengine/constants/status.java b/app/src/main/java/com/darkweb/genesissearchengine/constants/status.java
index 47df931f..b71f5d0d 100755
--- a/app/src/main/java/com/darkweb/genesissearchengine/constants/status.java
+++ b/app/src/main/java/com/darkweb/genesissearchengine/constants/status.java
@@ -16,7 +16,7 @@ public class status
{
/*App Status*/
- public static boolean sPaidStatus = false;
+ public static boolean sPaidStatus = true;
public static int mNotificationID = 1001;
/*Settings Status*/
diff --git a/app/src/main/java/com/darkweb/genesissearchengine/externalNavigationManager/externalShortcuts.java b/app/src/main/java/com/darkweb/genesissearchengine/externalNavigationManager/externalShortcuts.java
new file mode 100644
index 00000000..b37a30ea
--- /dev/null
+++ b/app/src/main/java/com/darkweb/genesissearchengine/externalNavigationManager/externalShortcuts.java
@@ -0,0 +1,195 @@
+package com.darkweb.genesissearchengine.externalNavigationManager;
+
+import android.app.Activity;
+import android.content.Intent;
+import android.net.Uri;
+import android.os.Bundle;
+import android.os.Handler;
+import android.view.View;
+
+import androidx.appcompat.app.AppCompatActivity;
+
+import com.darkweb.genesissearchengine.appManager.activityContextManager;
+import com.darkweb.genesissearchengine.appManager.homeManager.homeController.homeController;
+import com.darkweb.genesissearchengine.constants.constants;
+import com.darkweb.genesissearchengine.constants.enums;
+import com.darkweb.genesissearchengine.constants.keys;
+import com.darkweb.genesissearchengine.constants.sql;
+import com.darkweb.genesissearchengine.constants.status;
+import com.darkweb.genesissearchengine.constants.strings;
+import com.darkweb.genesissearchengine.dataManager.dataController;
+import com.darkweb.genesissearchengine.dataManager.dataEnums;
+import com.darkweb.genesissearchengine.databaseManager.databaseController;
+import com.darkweb.genesissearchengine.pluginManager.pluginController;
+import com.example.myapplication.R;
+
+import org.mozilla.geckoview.ContentBlocking;
+import org.torproject.android.service.wrapper.orbotLocalConstants;
+
+import java.util.Arrays;
+import java.util.Collections;
+
+import static android.content.Intent.FLAG_ACTIVITY_NEW_TASK;
+import static com.darkweb.genesissearchengine.pluginManager.pluginEnums.eMessageManager.M_DATA_CLEARED;
+import static org.mozilla.geckoview.ContentBlocking.CookieBehavior.ACCEPT_FIRST_PARTY;
+
+public class externalShortcuts extends AppCompatActivity {
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ status.sSettingIsAppStarted = false;
+ orbotLocalConstants.mIsTorInitialized = false;
+ boolean mConnect = false;
+
+ if (getIntent() != null && getIntent().getStringExtra("shortcut") != null) {
+ String bundleString = getIntent().getStringExtra("shortcut");
+ switch (bundleString) {
+ case "erase":
+ setContentView(R.layout.popup_data_cleared_shortcut);
+ panicExitInvoked();
+ new Handler().postDelayed(this::finish, 3000);
+ return;
+ case "erase_and_open":
+ panicExitInvoked();
+ mConnect = true;
+ break;
+ case "Restart":
+ break;
+ }
+ }
+
+ setContentView(R.layout.empty_view);
+
+ if(mConnect){
+ new Handler().postDelayed(() ->
+ {
+ activityContextManager.getInstance().getHomeController().onStartApplication(null);
+ }, 2000);
+ }
+
+ new Handler().postDelayed(() ->
+ {
+ Uri data = this.getIntent().getData();
+ if(data == null){
+ finish();
+ activityContextManager.getInstance().onClearStack();
+ Intent bringToForegroundIntent = new Intent(externalShortcuts.this, homeController.class);
+ bringToForegroundIntent.setFlags(Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED | Intent.FLAG_ACTIVITY_NEW_TASK);
+ startActivity(bringToForegroundIntent);
+ overridePendingTransition(R.anim.fade_in_instant, R.anim.fade_out_instant);
+ return;
+ }
+
+ if(status.sSettingIsAppStarted){
+ finish();
+ activityContextManager.getInstance().onClearStack();
+
+ new Handler().postDelayed(() ->
+ {
+ activityContextManager.getInstance().getHomeController().onOpenLinkNewTab(activityContextManager.getInstance().getHomeController().completeURL(data.toString()));
+ activityContextManager.getInstance().getHomeController().onClearSelectionTab();
+ }, 500);
+
+ Intent bringToForegroundIntent = new Intent(activityContextManager.getInstance().getHomeController(), homeController.class);
+ bringToForegroundIntent.setFlags(Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED | Intent.FLAG_ACTIVITY_NEW_TASK);
+ startActivity(bringToForegroundIntent);
+ overridePendingTransition(R.anim.fade_in_instant, R.anim.fade_out_instant);
+
+ return;
+ }else if(status.sSettingIsAppRunning){
+ finish();
+ status.sExternalWebsite = data.toString();
+ return;
+ }
+
+ Intent intent = new Intent(this.getIntent());
+ intent.setClassName(this.getApplicationContext(), homeController.class.getName());
+ intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);
+ if(data!=null){
+ if(activityContextManager.getInstance().getHomeController()!=null){
+ activityContextManager.getInstance().getHomeController().onOpenLinkNewTab(data.toString());
+ }else {
+ status.sExternalWebsite = data.toString();
+ }
+ }
+ this.startActivity(intent);
+ overridePendingTransition(R.anim.fade_in_instant, R.anim.fade_out_instant);
+
+ new Thread(){
+ public void run(){
+ try {
+ sleep(1000);
+ externalShortcuts.this.runOnUiThread(() -> finish());
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+ }.start();
+
+ Intent launchIntent = getPackageManager().getLaunchIntentForPackage("com.darkweb.genesissearchengine");
+ startActivity(launchIntent);
+ overridePendingTransition(R.anim.fade_in_instant, R.anim.fade_out_instant);
+ }, 800);
+
+ }
+
+
+ @Override
+ protected void onNewIntent(Intent intent)
+ {
+ super.onNewIntent(intent);
+ Uri data = intent.getData();
+ if(data!=null){
+ activityContextManager.getInstance().getHomeController().onOpenLinkNewTab(data.toString());
+ Intent launchIntent = getPackageManager().getLaunchIntentForPackage("com.darkweb.genesissearchengine");
+ startActivity(launchIntent);
+ overridePendingTransition(R.anim.fade_in_instant, R.anim.fade_out_instant);
+ }
+ }
+
+ public void panicExitInvoked() {
+ status.sSettingIsAppStarted = false;
+ dataController.getInstance().invokePrefs(dataEnums.ePreferencesCommands.M_SET_BOOL, Arrays.asList(keys.SETTING_SEARCH_HISTORY,true));
+ dataController.getInstance().invokePrefs(dataEnums.ePreferencesCommands.M_SET_BOOL, Arrays.asList(keys.SETTING_SEARCH_SUGGESTION,true));
+ dataController.getInstance().invokePrefs(dataEnums.ePreferencesCommands.M_SET_BOOL, Arrays.asList(keys.SETTING_JAVA_SCRIPT,true));
+ dataController.getInstance().invokePrefs(dataEnums.ePreferencesCommands.M_SET_BOOL, Arrays.asList(keys.SETTING_HISTORY_CLEAR,true));
+ dataController.getInstance().invokePrefs(dataEnums.ePreferencesCommands.M_SET_BOOL, Arrays.asList(keys.SETTING_GATEWAY,true));
+ dataController.getInstance().invokePrefs(dataEnums.ePreferencesCommands.M_SET_BOOL, Arrays.asList(keys.SETTING_GATEWAY_MANUAL,false));
+ dataController.getInstance().invokePrefs(dataEnums.ePreferencesCommands.M_SET_BOOL, Arrays.asList(keys.SETTING_IS_WELCOME_ENABLED,true));
+ dataController.getInstance().invokePrefs(dataEnums.ePreferencesCommands.M_SET_BOOL, Arrays.asList(keys.PROXY_IS_APP_RATED,false));
+ dataController.getInstance().invokePrefs(dataEnums.ePreferencesCommands.M_SET_BOOL, Arrays.asList(keys.VPN_ENABLED,false));
+ dataController.getInstance().invokePrefs(dataEnums.ePreferencesCommands.M_SET_BOOL, Arrays.asList(keys.BRIDGE_ENABLES,false));
+ dataController.getInstance().invokePrefs(dataEnums.ePreferencesCommands.M_SET_BOOL, Arrays.asList(keys.SETTING_FONT_ADJUSTABLE,true));
+ dataController.getInstance().invokePrefs(dataEnums.ePreferencesCommands.M_SET_BOOL, Arrays.asList(keys.SETTING_ZOOM,true));
+ dataController.getInstance().invokePrefs(dataEnums.ePreferencesCommands.M_SET_BOOL, Arrays.asList(keys.SETTING_VOICE_INPUT,true));
+ dataController.getInstance().invokePrefs(dataEnums.ePreferencesCommands.M_SET_INT, Arrays.asList(keys.SETTING_TRACKING_PROTECTION, ContentBlocking.AntiTracking.DEFAULT));
+ dataController.getInstance().invokePrefs(dataEnums.ePreferencesCommands.M_SET_BOOL, Arrays.asList(keys.SETTING_DONOT_TRACK,true));
+ dataController.getInstance().invokePrefs(dataEnums.ePreferencesCommands.M_SET_INT, Arrays.asList(keys.SETTING_COOKIE_ADJUSTABLE,ACCEPT_FIRST_PARTY));
+ dataController.getInstance().invokePrefs(dataEnums.ePreferencesCommands.M_SET_FLOAT, Arrays.asList(keys.SETTING_FONT_SIZE,100));
+ dataController.getInstance().invokePrefs(dataEnums.ePreferencesCommands.M_SET_STRING, Arrays.asList(keys.SETTING_LANGUAGE, strings.SETTING_DEFAULT_LANGUAGE));
+ dataController.getInstance().invokePrefs(dataEnums.ePreferencesCommands.M_SET_STRING, Arrays.asList(keys.SETTING_LANGUAGE_REGION,strings.SETTING_DEFAULT_LANGUAGE_REGION));
+ dataController.getInstance().invokePrefs(dataEnums.ePreferencesCommands.M_SET_STRING, Arrays.asList(keys.SETTING_SEARCH_ENGINE, constants.CONST_BACKEND_GENESIS_URL));
+ dataController.getInstance().invokePrefs(dataEnums.ePreferencesCommands.M_SET_STRING, Arrays.asList(keys.BRIDGE_CUSTOM_BRIDGE_1,strings.BRIDGE_CUSTOM_BRIDGE_OBFS4));
+ dataController.getInstance().invokePrefs(dataEnums.ePreferencesCommands.M_SET_INT, Arrays.asList(keys.SETTING_NOTIFICATION_STATUS,1));
+ dataController.getInstance().invokePrefs(dataEnums.ePreferencesCommands.M_SET_BOOL, Arrays.asList(keys.SETTING_RESTORE_TAB,false));
+ dataController.getInstance().invokePrefs(dataEnums.ePreferencesCommands.M_SET_BOOL, Arrays.asList(keys.SETTING_CHARACTER_ENCODING,false));
+ dataController.getInstance().invokePrefs(dataEnums.ePreferencesCommands.M_SET_INT, Arrays.asList(keys.SETTING_SHOW_IMAGES,0));
+ dataController.getInstance().invokePrefs(dataEnums.ePreferencesCommands.M_SET_BOOL, Arrays.asList(keys.SETTING_SHOW_FONTS,true));
+ dataController.getInstance().invokePrefs(dataEnums.ePreferencesCommands.M_SET_BOOL, Arrays.asList(keys.SETTING_TOOLBAR_THEME,true));
+ dataController.getInstance().invokePrefs(dataEnums.ePreferencesCommands.M_SET_BOOL, Arrays.asList(keys.SETTING_FULL_SCREEN_BROWSIING,true));
+ dataController.getInstance().invokePrefs(dataEnums.ePreferencesCommands.M_SET_INT, Arrays.asList(keys.SETTING_THEME, enums.Theme.THEME_DEFAULT));
+ dataController.getInstance().invokePrefs(dataEnums.ePreferencesCommands.M_SET_BOOL, Arrays.asList(keys.SETTING_LIST_VIEW,true));
+ dataController.getInstance().invokePrefs(dataEnums.ePreferencesCommands.M_SET_BOOL, Arrays.asList(keys.SETTING_SHOW_TAB_GRID,true));
+ dataController.getInstance().invokePrefs(dataEnums.ePreferencesCommands.M_SET_BOOL, Arrays.asList(keys.SETTING_OPEN_URL_IN_NEW_TAB,true));
+ dataController.getInstance().invokePrefs(dataEnums.ePreferencesCommands.M_SET_BOOL, Arrays.asList(keys.SETTING_POPUP,true));
+ dataController.getInstance().invokePrefs(dataEnums.ePreferencesCommands.M_SET_STRING, Arrays.asList(keys.BRIDGE_CUSTOM_TYPE,strings.BRIDGE_CUSTOM_BRIDGE_OBFS4));
+
+ databaseController.getInstance().initialize(this);
+ databaseController.getInstance().execSQL(sql.SQL_CLEAR_HISTORY,null);
+ databaseController.getInstance().execSQL(sql.SQL_CLEAR_BOOKMARK,null);
+ databaseController.getInstance().execSQL(sql.SQL_CLEAR_TAB,null);
+ status.initStatus(activityContextManager.getInstance().getHomeController());
+
+ }
+}
\ No newline at end of file
diff --git a/app/src/main/java/com/darkweb/genesissearchengine/helperManager/localFileDownloader.java b/app/src/main/java/com/darkweb/genesissearchengine/helperManager/localFileDownloader.java
index 627f2621..6d7c50a4 100644
--- a/app/src/main/java/com/darkweb/genesissearchengine/helperManager/localFileDownloader.java
+++ b/app/src/main/java/com/darkweb/genesissearchengine/helperManager/localFileDownloader.java
@@ -201,8 +201,10 @@ public class localFileDownloader extends AsyncTask {
} catch (Exception ex) {
Log.i("FIZZAHFUCK", ex.getMessage());
- mEvent.invokeObserver(Collections.singletonList(mRequestCode), M_DOWNLOAD_FAILURE);
- onCancel();
+ if(mRequestCode!=200){
+ mEvent.invokeObserver(Collections.singletonList(mRequestCode), M_DOWNLOAD_FAILURE);
+ onCancel();
+ }
}
}else {
try {
@@ -262,8 +264,10 @@ public class localFileDownloader extends AsyncTask {
output.close();
mStream.close();
}catch (Exception ex){
- pluginController.getInstance().onMessageManagerInvoke(Arrays.asList(Collections.singletonList(mRequestCode), activityContextManager.getInstance().getHomeController()), pluginEnums.eMessageManager.M_DOWNLOAD_FAILURE);
- onCancel();
+ if(mRequestCode!=200){
+ pluginController.getInstance().onMessageManagerInvoke(Arrays.asList(Collections.singletonList(mRequestCode), activityContextManager.getInstance().getHomeController()), pluginEnums.eMessageManager.M_DOWNLOAD_FAILURE);
+ onCancel();
+ }
}
}
return null;
diff --git a/app/src/main/java/com/darkweb/genesissearchengine/pluginManager/orbotManager.java b/app/src/main/java/com/darkweb/genesissearchengine/pluginManager/orbotManager.java
index 732b3b3f..39bfe932 100755
--- a/app/src/main/java/com/darkweb/genesissearchengine/pluginManager/orbotManager.java
+++ b/app/src/main/java/com/darkweb/genesissearchengine/pluginManager/orbotManager.java
@@ -50,11 +50,12 @@ class orbotManager
Intent mServiceIntent = new Intent(mAppContext.get().getApplicationContext(), OrbotService.class);
mServiceIntent.setAction(ACTION_START);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
- mAppContext.get().getApplicationContext().startForegroundService(mServiceIntent);
+ mAppContext.get().stopService(mServiceIntent);
+ mAppContext.get().startForegroundService(mServiceIntent);
}
else
{
- mAppContext.get().getApplicationContext().startService(mServiceIntent);
+ mAppContext.get().startService(mServiceIntent);
}
initializeProxy();
diff --git a/app/src/main/res/anim/fade_in.xml b/app/src/main/res/anim/fade_in.xml
index 8609456e..d03635be 100755
--- a/app/src/main/res/anim/fade_in.xml
+++ b/app/src/main/res/anim/fade_in.xml
@@ -2,7 +2,7 @@
android:startOffset="250">
\ No newline at end of file
diff --git a/app/src/main/res/anim/fade_in_instant.xml b/app/src/main/res/anim/fade_in_instant.xml
new file mode 100644
index 00000000..3d5fdbcc
--- /dev/null
+++ b/app/src/main/res/anim/fade_in_instant.xml
@@ -0,0 +1,8 @@
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/anim/fade_out_instant.xml b/app/src/main/res/anim/fade_out_instant.xml
new file mode 100644
index 00000000..4a036dee
--- /dev/null
+++ b/app/src/main/res/anim/fade_out_instant.xml
@@ -0,0 +1,7 @@
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/custom-xml/generic/xml/ic_baseline_shortcut_add_new.xml b/app/src/main/res/custom-xml/generic/xml/ic_baseline_shortcut_add_new.xml
new file mode 100644
index 00000000..64515817
--- /dev/null
+++ b/app/src/main/res/custom-xml/generic/xml/ic_baseline_shortcut_add_new.xml
@@ -0,0 +1,5 @@
+
+
+
diff --git a/app/src/main/res/custom-xml/generic/xml/ic_baseline_shortcut_cross.xml b/app/src/main/res/custom-xml/generic/xml/ic_baseline_shortcut_cross.xml
new file mode 100644
index 00000000..49592075
--- /dev/null
+++ b/app/src/main/res/custom-xml/generic/xml/ic_baseline_shortcut_cross.xml
@@ -0,0 +1,5 @@
+
+
+
diff --git a/app/src/main/res/custom-xml/generic/xml/ic_baseline_shortcut_open.xml b/app/src/main/res/custom-xml/generic/xml/ic_baseline_shortcut_open.xml
new file mode 100644
index 00000000..3b7463fd
--- /dev/null
+++ b/app/src/main/res/custom-xml/generic/xml/ic_baseline_shortcut_open.xml
@@ -0,0 +1,5 @@
+
+
+
diff --git a/app/src/main/res/custom-xml/generic/xml/shortcuts.xml b/app/src/main/res/custom-xml/generic/xml/shortcuts.xml
new file mode 100644
index 00000000..0633ade9
--- /dev/null
+++ b/app/src/main/res/custom-xml/generic/xml/shortcuts.xml
@@ -0,0 +1,43 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/custom-xml/images/xml/ic_baseline_content_copy.xml b/app/src/main/res/custom-xml/images/xml/ic_baseline_content_copy.xml
new file mode 100644
index 00000000..79d9a06e
--- /dev/null
+++ b/app/src/main/res/custom-xml/images/xml/ic_baseline_content_copy.xml
@@ -0,0 +1,5 @@
+
+
+
diff --git a/app/src/main/res/custom-xml/images/xml/ic_baseline_error_home_v1.xml b/app/src/main/res/custom-xml/images/xml/ic_baseline_error_home_v1.xml
new file mode 100644
index 00000000..967b846c
--- /dev/null
+++ b/app/src/main/res/custom-xml/images/xml/ic_baseline_error_home_v1.xml
@@ -0,0 +1,5 @@
+
+
+
diff --git a/app/src/main/res/custom-xml/images/xml/ic_baseline_shortcut_erase.xml b/app/src/main/res/custom-xml/images/xml/ic_baseline_shortcut_erase.xml
new file mode 100644
index 00000000..fbaff4f7
--- /dev/null
+++ b/app/src/main/res/custom-xml/images/xml/ic_baseline_shortcut_erase.xml
@@ -0,0 +1,5 @@
+
+
+
diff --git a/app/src/main/res/custom-xml/images/xml/ic_baseline_shortcut_tab.xml b/app/src/main/res/custom-xml/images/xml/ic_baseline_shortcut_tab.xml
new file mode 100644
index 00000000..b4d4f227
--- /dev/null
+++ b/app/src/main/res/custom-xml/images/xml/ic_baseline_shortcut_tab.xml
@@ -0,0 +1,5 @@
+
+
+
diff --git a/app/src/main/res/custom-xml/images/xml/ic_shortcut_erase.xml b/app/src/main/res/custom-xml/images/xml/ic_shortcut_erase.xml
new file mode 100644
index 00000000..6864e95a
--- /dev/null
+++ b/app/src/main/res/custom-xml/images/xml/ic_shortcut_erase.xml
@@ -0,0 +1,17 @@
+
+
+
+ -
+
+
+
+
+ -
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/custom-xml/images/xml/ic_shortcut_newtab.xml b/app/src/main/res/custom-xml/images/xml/ic_shortcut_newtab.xml
new file mode 100644
index 00000000..d0e182b0
--- /dev/null
+++ b/app/src/main/res/custom-xml/images/xml/ic_shortcut_newtab.xml
@@ -0,0 +1,17 @@
+
+
+
+ -
+
+
+
+
+ -
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/custom-xml/images/xml/ic_shortcut_open.xml b/app/src/main/res/custom-xml/images/xml/ic_shortcut_open.xml
new file mode 100644
index 00000000..f147e62c
--- /dev/null
+++ b/app/src/main/res/custom-xml/images/xml/ic_shortcut_open.xml
@@ -0,0 +1,17 @@
+
+
+
+ -
+
+
+
+
+ -
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/drawable-hdpi/ic_launcher_background.xml b/app/src/main/res/drawable-hdpi/ic_launcher_background.xml
deleted file mode 100755
index 8428ee45..00000000
--- a/app/src/main/res/drawable-hdpi/ic_launcher_background.xml
+++ /dev/null
@@ -1,76 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/app/src/main/res/layouts/alert/layout/popup_data_cleared_shortcut.xml b/app/src/main/res/layouts/alert/layout/popup_data_cleared_shortcut.xml
new file mode 100644
index 00000000..d7bbffe7
--- /dev/null
+++ b/app/src/main/res/layouts/alert/layout/popup_data_cleared_shortcut.xml
@@ -0,0 +1,98 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layouts/alert/layout/secure_connection_popup.xml b/app/src/main/res/layouts/alert/layout/secure_connection_popup.xml
index 079ccdce..f53700e6 100644
--- a/app/src/main/res/layouts/alert/layout/secure_connection_popup.xml
+++ b/app/src/main/res/layouts/alert/layout/secure_connection_popup.xml
@@ -38,7 +38,7 @@
android:textColor="@color/green_button"
android:textSize="15sp"
android:textStyle="bold"
- app:layout_constraintStart_toEndOf="@+id/pHeaderSubpart"
+ app:layout_constraintStart_toEndOf="@+id/pLock"
app:layout_constraintTop_toTopOf="parent"
tools:ignore="RtlSymmetry" />
@@ -46,14 +46,13 @@
android:id="@+id/pHeaderSubpart"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_marginStart="6dp"
android:layout_marginTop="16dp"
android:alpha="0.8"
android:text="www.bbc.com"
android:textAlignment="textStart"
android:textColor="@color/c_alert_text"
android:textSize="14sp"
- app:layout_constraintStart_toEndOf="@+id/pLock"
+ app:layout_constraintStart_toEndOf="@+id/pHeader"
app:layout_constraintTop_toTopOf="parent" />
+
+ hello
+ hello1
+ hello2
+
\ No newline at end of file
diff --git a/app/src/main/res/layouts/home/layout/home_view.xml b/app/src/main/res/layouts/home/layout/home_view.xml
index 2d8a0b89..a714e63d 100644
--- a/app/src/main/res/layouts/home/layout/home_view.xml
+++ b/app/src/main/res/layouts/home/layout/home_view.xml
@@ -449,9 +449,9 @@
android:background="@xml/hox_rounded_corner_splash_right"
android:contentDescription="@string/GENERAL_TODO"
android:onClick="panicExit"
- android:padding="7dp"
+ android:padding="5dp"
android:scaleType="fitCenter"
- android:src="@drawable/reset"
+ android:src="@xml/ic_baseline_error_home_v1"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" />
diff --git a/app/src/main/res/layouts/setting/layout/setting.xml b/app/src/main/res/layouts/setting/layout/setting.xml
index 92358b8f..9cd0721e 100644
--- a/app/src/main/res/layouts/setting/layout/setting.xml
+++ b/app/src/main/res/layouts/setting/layout/setting.xml
@@ -1155,6 +1155,7 @@
android:layout_height="match_parent"
android:background="@xml/gx_ripple_gray"
android:clickable="true"
+ android:onClick="cicadaClipboard"
android:focusable="true"
android:orientation="horizontal"
android:paddingTop="10dp"
@@ -1200,7 +1201,7 @@
android:background="@android:color/transparent"
android:clickable="false"
android:padding="0dp"
- android:text="VGhcewlcmUgaXMgbm8gR29kIGJ1dCBBbGxhaCwgTXVoYW1tYWQgaXMgdGhlIE1lc3NlbmdlciBvZiBBbGxhadsxA=="
+ android:text="2YTDFEZjtinINil2ZDZhNmO2bDZh9mOINil2ZDZhNmO2ZHYpyDZsdmE2YTZjtmR2bDZh9mPINmF2Y/YrdmO2YXZjtmR2K/ZjCDYsdmO2LPZj9mI2YTZjyDZsdmE2YTZjtmR2bDZhjsJ9mQ"
android:textAlignment="textStart"
android:textAllCaps="false"
android:textColor="@color/c_text_v6"
diff --git a/app/src/main/res/mipmap-anydpi-v26/splashlogoclip.xml b/app/src/main/res/mipmap-anydpi-v26/splashlogoclip.xml
deleted file mode 100644
index ced57743..00000000
--- a/app/src/main/res/mipmap-anydpi-v26/splashlogoclip.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
-
-
-
\ No newline at end of file
diff --git a/app/src/main/res/mipmap-anydpi-v26/splashlogoclip_round.xml b/app/src/main/res/mipmap-anydpi-v26/splashlogoclip_round.xml
deleted file mode 100644
index ced57743..00000000
--- a/app/src/main/res/mipmap-anydpi-v26/splashlogoclip_round.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
-
-
-
\ No newline at end of file
diff --git a/app/src/main/res/mipmap-hdpi/ic_launcher.png b/app/src/main/res/mipmap-hdpi/ic_launcher.png
deleted file mode 100644
index 56a69f71..00000000
Binary files a/app/src/main/res/mipmap-hdpi/ic_launcher.png and /dev/null differ
diff --git a/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png b/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png
index 700e2d61..00f8a47c 100644
Binary files a/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png and b/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png differ
diff --git a/app/src/main/res/mipmap-hdpi/ic_launcher_round.png b/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
index c55a717b..9831bf4f 100644
Binary files a/app/src/main/res/mipmap-hdpi/ic_launcher_round.png and b/app/src/main/res/mipmap-hdpi/ic_launcher_round.png differ
diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher.png b/app/src/main/res/mipmap-mdpi/ic_launcher.png
deleted file mode 100644
index f65089d6..00000000
Binary files a/app/src/main/res/mipmap-mdpi/ic_launcher.png and /dev/null differ
diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png b/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png
index 38b0d055..532956b0 100644
Binary files a/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png and b/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png differ
diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher_round.png b/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
index d0f519fc..fcbad36d 100644
Binary files a/app/src/main/res/mipmap-mdpi/ic_launcher_round.png and b/app/src/main/res/mipmap-mdpi/ic_launcher_round.png differ
diff --git a/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/app/src/main/res/mipmap-xhdpi/ic_launcher.png
deleted file mode 100644
index 43e36015..00000000
Binary files a/app/src/main/res/mipmap-xhdpi/ic_launcher.png and /dev/null differ
diff --git a/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png b/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png
index 16898666..73773c0e 100644
Binary files a/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png and b/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png differ
diff --git a/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png b/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
index 37e27517..290a5875 100644
Binary files a/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png and b/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png differ
diff --git a/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
deleted file mode 100644
index 26d0c18b..00000000
Binary files a/app/src/main/res/mipmap-xxhdpi/ic_launcher.png and /dev/null differ
diff --git a/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png b/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png
index fac721b1..3f6a1c68 100644
Binary files a/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png and b/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png differ
diff --git a/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png b/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
index 12b8323b..5a859ea0 100644
Binary files a/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png and b/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png differ
diff --git a/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
deleted file mode 100644
index abb18add..00000000
Binary files a/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png and /dev/null differ
diff --git a/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png b/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png
index eaaed833..85ff4524 100644
Binary files a/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png and b/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png differ
diff --git a/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
index a91ac8c2..5b10cec0 100644
Binary files a/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png and b/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png differ
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 9b448a99..02212bba 100755
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -18,6 +18,14 @@
BBC | Israel Strikes Again
Search the web ...
+
+ Erase data
+ Erase browsing history
+ Erase & open
+ Erase and open
+ Restart
+ Restart Application
+
Downloading...
APK is downloading
@@ -283,6 +291,9 @@
Undo
New tab opened
Switch
+ Data Cleared Successfully
+ Private data cleared successfully. Application will close in a moment. Now you can safely continue browsing
+ Closing Genesis Please Wait ...
Privacy Policy
diff --git a/orbotmanager/src/main/ic_launcher-playstore.png b/orbotmanager/src/main/ic_launcher-playstore.png
new file mode 100644
index 00000000..24889790
Binary files /dev/null and b/orbotmanager/src/main/ic_launcher-playstore.png differ
diff --git a/orbotmanager/src/main/java/org/torproject/android/proxy/OrbotService.java b/orbotmanager/src/main/java/org/torproject/android/proxy/OrbotService.java
index 7f420fe2..73a63ed2 100644
--- a/orbotmanager/src/main/java/org/torproject/android/proxy/OrbotService.java
+++ b/orbotmanager/src/main/java/org/torproject/android/proxy/OrbotService.java
@@ -258,7 +258,7 @@ public class OrbotService extends VpnService implements TorServiceConstants, Orb
}
mNotifyBuilder.mActions.clear();
- if (conn != null) {
+ if (conn != null && orbotLocalConstants.mIsTorInitialized) {
Intent intentRefresh = new Intent(CMD_NEWNYM);
PendingIntent pendingIntentNewNym = PendingIntent.getBroadcast(this, 0, intentRefresh, PendingIntent.FLAG_UPDATE_CURRENT);
mNotifyBuilder.addAction(R.drawable.ic_stat_starting_tor_logo, getString(R.string.menu_new_identity), pendingIntentNewNym);
@@ -307,10 +307,11 @@ public class OrbotService extends VpnService implements TorServiceConstants, Orb
@Override
public void onTaskRemoved(Intent rootIntent) {
- Log.d(OrbotConstants.TAG, "task removed");
- Intent intent = new Intent(this, DummyActivity.class);
- intent.addFlags(FLAG_ACTIVITY_NEW_TASK);
- startActivity(intent);
+ try{
+ Intent intent = new Intent(this, DummyActivity.class);
+ intent.addFlags(FLAG_ACTIVITY_NEW_TASK);
+ startActivity(intent);
+ }catch (Exception ignored){}
}
@Override
diff --git a/orbotmanager/src/main/res/mipmap-hdpi/ic_launcher.png b/orbotmanager/src/main/res/mipmap-hdpi/ic_launcher.png
deleted file mode 100644
index 59387cc1..00000000
Binary files a/orbotmanager/src/main/res/mipmap-hdpi/ic_launcher.png and /dev/null differ
diff --git a/orbotmanager/src/main/res/mipmap-hdpi/ic_launcher_foreground.png b/orbotmanager/src/main/res/mipmap-hdpi/ic_launcher_foreground.png
deleted file mode 100644
index d5717944..00000000
Binary files a/orbotmanager/src/main/res/mipmap-hdpi/ic_launcher_foreground.png and /dev/null differ
diff --git a/orbotmanager/src/main/res/mipmap-hdpi/ic_launcher_round.png b/orbotmanager/src/main/res/mipmap-hdpi/ic_launcher_round.png
deleted file mode 100644
index 99f30421..00000000
Binary files a/orbotmanager/src/main/res/mipmap-hdpi/ic_launcher_round.png and /dev/null differ
diff --git a/orbotmanager/src/main/res/mipmap-mdpi/ic_launcher.png b/orbotmanager/src/main/res/mipmap-mdpi/ic_launcher.png
deleted file mode 100644
index fa5b2a8b..00000000
Binary files a/orbotmanager/src/main/res/mipmap-mdpi/ic_launcher.png and /dev/null differ
diff --git a/orbotmanager/src/main/res/mipmap-mdpi/ic_launcher_foreground.png b/orbotmanager/src/main/res/mipmap-mdpi/ic_launcher_foreground.png
deleted file mode 100644
index 2d080404..00000000
Binary files a/orbotmanager/src/main/res/mipmap-mdpi/ic_launcher_foreground.png and /dev/null differ
diff --git a/orbotmanager/src/main/res/mipmap-mdpi/ic_launcher_round.png b/orbotmanager/src/main/res/mipmap-mdpi/ic_launcher_round.png
deleted file mode 100644
index 5667028c..00000000
Binary files a/orbotmanager/src/main/res/mipmap-mdpi/ic_launcher_round.png and /dev/null differ
diff --git a/orbotmanager/src/main/res/mipmap-xhdpi/ic_launcher.png b/orbotmanager/src/main/res/mipmap-xhdpi/ic_launcher.png
deleted file mode 100644
index 9c6bba6c..00000000
Binary files a/orbotmanager/src/main/res/mipmap-xhdpi/ic_launcher.png and /dev/null differ
diff --git a/orbotmanager/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png b/orbotmanager/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png
deleted file mode 100644
index 38569ac5..00000000
Binary files a/orbotmanager/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png and /dev/null differ
diff --git a/orbotmanager/src/main/res/mipmap-xhdpi/ic_launcher_round.png b/orbotmanager/src/main/res/mipmap-xhdpi/ic_launcher_round.png
deleted file mode 100644
index 17bc46c3..00000000
Binary files a/orbotmanager/src/main/res/mipmap-xhdpi/ic_launcher_round.png and /dev/null differ
diff --git a/orbotmanager/src/main/res/mipmap-xxhdpi/ic_launcher.png b/orbotmanager/src/main/res/mipmap-xxhdpi/ic_launcher.png
deleted file mode 100644
index e7a46fff..00000000
Binary files a/orbotmanager/src/main/res/mipmap-xxhdpi/ic_launcher.png and /dev/null differ
diff --git a/orbotmanager/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png b/orbotmanager/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png
deleted file mode 100644
index fa164596..00000000
Binary files a/orbotmanager/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png and /dev/null differ
diff --git a/orbotmanager/src/main/res/mipmap-xxhdpi/ic_launcher_round.png b/orbotmanager/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
deleted file mode 100644
index eb619b0f..00000000
Binary files a/orbotmanager/src/main/res/mipmap-xxhdpi/ic_launcher_round.png and /dev/null differ
diff --git a/orbotmanager/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/orbotmanager/src/main/res/mipmap-xxxhdpi/ic_launcher.png
deleted file mode 100644
index 4cf00d2a..00000000
Binary files a/orbotmanager/src/main/res/mipmap-xxxhdpi/ic_launcher.png and /dev/null differ
diff --git a/orbotmanager/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png b/orbotmanager/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png
deleted file mode 100644
index 06726a9a..00000000
Binary files a/orbotmanager/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png and /dev/null differ
diff --git a/orbotmanager/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/orbotmanager/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
deleted file mode 100644
index 83f17090..00000000
Binary files a/orbotmanager/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png and /dev/null differ