Skip to content

Commit 369fe1b

Browse files
committed
A lot of changes
List of changes: - SecureRandom fixes ("PRNGFixes") applied for Android 4.3 and below. - App is now able to force runtime permissions and authorizations (like Device Admin or System Overlays) as long as root permissions are given to it - THOUGH the feature is disabled for now (there must be a way to request VISOR to stop forcing them if the user so chooses). PS: currently forcing Device Admin is only available for Lollipop+. - Device Admin is attempted to be forced every time the application or the Main Service start. - The project Java version restriction is now removed. I'm not too sure why I put it here in the first place. Confusion with something else, probably. - Battery state (charging/not charging) and battery presence improved to support devices that don't broadcast certain broadcasts, or that don't carry some correct values on them. - PocketSphinx recognition files updated. This is the reason for the app to need 100 MB now... I've added good and low quality files and kept the already present ones too. - Improved the privileged app installer script to auto detect the device characteristics and install the app as VISOR on the system folders. - ModulesList class vastly improved. Module support checks are now in place automatically before starting a module, proper module check has been added (now each module implements a function that must return if it's supported or not, whatever that means for that specific module - can include permissions check, hardware check, external apps check, whatever that is needed for it to work --at a minimum level--, because the CameraManagement will be able to record videos, but videos don't necessarily need audio too). - Development permissions have now been added to the app. They won't be granted without ADB commands or through automatic forcing with root permissions though (which are disabled anyways for now, so only ADB). - Since the app now properly checks if a module is supported or not with permissions (and the rest), permissions checks are now in place too to check if they have been granted to the app (previously, I just assumed they were given ("God mode")). - Protected Lock Screen improved a bit. Fixed possible PLS auto-restarts after dismissing it. - Full control of the speech recognizers given to SpeechRecognitionCtrl, as should have been done already. Previously I had it separated in case the controller would crash or something - that's a mess, no way. Only the controller can control the recognizers now (except terminating them, which must be done at the instant of the function call, currently). - Android utilities classes improved. - All file and directory operations have been changed to be based on shell commands only. Might change that later. Currently each call starts a new shell process. That's a bit too much sometimes. Either all calls are redirected to one global shell process or this class is changed to only use shell commands in case there is no permission using the SDK methods. - Java reflection utilities class added to ease reflection usage. - Root check changed. Now only "has" or "doesn't have" root permissions. - Shell commands executor function improved. Might be faster now, and in any case, it's more organized.
1 parent c6913c5 commit 369fe1b

File tree

222 files changed

+282075
-5306
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

222 files changed

+282075
-5306
lines changed

.github/ISSUE_TEMPLATE/bug-report.md

-6
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,6 @@ assignees: DADi590
77

88
---
99

10-
<!--
11-
[Issue; Type: 1; Version: 1.0;]
12-
13-
Do NOT delete/change anything inside < ! - - and - - >!!!
14-
-->
15-
1610
**Describe the bug** <!--[Title;]-->
1711
A clear and concise description of what the bug is.
1812

.github/ISSUE_TEMPLATE/feature-request.md

-6
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,6 @@ assignees: DADi590
77

88
---
99

10-
<!--
11-
[Issue; Type: 2; Version: 1.0;]
12-
13-
Do NOT delete/change anything inside < ! - - and - - >!!!
14-
-->
15-
1610
**Is your feature request related to a problem? Please describe.** <!--[Title;]-->
1711
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
1812

.github/ISSUE_TEMPLATE/help-needed.md

-6
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,6 @@ assignees: DADi590
77

88
---
99

10-
<!--
11-
[Issue; Type: 3; Version: 1.0;]
12-
13-
Do NOT delete/change anything inside < ! - - and - - >!!!
14-
-->
15-
1610
**What do you need help with?** <!--[Title;]-->
1711

1812

.github/ISSUE_TEMPLATE/other-questions.md

-6
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,6 @@ assignees: ''
77

88
---
99

10-
<!--
11-
[Issue; Type: 4; Version: 1.0;]
12-
13-
Do NOT delete/change anything inside < ! - - and - - >!!!
14-
-->
15-
1610
**What is the question about?** <!--[Title;]-->
1711

1812

.idea/compiler.xml

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/deploymentTargetDropDown.xml

-17
This file was deleted.

.idea/findbugs-idea.xml

+28
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

+3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.run/Normal app.run.xml .idea/runConfigurations/Normal_app.xml

+7-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.run/Privileged app API18-.run.xml

