Bug Fixes

Bug Fixes
master
Abdul Mannan 2022-03-30 00:55:20 +05:00
parent 5e07d0c9e0
commit dfec66447b
326 changed files with 5152 additions and 4007 deletions

View File

@ -1,17 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="deploymentTargetDropDown">
<runningDeviceTargetSelectedWithDropDown>
<targetSelectedWithDropDown>
<Target>
<type value="RUNNING_DEVICE_TARGET" />
<type value="QUICK_BOOT_TARGET" />
<deviceKey>
<Key>
<type value="VIRTUAL_DEVICE_PATH" />
<value value="C:\Users\Dell\.android\avd\Pixel_2_API_31.avd" />
<value value="C:\Users\Dell\.android\avd\Pixel_2_API_Tiramisu.avd" />
</Key>
</deviceKey>
</Target>
</runningDeviceTargetSelectedWithDropDown>
<timeTargetWasSelectedWithDropDown value="2022-03-14T19:44:37.248548500Z" />
</targetSelectedWithDropDown>
<timeTargetWasSelectedWithDropDown value="2022-03-29T19:14:13.074412300Z" />
</component>
</project>

View File

@ -24,6 +24,7 @@
<option value="$PROJECT_DIR$/intentintegrator" />
<option value="$PROJECT_DIR$/orbotmanager" />
<option value="$PROJECT_DIR$/orbotservicemanagers" />
<option value="$PROJECT_DIR$/service-telemetry" />
<option value="$PROJECT_DIR$/shutterbug" />
</set>
</option>

View File

@ -66,5 +66,15 @@
<option name="name" value="MavenLocal" />
<option name="url" value="file:/$USER_HOME$/.m2/repository/" />
</remote-repository>
<remote-repository>
<option name="id" value="maven7" />
<option name="name" value="maven7" />
<option name="url" value="https://nightly.maven.mozilla.org/maven2" />
</remote-repository>
<remote-repository>
<option name="id" value="maven4" />
<option name="name" value="maven4" />
<option name="url" value="https://maven.mozilla.org/maven2" />
</remote-repository>
</component>
</project>

View File

@ -60,12 +60,15 @@
<entry key="..\:/Workspace/Genesis-Android/app/src/main/res/layouts/alert/layout/popup_url_longpress.xml" value="0.33" />
<entry key="..\:/Workspace/Genesis-Android/app/src/main/res/layouts/alert/layout/secure_connection_popup.xml" value="0.33" />
<entry key="..\:/Workspace/Genesis-Android/app/src/main/res/layouts/bookmark/layout/bookmark_view.xml" value="0.16875" />
<entry key="..\:/Workspace/Genesis-Android/app/src/main/res/layouts/history/layout/activity_adview_controller.xml" value="0.9" />
<entry key="..\:/Workspace/Genesis-Android/app/src/main/res/layouts/history/layout/history_view.xml" value="0.22083333333333333" />
<entry key="..\:/Workspace/Genesis-Android/app/src/main/res/layouts/home/layout/home_view.xml" value="0.22" />
<entry key="..\:/Workspace/Genesis-Android/app/src/main/res/layouts/home/layout/popup_search_view.xml" value="0.2" />
<entry key="..\:/Workspace/Genesis-Android/app/src/main/res/layouts/orbot/layout/orbot_settings_view.xml" value="0.33" />
<entry key="..\:/Workspace/Genesis-Android/app/src/main/res/layouts/orbotLog/layout/orbot_log_view.xml" value="0.33" />
<entry key="..\:/Workspace/Genesis-Android/app/src/main/res/layouts/proxyStatus/layout/proxy_status_view.xml" value="0.20260416666666667" />
<entry key="..\:/Workspace/Genesis-Android/app/src/main/res/layouts/searchWidget/layout/widget_search_controller.xml" value="0.2531847133757962" />
<entry key="..\:/Workspace/Genesis-Android/app/src/main/res/layouts/setting/layout/setting_accessibility_view.xml" value="0.18541666666666667" />
<entry key="..\:/Workspace/Genesis-Android/app/src/main/res/layouts/setting/layout/setting_log_view.xml" value="0.33" />
<entry key="..\:/Workspace/Genesis-Android/app/src/main/res/layouts/setting/layout/setting_privacy_view.xml" value="0.16875" />
<entry key="..\:/Workspace/Genesis-Android/app/src/main/res/layouts/shared/listviews/layout/history_bookmark_row_view.xml" value="0.20416666666666666" />

44
AUTHORS
View File

@ -1,44 +0,0 @@
This file lists the authors for Orbot, a free software project to provide
anonymity on the Internet on Android smartphones.
For more information about Orbot, see https://guardianproject.info/apps/orbot
If you got this file as a part of a larger bundle, there are probably
other authors that you should be aware of.
Main Authors:
-------------
Nathan Freitas <nathan@freitas.net> developed the primary Android
application and managed the porting of Tor to Android.
Jake Appelbaum <jacob@appelbaum.net> regularly gave Nathan a swift kick
in the rear to get this done. He has also provided extensive guidance
and review. Most recently he has been promoted to Chief Application
Resource Editor.
Derek Halliday <derek@guardianproject.info> has designed and implemented
new user interface components and layouts since the 1.0.4 release.
Contributors:
-------------
Nick Mathewson <nickm@freehaven.net> wrote some of the patch code to
support the compiling of Tor and Libevent on Android, and generally
provided guidance in the entire effort.
Adam Langley made the original valiant effort to port Tor to Android.
Sathyanarayanan <gsathya@torproject.org> created a patch for the wizard
which updated the icon and link for the secure chat app info to point
to Gibberbot, and hopefully will continue to contribute useful patches.
__sporkbomb <manuel@acanthephyra.net> implemented an updated set of logic
in TorTransProxy for handling the "transproxy all" mode of operation. Before
certain system processes were leaking traffic, and this was also detected
by his excellent auditing.
Amogh Pradeep <amoghbl1@gmail.com> submitted a patch to address an issue
with the ongoing data transfer notification dying now and then, and is
working on improving the notification display in general
We found a nice new power button vector set here under the CC license:
http://vector4free.com/vector/free-vector-power-buttons/

View File

@ -1,46 +0,0 @@
This document explains how to properly build an Android package of Orbot from
source.
Orbot includes, in the external directory, git repo submodules of:
- JTorControl: The Tor Control Library for Java
- BadVPN
- JSocks
Please install the following prerequisites (instructions for each follows):
- Android Software Development Kit or SDK (for Java code): http://developer.android.com/sdk/index.html *(Android Studio)*
- Android Native Development Kit or NDK (for C/C++ code) http://developer.android.com/sdk/ndk/index.html *(This can be installed through Android Studio's SDK Manager)*
Be sure that you have all of the git submodules up-to-date:
git submodule update --init --recursive
You then need to run "ndk-build" and the following commands to compile and prepare Orbot's native code:
UNIX:
cd orbotservice/src/main
ndk-build (located in Android/Sdk/ndk/VERSION/)
mv libs/armeabi-v7a/pdnsd libs/armeabi-v7a/pdnsd.so
mv libs/arm64-v8a/pdnsd libs/arm64-v8a/pdnsd.so
mv libs/x86/pdnsd libs/x86/pdnsd.so
mv libs/x86_64/pdnsd libs/x86_64/pdnsd.so
Windows:
cd orbotservice\src\main
ndk-build.cmd (located in Android\Sdk\ndk\VERSION\)
ren libs\armeabi-v7a\pdnsd pdnsd.so
ren libs\arm64-v8a\pdnsd pdnsd.so
ren libs\x86\pdnsd pdnsd.so
ren libs\x86_64\pdnsd pdnsd.so
Now build the Android app using Android Studio/gradle
This will produce an unsigned Orbot package APK.
To produce a usable package, you'll need to sign the .apk. The basics on signing can be found on the Android developer site:
http://developer.android.com/guide/publishing/app-signing.html

1974
CHANGELOG

File diff suppressed because it is too large Load Diff

View File

View File

@ -1,5 +0,0 @@
liberapay: GuardianProject
patreon: guardianproject
github:
- eighthave
- bitmold

40
INSTALL
View File

@ -1,40 +0,0 @@
Orbot: Android Onion Routing Robot
***********************************************
Orbot is a freely licensed open-source application developed for the
Android platform. It acts as a front-end to the Tor binary application,
and also provides an HTTP Proxy for connecting web browsers and other
HTTP client applications into the Tor SOCKS interface.
*** PreReqs ***
You need the Android Developer SDK to compile and build the APK file:
http://developer.android.com/
The project files including in this distribution are meant to be used
with Eclipse: http://eclipse.org/
*** How to use ***
Currently, Orbot will work with any application that supports using
an HTTP or SOCKS Proxy. Once you start Tor using Orbot, you can then
point your application to HTTP port 8118 or SOCKS port 9050 on localhost
IP 127.0.0.1.
If you have root access, and a version of Android with iptables that
supports the netfilter owner module, then Orbot can setup transparent
proxying for any application.
Finally, Firefox on Android is available, and we have released an
add-on named ProxyMob for configuring SOCKS proxy settings for use
with the local Tor socks proxy.
** A Few Notes **
To ensure you are connected to the Tor network, you should browse to
https://check.torproject.org/
The first time you activate Orbot, it may take a while to connect to
Tor. Check the message log to ensure you are "100% Bootstrapped".
***********************************************
/* Copyright (c) 2009,2010,2011, Nathan Freitas, The Guardian Project
* http://guardianproject.info/ */

224
LICENSE
View File