+30-8
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,41 @@
1+
<!--
2+
~ Copyright 2022 DADi590
3+
~
4+
~ Licensed to the Apache Software Foundation (ASF) under one
5+
~ or more contributor license agreements. See the NOTICE file
6+
~ distributed with this work for additional information
7+
~ regarding copyright ownership. The ASF licenses this file
8+
~ to you under the Apache License, Version 2.0 (the
9+
~ "License"); you may not use this file except in compliance
10+
~ with the License. You may obtain a copy of the License at
11+
~
12+
~ http://www.apache.org/licenses/LICENSE-2.0
13+
~
14+
~ Unless required by applicable law or agreed to in writing,
15+
~ software distributed under the License is distributed on an
16+
~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17+
~ KIND, either express or implied. See the License for the
18+
~ specific language governing permissions and limitations
19+
~ under the License.
20+
-->
21+
122
<component name="ProjectRunConfigurationManager">
2-
<configuration default="false" name="Privileged app API18-" type="AndroidRunConfigurationType" factoryName="Android App" activateToolWindowBeforeRun="false">
3-
<module name="Assist_C_A.app" />
23+
<configuration default="false" name="Privileged system app" type="AndroidRunConfigurationType" factoryName="Android App" activateToolWindowBeforeRun="false">
24+
<module name="Assist_C_A.app.main" />
425
<option name="DEPLOY" value="false" />
526
<option name="DEPLOY_APK_FROM_BUNDLE" value="false" />
627
<option name="DEPLOY_AS_INSTANT" value="false" />
728
<option name="ARTIFACT_NAME" value="" />
829
<option name="PM_INSTALL_OPTIONS" value="" />
930
<option name="ALL_USERS" value="false" />
1031
<option name="ALWAYS_INSTALL_WITH_PM" value="false" />
32+
<option name="CLEAR_APP_STORAGE" value="false" />
1133
<option name="DYNAMIC_FEATURES_DISABLED_LIST" value="" />
1234
<option name="ACTIVITY_EXTRA_FLAGS" value="" />
1335
<option name="MODE" value="default_activity" />
1436
<option name="CLEAR_LOGCAT" value="false" />
1537
<option name="SHOW_LOGCAT_AUTOMATICALLY" value="false" />
16-
<option name="SKIP_NOOP_APK_INSTALLATIONS" value="true" />
17-
<option name="FORCE_STOP_RUNNING_APP" value="true" />
38+
<option name="INSPECTION_WITHOUT_ACTIVITY_RESTART" value="false" />
1839
<option name="TARGET_SELECTION_MODE" value="SHOW_DIALOG" />
1940
<option name="SELECTED_CLOUD_MATRIX_CONFIGURATION_ID" value="-1" />
2041
<option name="SELECTED_CLOUD_MATRIX_PROJECT_ID" value="" />
@@ -45,17 +66,18 @@
4566
<option name="ADVANCED_PROFILING_ENABLED" value="false" />
4667
<option name="STARTUP_PROFILING_ENABLED" value="false" />
4768
<option name="STARTUP_CPU_PROFILING_ENABLED" value="false" />
48-
<option name="STARTUP_CPU_PROFILING_CONFIGURATION_NAME" value="Sample Java Methods" />
69+
<option name="STARTUP_CPU_PROFILING_CONFIGURATION_NAME" value="Callstack Sample" />
4970
<option name="STARTUP_NATIVE_MEMORY_PROFILING_ENABLED" value="false" />
5071
<option name="NATIVE_MEMORY_SAMPLE_RATE_BYTES" value="2048" />
72+
<option name="PROFILING_MODE" value="NOT_SET" />
5173
</Profilers>
5274
<option name="DEEP_LINK" value="" />
5375
<option name="ACTIVITY_CLASS" value="" />
5476
<option name="SEARCH_ACTIVITY_IN_GLOBAL_SCOPE" value="false" />
5577
<option name="SKIP_ACTIVITY_VALIDATION" value="false" />
5678
<method v="2">
57-
<option name="Android.Gradle.BeforeRunTask" enabled="true" />
58-
<option name="ToolBeforeRunTask" enabled="true" actionId="Tool_External Tools_Privileged app API18-" />
79+
<option name="Android.Gradle.BeforeRunTask" enabled="true" goal="" />
80+
<option name="ToolBeforeRunTask" enabled="true" actionId="Tool_External Tools_Privileged system app" />
5981
</method>
6082
</configuration>
61-
</component>
83+
</component>

.run/Privileged app API19-20.run.xml

-61
This file was deleted.

.run/Privileged app API21+.run.xml

-62
This file was deleted.

0 commit comments

Comments
 (0)