@ -1,224 +0,0 @@
This file contains the license for Orbot, a free software project to
provide anonymity on the Internet from a Google Android smartphone.
It also lists the licenses for other components used by Orbot, including
Tor, Privoxy, and iptables.
For more information about Orbot, see https://guardianproject.info/apps/orbot
If you got this file as a part of a larger bundle, there may be other
license terms that you should be aware of.
===============================================================================
Orbot is distributed under this license (aka the 3-clause BSD license)
Copyright (c) 2009-2010, Nathan Freitas, The Guardian Project
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following disclaimer
in the documentation and/or other materials provided with the
distribution.
* Neither the names of the copyright owners nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*****
===============================================================================
Orbot includes the Obfs4 pluggable transport:
https://gitweb.torproject.org/pluggable-transports/obfs4.git
Copyright (c) 2014, Yawning Angel <yawning at torproject dot org>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
===============================================================================
*****
*****
Orbot contains a binary distribution of Privoxy (http://www.privoxy.org/)
Copyright © 2001-2010 by Privoxy Developers <ijbswa-developers@lists.sourceforge.net>
http://www.privoxy.org/user-manual/copyright.html
Some source code is based on code Copyright © 1997 by Anonymous Coders and Junkbusters, Inc.
and licensed under the GNU General Public License.
Privoxy is free software; you can redistribute it and/or modify it under the terms of the
GNU General Public License, version 2, as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for details.
http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
******
Orbot contains a binary distribution of Tor:
This file contains the license for Tor,
a free software project to provide anonymity on the Internet.
It also lists the licenses for other components used by Tor.
For more information about Tor, see https://www.torproject.org/.
If you got this file as a part of a larger bundle,
there may be other license terms that you should be aware of.
===============================================================================
Tor is distributed under this license:
Copyright (c) 2001-2004, Roger Dingledine
Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson
Copyright (c) 2007-2009, The Tor Project, Inc.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following disclaimer
in the documentation and/or other materials provided with the
distribution.
* Neither the names of the copyright owners nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
===============================================================================
src/common/strlcat.c and src/common/strlcpy.c by Todd C. Miller are licensed
under the following license:
* Copyright (c) 1998 Todd C. Miller <Todd.Miller@courtesan.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. The name of the author may not be used to endorse or promote products
* derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
* AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
* THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
===============================================================================
If you got Tor as a static binary with OpenSSL included, then you should know:
"This product includes software developed by the OpenSSL Project
for use in the OpenSSL Toolkit (http://www.openssl.org/)"
===============================================================================
===============================================================================
"This program uses the IP-to-Country Database provided by
WebHosting.Info (http://www.webhosting.info), available from
http://ip-to-country.webhosting.info."
See the src/config/geoip file in particular.
===============================================================================
===============================================================================
Orbot also uses iptables from the Netfilter.org project
netfilter/iptables is - like all of the Linux Kernel - Free Software (sometimes
referred to as Open Source Software), distributed under the terms of the GNU GPLv2
only. Please, note that some source code files might differ, and in that case it
is explicitely stated in the header of every file.
The GPL also contains some obligations. If you distribute netfilter/iptables code
in binary form, you have to offer the source code, too.
===============================================================================
===============================================================================
Orbot also includes BadVPN tun2socks: https://github.com/ambrop72/badvpn
Copyright (c) 2009, Ambroz Bizjak <ambrop7@gmail.com>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of the author nor the
names of its contributors may be used to endorse or promote products
derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
===============================================================================

31
README
View File

@ -1,31 +0,0 @@
Orbot: Android Onion Routing Robot
***********************************************
Orbot is a freely licensed open-source application developed for the
Android platform. It acts as a front-end to the Tor binary application,
and also provides an HTTP Proxy for connecting web browsers and other
HTTP client applications into the Tor SOCKS interface.
***********************************************
Orbot is a component of the Guardian Project, an effort to develop
a secure, anonymous smartphone for use by human rights activists, journalists
and others around the world. Learn more: https://guardianproject.info/
***********************************************
Tor protects your privacy on the internet by hiding the connection
between your Internet address and the services you use. We believe Tor
is reasonably secure, but please ensure you read the instructions and
configure it properly. Learn more at https://torproject.org/
Tor Frequently Asked Questions:
https://support.torproject.org/faq/
***********************************************
/* Copyright (c) 2009-2013, Nathan Freitas, The Guardian Project
* https://guardianproject.info/ */
*****
Some icons thanks to:
https://drslash.com/flat-osx-pack/
FLAT OS by DrSlash.com is licensed under a Creative Commons Attribution NonCommercial 4.0 International License.

Binary file not shown.

8
TODO
View File

@ -1,8 +0,0 @@
Current tracked tickets for Orbot can be found here:
https://trac.torproject.org/projects/tor/query?status=accepted&status=assigned&status=new&status=reopened&group=component&component=Orbot&order=priority
If you would like to join the project, we have some ideas for volunteering here:
http://www.torproject.org/getinvolved/volunteer.html.en#project-orbot
You can find us in IRC on FREENODE or OFTC in the #guardianproject and #tor-dev channels

View File

@ -1,11 +1,14 @@
import com.android.build.OutputFile
plugins {
id "com.jetbrains.python.envs" version "0.0.26"
}
apply from: 'variables.gradle'
ext.gleanExpireByVersion = 1
apply plugin: 'com.android.application'
apply plugin: 'maven-publish'
apply plugin: 'com.google.gms.google-services'
apply plugin: "org.mozilla.telemetry.glean-gradle-plugin"
apply from: 'variables.gradle'
apply plugin: 'kotlin-android'
android {
compileSdkVersion project.ext.compile_sdk_version
@ -69,24 +72,43 @@ android {
genesisRelease.root = project.ext.releaseRoot
}
}
dependencies {
/* Android Support Repository dependencies */
implementation fileTree(dir: 'libs', include: ['*.jar'])
/* Default Libraries */
implementation 'androidx.appcompat:appcompat:1.4.1'
/* Firefox ABI Splits */
// implementation "androidx.compose.foundation:foundation:1.0.4"
// implementation "org.mozilla.components:browser-engine-gecko:100.0.20220327143103"
implementation "androidx.compose.foundation:foundation:1.0.4"
implementation "org.mozilla.components:browser-engine-gecko:100.0.20220327143103"
implementation "org.mozilla.components:service-glean:100.0.20220327143103"
implementation "org.mozilla.components:support-rusthttp:100.0.20220327143103"
implementation "org.mozilla.components:support-rustlog:100.0.20220327143103"
implementation "org.mozilla.components:browser-icons:100.0.20220327143103"
implementation "org.mozilla.components:concept-fetch:100.0.20220327143103"
implementation "org.mozilla.components:concept-base:100.0.20220327143103"
implementation "org.mozilla.components:support-utils:100.0.20220327143103"
/* Android Support Repository dependencies */
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.preference:preference-ktx:1.2.0'
implementation 'androidx.legacy:legacy-preference-v14:1.0.0'
implementation 'androidx.recyclerview:recyclerview:1.2.1'
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'androidx.coordinatorlayout:coordinatorlayout:1.2.0'
implementation 'com.android.support:support-core-utils:28.0.0'
/* Default Libraries */
implementation 'androidx.appcompat:appcompat:1.4.1'
/* Firefox ABI Splits */
implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
implementation 'com.android.support.constraint:constraint-layout:2.0.4'
implementation 'com.google.android.material:material:1.5.0'
@ -94,15 +116,6 @@ dependencies {
implementation 'com.google.android.material:material:1.5.0'
implementation 'androidx.appcompat:appcompat:1.4.1'
/* Firefox ABI Splits */
implementation "org.mozilla.components:browser-engine-gecko:75.0.0"
implementation "org.mozilla.components:browser-icons:91.0.6"
implementation "org.mozilla.geckoview:geckoview: 98.0.20220313140707"
implementation "org.mozilla.components:concept-fetch:91.0.6"
implementation "org.mozilla.components:concept-base:91.0.6"
implementation "org.mozilla.components:support-utils:91.0.6"
/*Crashlytics*/
implementation 'com.flurry.android:analytics:13.1.0@aar'
@ -113,8 +126,6 @@ dependencies {
implementation 'com.mopub.mediation:facebookaudiencenetwork:6.6.0.0'
implementation 'com.applovin:applovin-sdk:+'
implementation 'com.applovin.mediation:facebook-adapter:+'
implementation 'com.android.support:recyclerview-v7:28.+'
implementation 'com.android.support:appcompat-v7:28.+'
/* Crawler Service */
implementation 'org.jsoup:jsoup:1.13.1'
@ -124,49 +135,27 @@ dependencies {
implementation project(path: ':orbotmanager')
/* Helper Libraries */
implementation 'androidx.work:work-runtime-ktx:2.7.0-alpha05'
implementation files('libs/httpclientandroidlib-1.2.1.jar')
implementation 'com.coolerfall:android-http-download-manager:1.6.3'
implementation 'com.github.intelligo-systems:slight:1.1.3'
implementation 'com.android.support:design:28.0.0'
implementation 'com.android.volley:volley:1.2.1'
implementation 'com.github.instacart.truetime-android:library-extension-rx:3.3'
implementation "net.zetetic:android-database-sqlcipher:4.4.3"
implementation "androidx.sqlite:sqlite-ktx:2.2.0"
implementation 'androidx.palette:palette-ktx:1.0.0'
implementation 'androidx.recyclerview:recyclerview:1.2.1'
implementation 'androidx.coordinatorlayout:coordinatorlayout:1.2.0'
implementation 'com.google.android.material:material:1.5.0'
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
implementation "org.jetbrains.kotlin:kotlin-stdlib:1.5.31"
implementation 'org.apache.commons:commons-text:1.3'
}
/* Automated APK Generation */
android.applicationVariants.all { variant ->
def buildType = variant.buildType.name
if (buildType == project.ext.buildType) {
def baseVersionCode = project.ext.vcode
variant.outputs.each { output ->
def abi = output.getFilter(OutputFile.ABI)
def versionCodeOverride = baseVersionCode
if (abi == project.ext.abi_x86) {
versionCodeOverride = versionCodeOverride + 3
} else if (abi == project.ext.abi_x86_x64) {
versionCodeOverride = versionCodeOverride + 2
} else if (abi == project.ext.abi_arm64) {
versionCodeOverride = versionCodeOverride + 1
} else if (abi == project.ext.abi_armeabi) {
versionCodeOverride = versionCodeOverride + 0
} else {
throw new RuntimeException(project.ext.abi_unknown + abi)
}
output.versionCodeOverride = versionCodeOverride
}
}
}

View File

@ -12,16 +12,14 @@
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.DOWNLOAD_WITHOUT_NOTIFICATION" />
<uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<application
android:allowBackup="true"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize"
android:extractNativeLibs="true"
android:largeHeap = "false"
android:fullBackupContent="false"
android:icon="@mipmap/ic_launcher_genesis"
android:label="@string/app_name"
android:largeHeap="false"
android:networkSecurityConfig="@xml/gx_network_security_config"
android:requestLegacyExternalStorage="true"
android:roundIcon="@mipmap/ic_launcher_round"
@ -29,17 +27,27 @@
android:theme="@style/AppTheme"
android:usesCleartextTraffic="true"
tools:targetApi="n">
<uses-library android:name="org.apache.http.legacy" android:required="false"/>
<meta-data android:name="applovin.sdk.key"
android:value="hGlhanpemGqPOKKAgaXvhyxwZaG9uD68csy1OadWTNhEgKvBWR7-7KSpyFr6nfZ4KMOuBBV5J49s2LLSg-SVxg"/>
<activity
android:launchMode="singleTask"
android:name="com.hiddenservices.onionservices.appManager.advertManager.advertController"
android:exported="true" />
<uses-library
android:name="org.apache.http.legacy"
android:required="false" />
<meta-data
android:name="applovin.sdk.key"
android:value="hGlhanpemGqPOKKAgaXvhyxwZaG9uD68csy1OadWTNhEgKvBWR7-7KSpyFr6nfZ4KMOuBBV5J49s2LLSg-SVxg" />
<activity
android:name="com.hiddenservices.genesissearchengine.production.appManager.bookmarkManager.bookmarkSettings.bookmarkSettingController"
android:name="com.hiddenservices.onionservices.appManager.bookmarkManager.bookmarkSettings.bookmarkSettingController"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode"
android:windowSoftInputMode="adjustPan" />
<receiver android:name="com.widget.Genesis.widgetManager.widgetController"
android:exported="false">
<receiver
android:name="com.widget.onionservices.widgetManager.widgetController"
android:exported="true">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
</intent-filter>
@ -50,87 +58,87 @@
</receiver>
<activity
android:name="com.hiddenservices.genesissearchengine.production.appManager.orbotManager.orbotController"
android:name="com.hiddenservices.onionservices.appManager.orbotManager.orbotController"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode" />
<activity
android:name="com.hiddenservices.genesissearchengine.production.appManager.proxyStatusManager.proxyStatusController"
android:name="com.hiddenservices.onionservices.appManager.proxyStatusManager.proxyStatusController"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode" />
<activity
android:name="com.hiddenservices.genesissearchengine.production.appManager.settingManager.settingHomeManager.settingHomeController"
android:name="com.hiddenservices.onionservices.appManager.settingManager.settingHomeManager.settingHomeController"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode"
android:label="@string/SETTING_HEADER"
android:exported="true"
android:label="@string/SETTING_HEADER"
android:launchMode="singleTop"
android:windowSoftInputMode="adjustPan" />
<activity
android:name="com.hiddenservices.genesissearchengine.production.appManager.historyManager.historyController"
android:name="com.hiddenservices.onionservices.appManager.historyManager.historyController"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode"
android:windowSoftInputMode="adjustPan" />
<activity
android:name="com.hiddenservices.genesissearchengine.production.appManager.bookmarkManager.bookmarkHome.bookmarkController"
android:name="com.hiddenservices.onionservices.appManager.bookmarkManager.bookmarkHome.bookmarkController"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode"
android:windowSoftInputMode="adjustPan" />
<activity
android:name="com.hiddenservices.genesissearchengine.production.appManager.languageManager.languageController"
android:name="com.hiddenservices.onionservices.appManager.languageManager.languageController"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode"
android:label="@string/SETTING_HEADER"
android:windowSoftInputMode="adjustPan" />
<activity
android:name="com.hiddenservices.genesissearchengine.production.appManager.helpManager.helpController"
android:name="com.hiddenservices.onionservices.appManager.helpManager.helpController"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode"
android:label="@string/SETTING_HEADER"
android:windowSoftInputMode="adjustPan" />
<activity
android:name="com.hiddenservices.genesissearchengine.production.appManager.settingManager.accessibilityManager.settingAccessibilityController"
android:name="com.hiddenservices.onionservices.appManager.settingManager.accessibilityManager.settingAccessibilityController"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode"
android:label="@string/SETTING_HEADER"
android:windowSoftInputMode="adjustPan" />
<activity
android:name="com.hiddenservices.genesissearchengine.production.appManager.settingManager.clearManager.settingClearController"
android:name="com.hiddenservices.onionservices.appManager.settingManager.clearManager.settingClearController"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode"
android:label="@string/SETTING_HEADER"
android:windowSoftInputMode="adjustPan" />
<activity
android:name="com.hiddenservices.genesissearchengine.production.appManager.bridgeManager.bridgeController"
android:name="com.hiddenservices.onionservices.appManager.bridgeManager.bridgeController"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode"
android:windowSoftInputMode="adjustPan" />
<activity
android:name="com.hiddenservices.genesissearchengine.production.appManager.settingManager.notificationManager.settingNotificationController"
android:name="com.hiddenservices.onionservices.appManager.settingManager.notificationManager.settingNotificationController"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode"
android:launchMode="singleTop"
android:windowSoftInputMode="adjustPan" />
<activity
android:name="com.hiddenservices.genesissearchengine.production.appManager.settingManager.privacyManager.settingPrivacyController"
android:name="com.hiddenservices.onionservices.appManager.settingManager.privacyManager.settingPrivacyController"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode"
android:windowSoftInputMode="adjustPan" />
<activity
android:name="com.hiddenservices.genesissearchengine.production.appManager.settingManager.logManager.settingLogController"
android:name="com.hiddenservices.onionservices.appManager.settingManager.logManager.settingLogController"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode"
android:windowSoftInputMode="adjustPan" />
<activity
android:name="com.hiddenservices.genesissearchengine.production.appManager.settingManager.advanceManager.settingAdvanceController"
android:name="com.hiddenservices.onionservices.appManager.settingManager.advanceManager.settingAdvanceController"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode"
android:windowSoftInputMode="adjustPan" />
<activity
android:name="com.hiddenservices.genesissearchengine.production.appManager.orbotLogManager.orbotLogController"
android:name="com.hiddenservices.onionservices.appManager.orbotLogManager.orbotLogController"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode"
android:windowSoftInputMode="adjustPan" />
<activity
android:name="com.hiddenservices.genesissearchengine.production.appManager.settingManager.generalManager.settingGeneralController"
android:name="com.hiddenservices.onionservices.appManager.settingManager.generalManager.settingGeneralController"
android:configChanges="uiMode"
android:windowSoftInputMode="adjustPan" />
<activity
android:name="com.hiddenservices.genesissearchengine.production.appManager.settingManager.searchEngineManager.settingSearchController"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode"
android:windowSoftInputMode="adjustPan" />
<activity
android:name="com.hiddenservices.genesissearchengine.production.appManager.settingManager.trackingManager.settingTrackingController"
android:name="com.hiddenservices.onionservices.appManager.settingManager.searchEngineManager.settingSearchController"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode"
android:windowSoftInputMode="adjustPan" />
<activity
android:name="com.hiddenservices.genesissearchengine.production.appManager.homeManager.homeController.homeController"
android:name="com.hiddenservices.onionservices.appManager.settingManager.trackingManager.settingTrackingController"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode"
android:windowSoftInputMode="adjustPan" />
<activity
android:name="com.hiddenservices.onionservices.appManager.homeManager.homeController.homeController"
android:configChanges="keyboard|keyboardHidden|mcc|mnc|orientation|screenSize|locale|layoutDirection|smallestScreenSize|screenLayout"
android:exported="true"
android:launchMode="singleTop"
android:screenOrientation="fullSensor"
android:windowSoftInputMode="adjustPan">
@ -146,8 +154,9 @@
</intent-filter>
</activity>
<activity
android:name="com.hiddenservices.genesissearchengine.production.appManager.homeManager.FakeLauncherActivity"
android:enabled="false">
android:name="com.hiddenservices.onionservices.appManager.homeManager.FakeLauncherActivity"
android:enabled="false"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
@ -156,11 +165,12 @@
</intent-filter>
</activity>
<activity
android:name="com.hiddenservices.genesissearchengine.production.appManager.externalCommandManager.externalShortcutController"
android:name="com.hiddenservices.onionservices.appManager.externalCommandManager.externalShortcutController"
android:launchMode="singleTop" />
<activity
android:name="com.hiddenservices.genesissearchengine.production.appManager.externalCommandManager.externalURLNavigationContoller"
android:launchMode="singleTask">
android:name="com.hiddenservices.onionservices.appManager.externalCommandManager.externalURLNavigationContoller"
android:exported="true"
android:launchMode="singleTop">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
@ -170,25 +180,6 @@
<data android:scheme="http" />
<data android:scheme="https" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.BROWSABLE" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="http" />
<data android:scheme="https" />
<data android:mimeType="text/html" />
<data android:mimeType="text/plain" />
<data android:mimeType="application/xhtml+xml" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="text/plain" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.ASSIST" />
@ -212,23 +203,26 @@
android:value="ca-app-pub-6985886044951738~4177628900" />
-->
<service
android:name="com.hiddenservices.genesissearchengine.production.pluginManager.downloadPluginManager.downloadService"
android:name="com.hiddenservices.onionservices.pluginManager.downloadPluginManager.downloadService"
android:enabled="true"
android:exported="false"
android:exported="true"
android:stopWithTask="true" />
<service
android:name="com.hiddenservices.genesissearchengine.production.appManager.activityStateManager"
android:name="com.hiddenservices.onionservices.appManager.activityStateManager"
android:stopWithTask="true" />
<receiver android:name="com.hiddenservices.genesissearchengine.production.pluginManager.notificationPluginManager.localEngagementManager" />
<receiver
android:name="com.hiddenservices.genesissearchengine.production.pluginManager.pluginReciever.downloadNotificationReciever"
android:exported="false">
android:name="com.hiddenservices.onionservices.pluginManager.notificationPluginManager.localEngagementManager"
android:exported="true"
android:permission="TODO"
tools:ignore="ExportedReceiver" />
<receiver
android:name="com.hiddenservices.onionservices.pluginManager.pluginReciever.downloadNotificationReciever"
android:exported="true">
<intent-filter>
<action android:name="Download_Cancelled" />
</intent-filter>
</receiver>
<receiver
android:name="org.orbotproject.android.service.StartTorReceiver"
android:exported="true"
@ -240,7 +234,7 @@
<provider
android:name="androidx.core.content.FileProvider"
android:authorities="com.hiddenservices.genesissearchengine.production.provider"
android:authorities="com.hiddenservices.onionservices.provider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
@ -248,34 +242,35 @@
android:resource="@xml/provider_paths" />
</provider>
<provider
android:name="com.hiddenservices.genesissearchengine.production.libs.providers.HSContentProvider"
android:name="com.hiddenservices.onionservices.libs.providers.HSContentProvider"
android:authorities="org.torproject.android.ui.hiddenservices.providers.genesishiddenservices"
android:exported="false" />
android:exported="true" />
<provider
android:name="com.hiddenservices.genesissearchengine.production.libs.providers.OnionServiceContentProvider"
android:name="com.hiddenservices.onionservices.libs.providers.OnionServiceContentProvider"
android:authorities="org.torproject.android.ui.v3onionservice.genesishiddenservices"
android:exported="false" />
android:exported="true" />
<provider
android:name="com.hiddenservices.genesissearchengine.production.libs.providers.ClientAuthContentProviderGenesis"
android:name="com.hiddenservices.onionservices.libs.providers.ClientAuthContentProviderGenesis"
android:authorities="org.torproject.android.ui.v3onionservice.genesishiddenservices.clientauth"
android:exported="false" />
android:exported="true" />
<provider
android:name="com.hiddenservices.genesissearchengine.production.libs.providers.CookieContentProvider"
android:name="com.hiddenservices.onionservices.libs.providers.CookieContentProvider"
android:authorities="org.torproject.android.ui.hiddenservices.providers.genesishiddenservices.cookie"
android:exported="false" />
android:exported="true" />
<provider
android:name="androidx.core.content.FileProvider"
android:authorities="${applicationId}.fileprovider"
android:exported="false"
android:exported="true"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/file_path" />
</provider>
<service
android:name="org.orbotproject.android.service.OrbotService"
android:enabled="true"
android:exported="false"
android:exported="true"
android:stopWithTask="true" />
</application>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,52 +0,0 @@
package com.hiddenservices.genesissearchengine.production.appManager.externalCommandManager;
import android.content.Intent;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import androidx.annotation.RequiresApi;
import androidx.appcompat.app.AppCompatActivity;
import com.hiddenservices.genesissearchengine.production.appManager.activityContextManager;
import com.hiddenservices.genesissearchengine.production.appManager.homeManager.homeController.homeController;
import com.hiddenservices.genesissearchengine.production.constants.constants;
import com.hiddenservices.genesissearchengine.production.constants.status;
import com.hiddenservices.genesissearchengine.production.constants.strings;
import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
import static com.hiddenservices.genesissearchengine.production.constants.keys.EXTERNAL_SHORTCUT_COMMAND_NAVIGATE;
public class externalURLNavigationContoller extends AppCompatActivity {
@RequiresApi(api = Build.VERSION_CODES.LOLLIPOP_MR1)
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
status.sExternalWebsite = strings.GENERIC_EMPTY_STR;
Uri mData = externalURLNavigationContoller.this.getIntent().getData();
if(mData.toString().contains("applovin")){
helperMethod.openURLInCustomBrowser(mData.toString(), activityContextManager.getInstance().getHomeController());
return;
}
if(mData == null){
mData = Uri.parse(constants.CONST_BACKEND_GENESIS_URL);
}
if(activityContextManager.getInstance().getHomeController()==null){
Intent mIntent = new Intent(this, homeController.class);
mIntent.putExtra(EXTERNAL_SHORTCUT_COMMAND_NAVIGATE, mData.toString());
helperMethod.openIntent(mIntent, this, constants.CONST_LIST_EXTERNAL_SHORTCUT);
Uri finalMData = mData;
helperMethod.onDelayHandler(this, 3000, () -> {
activityContextManager.getInstance().getHomeController().onStartApplication(null);
activityContextManager.getInstance().getHomeController().onExternalURLInvoke(finalMData.toString());
return null;
});
}
else {
activityContextManager.getInstance().getHomeController().onExternalURLInvoke(mData.toString());
}
finish();
}
}

View File

@ -1,29 +0,0 @@
package com.hiddenservices.genesissearchengine.production.libs.trueTime;
import com.instacart.library.truetime.TrueTime;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
public class trueTimeEncryption {
public static String S_FERNET_KEY = "W#ZYBHQa9G_DB_iU@yjA3Es@COu4-UzU";
public static String S_APP_BLOCK_KEY = "D~S=05y68#M25oj]vprm}9HE))Tr'VX?[p|m-Wg`mrg^";
private static trueTimeEncryption ourInstance = new trueTimeEncryption();
public static trueTimeEncryption getInstance()
{
return ourInstance;
}
public void initTime(){
try{
TrueTime.build().initialize();
}catch (Exception ignored){ }
}
public String getSecretToken() throws UnsupportedEncodingException {
String mTime = String.valueOf(System.currentTimeMillis()/1000);
com.hiddenservices.genesissearchengine.production.libs.fernet.Key mKey = new com.hiddenservices.genesissearchengine.production.libs.fernet.Key(android.util.Base64.encodeToString(S_FERNET_KEY.getBytes(), android.util.Base64.DEFAULT).replace("\n",""));
com.hiddenservices.genesissearchengine.production.libs.fernet.Token mToken = com.hiddenservices.genesissearchengine.production.libs.fernet.Token.generate(mKey, S_APP_BLOCK_KEY + "----" + mTime);
return URLEncoder.encode(mToken.serialise());
}
}

View File

@ -1,16 +1,16 @@
package com.hiddenservices.genesissearchengine.production.appManager;
package com.hiddenservices.onionservices.appManager;
import android.content.Context;
import androidx.appcompat.app.AppCompatActivity;
import com.hiddenservices.genesissearchengine.production.appManager.bookmarkManager.bookmarkHome.bookmarkController;
import com.hiddenservices.genesissearchengine.production.appManager.bridgeManager.bridgeController;
import com.hiddenservices.genesissearchengine.production.appManager.historyManager.historyController;
import com.hiddenservices.genesissearchengine.production.appManager.homeManager.homeController.homeController;
import com.hiddenservices.genesissearchengine.production.appManager.orbotLogManager.orbotLogController;
import com.hiddenservices.genesissearchengine.production.appManager.settingManager.generalManager.settingGeneralController;
import com.hiddenservices.genesissearchengine.production.appManager.settingManager.settingHomeManager.settingHomeController;
import com.hiddenservices.genesissearchengine.production.appManager.tabManager.tabController;
import com.hiddenservices.onionservices.appManager.bookmarkManager.bookmarkHome.bookmarkController;
import com.hiddenservices.onionservices.appManager.bridgeManager.bridgeController;
import com.hiddenservices.onionservices.appManager.historyManager.historyController;
import com.hiddenservices.onionservices.appManager.homeManager.homeController.homeController;
import com.hiddenservices.onionservices.appManager.orbotLogManager.orbotLogController;
import com.hiddenservices.onionservices.appManager.settingManager.generalManager.settingGeneralController;
import com.hiddenservices.onionservices.appManager.settingManager.settingHomeManager.settingHomeController;
import com.hiddenservices.onionservices.appManager.tabManager.tabController;
import java.lang.ref.WeakReference;
import java.util.ArrayList;

View File

@ -1,9 +1,9 @@
package com.hiddenservices.genesissearchengine.production.appManager;
package com.hiddenservices.onionservices.appManager;
import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import com.hiddenservices.genesissearchengine.production.constants.status;
import com.hiddenservices.onionservices.constants.status;
import org.orbotproject.android.service.OrbotService;

View File

@ -1,12 +1,12 @@
package com.hiddenservices.genesissearchengine.production.appManager;
package com.hiddenservices.onionservices.appManager;
import android.content.Context;
import android.content.res.Configuration;
import android.content.res.Resources;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.app.AppCompatDelegate;
import com.hiddenservices.genesissearchengine.production.constants.enums;
import com.hiddenservices.genesissearchengine.production.constants.status;
import com.hiddenservices.onionservices.constants.enums;
import com.hiddenservices.onionservices.constants.status;
public class activityThemeManager {

View File

@ -0,0 +1,71 @@
package com.hiddenservices.onionservices.appManager.advertManager;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.webkit.WebView;
import android.widget.ProgressBar;
import com.example.myapplication.R;
import com.hiddenservices.onionservices.eventObserver;
import java.util.Collections;
import java.util.List;
public class advertController extends AppCompatActivity {
WebView mWebView;
ProgressBar mProgressBar;
advertViewController mAdvertViewController;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_adview_controller);
initializeViews();
onInitializeAdvertisements();
onInitAdvert();
}
private void initializeViews() {
mWebView = findViewById(R.id.pWebView);
mProgressBar = findViewById(R.id.mProgressBar);
mAdvertViewController = new advertViewController(this, null, mWebView, mProgressBar);
}
void onInitAdvert(){
mWebView.getSettings().setJavaScriptEnabled(true);
mWebView.getSettings().setDomStorageEnabled(true);
mWebView.getSettings().setGeolocationEnabled(true);
mWebView.getSettings().setJavaScriptCanOpenWindowsAutomatically(true);
mWebView.getSettings().setUseWideViewPort(true);
mWebView.getSettings().setAppCacheEnabled(true);
mWebView.getSettings().setDatabaseEnabled(true);
mWebView.setWebViewClient(new advertWebViewClient(new webivewViewCallback()));
}
private void onInitializeAdvertisements(){
String mURL = getIntent().getExtras().getString("m_url");
mWebView.loadUrl(mURL);
}
/* Helper Methods */
public void onClose(View view) {
finish();
}
/* Callbacks */
public class webivewViewCallback implements eventObserver.eventListener {
@Override
public Object invokeObserver(List<Object> data, Object event_type) {
if(event_type.equals(advertEnums.eAdvertClientCallback.M_UPDATE_PROGRESSBAR)){
mAdvertViewController.onTrigger(advertEnums.eAdvertViewController.M_UPDATE_PROGRESSBAR, Collections.singletonList(data.get(0)));
}
return null;
}
}
}

View File

@ -0,0 +1,13 @@
package com.hiddenservices.onionservices.appManager.advertManager;
class advertEnums
{
/*History Manager*/
public enum eAdvertClientCallback {
M_UPDATE_PROGRESSBAR
}
public enum eAdvertViewController {
M_UPDATE_PROGRESSBAR
}
}

View File

@ -0,0 +1,52 @@
package com.hiddenservices.onionservices.appManager.advertManager;
import android.os.Bundle;
import android.webkit.WebView;
import android.widget.ProgressBar;
import androidx.appcompat.app.AppCompatActivity;
import com.example.myapplication.R;
import com.hiddenservices.onionservices.eventObserver;
import java.util.List;
public class advertViewController extends AppCompatActivity {
private WebView mWebView;
private ProgressBar mProgressBar;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_adview_controller);
}
advertViewController(AppCompatActivity pContext, eventObserver.eventListener pEvent, WebView pGeckoView, ProgressBar pProgressBar)
{
this.mWebView = pGeckoView;
this.mProgressBar = pProgressBar;
initViews();
}
private void initViews(){
}
public void onUpdateProgressBar(boolean status){
if(status){
mProgressBar.animate().setDuration(350).alpha(1);
}else {
mProgressBar.animate().setDuration(350).alpha(0);
}
}
public void onTrigger(advertEnums.eAdvertViewController pCommands, List<Object> pData){
if(pCommands.equals(advertEnums.eAdvertViewController.M_UPDATE_PROGRESSBAR)){
onUpdateProgressBar((boolean)pData.get(0));
}
}
public void onTrigger(advertEnums.eAdvertViewController pCommands){
}
}

View File

@ -0,0 +1,34 @@
package com.hiddenservices.onionservices.appManager.advertManager;
import android.graphics.Bitmap;
import android.webkit.WebResourceError;
import android.webkit.WebResourceRequest;
import android.webkit.WebView;
import com.hiddenservices.onionservices.eventObserver;
import java.util.Collections;
public class advertWebViewClient extends android.webkit.WebViewClient {
private eventObserver.eventListener mEvent;
public advertWebViewClient(eventObserver.eventListener pEvent){
mEvent = pEvent;
}
@Override
public void onPageStarted(WebView view, String url, Bitmap favicon) {
mEvent.invokeObserver(Collections.singletonList(true), advertEnums.eAdvertClientCallback.M_UPDATE_PROGRESSBAR);
}
@Override
public void onReceivedError(WebView view, WebResourceRequest request, WebResourceError error){
mEvent.invokeObserver(Collections.singletonList(false), advertEnums.eAdvertClientCallback.M_UPDATE_PROGRESSBAR);
}
@Override
public void onPageFinished(WebView view, String url) {
mEvent.invokeObserver(Collections.singletonList(false), advertEnums.eAdvertClientCallback.M_UPDATE_PROGRESSBAR);
}
}

View File

@ -1,4 +1,4 @@
package com.hiddenservices.genesissearchengine.production.appManager.bookmarkManager.bookmarkHome;
package com.hiddenservices.onionservices.appManager.bookmarkManager.bookmarkHome;
import android.annotation.SuppressLint;
import android.content.Context;
@ -12,11 +12,11 @@ import android.widget.*;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.RecyclerView;
import com.hiddenservices.genesissearchengine.production.constants.enums;
import com.hiddenservices.genesissearchengine.production.constants.strings;
import com.hiddenservices.genesissearchengine.production.dataManager.models.bookmarkRowModel;
import com.hiddenservices.genesissearchengine.production.eventObserver;
import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
import com.hiddenservices.onionservices.constants.enums;
import com.hiddenservices.onionservices.constants.strings;
import com.hiddenservices.onionservices.dataManager.models.bookmarkRowModel;
import com.hiddenservices.onionservices.eventObserver;
import com.hiddenservices.onionservices.helperManager.helperMethod;
import com.example.myapplication.R;
import java.util.ArrayList;

View File

@ -1,4 +1,4 @@
package com.hiddenservices.genesissearchengine.production.appManager.bookmarkManager.bookmarkHome;
package com.hiddenservices.onionservices.appManager.bookmarkManager.bookmarkHome;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
@ -9,8 +9,8 @@ import android.widget.ImageView;
import android.widget.PopupWindow;
import androidx.appcompat.app.AppCompatActivity;
import com.hiddenservices.genesissearchengine.production.constants.status;
import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
import com.hiddenservices.onionservices.constants.status;
import com.hiddenservices.onionservices.helperManager.helperMethod;
import com.example.myapplication.R;
import java.util.List;

View File

@ -1,4 +1,4 @@
package com.hiddenservices.genesissearchengine.production.appManager.bookmarkManager.bookmarkHome;
package com.hiddenservices.onionservices.appManager.bookmarkManager.bookmarkHome;
import android.content.Context;
import android.content.Intent;
@ -23,36 +23,36 @@ import android.widget.TextView;
import androidx.recyclerview.widget.ItemTouchHelper;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import com.hiddenservices.genesissearchengine.production.appManager.activityContextManager;
import com.hiddenservices.genesissearchengine.production.appManager.bookmarkManager.bookmarkSettings.bookmarkSettingController;
import com.hiddenservices.genesissearchengine.production.dataManager.models.bookmarkRowModel;
import com.hiddenservices.genesissearchengine.production.appManager.homeManager.homeController.editTextManager;
import com.hiddenservices.genesissearchengine.production.appManager.homeManager.homeController.homeController;
import com.hiddenservices.genesissearchengine.production.constants.enums;
import com.hiddenservices.genesissearchengine.production.constants.keys;
import com.hiddenservices.genesissearchengine.production.constants.status;
import com.hiddenservices.genesissearchengine.production.constants.strings;
import com.hiddenservices.genesissearchengine.production.dataManager.dataController;
import com.hiddenservices.genesissearchengine.production.dataManager.dataEnums;
import com.hiddenservices.genesissearchengine.production.eventObserver;
import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
import com.hiddenservices.genesissearchengine.production.appManager.activityThemeManager;
import com.hiddenservices.genesissearchengine.production.pluginManager.pluginController;
import com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums;
import com.hiddenservices.onionservices.appManager.activityContextManager;
import com.hiddenservices.onionservices.appManager.bookmarkManager.bookmarkSettings.bookmarkSettingController;
import com.hiddenservices.onionservices.dataManager.models.bookmarkRowModel;
import com.hiddenservices.onionservices.appManager.homeManager.homeController.editTextManager;
import com.hiddenservices.onionservices.appManager.homeManager.homeController.homeController;
import com.hiddenservices.onionservices.constants.enums;
import com.hiddenservices.onionservices.constants.keys;
import com.hiddenservices.onionservices.constants.status;
import com.hiddenservices.onionservices.constants.strings;
import com.hiddenservices.onionservices.dataManager.dataController;
import com.hiddenservices.onionservices.dataManager.dataEnums;
import com.hiddenservices.onionservices.eventObserver;
import com.hiddenservices.onionservices.helperManager.helperMethod;
import com.hiddenservices.onionservices.appManager.activityThemeManager;
import com.hiddenservices.onionservices.pluginManager.pluginController;
import com.hiddenservices.onionservices.pluginManager.pluginEnums;
import com.example.myapplication.R;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.Objects;
import static com.hiddenservices.genesissearchengine.production.appManager.bookmarkManager.bookmarkHome.bookmarkEnums.eBookmarkViewCommands.M_VERTIFY_SELECTION_MENU;
import static com.hiddenservices.genesissearchengine.production.constants.keys.M_ACTIVITY_RESPONSE;
import static com.hiddenservices.genesissearchengine.production.constants.responses.BOOKMARK_SETTING_CONTROLLER_SHOW_DELETE_ALERT;
import static com.hiddenservices.genesissearchengine.production.constants.responses.BOOKMARK_SETTING_CONTROLLER_SHOW_SUCCESS_ALERT;
import static com.hiddenservices.genesissearchengine.production.constants.sql.SQL_CLEAR_BOOKMARK;
import static com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums.eMessageManager.M_CLEAR_BOOKMARK;
import static com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums.eMessageManager.M_DELETE_BOOKMARK;
import static com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums.eMessageManager.M_UPDATE_BOOKMARK;
import static com.hiddenservices.onionservices.appManager.bookmarkManager.bookmarkHome.bookmarkEnums.eBookmarkViewCommands.M_VERTIFY_SELECTION_MENU;
import static com.hiddenservices.onionservices.constants.keys.M_ACTIVITY_RESPONSE;
import static com.hiddenservices.onionservices.constants.responses.BOOKMARK_SETTING_CONTROLLER_SHOW_DELETE_ALERT;
import static com.hiddenservices.onionservices.constants.responses.BOOKMARK_SETTING_CONTROLLER_SHOW_SUCCESS_ALERT;
import static com.hiddenservices.onionservices.constants.sql.SQL_CLEAR_BOOKMARK;
import static com.hiddenservices.onionservices.pluginManager.pluginEnums.eMessageManager.M_CLEAR_BOOKMARK;
import static com.hiddenservices.onionservices.pluginManager.pluginEnums.eMessageManager.M_DELETE_BOOKMARK;
import static com.hiddenservices.onionservices.pluginManager.pluginEnums.eMessageManager.M_UPDATE_BOOKMARK;
public class bookmarkController extends AppCompatActivity

View File

@ -1,4 +1,4 @@
package com.hiddenservices.genesissearchengine.production.appManager.bookmarkManager.bookmarkHome;
package com.hiddenservices.onionservices.appManager.bookmarkManager.bookmarkHome;
public class bookmarkEnums
{

View File

@ -1,6 +1,6 @@
package com.hiddenservices.genesissearchengine.production.appManager.bookmarkManager.bookmarkHome;
package com.hiddenservices.onionservices.appManager.bookmarkManager.bookmarkHome;
import com.hiddenservices.genesissearchengine.production.dataManager.models.bookmarkRowModel;
import com.hiddenservices.onionservices.dataManager.models.bookmarkRowModel;
import java.util.ArrayList;

View File

@ -1,4 +1,4 @@
package com.hiddenservices.genesissearchengine.production.appManager.bookmarkManager.bookmarkHome;
package com.hiddenservices.onionservices.appManager.bookmarkManager.bookmarkHome;
import android.content.Context;
import android.graphics.Bitmap;
@ -27,9 +27,9 @@ import androidx.core.content.ContextCompat;
import androidx.recyclerview.widget.ItemTouchHelper;
import androidx.recyclerview.widget.RecyclerView;
import com.hiddenservices.genesissearchengine.production.constants.status;
import com.hiddenservices.genesissearchengine.production.constants.strings;
import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
import com.hiddenservices.onionservices.constants.status;
import com.hiddenservices.onionservices.constants.strings;
import com.hiddenservices.onionservices.helperManager.helperMethod;
import com.example.myapplication.R;
import java.util.List;

View File

@ -1,4 +1,4 @@
package com.hiddenservices.genesissearchengine.production.appManager.bookmarkManager.bookmarkSettings;
package com.hiddenservices.onionservices.appManager.bookmarkManager.bookmarkSettings;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
@ -12,19 +12,19 @@ import android.view.View;
import android.widget.EditText;
import android.widget.ScrollView;
import android.widget.TextView;
import com.hiddenservices.genesissearchengine.production.appManager.activityContextManager;
import com.hiddenservices.genesissearchengine.production.constants.keys;
import com.hiddenservices.genesissearchengine.production.eventObserver;
import com.hiddenservices.genesissearchengine.production.helperManager.sharedUIMethod;
import com.hiddenservices.genesissearchengine.production.pluginManager.pluginController;
import com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums;
import com.hiddenservices.onionservices.appManager.activityContextManager;
import com.hiddenservices.onionservices.constants.keys;
import com.hiddenservices.onionservices.eventObserver;
import com.hiddenservices.onionservices.helperManager.sharedUIMethod;
import com.hiddenservices.onionservices.pluginManager.pluginController;
import com.hiddenservices.onionservices.pluginManager.pluginEnums;
import com.example.myapplication.R;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import static com.hiddenservices.genesissearchengine.production.constants.keys.M_ACTIVITY_RESPONSE;
import static com.hiddenservices.genesissearchengine.production.constants.responses.BOOKMARK_SETTING_CONTROLLER_SHOW_DELETE_ALERT;
import static com.hiddenservices.genesissearchengine.production.constants.responses.BOOKMARK_SETTING_CONTROLLER_SHOW_SUCCESS_ALERT;
import static com.hiddenservices.onionservices.constants.keys.M_ACTIVITY_RESPONSE;
import static com.hiddenservices.onionservices.constants.responses.BOOKMARK_SETTING_CONTROLLER_SHOW_DELETE_ALERT;
import static com.hiddenservices.onionservices.constants.responses.BOOKMARK_SETTING_CONTROLLER_SHOW_SUCCESS_ALERT;
public class bookmarkSettingController extends AppCompatActivity {

View File

@ -1,4 +1,4 @@
package com.hiddenservices.genesissearchengine.production.appManager.bookmarkManager.bookmarkSettings;
package com.hiddenservices.onionservices.appManager.bookmarkManager.bookmarkSettings;
public class bookmarkSettingEnums
{

View File

@ -1,14 +1,14 @@
package com.hiddenservices.genesissearchengine.production.appManager.bookmarkManager.bookmarkSettings;
package com.hiddenservices.onionservices.appManager.bookmarkManager.bookmarkSettings;
import androidx.appcompat.app.AppCompatActivity;
import com.hiddenservices.genesissearchengine.production.constants.strings;
import com.hiddenservices.genesissearchengine.production.dataManager.dataController;
import com.hiddenservices.genesissearchengine.production.dataManager.dataEnums;
import com.hiddenservices.genesissearchengine.production.eventObserver;
import com.hiddenservices.onionservices.constants.strings;
import com.hiddenservices.onionservices.dataManager.dataController;
import com.hiddenservices.onionservices.dataManager.dataEnums;
import com.hiddenservices.onionservices.eventObserver;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import static com.hiddenservices.genesissearchengine.production.dataManager.dataEnums.eBookmarkCommands.M_DELETE_BOOKMARK_FROM_MENU;
import static com.hiddenservices.onionservices.dataManager.dataEnums.eBookmarkCommands.M_DELETE_BOOKMARK_FROM_MENU;
class bookmarkSettingModelController
{

View File

@ -1,11 +1,11 @@
package com.hiddenservices.genesissearchengine.production.appManager.bookmarkManager.bookmarkSettings;
package com.hiddenservices.onionservices.appManager.bookmarkManager.bookmarkSettings;
import android.widget.EditText;
import android.widget.TextView;
import androidx.appcompat.app.AppCompatActivity;
import com.hiddenservices.genesissearchengine.production.eventObserver;
import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
import com.hiddenservices.genesissearchengine.production.helperManager.sharedUIMethod;
import com.hiddenservices.onionservices.eventObserver;
import com.hiddenservices.onionservices.helperManager.helperMethod;
import com.hiddenservices.onionservices.helperManager.sharedUIMethod;
import com.example.myapplication.R;
import java.util.List;

View File

@ -1,4 +1,4 @@
package com.hiddenservices.genesissearchengine.production.appManager.bridgeManager;
package com.hiddenservices.onionservices.appManager.bridgeManager;
import android.content.res.Configuration;
import android.os.Bundle;
@ -12,24 +12,24 @@ import android.widget.RadioButton;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import com.hiddenservices.genesissearchengine.production.appManager.activityContextManager;
import com.hiddenservices.genesissearchengine.production.appManager.helpManager.helpController;
import com.hiddenservices.genesissearchengine.production.constants.constants;
import com.hiddenservices.genesissearchengine.production.constants.keys;
import com.hiddenservices.genesissearchengine.production.constants.status;
import com.hiddenservices.genesissearchengine.production.dataManager.dataController;
import com.hiddenservices.genesissearchengine.production.dataManager.dataEnums;
import com.hiddenservices.genesissearchengine.production.eventObserver;
import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
import com.hiddenservices.genesissearchengine.production.appManager.activityThemeManager;
import com.hiddenservices.genesissearchengine.production.pluginManager.pluginController;
import com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums;
import com.hiddenservices.onionservices.appManager.activityContextManager;
import com.hiddenservices.onionservices.appManager.helpManager.helpController;
import com.hiddenservices.onionservices.constants.constants;
import com.hiddenservices.onionservices.constants.keys;
import com.hiddenservices.onionservices.constants.status;
import com.hiddenservices.onionservices.dataManager.dataController;
import com.hiddenservices.onionservices.dataManager.dataEnums;
import com.hiddenservices.onionservices.eventObserver;
import com.hiddenservices.onionservices.helperManager.helperMethod;
import com.hiddenservices.onionservices.appManager.activityThemeManager;
import com.hiddenservices.onionservices.pluginManager.pluginController;
import com.hiddenservices.onionservices.pluginManager.pluginEnums;
import com.example.myapplication.R;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import static com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums.eMessageManager.M_BRIDGE_MAIL;
import static com.hiddenservices.onionservices.pluginManager.pluginEnums.eMessageManager.M_BRIDGE_MAIL;
public class bridgeController extends AppCompatActivity implements View.OnFocusChangeListener, TextWatcher {

View File

@ -1,4 +1,4 @@
package com.hiddenservices.genesissearchengine.production.appManager.bridgeManager;
package com.hiddenservices.onionservices.appManager.bridgeManager;
public class bridgeEnums
{

View File

@ -1,22 +1,22 @@
package com.hiddenservices.genesissearchengine.production.appManager.bridgeManager;
package com.hiddenservices.onionservices.appManager.bridgeManager;
import androidx.appcompat.app.AppCompatActivity;
import com.hiddenservices.genesissearchengine.production.constants.constants;
import com.hiddenservices.genesissearchengine.production.constants.keys;
import com.hiddenservices.genesissearchengine.production.constants.status;
import com.hiddenservices.genesissearchengine.production.dataManager.dataController;
import com.hiddenservices.genesissearchengine.production.dataManager.dataEnums;
import com.hiddenservices.genesissearchengine.production.eventObserver;
import com.hiddenservices.genesissearchengine.production.pluginManager.pluginController;
import com.hiddenservices.onionservices.constants.constants;
import com.hiddenservices.onionservices.constants.keys;
import com.hiddenservices.onionservices.constants.status;
import com.hiddenservices.onionservices.dataManager.dataController;
import com.hiddenservices.onionservices.dataManager.dataEnums;
import com.hiddenservices.onionservices.eventObserver;
import com.hiddenservices.onionservices.pluginManager.pluginController;
import java.util.Arrays;
import java.util.List;
import static com.hiddenservices.genesissearchengine.production.constants.strings.BRIDGE_CUSTOM_BRIDGE_MEEK;
import static com.hiddenservices.genesissearchengine.production.constants.strings.BRIDGE_CUSTOM_BRIDGE_OBFS4;
import static com.hiddenservices.genesissearchengine.production.constants.strings.GENERIC_EMPTY_STR;
import static com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums.eMessageManager.M_BRIDGE_MAIL;
import static com.hiddenservices.onionservices.constants.strings.BRIDGE_CUSTOM_BRIDGE_MEEK;
import static com.hiddenservices.onionservices.constants.strings.BRIDGE_CUSTOM_BRIDGE_OBFS4;
import static com.hiddenservices.onionservices.constants.strings.GENERIC_EMPTY_STR;
import static com.hiddenservices.onionservices.pluginManager.pluginEnums.eMessageManager.M_BRIDGE_MAIL;
class bridgeModel
{

View File

@ -1,4 +1,4 @@
package com.hiddenservices.genesissearchengine.production.appManager.bridgeManager;
package com.hiddenservices.onionservices.appManager.bridgeManager;
import android.animation.ArgbEvaluator;
import android.animation.ObjectAnimator;
@ -14,9 +14,9 @@ import android.widget.TextView;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.content.ContextCompat;
import com.hiddenservices.genesissearchengine.production.constants.strings;
import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
import com.hiddenservices.genesissearchengine.production.helperManager.sharedUIMethod;
import com.hiddenservices.onionservices.constants.strings;
import com.hiddenservices.onionservices.helperManager.helperMethod;
import com.hiddenservices.onionservices.helperManager.sharedUIMethod;
import com.example.myapplication.R;
import java.util.List;

View File

@ -1,4 +1,4 @@
package com.hiddenservices.genesissearchengine.production.appManager.externalCommandManager;
package com.hiddenservices.onionservices.appManager.externalCommandManager;
import android.content.Intent;
import android.os.Bundle;
@ -6,17 +6,17 @@ import android.view.View;
import androidx.appcompat.app.AppCompatActivity;
import com.hiddenservices.genesissearchengine.production.appManager.activityContextManager;
import com.hiddenservices.genesissearchengine.production.appManager.homeManager.homeController.homeController;
import com.hiddenservices.genesissearchengine.production.constants.constants;
import com.hiddenservices.genesissearchengine.production.constants.status;
import com.hiddenservices.genesissearchengine.production.constants.strings;
import com.hiddenservices.genesissearchengine.production.dataManager.dataController;
import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
import com.hiddenservices.onionservices.appManager.activityContextManager;
import com.hiddenservices.onionservices.appManager.homeManager.homeController.homeController;
import com.hiddenservices.onionservices.constants.constants;
import com.hiddenservices.onionservices.constants.status;
import com.hiddenservices.onionservices.constants.strings;
import com.hiddenservices.onionservices.dataManager.dataController;
import com.hiddenservices.onionservices.helperManager.helperMethod;
import com.example.myapplication.R;
import org.orbotproject.android.service.wrapper.orbotLocalConstants;
import static com.hiddenservices.genesissearchengine.production.constants.constants.CONST_EXTERNAL_SHORTCUT_COMMAND_ERASE;
import static com.hiddenservices.genesissearchengine.production.constants.keys.EXTERNAL_SHORTCUT_COMMAND;
import static com.hiddenservices.onionservices.constants.constants.CONST_EXTERNAL_SHORTCUT_COMMAND_ERASE;
import static com.hiddenservices.onionservices.constants.keys.EXTERNAL_SHORTCUT_COMMAND;
public class externalShortcutController extends AppCompatActivity {

View File

@ -0,0 +1,78 @@
package com.hiddenservices.onionservices.appManager.externalCommandManager;
import static android.content.Intent.FLAG_ACTIVITY_NO_ANIMATION;
import android.content.Intent;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.util.Log;
import androidx.annotation.RequiresApi;
import androidx.appcompat.app.AppCompatActivity;
import com.hiddenservices.onionservices.appManager.activityContextManager;
import com.hiddenservices.onionservices.appManager.advertManager.advertController;
import com.hiddenservices.onionservices.appManager.homeManager.homeController.homeController;
import com.hiddenservices.onionservices.constants.constants;
import com.hiddenservices.onionservices.constants.keys;
import com.hiddenservices.onionservices.constants.status;
import com.hiddenservices.onionservices.constants.strings;
import com.hiddenservices.onionservices.helperManager.helperMethod;
import static com.hiddenservices.onionservices.constants.keys.EXTERNAL_SHORTCUT_COMMAND_NAVIGATE;
public class externalURLNavigationContoller extends AppCompatActivity {
@RequiresApi(api = Build.VERSION_CODES.LOLLIPOP_MR1)
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
status.sExternalWebsite = strings.GENERIC_EMPTY_STR;
Uri mData = externalURLNavigationContoller.this.getIntent().getData();
if(status.sExternalWebsiteLoading && !status.sSettingIsAppStarted){
Intent intent = new Intent(this, homeController.class);
intent.addFlags(FLAG_ACTIVITY_NO_ANIMATION);
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK|Intent.FLAG_ACTIVITY_SINGLE_TOP);
startActivity(intent);
finish();
return;
}
status.sExternalWebsiteLoading = true;
if(mData.toString().contains("applovin")){
Intent myIntent = new Intent(this, advertController.class);
myIntent.putExtra(keys.ADVERT_URL, mData.toString());
myIntent.addFlags(FLAG_ACTIVITY_NO_ANIMATION);
myIntent.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);
startActivity(myIntent);
}else {
if(mData == null){
mData = Uri.parse(constants.CONST_BACKEND_GENESIS_URL);
}
if(activityContextManager.getInstance().getHomeController()==null){
Intent mIntent = new Intent(this, homeController.class);
mIntent.putExtra(EXTERNAL_SHORTCUT_COMMAND_NAVIGATE, mData.toString());
helperMethod.openIntent(mIntent, this, constants.CONST_LIST_EXTERNAL_SHORTCUT);
Uri finalMData = mData;
status.sExternalWebsite = finalMData.toString();
helperMethod.onDelayHandler(this, 1500, () -> {
activityContextManager.getInstance().getHomeController().onStartApplication(null);
activityContextManager.getInstance().getHomeController().onExternalURLInvoke(finalMData.toString());
return null;
});
}
else {
Intent intent = new Intent(this, homeController.class);
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK|Intent.FLAG_ACTIVITY_SINGLE_TOP);
intent.addFlags(FLAG_ACTIVITY_NO_ANIMATION);
startActivity(intent);
activityContextManager.getInstance().getHomeController().onExternalURLInvoke(mData.toString());
}
}
helperMethod.onDelayHandler(this, 2500, () -> {
finish();
return null;
});
}
}

View File

@ -1,12 +1,12 @@
package com.hiddenservices.genesissearchengine.production.appManager.helpManager;
package com.hiddenservices.onionservices.appManager.helpManager;
import android.content.Context;
import android.util.AttributeSet;
import android.view.KeyEvent;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.hiddenservices.genesissearchengine.production.constants.enums;
import com.hiddenservices.genesissearchengine.production.eventObserver;
import com.hiddenservices.onionservices.constants.enums;
import com.hiddenservices.onionservices.eventObserver;
public class editViewController extends androidx.appcompat.widget.AppCompatAutoCompleteTextView {

View File

@ -1,4 +1,4 @@
package com.hiddenservices.genesissearchengine.production.appManager.helpManager;
package com.hiddenservices.onionservices.appManager.helpManager;
import android.content.Context;
import android.content.res.Resources;
@ -13,7 +13,7 @@ import android.widget.RelativeLayout;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
import com.hiddenservices.onionservices.helperManager.helperMethod;
import com.example.myapplication.R;
import java.util.ArrayList;
import java.util.List;

View File

@ -1,4 +1,4 @@
package com.hiddenservices.genesissearchengine.production.appManager.helpManager;
package com.hiddenservices.onionservices.appManager.helpManager;
import android.content.res.Configuration;
import android.os.Bundle;
@ -16,22 +16,22 @@ import androidx.constraintlayout.widget.ConstraintLayout;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import androidx.recyclerview.widget.SimpleItemAnimator;
import com.hiddenservices.genesissearchengine.production.appManager.activityContextManager;
import com.hiddenservices.genesissearchengine.production.constants.constants;
import com.hiddenservices.genesissearchengine.production.constants.enums;
import com.hiddenservices.genesissearchengine.production.constants.status;
import com.hiddenservices.genesissearchengine.production.eventObserver;
import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
import com.hiddenservices.genesissearchengine.production.appManager.activityThemeManager;
import com.hiddenservices.genesissearchengine.production.pluginManager.pluginController;
import com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums;
import com.hiddenservices.onionservices.appManager.activityContextManager;
import com.hiddenservices.onionservices.constants.constants;
import com.hiddenservices.onionservices.constants.enums;
import com.hiddenservices.onionservices.constants.status;
import com.hiddenservices.onionservices.eventObserver;
import com.hiddenservices.onionservices.helperManager.helperMethod;
import com.hiddenservices.onionservices.appManager.activityThemeManager;
import com.hiddenservices.onionservices.pluginManager.pluginController;
import com.hiddenservices.onionservices.pluginManager.pluginEnums;
import com.example.myapplication.R;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Objects;
import static com.hiddenservices.genesissearchengine.production.appManager.helpManager.helpEnums.eHelpModel.M_IS_LOADED;
import static com.hiddenservices.onionservices.appManager.helpManager.helpEnums.eHelpModel.M_IS_LOADED;
public class helpController extends AppCompatActivity {

View File

@ -1,4 +1,4 @@
package com.hiddenservices.genesissearchengine.production.appManager.helpManager;
package com.hiddenservices.onionservices.appManager.helpManager;
public class helpDataModel {

View File

@ -1,4 +1,4 @@
package com.hiddenservices.genesissearchengine.production.appManager.helpManager;
package com.hiddenservices.onionservices.appManager.helpManager;
class helpEnums
{

View File

@ -1,21 +1,21 @@
package com.hiddenservices.genesissearchengine.production.appManager.helpManager;
package com.hiddenservices.onionservices.appManager.helpManager;
import androidx.appcompat.app.AppCompatActivity;
import com.android.volley.Request;
import com.android.volley.RequestQueue;
import com.android.volley.toolbox.StringRequest;
import com.android.volley.toolbox.Volley;
import com.hiddenservices.genesissearchengine.production.constants.status;
import com.hiddenservices.genesissearchengine.production.dataManager.dataController;
import com.hiddenservices.genesissearchengine.production.dataManager.dataEnums;
import com.hiddenservices.genesissearchengine.production.eventObserver;
import com.hiddenservices.onionservices.constants.status;
import com.hiddenservices.onionservices.dataManager.dataController;
import com.hiddenservices.onionservices.dataManager.dataEnums;
import com.hiddenservices.onionservices.eventObserver;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import static com.hiddenservices.genesissearchengine.production.constants.constants.*;
import static com.hiddenservices.onionservices.constants.constants.*;
class helpModel
{

View File

@ -1,4 +1,4 @@
package com.hiddenservices.genesissearchengine.production.appManager.helpManager;
package com.hiddenservices.onionservices.appManager.helpManager;
import android.os.Build;
import android.view.View;
@ -13,7 +13,7 @@ import androidx.constraintlayout.widget.ConstraintLayout;
import androidx.core.content.ContextCompat;
import androidx.recyclerview.widget.RecyclerView;
import com.hiddenservices.genesissearchengine.production.eventObserver;
import com.hiddenservices.onionservices.eventObserver;
import com.example.myapplication.R;
import java.util.List;

View File

@ -1,4 +1,4 @@
package com.hiddenservices.genesissearchengine.production.appManager.historyManager;
package com.hiddenservices.onionservices.appManager.historyManager;
import android.annotation.SuppressLint;
import android.content.Context;
@ -13,11 +13,11 @@ import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.RecyclerView;
import com.hiddenservices.genesissearchengine.production.constants.enums;
import com.hiddenservices.genesissearchengine.production.constants.strings;
import com.hiddenservices.genesissearchengine.production.dataManager.models.historyRowModel;
import com.hiddenservices.genesissearchengine.production.eventObserver;
import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
import com.hiddenservices.onionservices.constants.enums;
import com.hiddenservices.onionservices.constants.strings;
import com.hiddenservices.onionservices.dataManager.models.historyRowModel;
import com.hiddenservices.onionservices.eventObserver;
import com.hiddenservices.onionservices.helperManager.helperMethod;
import com.example.myapplication.R;
import java.util.ArrayList;
@ -27,10 +27,10 @@ import java.util.Collections;
import java.util.Date;
import java.util.List;
import systems.intelligo.slight.ImageLoader;
import static android.content.Context.LAYOUT_INFLATER_SERVICE;
@SuppressLint("NotifyDataSetChanged")
public class historyAdapter extends RecyclerView.Adapter<historyAdapter.listViewHolder>
{
/*Private Variables*/
@ -44,7 +44,6 @@ public class historyAdapter extends RecyclerView.Adapter<historyAdapter.listView
private ArrayList<String> mLongSelectedIndex = new ArrayList<>();
private ArrayList<Integer> mLongSelectedID = new ArrayList<>();
private ImageLoader imageLoader;
private AppCompatActivity mContext;
private historyAdapterView mHistroyAdapterView;
private Context mListHolderContext;
@ -64,7 +63,6 @@ public class historyAdapter extends RecyclerView.Adapter<historyAdapter.listView
this.mPassedList = pModelList;
this.mContext = pMainContext;
this.mHistroyAdapterView = new historyAdapterView(mContext);
this.imageLoader = new ImageLoader(mContext);
initializeModelWithDate(false);
}

View File

@ -1,4 +1,4 @@
package com.hiddenservices.genesissearchengine.production.appManager.historyManager;
package com.hiddenservices.onionservices.appManager.historyManager;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
@ -9,8 +9,8 @@ import android.widget.ImageView;
import android.widget.PopupWindow;
import androidx.appcompat.app.AppCompatActivity;
import com.hiddenservices.genesissearchengine.production.constants.status;
import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
import com.hiddenservices.onionservices.constants.status;
import com.hiddenservices.onionservices.helperManager.helperMethod;
import com.example.myapplication.R;
import java.util.List;

View File

@ -1,4 +1,4 @@
package com.hiddenservices.genesissearchengine.production.appManager.historyManager;
package com.hiddenservices.onionservices.appManager.historyManager;
import android.content.Context;
import android.content.res.Configuration;
@ -23,29 +23,29 @@ import android.widget.TextView;
import androidx.recyclerview.widget.ItemTouchHelper;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import com.hiddenservices.genesissearchengine.production.appManager.activityContextManager;
import com.hiddenservices.genesissearchengine.production.dataManager.models.historyRowModel;
import com.hiddenservices.genesissearchengine.production.appManager.homeManager.homeController.editTextManager;
import com.hiddenservices.genesissearchengine.production.appManager.homeManager.homeController.homeController;
import com.hiddenservices.genesissearchengine.production.constants.enums;
import com.hiddenservices.genesissearchengine.production.constants.keys;
import com.hiddenservices.genesissearchengine.production.constants.status;
import com.hiddenservices.genesissearchengine.production.constants.strings;
import com.hiddenservices.genesissearchengine.production.dataManager.dataController;
import com.hiddenservices.genesissearchengine.production.dataManager.dataEnums;
import com.hiddenservices.genesissearchengine.production.eventObserver;
import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
import com.hiddenservices.genesissearchengine.production.appManager.activityThemeManager;
import com.hiddenservices.genesissearchengine.production.pluginManager.pluginController;
import com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums;
import com.hiddenservices.onionservices.appManager.activityContextManager;
import com.hiddenservices.onionservices.dataManager.models.historyRowModel;
import com.hiddenservices.onionservices.appManager.homeManager.homeController.editTextManager;
import com.hiddenservices.onionservices.appManager.homeManager.homeController.homeController;
import com.hiddenservices.onionservices.constants.enums;
import com.hiddenservices.onionservices.constants.keys;
import com.hiddenservices.onionservices.constants.status;
import com.hiddenservices.onionservices.constants.strings;
import com.hiddenservices.onionservices.dataManager.dataController;
import com.hiddenservices.onionservices.dataManager.dataEnums;
import com.hiddenservices.onionservices.eventObserver;
import com.hiddenservices.onionservices.helperManager.helperMethod;
import com.hiddenservices.onionservices.appManager.activityThemeManager;
import com.hiddenservices.onionservices.pluginManager.pluginController;
import com.hiddenservices.onionservices.pluginManager.pluginEnums;
import com.example.myapplication.R;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import static com.hiddenservices.genesissearchengine.production.appManager.historyManager.historyEnums.eHistoryViewCommands.M_VERTIFY_SELECTION_MENU;
import static com.hiddenservices.genesissearchengine.production.constants.sql.SQL_CLEAR_HISTORY;
import static com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums.eMessageManager.M_CLEAR_HISTORY;
import static com.hiddenservices.onionservices.appManager.historyManager.historyEnums.eHistoryViewCommands.M_VERTIFY_SELECTION_MENU;
import static com.hiddenservices.onionservices.constants.sql.SQL_CLEAR_HISTORY;
import static com.hiddenservices.onionservices.pluginManager.pluginEnums.eMessageManager.M_CLEAR_HISTORY;
public class historyController extends AppCompatActivity
{

View File

@ -1,4 +1,4 @@
package com.hiddenservices.genesissearchengine.production.appManager.historyManager;
package com.hiddenservices.onionservices.appManager.historyManager;
public class historyEnums
{

View File

@ -1,6 +1,6 @@
package com.hiddenservices.genesissearchengine.production.appManager.historyManager;
package com.hiddenservices.onionservices.appManager.historyManager;
import com.hiddenservices.genesissearchengine.production.dataManager.models.historyRowModel;
import com.hiddenservices.onionservices.dataManager.models.historyRowModel;
import java.util.ArrayList;

View File

@ -1,4 +1,4 @@
package com.hiddenservices.genesissearchengine.production.appManager.historyManager;
package com.hiddenservices.onionservices.appManager.historyManager;
import android.content.Context;
import android.graphics.Bitmap;
@ -27,9 +27,9 @@ import androidx.core.content.ContextCompat;
import androidx.recyclerview.widget.ItemTouchHelper;
import androidx.recyclerview.widget.RecyclerView;
import com.hiddenservices.genesissearchengine.production.constants.status;
import com.hiddenservices.genesissearchengine.production.constants.strings;
import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
import com.hiddenservices.onionservices.constants.status;
import com.hiddenservices.onionservices.constants.strings;
import com.hiddenservices.onionservices.helperManager.helperMethod;
import com.example.myapplication.R;
import java.util.List;
import java.util.Objects;

View File

@ -1,4 +1,4 @@
package com.hiddenservices.genesissearchengine.production.appManager.homeManager
package com.hiddenservices.onionservices.appManager.homeManager
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle

View File

@ -1,4 +1,4 @@
package com.hiddenservices.genesissearchengine.production.appManager.homeManager.geckoManager;
package com.hiddenservices.onionservices.appManager.homeManager.geckoManager;
import android.content.Context;
import androidx.core.view.NestedScrollingChildHelper;
@ -9,17 +9,17 @@ import android.util.AttributeSet;
import android.util.Log;
import android.view.MotionEvent;
import com.hiddenservices.genesissearchengine.production.constants.status;
import com.hiddenservices.genesissearchengine.production.eventObserver;
import com.hiddenservices.onionservices.constants.status;
import com.hiddenservices.onionservices.eventObserver;
import org.mozilla.geckoview.GeckoView;
import java.util.Collections;
import static com.hiddenservices.genesissearchengine.production.constants.enums.etype.GECKO_SCROLL_DOWN;
import static com.hiddenservices.genesissearchengine.production.constants.enums.etype.GECKO_SCROLL_DOWN_MOVE;
import static com.hiddenservices.genesissearchengine.production.constants.enums.etype.GECKO_SCROLL_UP_ALWAYS;
import static com.hiddenservices.genesissearchengine.production.constants.enums.etype.GECKO_SCROLL_UP_MOVE;
import static com.hiddenservices.genesissearchengine.production.constants.enums.etype.WAS_SCROLL_CHANGED;
import static com.hiddenservices.onionservices.constants.enums.etype.GECKO_SCROLL_DOWN;
import static com.hiddenservices.onionservices.constants.enums.etype.GECKO_SCROLL_DOWN_MOVE;
import static com.hiddenservices.onionservices.constants.enums.etype.GECKO_SCROLL_UP_ALWAYS;
import static com.hiddenservices.onionservices.constants.enums.etype.GECKO_SCROLL_UP_MOVE;
import static com.hiddenservices.onionservices.constants.enums.etype.WAS_SCROLL_CHANGED;
public class NestedGeckoView extends GeckoView {
private int mLastY;
@ -34,6 +34,7 @@ public class NestedGeckoView extends GeckoView {
private boolean mForcedScroll = false;
private int mScrollOffsetRoot = -1;
private int mBottomOffsetRange = 0;
private boolean mPauseScroll = false;
public void onSetHomeEvent(eventObserver.eventListener pEvent){
mEvent = pEvent;
@ -49,8 +50,18 @@ public class NestedGeckoView extends GeckoView {
mChildHelper = new NestedScrollingChildHelper(this);
setNestedScrollingEnabled(true);
setOverScrollMode(OVER_SCROLL_IF_CONTENT_SCROLLS);
}
@Override protected boolean overScrollBy(int deltaX, int deltaY, int scrollX, int scrollY, int scrollRangeX, int scrollRangeY, int maxOverScrollX, int maxOverScrollY, boolean isTouchEvent) {
final boolean result = super.overScrollBy(deltaX, deltaY, scrollX, scrollY, scrollRangeX, scrollRangeY, maxOverScrollX, maxOverScrollY, isTouchEvent);
return result;
};
@Override
protected void onOverScrolled(int scrollX, int scrollY, boolean clampedX, boolean clampedY) {
super.onOverScrolled(scrollX, scrollY, clampedX, clampedY);
}
@Override
public boolean onTouchEvent(MotionEvent ev) {
final MotionEvent event = MotionEvent.obtain(ev);
@ -60,6 +71,7 @@ public class NestedGeckoView extends GeckoView {
mNestedOffsetY = 0;
}
final int eventY = (int) event.getY();
event.offsetLocation(0, mNestedOffsetY);
@ -103,6 +115,7 @@ public class NestedGeckoView extends GeckoView {
deltaY -= mScrollConsumed[1];
event.offsetLocation(0, -mScrollOffset[1]);
mNestedOffsetY += mScrollOffset[1];
}
@ -112,6 +125,7 @@ public class NestedGeckoView extends GeckoView {
mLastY -= mScrollOffset[1];
event.offsetLocation(0, mScrollOffset[1]);
mNestedOffsetY += mScrollOffset[1];
Log.i("fuck2","sadadsasd");
}
break;
@ -214,5 +228,8 @@ public class NestedGeckoView extends GeckoView {
public void setmForcedScroll(boolean pScroll){
mForcedScroll = pScroll;
}
public void onstopscroll(boolean pScroll){
mPauseScroll = true;
}
}

View File

@ -1,8 +1,8 @@
package com.hiddenservices.genesissearchengine.production.appManager.homeManager.geckoManager;
package com.hiddenservices.onionservices.appManager.homeManager.geckoManager;
import androidx.appcompat.app.AppCompatActivity;
import com.hiddenservices.genesissearchengine.production.constants.strings;
import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
import com.hiddenservices.onionservices.constants.strings;
import com.hiddenservices.onionservices.helperManager.helperMethod;
import com.example.myapplication.R;
import org.mozilla.geckoview.WebRequestError;
import java.io.BufferedReader;

View File

@ -1,4 +1,4 @@
package com.hiddenservices.genesissearchengine.production.appManager.homeManager.geckoManager;
package com.hiddenservices.onionservices.appManager.homeManager.geckoManager;
import org.mozilla.gecko.AndroidGamepadManager;
import org.mozilla.gecko.InputMethods;
@ -9,6 +9,7 @@ import org.mozilla.geckoview.Autofill;
import org.mozilla.geckoview.GeckoDisplay;
import org.mozilla.geckoview.GeckoResult;
import org.mozilla.geckoview.GeckoSession;
import org.mozilla.geckoview.GeckoView;
import org.mozilla.geckoview.PanZoomController;
import android.annotation.SuppressLint;
@ -47,13 +48,12 @@ import android.view.autofill.AutofillValue;
import android.view.inputmethod.EditorInfo;
import android.view.inputmethod.InputConnection;
import android.view.inputmethod.InputMethodManager;
import android.widget.FrameLayout;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
@UiThread
public class extendedGeckoView extends FrameLayout {
public class extendedGeckoView extends GeckoView {
private static final String LOGTAG = "extendedGeckoView";
private static final boolean DEBUG = false;

View File

@ -1,4 +1,4 @@
package com.hiddenservices.genesissearchengine.production.appManager.homeManager.geckoManager;
package com.hiddenservices.onionservices.appManager.homeManager.geckoManager;
import android.annotation.SuppressLint;
import android.content.Context;
@ -9,24 +9,24 @@ import android.util.Log;
import android.widget.ImageView;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import com.hiddenservices.genesissearchengine.production.appManager.activityContextManager;
import com.hiddenservices.genesissearchengine.production.appManager.kotlinHelperLibraries.BrowserIconManager;
import com.hiddenservices.genesissearchengine.production.constants.*;
import com.hiddenservices.genesissearchengine.production.dataManager.dataController;
import com.hiddenservices.genesissearchengine.production.dataManager.dataEnums;
import com.hiddenservices.genesissearchengine.production.eventObserver;
import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
import com.hiddenservices.onionservices.appManager.activityContextManager;
import com.hiddenservices.onionservices.appManager.kotlinHelperLibraries.BrowserIconManager;
import com.hiddenservices.onionservices.constants.*;
import com.hiddenservices.onionservices.dataManager.dataController;
import com.hiddenservices.onionservices.dataManager.dataEnums;
import com.hiddenservices.onionservices.eventObserver;
import com.hiddenservices.onionservices.helperManager.helperMethod;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.Arrays;
import java.util.List;
import static com.hiddenservices.genesissearchengine.production.constants.constants.CONST_GENESIS_URL_CACHED;
import static com.hiddenservices.genesissearchengine.production.constants.constants.CONST_GENESIS_URL_CACHED_DARK;
import static com.hiddenservices.genesissearchengine.production.constants.constants.CONST_REPORT_URL;
import static com.hiddenservices.genesissearchengine.production.constants.enums.etype.M_INDEX_WEBSITE;
import static com.hiddenservices.genesissearchengine.production.constants.enums.etype.on_handle_external_intent;
import static com.hiddenservices.onionservices.constants.constants.CONST_GENESIS_URL_CACHED;
import static com.hiddenservices.onionservices.constants.constants.CONST_GENESIS_URL_CACHED_DARK;
import static com.hiddenservices.onionservices.constants.constants.CONST_REPORT_URL;
import static com.hiddenservices.onionservices.constants.enums.etype.M_INDEX_WEBSITE;
import static com.hiddenservices.onionservices.constants.enums.etype.on_handle_external_intent;
import static org.mozilla.geckoview.GeckoSessionSettings.USER_AGENT_MODE_MOBILE;
import static org.mozilla.geckoview.StorageController.ClearFlags.AUTH_SESSIONS;
import static org.mozilla.geckoview.StorageController.ClearFlags.COOKIES;
@ -37,7 +37,7 @@ import static org.mozilla.geckoview.StorageController.ClearFlags.PERMISSIONS;
import static org.mozilla.geckoview.StorageController.ClearFlags.SITE_DATA;
import static org.mozilla.geckoview.StorageController.ClearFlags.SITE_SETTINGS;
import org.json.JSONObject;
import org.mozilla.gecko.PrefsHelper;
//import org.mozilla.gecko.PrefsHelper;
import org.mozilla.geckoview.ContentBlocking;
import org.mozilla.geckoview.GeckoRuntime;
import org.mozilla.geckoview.GeckoRuntimeSettings;
@ -262,14 +262,14 @@ public class geckoClients
}
mSettings.build();
PrefsHelper.setPref("browser.cache.disk.enable",true);
/*PrefsHelper.setPref("browser.cache.disk.enable",true);
PrefsHelper.setPref("browser.cache.memory.enable",true);
PrefsHelper.setPref("browser.cache.disk.capacity",1000);
PrefsHelper.setPref(keys.PROXY_TYPE, 1);
PrefsHelper.setPref(keys.PROXY_SOCKS,"127.0.0.1");
PrefsHelper.setPref(keys.PROXY_SOCKS_PORT, orbotLocalConstants.mSOCKSPort);
PrefsHelper.setPref(keys.PROXY_SOCKS_VERSION,5);
PrefsHelper.setPref(keys.PROXY_SOCKS_REMOTE_DNS,true);
PrefsHelper.setPref(keys.PROXY_SOCKS_REMOTE_DNS,true);*/
mRuntime = GeckoRuntime.create(context, mSettings.build());
mRuntime.getSettings().setRemoteDebuggingEnabled(true);

View File

@ -1,4 +1,4 @@
package com.hiddenservices.genesissearchengine.production.appManager.homeManager.geckoManager;
package com.hiddenservices.onionservices.appManager.homeManager.geckoManager;
import android.Manifest;
import android.content.pm.PackageManager;
@ -7,10 +7,10 @@ import android.net.Uri;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.app.ActivityCompat;
import androidx.core.content.ContextCompat;
import com.hiddenservices.genesissearchengine.production.constants.enums;
import com.hiddenservices.genesissearchengine.production.constants.strings;
import com.hiddenservices.genesissearchengine.production.eventObserver;
import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
import com.hiddenservices.onionservices.constants.enums;
import com.hiddenservices.onionservices.constants.strings;
import com.hiddenservices.onionservices.eventObserver;
import com.hiddenservices.onionservices.helperManager.helperMethod;
import org.mozilla.geckoview.WebResponse;

View File

@ -1,4 +1,4 @@
package com.hiddenservices.genesissearchengine.production.appManager.homeManager.geckoManager;
package com.hiddenservices.onionservices.appManager.homeManager.geckoManager;
import android.annotation.TargetApi;
import android.app.Activity;

View File

@ -1,4 +1,4 @@
package com.hiddenservices.genesissearchengine.production.appManager.homeManager.geckoManager;
package com.hiddenservices.onionservices.appManager.homeManager.geckoManager;
import android.app.NotificationChannel;
import android.app.NotificationManager;
@ -28,21 +28,20 @@ import androidx.annotation.UiThread;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.app.NotificationCompat;
import androidx.core.content.FileProvider;
import com.hiddenservices.genesissearchengine.production.constants.constants;
import com.hiddenservices.genesissearchengine.production.constants.enums;
import com.hiddenservices.genesissearchengine.production.constants.keys;
import com.hiddenservices.genesissearchengine.production.constants.status;
import com.hiddenservices.genesissearchengine.production.constants.strings;
import com.hiddenservices.genesissearchengine.production.dataManager.dataEnums;
import com.hiddenservices.genesissearchengine.production.eventObserver;
import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
import com.hiddenservices.genesissearchengine.production.libs.trueTime.trueTimeEncryption;
import com.hiddenservices.genesissearchengine.production.pluginManager.pluginController;
import com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums;
import com.hiddenservices.onionservices.constants.constants;
import com.hiddenservices.onionservices.constants.enums;
import com.hiddenservices.onionservices.constants.keys;
import com.hiddenservices.onionservices.constants.status;
import com.hiddenservices.onionservices.constants.strings;
import com.hiddenservices.onionservices.dataManager.dataEnums;
import com.hiddenservices.onionservices.eventObserver;
import com.hiddenservices.onionservices.helperManager.helperMethod;
import com.hiddenservices.onionservices.libs.trueTime.trueTimeEncryption;
import com.hiddenservices.onionservices.pluginManager.pluginController;
import com.hiddenservices.onionservices.pluginManager.pluginEnums;
import com.example.myapplication.R;
import org.json.JSONException;
import org.json.JSONObject;
import org.mozilla.gecko.PrefsHelper;
import org.mozilla.gecko.util.ThreadUtils;
import org.mozilla.geckoview.AllowOrDeny;
import org.mozilla.geckoview.Autofill;
@ -66,19 +65,19 @@ import java.util.Collections;
import java.util.Date;
import java.util.List;
import java.util.Objects;
import static com.hiddenservices.genesissearchengine.production.constants.constants.CONST_GENESIS_BADCERT_CACHED;
import static com.hiddenservices.genesissearchengine.production.constants.constants.CONST_GENESIS_BADCERT_CACHED_DARK;
import static com.hiddenservices.genesissearchengine.production.constants.constants.CONST_GENESIS_ERROR_CACHED;
import static com.hiddenservices.genesissearchengine.production.constants.constants.CONST_GENESIS_ERROR_CACHED_DARK;
import static com.hiddenservices.genesissearchengine.production.constants.constants.CONST_GENESIS_HELP_URL_CACHE;
import static com.hiddenservices.genesissearchengine.production.constants.constants.CONST_GENESIS_HELP_URL_CACHE_DARK;
import static com.hiddenservices.genesissearchengine.production.constants.constants.CONST_GENESIS_URL_CACHED;
import static com.hiddenservices.genesissearchengine.production.constants.constants.CONST_GENESIS_URL_CACHED_DARK;
import static com.hiddenservices.genesissearchengine.production.constants.enums.etype.M_DEFAULT_BROWSER;
import static com.hiddenservices.genesissearchengine.production.constants.enums.etype.M_RATE_COUNT;
import static com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums.eMessageManager.M_LONG_PRESS_URL;
import static com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums.eMessageManager.M_LONG_PRESS_WITH_LINK;
import static com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums.eMessageManagerCallbacks.M_RATE_APPLICATION;
import static com.hiddenservices.onionservices.constants.constants.CONST_GENESIS_BADCERT_CACHED;
import static com.hiddenservices.onionservices.constants.constants.CONST_GENESIS_BADCERT_CACHED_DARK;
import static com.hiddenservices.onionservices.constants.constants.CONST_GENESIS_ERROR_CACHED;
import static com.hiddenservices.onionservices.constants.constants.CONST_GENESIS_ERROR_CACHED_DARK;
import static com.hiddenservices.onionservices.constants.constants.CONST_GENESIS_HELP_URL_CACHE;
import static com.hiddenservices.onionservices.constants.constants.CONST_GENESIS_HELP_URL_CACHE_DARK;
import static com.hiddenservices.onionservices.constants.constants.CONST_GENESIS_URL_CACHED;
import static com.hiddenservices.onionservices.constants.constants.CONST_GENESIS_URL_CACHED_DARK;
import static com.hiddenservices.onionservices.constants.enums.etype.M_DEFAULT_BROWSER;
import static com.hiddenservices.onionservices.constants.enums.etype.M_RATE_COUNT;
import static com.hiddenservices.onionservices.pluginManager.pluginEnums.eMessageManager.M_LONG_PRESS_URL;
import static com.hiddenservices.onionservices.pluginManager.pluginEnums.eMessageManager.M_LONG_PRESS_WITH_LINK;
import static com.hiddenservices.onionservices.pluginManager.pluginEnums.eMessageManagerCallbacks.M_RATE_APPLICATION;
import static org.mozilla.geckoview.GeckoSessionSettings.USER_AGENT_MODE_DESKTOP;
import static org.mozilla.geckoview.GeckoSessionSettings.USER_AGENT_MODE_MOBILE;
@ -289,6 +288,7 @@ geckoSession extends GeckoSession implements MediaSession.Delegate,GeckoSession.
/*Scroll Delegate*/
@UiThread
public void onScrollChanged(@NonNull GeckoSession session, int scrollX, int scrollY) {
Log.i("fucker111 : ",scrollY+"");
mScollOffset = scrollY;
event.invokeObserver(Arrays.asList(mCurrentURL,mSessionID,mCurrentTitle, m_current_url_id, mTheme), enums.etype.M_UPDATE_PIXEL_BACKGROUND);
if(scrollY<=3){
@ -298,6 +298,7 @@ geckoSession extends GeckoSession implements MediaSession.Delegate,GeckoSession.
}else {
event.invokeObserver(Arrays.asList(mCurrentURL,mSessionID,mCurrentTitle, m_current_url_id, mTheme), enums.etype.M_ON_SCROLL_NO_BOUNDARIES);
}
}
public int getScrollOffset(){
@ -378,12 +379,13 @@ geckoSession extends GeckoSession implements MediaSession.Delegate,GeckoSession.
public void onPageStart(@NonNull GeckoSession var1, @NonNull String var2) {
mCloseRequested = false;
isFirstPaintExecuted = false;
//status.sExternalWebsite = "";
PrefsHelper.setPref(keys.PROXY_TYPE, 1);
/*PrefsHelper.setPref(keys.PROXY_TYPE, 1);
PrefsHelper.setPref(keys.PROXY_SOCKS,"127.0.0.1");
PrefsHelper.setPref(keys.PROXY_SOCKS_PORT, orbotLocalConstants.mSOCKSPort);
PrefsHelper.setPref(keys.PROXY_SOCKS_VERSION,5);
PrefsHelper.setPref(keys.PROXY_SOCKS_REMOTE_DNS,true);
PrefsHelper.setPref(keys.PROXY_SOCKS_REMOTE_DNS,true);*/
if(mIsLoaded){
if(!var2.equals("about:blank") && helperMethod.getHost(var2).endsWith(".onion")){
@ -960,7 +962,7 @@ geckoSession extends GeckoSession implements MediaSession.Delegate,GeckoSession.
/*Permission Delegate*/
@Override
/*@Override
public void onContentPermissionRequest(final GeckoSession session, final String uri,
final int type, final Callback callback) {
if (PERMISSION_AUTOPLAY_AUDIBLE == type || PERMISSION_AUTOPLAY_INAUDIBLE == type) {
@ -972,7 +974,7 @@ geckoSession extends GeckoSession implements MediaSession.Delegate,GeckoSession.
}else {
callback.reject();
}
}
}*/
/*Download Manager*/
void downloadRequestedFile()

View File

@ -1,7 +1,7 @@
package com.hiddenservices.genesissearchengine.production.appManager.homeManager.geckoManager;
package com.hiddenservices.onionservices.appManager.homeManager.geckoManager;
import static com.hiddenservices.genesissearchengine.production.appManager.homeManager.geckoManager.geckoPromptView.LOGTAG;
import static com.hiddenservices.onionservices.appManager.homeManager.geckoManager.geckoPromptView.LOGTAG;
import android.app.Activity;
import android.app.PendingIntent;
@ -13,8 +13,6 @@ import androidx.annotation.NonNull;
import androidx.core.app.NotificationCompat;
import androidx.core.app.NotificationManagerCompat;
import com.example.myapplication.R;
import org.mozilla.geckoview.GeckoSession;
class mediaDelegate implements GeckoSession.MediaDelegate {

View File

@ -1,4 +1,4 @@
package com.hiddenservices.genesissearchengine.production.appManager.homeManager.geckoManager;
package com.hiddenservices.onionservices.appManager.homeManager.geckoManager;
import android.annotation.TargetApi;
import android.app.Activity;
@ -18,7 +18,7 @@ import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import com.hiddenservices.genesissearchengine.production.appManager.activityContextManager;
import com.hiddenservices.onionservices.appManager.activityContextManager;
import org.mozilla.gecko.util.ThreadUtils;
import org.mozilla.geckoview.GeckoSession;

View File

@ -1,4 +1,4 @@
package com.hiddenservices.genesissearchengine.production.appManager.homeManager.hintManager;
package com.hiddenservices.onionservices.appManager.homeManager.hintManager;
import android.annotation.SuppressLint;
import android.content.res.ColorStateList;
@ -19,12 +19,12 @@ import androidx.appcompat.app.AppCompatActivity;
import androidx.cardview.widget.CardView;
import androidx.recyclerview.widget.RecyclerView;
import com.hiddenservices.genesissearchengine.production.dataManager.models.historyRowModel;
import com.hiddenservices.genesissearchengine.production.appManager.tabManager.tabEnums;
import com.hiddenservices.genesissearchengine.production.constants.enums;
import com.hiddenservices.genesissearchengine.production.constants.strings;
import com.hiddenservices.genesissearchengine.production.eventObserver;
import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
import com.hiddenservices.onionservices.appManager.tabManager.tabEnums;
import com.hiddenservices.onionservices.dataManager.models.historyRowModel;
import com.hiddenservices.onionservices.constants.enums;
import com.hiddenservices.onionservices.constants.strings;
import com.hiddenservices.onionservices.eventObserver;
import com.hiddenservices.onionservices.helperManager.helperMethod;
import com.example.myapplication.R;
import java.util.ArrayList;

View File

@ -1,4 +1,4 @@
package com.hiddenservices.genesissearchengine.production.appManager.homeManager.hintManager;
package com.hiddenservices.onionservices.appManager.homeManager.hintManager;
public class hintModel
{

View File

@ -1,4 +1,4 @@
package com.hiddenservices.genesissearchengine.production.appManager.homeManager.homeController;
package com.hiddenservices.onionservices.appManager.homeManager.homeController;
import android.content.ClipData;
import android.content.ClipboardManager;
@ -11,8 +11,8 @@ import android.view.KeyEvent;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.hiddenservices.genesissearchengine.production.constants.enums;
import com.hiddenservices.genesissearchengine.production.eventObserver;
import com.hiddenservices.onionservices.constants.enums;
import com.hiddenservices.onionservices.eventObserver;
public class editTextManager extends androidx.appcompat.widget.AppCompatAutoCompleteTextView {

View File

@ -1,4 +1,4 @@
package com.hiddenservices.genesissearchengine.production.appManager.homeManager.homeController;
package com.hiddenservices.onionservices.appManager.homeManager.homeController;
import android.annotation.SuppressLint;
import android.app.ActivityManager;
@ -48,38 +48,37 @@ import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import com.applovin.mediation.ads.MaxAdView;
import com.hiddenservices.genesissearchengine.production.appManager.activityContextManager;
import com.hiddenservices.genesissearchengine.production.appManager.bookmarkManager.bookmarkSettings.bookmarkSettingController;
import com.hiddenservices.genesissearchengine.production.appManager.bookmarkManager.bookmarkHome.bookmarkController;
import com.hiddenservices.genesissearchengine.production.appManager.historyManager.historyController;
import com.hiddenservices.genesissearchengine.production.dataManager.models.historyRowModel;
import com.hiddenservices.genesissearchengine.production.appManager.homeManager.geckoManager.NestedGeckoView;
import com.hiddenservices.genesissearchengine.production.appManager.homeManager.geckoManager.*;
import com.hiddenservices.genesissearchengine.production.appManager.homeManager.geckoManager.geckoSession;
import com.hiddenservices.genesissearchengine.production.appManager.homeManager.hintManager.hintAdapter;
import com.hiddenservices.genesissearchengine.production.appManager.languageManager.languageController;
import com.hiddenservices.genesissearchengine.production.appManager.orbotLogManager.orbotLogController;
import com.hiddenservices.genesissearchengine.production.appManager.orbotManager.orbotController;
import com.hiddenservices.genesissearchengine.production.appManager.settingManager.searchEngineManager.settingSearchController;
import com.hiddenservices.genesissearchengine.production.appManager.settingManager.settingHomeManager.settingHomeController;
import com.hiddenservices.genesissearchengine.production.dataManager.models.tabRowModel;
import com.hiddenservices.genesissearchengine.production.constants.constants;
import com.hiddenservices.genesissearchengine.production.constants.enums;
import com.hiddenservices.genesissearchengine.production.constants.keys;
import com.hiddenservices.genesissearchengine.production.constants.status;
import com.hiddenservices.genesissearchengine.production.constants.strings;
import com.hiddenservices.genesissearchengine.production.dataManager.dataController;
import com.hiddenservices.genesissearchengine.production.dataManager.dataEnums;
import com.hiddenservices.genesissearchengine.production.libs.views.KeyboardUtils;
import com.hiddenservices.genesissearchengine.production.appManager.activityStateManager;
import com.hiddenservices.genesissearchengine.production.eventObserver;
import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
import com.hiddenservices.genesissearchengine.production.appManager.activityThemeManager;
import com.hiddenservices.genesissearchengine.production.libs.trueTime.trueTimeEncryption;
import com.hiddenservices.genesissearchengine.production.pluginManager.pluginController;
import com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums;
import com.hiddenservices.onionservices.appManager.activityContextManager;
import com.hiddenservices.onionservices.appManager.bookmarkManager.bookmarkSettings.bookmarkSettingController;
import com.hiddenservices.onionservices.appManager.bookmarkManager.bookmarkHome.bookmarkController;
import com.hiddenservices.onionservices.appManager.historyManager.historyController;
import com.hiddenservices.onionservices.dataManager.models.historyRowModel;
import com.hiddenservices.onionservices.appManager.homeManager.geckoManager.NestedGeckoView;
import com.hiddenservices.onionservices.appManager.homeManager.geckoManager.*;
import com.hiddenservices.onionservices.appManager.homeManager.geckoManager.geckoSession;
import com.hiddenservices.onionservices.appManager.homeManager.hintManager.hintAdapter;
import com.hiddenservices.onionservices.appManager.languageManager.languageController;
import com.hiddenservices.onionservices.appManager.orbotLogManager.orbotLogController;
import com.hiddenservices.onionservices.appManager.orbotManager.orbotController;
import com.hiddenservices.onionservices.appManager.settingManager.searchEngineManager.settingSearchController;
import com.hiddenservices.onionservices.appManager.settingManager.settingHomeManager.settingHomeController;
import com.hiddenservices.onionservices.dataManager.models.tabRowModel;
import com.hiddenservices.onionservices.constants.constants;
import com.hiddenservices.onionservices.constants.enums;
import com.hiddenservices.onionservices.constants.keys;
import com.hiddenservices.onionservices.constants.status;
import com.hiddenservices.onionservices.constants.strings;
import com.hiddenservices.onionservices.dataManager.dataController;
import com.hiddenservices.onionservices.dataManager.dataEnums;
import com.hiddenservices.onionservices.libs.views.KeyboardUtils;
import com.hiddenservices.onionservices.appManager.activityStateManager;
import com.hiddenservices.onionservices.eventObserver;
import com.hiddenservices.onionservices.helperManager.helperMethod;
import com.hiddenservices.onionservices.appManager.activityThemeManager;
import com.hiddenservices.onionservices.pluginManager.pluginController;
import com.hiddenservices.onionservices.pluginManager.pluginEnums;
import com.example.myapplication.R;
import com.widget.Genesis.widgetManager.widgetController;
import com.widget.onionservices.widgetManager.widgetController;
import org.mozilla.geckoview.ContentBlocking;
import org.mozilla.geckoview.GeckoResult;
@ -103,31 +102,31 @@ import mozilla.components.support.utils.DownloadUtils;
import static android.content.Intent.FLAG_ACTIVITY_NEW_TASK;
import static android.content.Intent.FLAG_ACTIVITY_NO_ANIMATION;
import static androidx.appcompat.app.AppCompatDelegate.setDefaultNightMode;
import static com.hiddenservices.genesissearchengine.production.constants.constants.CONST_EXTERNAL_SHORTCUT_COMMAND_ERASE_OPEN;
import static com.hiddenservices.genesissearchengine.production.constants.constants.CONST_EXTERNAL_SHORTCUT_COMMAND_RESTART;
import static com.hiddenservices.genesissearchengine.production.constants.constants.CONST_GENESIS_HELP_URL_CACHE;
import static com.hiddenservices.genesissearchengine.production.constants.constants.CONST_GENESIS_HELP_URL_CACHE_DARK;
import static com.hiddenservices.genesissearchengine.production.constants.constants.CONST_GENESIS_URL_CACHED;
import static com.hiddenservices.genesissearchengine.production.constants.constants.CONST_GENESIS_URL_CACHED_DARK;
import static com.hiddenservices.genesissearchengine.production.constants.enums.etype.GECKO_SCROLL_DOWN;
import static com.hiddenservices.genesissearchengine.production.constants.enums.etype.GECKO_SCROLL_UP_MOVE;
import static com.hiddenservices.genesissearchengine.production.constants.enums.etype.M_CLOSE_TAB_BACK;
import static com.hiddenservices.genesissearchengine.production.constants.enums.etype.M_HOME_BUTTON_PRESSED;
import static com.hiddenservices.genesissearchengine.production.constants.enums.etype.M_INITIALIZE_TAB_LINK;
import static com.hiddenservices.genesissearchengine.production.constants.enums.etype.M_INITIALIZE_TAB_SINGLE;
import static com.hiddenservices.genesissearchengine.production.constants.enums.etype.M_NEW_LINK_IN_NEW_TAB;
import static com.hiddenservices.genesissearchengine.production.constants.enums.etype.M_NEW_LINK_IN_NEW_TAB_LOAD;
import static com.hiddenservices.genesissearchengine.production.constants.enums.etype.WAS_SCROLL_CHANGED;
import static com.hiddenservices.genesissearchengine.production.constants.enums.etype.open_new_tab;
import static com.hiddenservices.genesissearchengine.production.constants.keys.EXTERNAL_SHORTCUT_COMMAND;
import static com.hiddenservices.genesissearchengine.production.constants.keys.EXTERNAL_SHORTCUT_COMMAND_NAVIGATE;
import static com.hiddenservices.genesissearchengine.production.constants.keys.M_ACTIVITY_RESPONSE;
import static com.hiddenservices.genesissearchengine.production.constants.responses.BOOKMARK_SETTING_CONTROLLER_SHOW_DELETE_ALERT;
import static com.hiddenservices.genesissearchengine.production.constants.responses.BOOKMARK_SETTING_CONTROLLER_SHOW_SUCCESS_ALERT;
import static com.hiddenservices.genesissearchengine.production.constants.sql.SQL_CLEAR_HISTORY;
import static com.hiddenservices.genesissearchengine.production.dataManager.dataEnums.eBookmarkCommands.M_INTENT_BOOKMARK;
import static com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums.eMessageManager.*;
import static com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums.eMessageManagerCallbacks.M_RATE_APPLICATION;
import static com.hiddenservices.onionservices.constants.constants.CONST_EXTERNAL_SHORTCUT_COMMAND_ERASE_OPEN;
import static com.hiddenservices.onionservices.constants.constants.CONST_EXTERNAL_SHORTCUT_COMMAND_RESTART;
import static com.hiddenservices.onionservices.constants.constants.CONST_GENESIS_HELP_URL_CACHE;
import static com.hiddenservices.onionservices.constants.constants.CONST_GENESIS_HELP_URL_CACHE_DARK;
import static com.hiddenservices.onionservices.constants.constants.CONST_GENESIS_URL_CACHED;
import static com.hiddenservices.onionservices.constants.constants.CONST_GENESIS_URL_CACHED_DARK;
import static com.hiddenservices.onionservices.constants.enums.etype.GECKO_SCROLL_DOWN;
import static com.hiddenservices.onionservices.constants.enums.etype.GECKO_SCROLL_UP_MOVE;
import static com.hiddenservices.onionservices.constants.enums.etype.M_CLOSE_TAB_BACK;
import static com.hiddenservices.onionservices.constants.enums.etype.M_HOME_BUTTON_PRESSED;
import static com.hiddenservices.onionservices.constants.enums.etype.M_INITIALIZE_TAB_LINK;
import static com.hiddenservices.onionservices.constants.enums.etype.M_INITIALIZE_TAB_SINGLE;
import static com.hiddenservices.onionservices.constants.enums.etype.M_NEW_LINK_IN_NEW_TAB;
import static com.hiddenservices.onionservices.constants.enums.etype.M_NEW_LINK_IN_NEW_TAB_LOAD;
import static com.hiddenservices.onionservices.constants.enums.etype.WAS_SCROLL_CHANGED;
import static com.hiddenservices.onionservices.constants.enums.etype.open_new_tab;
import static com.hiddenservices.onionservices.constants.keys.EXTERNAL_SHORTCUT_COMMAND;
import static com.hiddenservices.onionservices.constants.keys.EXTERNAL_SHORTCUT_COMMAND_NAVIGATE;
import static com.hiddenservices.onionservices.constants.keys.M_ACTIVITY_RESPONSE;
import static com.hiddenservices.onionservices.constants.responses.BOOKMARK_SETTING_CONTROLLER_SHOW_DELETE_ALERT;
import static com.hiddenservices.onionservices.constants.responses.BOOKMARK_SETTING_CONTROLLER_SHOW_SUCCESS_ALERT;
import static com.hiddenservices.onionservices.constants.sql.SQL_CLEAR_HISTORY;
import static com.hiddenservices.onionservices.dataManager.dataEnums.eBookmarkCommands.M_INTENT_BOOKMARK;
import static com.hiddenservices.onionservices.pluginManager.pluginEnums.eMessageManager.*;
import static com.hiddenservices.onionservices.pluginManager.pluginEnums.eMessageManagerCallbacks.M_RATE_APPLICATION;
import static java.lang.Character.isLetter;
import static org.mozilla.geckoview.ContentBlocking.CookieBehavior.ACCEPT_FIRST_PARTY;
@ -181,6 +180,7 @@ public class homeController extends AppCompatActivity implements ComponentCallba
private ImageView mTopBarHider;
private CoordinatorLayout mCoordinatorLayout;
private ImageView mImageDivider;
private ImageButton mPopoupFindCopy;
/*Redirection Objects*/
private GeckoResult<Bitmap> mRenderedBitmap = null;
@ -216,7 +216,6 @@ public class homeController extends AppCompatActivity implements ComponentCallba
dataController.getInstance().initialize(this);
status.initStatus(this);
dataController.getInstance().invokeSQLCipher(dataEnums.eSqlCipherCommands.M_INIT, Collections.singletonList(this));
trueTimeEncryption.getInstance().initTime();
helperMethod.updateResources(this, status.mSystemLocale.getLanguage());
pluginController.getInstance().onLanguageInvoke(Collections.singletonList(this), pluginEnums.eLangManager.M_ACTIVITY_CREATED);
@ -252,8 +251,10 @@ public class homeController extends AppCompatActivity implements ComponentCallba
if(mShortcutCommand.equals(CONST_EXTERNAL_SHORTCUT_COMMAND_ERASE_OPEN) || mShortcutCommand.equals(CONST_EXTERNAL_SHORTCUT_COMMAND_RESTART)){
onStartApplication(null);
}
onBlockMenu();
}
else if(mShortcutCommandNavigate!=null){
onBlockMenu();
status.sExternalWebsite = mShortcutCommandNavigate;
onStartApplication(null);
}
@ -507,6 +508,7 @@ public class homeController extends AppCompatActivity implements ComponentCallba
mPanicButton = findViewById(R.id.pPanicButton);
mPanicButtonLandscape = findViewById(R.id.pPanicButtonLandscape);
mGenesisLogo = findViewById(R.id.pGenesisLogo);
mPopoupFindCopy = findViewById(R.id.pPopoupFindCopy);
mGeckoView.setSaveEnabled(false);
mGeckoView.setSaveFromParentEnabled(false);
@ -557,6 +559,8 @@ public class homeController extends AppCompatActivity implements ComponentCallba
catch (Throwable e) {
e.printStackTrace();
}
}
public void initializeGeckoView(boolean isForced, boolean pDatabaseSavable){
@ -994,7 +998,13 @@ public class homeController extends AppCompatActivity implements ComponentCallba
@Override
public void afterTextChanged(Editable s) {
if(mSearchbar.getText().length()==0){
mPopoupFindCopy.setEnabled(false);
mPopoupFindCopy.setAlpha(0.2f);
}else {
mPopoupFindCopy.setEnabled(true);
mPopoupFindCopy.setAlpha(1f);
}
}
@Override
@ -1668,6 +1678,14 @@ public class homeController extends AppCompatActivity implements ComponentCallba
return mGeckoClient.getSession().getCurrentURL();
}
public void onBlockMenu(){
mBlocker.setVisibility(View.VISIBLE);
mBlocker.setClickable(true);
mBlocker.setFocusable(true);
mBlocker.setEnabled(true);
Log.i("FUCKKKKK","SADADS3");
}
static boolean mStateService = false;
public void onStartApplication(View view){
if(!mStateService){
@ -2416,6 +2434,9 @@ public class homeController extends AppCompatActivity implements ComponentCallba
else if(e_type.equals(enums.etype.M_ON_SCROLL_NO_BOUNDARIES)){
mGeckoView.setmForcedScroll(false);
}
else if(e_type.equals(enums.etype.M_ON_STOP_SCROLL)){
mGeckoView.onstopscroll(false);
}
else if(e_type.equals(enums.etype.ON_EXPAND_TOP_BAR)){
mHomeViewController.expandTopBar(false, mGeckoView.getMaxY());
}

View File

@ -1,9 +1,9 @@
package com.hiddenservices.genesissearchengine.production.appManager.homeManager.homeController;
package com.hiddenservices.onionservices.appManager.homeManager.homeController;
import android.util.Patterns;
import com.hiddenservices.genesissearchengine.production.constants.status;
import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
import com.hiddenservices.onionservices.constants.status;
import com.hiddenservices.onionservices.helperManager.helperMethod;
import java.net.URL;

View File

@ -1,4 +1,4 @@
package com.hiddenservices.genesissearchengine.production.appManager.homeManager.homeController;
package com.hiddenservices.onionservices.appManager.homeManager.homeController;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
@ -43,12 +43,12 @@ import androidx.fragment.app.FragmentContainerView;
import androidx.recyclerview.widget.RecyclerView;
import com.applovin.mediation.ads.MaxAdView;
import com.hiddenservices.genesissearchengine.production.constants.*;
import com.hiddenservices.genesissearchengine.production.dataManager.dataController;
import com.hiddenservices.genesissearchengine.production.dataManager.dataEnums;
import com.hiddenservices.genesissearchengine.production.libs.views.ColorAnimator;
import com.hiddenservices.genesissearchengine.production.eventObserver;
import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
import com.hiddenservices.onionservices.constants.*;
import com.hiddenservices.onionservices.dataManager.dataController;
import com.hiddenservices.onionservices.dataManager.dataEnums;
import com.hiddenservices.onionservices.libs.views.ColorAnimator;
import com.hiddenservices.onionservices.eventObserver;
import com.hiddenservices.onionservices.helperManager.helperMethod;
import com.example.myapplication.R;
import com.google.android.material.appbar.AppBarLayout;
import org.mozilla.geckoview.GeckoView;
@ -58,9 +58,9 @@ import java.util.Collections;
import java.util.List;
import java.util.concurrent.Callable;
import static android.content.Context.LAYOUT_INFLATER_SERVICE;
import static com.hiddenservices.genesissearchengine.production.constants.constants.CONST_GENESIS_DOMAIN_URL;
import static com.hiddenservices.genesissearchengine.production.constants.constants.CONST_GENESIS_URL_CACHED;
import static com.hiddenservices.genesissearchengine.production.constants.constants.CONST_GENESIS_URL_CACHED_DARK;
import static com.hiddenservices.onionservices.constants.constants.CONST_GENESIS_DOMAIN_URL;
import static com.hiddenservices.onionservices.constants.constants.CONST_GENESIS_URL_CACHED;
import static com.hiddenservices.onionservices.constants.constants.CONST_GENESIS_URL_CACHED_DARK;
import static org.mozilla.geckoview.GeckoSessionSettings.USER_AGENT_MODE_DESKTOP;
import static java.lang.Thread.sleep;
@ -533,9 +533,9 @@ class homeViewController
mSplashScreen.setClickable(false);
mSplashScreen.setFocusable(false);
mSearchbar.setEnabled(true);
mBlocker.setEnabled(false);
//mBlocker.setEnabled(false);
mBlocker.setVisibility(View.GONE);
//mBlocker.setVisibility(View.GONE);
mGatewaySplash.setVisibility(View.GONE);
mConnectButton.setVisibility(View.GONE);
mPanicButton.setVisibility(View.GONE);
@ -556,8 +556,8 @@ class homeViewController
mProgressBarIndeterminate.animate().alpha(1);
mConnectButton.setEnabled(false);
mSplashScreen.setEnabled(false);
mBlocker.setClickable(true);
mBlocker.setFocusable(true);
//mBlocker.setClickable(true);
//mBlocker.setFocusable(true);
}
void initHomePage(){
@ -689,10 +689,10 @@ class homeViewController
}
public void splashScreenDisableInstant() {
mSplashScreen.setAlpha(0f);
mSplashScreen.setVisibility(View.GONE);
mSplashScreen.setVisibility(View.GONE);
mBlocker.setEnabled(false);
//mSplashScreen.setAlpha(0f);
//mSplashScreen.setVisibility(View.GONE);
//mSplashScreen.setVisibility(View.GONE);
//mBlocker.setEnabled(false);
//disableCoordinatorSwipe();
}
@ -1359,6 +1359,11 @@ class homeViewController
return;
}
new Handler().postDelayed(() ->
{
onResetTabAnimation();
}, 500);
mGeckoView.setPivotX(0);
mGeckoView.setPivotY(0);
@ -1568,7 +1573,7 @@ class homeViewController
}
}
}
com.hiddenservices.genesissearchengine.production.constants.status.sFullScreenBrowsing = false;
status.sFullScreenBrowsing = false;
mNestedScroll.setLayoutParams(params);
@ -1596,7 +1601,7 @@ class homeViewController
mTopBar.setVisibility(View.VISIBLE);
mEvent.invokeObserver(Collections.singletonList(!isLandscape), enums.etype.on_init_ads);
com.hiddenservices.genesissearchengine.production.constants.status.sFullScreenBrowsing = (boolean) dataController.getInstance().invokePrefs(dataEnums.ePreferencesCommands.M_GET_BOOL, Arrays.asList(keys.SETTING_FULL_SCREEN_BROWSIING,false));
status.sFullScreenBrowsing = (boolean) dataController.getInstance().invokePrefs(dataEnums.ePreferencesCommands.M_GET_BOOL, Arrays.asList(keys.SETTING_FULL_SCREEN_BROWSIING,false));
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
if(status.sTheme == enums.Theme.THEME_DARK || status.sDefaultNightMode){
@ -1632,23 +1637,6 @@ class homeViewController
}
if(status.sFullScreenBrowsing){
if(mAdvertLoaded!=null && (boolean)mAdvertLoaded){
if(mCurrentURL!=null){
String mURL = (String) mCurrentURL;
if((wasErrorPage!=null && (boolean)wasErrorPage)){
mWebviewContainer.setPadding(0,0,0,0);
}else {
int orientation = mContext.getResources().getConfiguration().orientation;
if (orientation == Configuration.ORIENTATION_LANDSCAPE) {
mWebviewContainer.setPadding(0,0,0,helperMethod.pxFromDp(60));
} else {
mWebviewContainer.setPadding(0,0,0,helperMethod.pxFromDp(0));
}
}
}
}else {
mWebviewContainer.setPadding(0,0,0,0);
}
}
else {
if(mAdvertLoaded!=null && (boolean)mAdvertLoaded){
@ -1709,7 +1697,7 @@ class homeViewController
}
}
if(!status.sExternalWebsite.equals(strings.GENERIC_EMPTY_STR) ){
mEvent.invokeObserver(Collections.singletonList(helperMethod.getDomainName(status.sExternalWebsite)), enums.etype.open_new_tab_instant);
mEvent.invokeObserver(Collections.singletonList(status.sExternalWebsite), enums.etype.open_new_tab_instant);
}
status.sSettingIsAppStarted = true;

View File

@ -1,4 +1,4 @@
package com.hiddenservices.genesissearchengine.production.appManager.kotlinHelperLibraries
package com.hiddenservices.onionservices.appManager.kotlinHelperLibraries
import android.content.Context
import android.widget.ImageView

View File

@ -1,4 +1,4 @@
package com.hiddenservices.genesissearchengine.production.appManager.kotlinHelperLibraries
package com.hiddenservices.onionservices.appManager.kotlinHelperLibraries
import android.app.Activity
import android.view.View

View File

@ -1,4 +1,4 @@
package com.hiddenservices.genesissearchengine.production.appManager.languageManager;
package com.hiddenservices.onionservices.appManager.languageManager;
import android.content.Context;
import android.content.res.Resources;
@ -13,14 +13,14 @@ import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.core.content.ContextCompat;
import androidx.recyclerview.widget.RecyclerView;
import com.hiddenservices.genesissearchengine.production.constants.status;
import com.hiddenservices.genesissearchengine.production.eventObserver;
import com.hiddenservices.onionservices.constants.status;
import com.hiddenservices.onionservices.eventObserver;
import com.example.myapplication.R;
import java.util.ArrayList;
import java.util.Arrays;
import static com.hiddenservices.genesissearchengine.production.appManager.languageManager.languageEnums.eLanguageAdapterCallback.*;
import static com.hiddenservices.genesissearchengine.production.constants.constants.CONST_LANGUAGE_DEFAULT_LANG;
import static com.hiddenservices.genesissearchengine.production.constants.strings.LANGUAGE_NOT_SUPPORTED;
import static com.hiddenservices.onionservices.appManager.languageManager.languageEnums.eLanguageAdapterCallback.*;
import static com.hiddenservices.onionservices.constants.constants.CONST_LANGUAGE_DEFAULT_LANG;
import static com.hiddenservices.onionservices.constants.strings.LANGUAGE_NOT_SUPPORTED;
public class languageAdapter extends RecyclerView.Adapter<languageAdapter.helpViewHolder>{

View File

@ -1,4 +1,4 @@
package com.hiddenservices.genesissearchengine.production.appManager.languageManager;
package com.hiddenservices.onionservices.appManager.languageManager;
import android.content.Intent;
import android.content.res.Configuration;
@ -13,18 +13,18 @@ import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import androidx.recyclerview.widget.SimpleItemAnimator;
import com.hiddenservices.genesissearchengine.production.appManager.activityContextManager;
import com.hiddenservices.genesissearchengine.production.appManager.helpManager.helpController;
import com.hiddenservices.genesissearchengine.production.constants.constants;
import com.hiddenservices.genesissearchengine.production.constants.keys;
import com.hiddenservices.genesissearchengine.production.constants.status;
import com.hiddenservices.genesissearchengine.production.dataManager.dataController;
import com.hiddenservices.genesissearchengine.production.dataManager.dataEnums;
import com.hiddenservices.genesissearchengine.production.eventObserver;
import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
import com.hiddenservices.genesissearchengine.production.appManager.activityThemeManager;
import com.hiddenservices.genesissearchengine.production.pluginManager.pluginController;
import com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums;
import com.hiddenservices.onionservices.appManager.activityContextManager;
import com.hiddenservices.onionservices.appManager.helpManager.helpController;
import com.hiddenservices.onionservices.constants.constants;
import com.hiddenservices.onionservices.constants.keys;
import com.hiddenservices.onionservices.constants.status;
import com.hiddenservices.onionservices.dataManager.dataController;
import com.hiddenservices.onionservices.dataManager.dataEnums;
import com.hiddenservices.onionservices.eventObserver;
import com.hiddenservices.onionservices.helperManager.helperMethod;
import com.hiddenservices.onionservices.appManager.activityThemeManager;
import com.hiddenservices.onionservices.pluginManager.pluginController;
import com.hiddenservices.onionservices.pluginManager.pluginEnums;
import com.example.myapplication.R;
import java.util.ArrayList;
import java.util.Arrays;
@ -33,10 +33,10 @@ import java.util.List;
import java.util.Locale;
import java.util.Objects;
import static com.hiddenservices.genesissearchengine.production.appManager.languageManager.languageEnums.eLanguageModel.M_ACTIVE_LANGUAGE;
import static com.hiddenservices.genesissearchengine.production.constants.constants.CONST_LANGUAGE_DEFAULT_LANG;
import static com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums.eLangManager.M_SUPPORTED_SYSTEM_LANGUAGE_INFO;
import static com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums.eMessageManager.M_LANGUAGE_SUPPORT_FAILURE;
import static com.hiddenservices.onionservices.appManager.languageManager.languageEnums.eLanguageModel.M_ACTIVE_LANGUAGE;
import static com.hiddenservices.onionservices.constants.constants.CONST_LANGUAGE_DEFAULT_LANG;
import static com.hiddenservices.onionservices.pluginManager.pluginEnums.eLangManager.M_SUPPORTED_SYSTEM_LANGUAGE_INFO;
import static com.hiddenservices.onionservices.pluginManager.pluginEnums.eMessageManager.M_LANGUAGE_SUPPORT_FAILURE;
public class languageController extends AppCompatActivity {

View File

@ -1,4 +1,4 @@
package com.hiddenservices.genesissearchengine.production.appManager.languageManager;
package com.hiddenservices.onionservices.appManager.languageManager;
public class languageDataModel {

View File

@ -1,4 +1,4 @@
package com.hiddenservices.genesissearchengine.production.appManager.languageManager;
package com.hiddenservices.onionservices.appManager.languageManager;
class languageEnums
{

View File

@ -1,6 +1,6 @@
package com.hiddenservices.genesissearchengine.production.appManager.languageManager;
package com.hiddenservices.onionservices.appManager.languageManager;
import com.hiddenservices.genesissearchengine.production.constants.status;
import com.hiddenservices.onionservices.constants.status;
import java.util.ArrayList;
import java.util.List;

View File

@ -1,4 +1,4 @@
package com.hiddenservices.genesissearchengine.production.appManager.languageManager;
package com.hiddenservices.onionservices.appManager.languageManager;
import android.os.Build;
import android.view.View;
@ -8,7 +8,7 @@ import android.widget.ImageView;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.app.AppCompatDelegate;
import androidx.core.content.ContextCompat;
import com.hiddenservices.genesissearchengine.production.eventObserver;
import com.hiddenservices.onionservices.eventObserver;
import com.example.myapplication.R;
import java.util.List;

View File

@ -1,4 +1,4 @@
package com.hiddenservices.genesissearchengine.production.appManager.orbotLogManager;
package com.hiddenservices.onionservices.appManager.orbotLogManager;
import android.net.Uri;
import android.view.LayoutInflater;
@ -8,11 +8,11 @@ import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.constraintlayout.widget.ConstraintLayout;
import androidx.recyclerview.widget.RecyclerView;
import com.hiddenservices.genesissearchengine.production.appManager.activityContextManager;
import com.hiddenservices.genesissearchengine.production.appManager.tabManager.tabEnums;
import com.hiddenservices.genesissearchengine.production.constants.constants;
import com.hiddenservices.genesissearchengine.production.eventObserver;
import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
import com.hiddenservices.onionservices.appManager.activityContextManager;
import com.hiddenservices.onionservices.appManager.tabManager.tabEnums;
import com.hiddenservices.onionservices.constants.constants;
import com.hiddenservices.onionservices.eventObserver;
import com.hiddenservices.onionservices.helperManager.helperMethod;
import com.example.myapplication.R;
import org.orbotproject.android.service.wrapper.logRowModel;

View File

@ -1,4 +1,4 @@
package com.hiddenservices.genesissearchengine.production.appManager.orbotLogManager;
package com.hiddenservices.onionservices.appManager.orbotLogManager;
import android.annotation.SuppressLint;
import android.content.res.Configuration;
@ -15,16 +15,16 @@ import androidx.appcompat.app.AppCompatActivity;
import androidx.core.widget.NestedScrollView;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import com.hiddenservices.genesissearchengine.production.appManager.activityContextManager;
import com.hiddenservices.genesissearchengine.production.appManager.settingManager.logManager.settingLogController;
import com.hiddenservices.genesissearchengine.production.constants.constants;
import com.hiddenservices.genesissearchengine.production.constants.enums;
import com.hiddenservices.genesissearchengine.production.constants.status;
import com.hiddenservices.genesissearchengine.production.eventObserver;
import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
import com.hiddenservices.genesissearchengine.production.appManager.activityThemeManager;
import com.hiddenservices.genesissearchengine.production.pluginManager.pluginController;
import com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums;
import com.hiddenservices.onionservices.appManager.activityContextManager;
import com.hiddenservices.onionservices.appManager.settingManager.logManager.settingLogController;
import com.hiddenservices.onionservices.constants.constants;
import com.hiddenservices.onionservices.constants.enums;
import com.hiddenservices.onionservices.constants.status;
import com.hiddenservices.onionservices.eventObserver;
import com.hiddenservices.onionservices.helperManager.helperMethod;
import com.hiddenservices.onionservices.appManager.activityThemeManager;
import com.hiddenservices.onionservices.pluginManager.pluginController;
import com.hiddenservices.onionservices.pluginManager.pluginEnums;
import com.example.myapplication.R;
import com.google.android.material.floatingactionbutton.FloatingActionButton;
import org.orbotproject.android.service.wrapper.logRowModel;
@ -32,16 +32,16 @@ import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Objects;
import static com.hiddenservices.genesissearchengine.production.appManager.orbotLogManager.orbotLogEnums.eOrbotLogModelCallbackCommands.M_UPDATE_FLOATING_BUTTON;
import static com.hiddenservices.genesissearchengine.production.appManager.orbotLogManager.orbotLogEnums.eOrbotLogModelCallbackCommands.M_UPDATE_LOGS;
import static com.hiddenservices.genesissearchengine.production.appManager.orbotLogManager.orbotLogEnums.eOrbotLogModelCallbackCommands.M_UPDATE_RECYCLE_VIEW;
import static com.hiddenservices.genesissearchengine.production.appManager.orbotLogManager.orbotLogEnums.eOrbotLogModelCommands.M_GET_LIST;
import static com.hiddenservices.genesissearchengine.production.appManager.orbotLogManager.orbotLogEnums.eOrbotLogModelCommands.M_GET_LIST_SIZE;
import static com.hiddenservices.genesissearchengine.production.appManager.orbotLogManager.orbotLogEnums.eOrbotLogViewCommands.M_FLOAT_BUTTON_UPDATE;
import static com.hiddenservices.genesissearchengine.production.appManager.orbotLogManager.orbotLogEnums.eOrbotLogViewCommands.M_SCROLL_BOTTOM;
import static com.hiddenservices.genesissearchengine.production.appManager.orbotLogManager.orbotLogEnums.eOrbotLogViewCommands.M_SCROLL_TOP;
import static com.hiddenservices.genesissearchengine.production.appManager.orbotLogManager.orbotLogEnums.eOrbotLogViewCommands.M_SCROLL_TO_POSITION;
import static com.hiddenservices.genesissearchengine.production.appManager.orbotLogManager.orbotLogEnums.eOrbotLogViewCommands.M_SHOW_FLOATING_TOOLBAR;
import static com.hiddenservices.onionservices.appManager.orbotLogManager.orbotLogEnums.eOrbotLogModelCallbackCommands.M_UPDATE_FLOATING_BUTTON;
import static com.hiddenservices.onionservices.appManager.orbotLogManager.orbotLogEnums.eOrbotLogModelCallbackCommands.M_UPDATE_LOGS;
import static com.hiddenservices.onionservices.appManager.orbotLogManager.orbotLogEnums.eOrbotLogModelCallbackCommands.M_UPDATE_RECYCLE_VIEW;
import static com.hiddenservices.onionservices.appManager.orbotLogManager.orbotLogEnums.eOrbotLogModelCommands.M_GET_LIST;
import static com.hiddenservices.onionservices.appManager.orbotLogManager.orbotLogEnums.eOrbotLogModelCommands.M_GET_LIST_SIZE;
import static com.hiddenservices.onionservices.appManager.orbotLogManager.orbotLogEnums.eOrbotLogViewCommands.M_FLOAT_BUTTON_UPDATE;
import static com.hiddenservices.onionservices.appManager.orbotLogManager.orbotLogEnums.eOrbotLogViewCommands.M_SCROLL_BOTTOM;
import static com.hiddenservices.onionservices.appManager.orbotLogManager.orbotLogEnums.eOrbotLogViewCommands.M_SCROLL_TOP;
import static com.hiddenservices.onionservices.appManager.orbotLogManager.orbotLogEnums.eOrbotLogViewCommands.M_SCROLL_TO_POSITION;
import static com.hiddenservices.onionservices.appManager.orbotLogManager.orbotLogEnums.eOrbotLogViewCommands.M_SHOW_FLOATING_TOOLBAR;
public class orbotLogController extends AppCompatActivity implements ViewTreeObserver.OnScrollChangedListener, ViewTreeObserver.OnGlobalLayoutListener {

View File

@ -1,4 +1,4 @@
package com.hiddenservices.genesissearchengine.production.appManager.orbotLogManager;
package com.hiddenservices.onionservices.appManager.orbotLogManager;
public class orbotLogEnums
{

View File

@ -1,22 +1,22 @@
package com.hiddenservices.genesissearchengine.production.appManager.orbotLogManager;
package com.hiddenservices.onionservices.appManager.orbotLogManager;
import android.annotation.SuppressLint;
import android.os.AsyncTask;
import android.util.Log;
import androidx.appcompat.app.AppCompatActivity;
import com.hiddenservices.genesissearchengine.production.constants.constants;
import com.hiddenservices.genesissearchengine.production.constants.status;
import com.hiddenservices.genesissearchengine.production.eventObserver;
import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
import com.hiddenservices.onionservices.constants.constants;
import com.hiddenservices.onionservices.constants.status;
import com.hiddenservices.onionservices.eventObserver;
import com.hiddenservices.onionservices.helperManager.helperMethod;
import org.orbotproject.android.service.wrapper.logRowModel;
import org.orbotproject.android.service.wrapper.orbotLocalConstants;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import static com.hiddenservices.genesissearchengine.production.appManager.orbotLogManager.orbotLogEnums.eOrbotLogModelCallbackCommands.M_UPDATE_FLOATING_BUTTON;
import static com.hiddenservices.genesissearchengine.production.appManager.orbotLogManager.orbotLogEnums.eOrbotLogModelCallbackCommands.M_UPDATE_LOGS;
import static com.hiddenservices.genesissearchengine.production.appManager.orbotLogManager.orbotLogEnums.eOrbotLogModelCallbackCommands.M_UPDATE_RECYCLE_VIEW;
import static com.hiddenservices.onionservices.appManager.orbotLogManager.orbotLogEnums.eOrbotLogModelCallbackCommands.M_UPDATE_FLOATING_BUTTON;
import static com.hiddenservices.onionservices.appManager.orbotLogManager.orbotLogEnums.eOrbotLogModelCallbackCommands.M_UPDATE_LOGS;
import static com.hiddenservices.onionservices.appManager.orbotLogManager.orbotLogEnums.eOrbotLogModelCallbackCommands.M_UPDATE_RECYCLE_VIEW;
import static java.lang.Thread.sleep;
import static org.mozilla.gecko.util.ThreadUtils.runOnUiThread;

View File

@ -1,4 +1,4 @@
package com.hiddenservices.genesissearchengine.production.appManager.orbotLogManager;
package com.hiddenservices.onionservices.appManager.orbotLogManager;
public class orbotLogStatus {

View File

@ -1,13 +1,13 @@
package com.hiddenservices.genesissearchengine.production.appManager.orbotLogManager;
package com.hiddenservices.onionservices.appManager.orbotLogManager;
import android.view.View;
import android.widget.TextView;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.widget.NestedScrollView;
import androidx.recyclerview.widget.RecyclerView;
import com.hiddenservices.genesissearchengine.production.constants.enums;
import com.hiddenservices.genesissearchengine.production.eventObserver;
import com.hiddenservices.genesissearchengine.production.helperManager.sharedUIMethod;
import com.hiddenservices.onionservices.constants.enums;
import com.hiddenservices.onionservices.eventObserver;
import com.hiddenservices.onionservices.helperManager.sharedUIMethod;
import com.google.android.material.floatingactionbutton.FloatingActionButton;
import java.util.List;

View File

@ -1,4 +1,4 @@
package com.hiddenservices.genesissearchengine.production.appManager.orbotManager;
package com.hiddenservices.onionservices.appManager.orbotManager;
import android.content.res.Configuration;
import android.os.Bundle;
@ -6,16 +6,16 @@ import android.view.View;
import android.widget.LinearLayout;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import com.hiddenservices.genesissearchengine.production.appManager.activityContextManager;
import com.hiddenservices.genesissearchengine.production.appManager.bridgeManager.bridgeController;
import com.hiddenservices.genesissearchengine.production.appManager.helpManager.helpController;
import com.hiddenservices.genesissearchengine.production.constants.constants;
import com.hiddenservices.genesissearchengine.production.constants.status;
import com.hiddenservices.genesissearchengine.production.eventObserver;
import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
import com.hiddenservices.genesissearchengine.production.appManager.activityThemeManager;
import com.hiddenservices.genesissearchengine.production.pluginManager.pluginController;
import com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums;
import com.hiddenservices.onionservices.appManager.activityContextManager;
import com.hiddenservices.onionservices.appManager.bridgeManager.bridgeController;
import com.hiddenservices.onionservices.appManager.helpManager.helpController;
import com.hiddenservices.onionservices.constants.constants;
import com.hiddenservices.onionservices.constants.status;
import com.hiddenservices.onionservices.eventObserver;
import com.hiddenservices.onionservices.helperManager.helperMethod;
import com.hiddenservices.onionservices.appManager.activityThemeManager;
import com.hiddenservices.onionservices.pluginManager.pluginController;
import com.hiddenservices.onionservices.pluginManager.pluginEnums;
import com.example.myapplication.R;
import com.google.android.material.switchmaterial.SwitchMaterial;
import java.util.Arrays;
@ -25,8 +25,8 @@ import java.util.List;
public class orbotController extends AppCompatActivity {
/* PRIVATE VARIABLES */
private com.hiddenservices.genesissearchengine.production.appManager.orbotManager.orbotModel mOrbotModel;
private com.hiddenservices.genesissearchengine.production.appManager.orbotManager.orbotViewController mOrbotViewController;
private com.hiddenservices.onionservices.appManager.orbotManager.orbotModel mOrbotModel;
private com.hiddenservices.onionservices.appManager.orbotManager.orbotViewController mOrbotViewController;
private SwitchMaterial mOrbotSettingBridgeSwitch;
private SwitchMaterial mOrbotSettingVPNSwitch;

View File

@ -1,4 +1,4 @@
package com.hiddenservices.genesissearchengine.production.appManager.orbotManager;
package com.hiddenservices.onionservices.appManager.orbotManager;
public class orbotEnums
{

View File

@ -1,12 +1,12 @@
package com.hiddenservices.genesissearchengine.production.appManager.orbotManager;
package com.hiddenservices.onionservices.appManager.orbotManager;
import com.hiddenservices.genesissearchengine.production.constants.keys;
import com.hiddenservices.genesissearchengine.production.constants.status;
import com.hiddenservices.genesissearchengine.production.dataManager.dataController;
import com.hiddenservices.genesissearchengine.production.dataManager.dataEnums;
import com.hiddenservices.genesissearchengine.production.eventObserver;
import com.hiddenservices.genesissearchengine.production.pluginManager.pluginController;
import com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums;
import com.hiddenservices.onionservices.constants.keys;
import com.hiddenservices.onionservices.constants.status;
import com.hiddenservices.onionservices.dataManager.dataController;
import com.hiddenservices.onionservices.dataManager.dataEnums;
import com.hiddenservices.onionservices.eventObserver;
import com.hiddenservices.onionservices.pluginManager.pluginController;
import com.hiddenservices.onionservices.pluginManager.pluginEnums;
import java.util.Arrays;
import java.util.Collections;
@ -39,11 +39,11 @@ class orbotModel
}
public void onTrigger(com.hiddenservices.genesissearchengine.production.appManager.orbotManager.orbotEnums.eOrbotModelCommands pCommands, List<Object> pData){
if(pCommands == com.hiddenservices.genesissearchengine.production.appManager.orbotManager.orbotEnums.eOrbotModelCommands.M_BRIDGE_SWITCH){
public void onTrigger(orbotEnums.eOrbotModelCommands pCommands, List<Object> pData){
if(pCommands == orbotEnums.eOrbotModelCommands.M_BRIDGE_SWITCH){
onBridgeSwitch((boolean) pData.get(0));
}
else if(pCommands == com.hiddenservices.genesissearchengine.production.appManager.orbotManager.orbotEnums.eOrbotModelCommands.M_VPN_SWITCH){
else if(pCommands == orbotEnums.eOrbotModelCommands.M_VPN_SWITCH){
onVPNSwitch((boolean) pData.get(0));
}
}

View File

@ -1,9 +1,9 @@
package com.hiddenservices.genesissearchengine.production.appManager.orbotManager;
package com.hiddenservices.onionservices.appManager.orbotManager;
import android.view.View;
import android.widget.LinearLayout;
import androidx.appcompat.app.AppCompatActivity;
import com.hiddenservices.genesissearchengine.production.helperManager.sharedUIMethod;
import com.hiddenservices.onionservices.helperManager.sharedUIMethod;
import com.google.android.material.switchmaterial.SwitchMaterial;
import java.util.List;

View File

@ -1,4 +1,4 @@
package com.hiddenservices.genesissearchengine.production.appManager.proxyStatusManager;
package com.hiddenservices.onionservices.appManager.proxyStatusManager;
import android.content.res.Configuration;
import android.os.Bundle;
@ -6,15 +6,15 @@ import android.view.View;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import com.hiddenservices.genesissearchengine.production.appManager.activityContextManager;
import com.hiddenservices.genesissearchengine.production.appManager.orbotLogManager.orbotLogController;
import com.hiddenservices.genesissearchengine.production.constants.constants;
import com.hiddenservices.genesissearchengine.production.constants.status;
import com.hiddenservices.genesissearchengine.production.eventObserver;
import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
import com.hiddenservices.genesissearchengine.production.appManager.activityThemeManager;
import com.hiddenservices.genesissearchengine.production.pluginManager.pluginController;
import com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums;
import com.hiddenservices.onionservices.appManager.activityContextManager;
import com.hiddenservices.onionservices.appManager.orbotLogManager.orbotLogController;
import com.hiddenservices.onionservices.constants.constants;
import com.hiddenservices.onionservices.constants.status;
import com.hiddenservices.onionservices.eventObserver;
import com.hiddenservices.onionservices.helperManager.helperMethod;
import com.hiddenservices.onionservices.appManager.activityThemeManager;
import com.hiddenservices.onionservices.pluginManager.pluginController;
import com.hiddenservices.onionservices.pluginManager.pluginEnums;
import com.example.myapplication.R;
import com.google.android.material.switchmaterial.SwitchMaterial;
import java.util.Arrays;

View File

@ -1,4 +1,4 @@
package com.hiddenservices.genesissearchengine.production.appManager.proxyStatusManager;
package com.hiddenservices.onionservices.appManager.proxyStatusManager;
public class proxyStatusEnums
{

View File

@ -1,6 +1,6 @@
package com.hiddenservices.genesissearchengine.production.appManager.proxyStatusManager;
package com.hiddenservices.onionservices.appManager.proxyStatusManager;
import com.hiddenservices.genesissearchengine.production.eventObserver;
import com.hiddenservices.onionservices.eventObserver;
class proxyStatusModel
{

View File

@ -1,4 +1,4 @@
package com.hiddenservices.genesissearchengine.production.appManager.proxyStatusManager;
package com.hiddenservices.onionservices.appManager.proxyStatusManager;
import android.os.Build;
import android.view.View;

View File

@ -1,4 +1,4 @@
package com.hiddenservices.genesissearchengine.production.appManager.settingManager.accessibilityManager;
package com.hiddenservices.onionservices.appManager.settingManager.accessibilityManager;
import android.content.res.Configuration;
import android.os.Bundle;
@ -9,18 +9,18 @@ import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import com.hiddenservices.genesissearchengine.production.appManager.activityContextManager;
import com.hiddenservices.genesissearchengine.production.appManager.helpManager.helpController;
import com.hiddenservices.genesissearchengine.production.constants.constants;
import com.hiddenservices.genesissearchengine.production.constants.keys;
import com.hiddenservices.genesissearchengine.production.constants.status;
import com.hiddenservices.genesissearchengine.production.dataManager.dataController;
import com.hiddenservices.genesissearchengine.production.dataManager.dataEnums;
import com.hiddenservices.genesissearchengine.production.eventObserver;
import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
import com.hiddenservices.genesissearchengine.production.appManager.activityThemeManager;
import com.hiddenservices.genesissearchengine.production.pluginManager.pluginController;
import com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums;
import com.hiddenservices.onionservices.appManager.activityContextManager;
import com.hiddenservices.onionservices.appManager.helpManager.helpController;
import com.hiddenservices.onionservices.constants.constants;
import com.hiddenservices.onionservices.constants.keys;
import com.hiddenservices.onionservices.constants.status;
import com.hiddenservices.onionservices.dataManager.dataController;
import com.hiddenservices.onionservices.dataManager.dataEnums;
import com.hiddenservices.onionservices.eventObserver;
import com.hiddenservices.onionservices.helperManager.helperMethod;
import com.hiddenservices.onionservices.appManager.activityThemeManager;
import com.hiddenservices.onionservices.pluginManager.pluginController;
import com.hiddenservices.onionservices.pluginManager.pluginEnums;
import com.example.myapplication.R;
import com.google.android.material.switchmaterial.SwitchMaterial;
import java.util.Arrays;

View File

@ -1,4 +1,4 @@
package com.hiddenservices.genesissearchengine.production.appManager.settingManager.accessibilityManager;
package com.hiddenservices.onionservices.appManager.settingManager.accessibilityManager;
class settingAccessibilityEnums
{

View File

@ -1,7 +1,7 @@
package com.hiddenservices.genesissearchengine.production.appManager.settingManager.accessibilityManager;
package com.hiddenservices.onionservices.appManager.settingManager.accessibilityManager;
import com.hiddenservices.genesissearchengine.production.constants.status;
import com.hiddenservices.genesissearchengine.production.eventObserver;
import com.hiddenservices.onionservices.constants.status;
import com.hiddenservices.onionservices.eventObserver;
import java.util.List;
class settingAccessibilityModel

View File

@ -1,4 +1,4 @@
package com.hiddenservices.genesissearchengine.production.appManager.settingManager.accessibilityManager;
package com.hiddenservices.onionservices.appManager.settingManager.accessibilityManager;
import android.os.Build;
import android.view.View;
@ -9,9 +9,9 @@ import android.widget.TextView;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.app.AppCompatDelegate;
import androidx.core.content.ContextCompat;
import com.hiddenservices.genesissearchengine.production.constants.constants;
import com.hiddenservices.genesissearchengine.production.constants.status;
import com.hiddenservices.genesissearchengine.production.eventObserver;
import com.hiddenservices.onionservices.constants.constants;
import com.hiddenservices.onionservices.constants.status;
import com.hiddenservices.onionservices.eventObserver;
import com.example.myapplication.R;
import com.google.android.material.switchmaterial.SwitchMaterial;
import java.util.List;

View File

@ -1,6 +1,6 @@
package com.hiddenservices.genesissearchengine.production.appManager.settingManager.advanceManager;
package com.hiddenservices.onionservices.appManager.settingManager.advanceManager;
import static com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums.eMessageManager.M_IMAGE_UPDATE;
import static com.hiddenservices.onionservices.pluginManager.pluginEnums.eMessageManager.M_IMAGE_UPDATE;
import android.content.res.Configuration;
import android.os.Bundle;
@ -9,18 +9,18 @@ import android.widget.RadioButton;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import com.hiddenservices.genesissearchengine.production.appManager.activityContextManager;
import com.hiddenservices.genesissearchengine.production.appManager.helpManager.helpController;
import com.hiddenservices.genesissearchengine.production.constants.constants;
import com.hiddenservices.genesissearchengine.production.constants.keys;
import com.hiddenservices.genesissearchengine.production.constants.status;
import com.hiddenservices.genesissearchengine.production.dataManager.dataController;
import com.hiddenservices.genesissearchengine.production.dataManager.dataEnums;
import com.hiddenservices.genesissearchengine.production.eventObserver;
import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
import com.hiddenservices.genesissearchengine.production.appManager.activityThemeManager;
import com.hiddenservices.genesissearchengine.production.pluginManager.pluginController;
import com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums;
import com.hiddenservices.onionservices.appManager.activityContextManager;
import com.hiddenservices.onionservices.appManager.helpManager.helpController;
import com.hiddenservices.onionservices.constants.constants;
import com.hiddenservices.onionservices.constants.keys;
import com.hiddenservices.onionservices.constants.status;
import com.hiddenservices.onionservices.dataManager.dataController;
import com.hiddenservices.onionservices.dataManager.dataEnums;
import com.hiddenservices.onionservices.eventObserver;
import com.hiddenservices.onionservices.helperManager.helperMethod;
import com.hiddenservices.onionservices.appManager.activityThemeManager;
import com.hiddenservices.onionservices.pluginManager.pluginController;
import com.hiddenservices.onionservices.pluginManager.pluginEnums;
import com.example.myapplication.R;
import com.google.android.material.switchmaterial.SwitchMaterial;
import java.util.ArrayList;

View File

@ -1,4 +1,4 @@
package com.hiddenservices.genesissearchengine.production.appManager.settingManager.advanceManager;
package com.hiddenservices.onionservices.appManager.settingManager.advanceManager;
class settingAdvanceEnums
{

Some files were not shown because too many files have changed in this diff Show More