Android Enthusiasts
Q&A for enthusiasts and power users of the Android operating system
Latest Questions
65
votes
1
answers
40840
views
Does the Log4j vulnerability affect Android users?
The new vulnerability [CVE-2021-44228](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-44228) (also known as Log4Shell) is wreaking havoc, but very little of the discussion is voiced about the average android user. Is the average Android OS user at risk? I heard that Java's JNDI is not imple...
The new vulnerability [CVE-2021-44228](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-44228) (also known as Log4Shell) is wreaking havoc, but very little of the discussion is voiced about the average android user.
Is the average Android OS user at risk? I heard that Java's JNDI is not implemented in Android, but is that referring to the Java editors available for Android or the Android OS itself? Is Android's native logging mechanism that logs all activity in general susceptible to the Log4j vulnerability?
mistes
(759 rep)
Dec 12, 2021, 08:35 AM
• Last activity: Feb 4, 2025, 08:45 AM
0
votes
0
answers
26
views
How to polyfill a class/package required for an apk?
There is an apk that I want to use on my phone. This app relies on a class that is missing from my system installation. I know what this class needs to do, it is very simple, I have written a jar implementing it. How do I install this jar into the system so that the apk can use it?
There is an apk that I want to use on my phone.
This app relies on a class that is missing from my system installation.
I know what this class needs to do, it is very simple, I have written a jar implementing it.
How do I install this jar into the system so that the apk can use it?
user10732
(46 rep)
Jun 13, 2024, 01:01 PM
13
votes
4
answers
91643
views
Can you run 'normal' Java programs on Android?
I know some 'normal' Java (computer Java), and I want to run such a program on my Android device. Is this possible? If yes, how?
I know some 'normal' Java (computer Java), and I want to run such a program on my Android device. Is this possible? If yes, how?
scheurneus
(239 rep)
Feb 17, 2014, 06:11 PM
• Last activity: Nov 29, 2023, 01:35 AM
9
votes
5
answers
61140
views
How can I install .jar files on my Android?
I downloaded some 3D games, unzipped them, and got `.jar` files. How can I use these in Android? I have a Galaxy S running 2.1.
I downloaded some 3D games, unzipped them, and got
.jar
files. How can I use these in Android? I have a Galaxy S running 2.1.
Jeevan Bhatt
(954 rep)
Jan 12, 2011, 08:19 AM
• Last activity: Oct 28, 2023, 08:30 AM
1
votes
0
answers
26
views
Kaspersky Who Calls app keeps the phone screen on
There's an app called [Anti-spam: Kaspersky Who Calls][1]. The problem with this app is that when someone calls you the app shows the caller information in a popup and if you don't dismiss the said popup, the phone screen will never turn off. Imagine you got a call and you couldn't answer it, you fo...
There's an app called Anti-spam: Kaspersky Who Calls .
The problem with this app is that when someone calls you the app shows the caller information in a popup and if you don't dismiss the said popup, the phone screen will never turn off. Imagine you got a call and you couldn't answer it, you forget about it and later you realize the whole time the screen has been on and your battery is almost dead.
I know there's a thing called "Wake Lock " but it's all alien to me and I've no idea what to look for. I've used decompiler.com and got this but while grepping through the sources I wasn't able to find
FLAG_KEEP_SCREEN_ON
, so it could have been done differently or this service doesn't decode this flag correctly.
I've found this:
public static final long WAKE_LOCK_MAX_ACQUIRE_TIMEOUT_MS = 600000;
@SuppressLint({"Wakelock"})
public void run() {
PowerManager.WakeLock wakeLock;
if (h(this.f12161a)) {
this.f12162a.acquire(Constants.WAKE_LOCK_ACQUIRE_TIMEOUT_MILLIS);
}
It probably results in the screen being on for 10 minutes, not indefinitely but it's also excessive.
I wonder if it could be the culprit.
Artem S. Tashkinov
(215 rep)
Aug 29, 2023, 02:07 PM
3
votes
0
answers
72
views
Intercept system commands from app
I'm on Android 7.1.2 (Nougat). I have an app that I am trying to pull the exact command /parameters that it is sending to one of my /system/bin apps. It is not in logcat and I haven't been able to find it with strace either. What I'm looking to do is replace the bin file in /system/bin with another...
I'm on Android 7.1.2 (Nougat). I have an app that I am trying to pull the exact command /parameters that it is sending to one of my /system/bin apps. It is not in logcat and I haven't been able to find it with strace either.
What I'm looking to do is replace the bin file in /system/bin with another file and give it the same name so it logs the command/parameters that's sent to the binary. Is that possible? And is so how? How would I go about getting this info.
Corey F
(31 rep)
Jan 27, 2023, 02:42 AM
2
votes
0
answers
429
views
Installing Java and running JAR files on Android 4.4
I want to install and use Java 8 on Android 4.4. Using `Termux` is not an option because it requires a minimum of Android 5.0. I do have root access. I tried to install the ARM version of Java using `rpm`, which worked but it is not usable. When I go to the `/bin` directory and run `./java -version`...
I want to install and use Java 8 on Android 4.4. Using
Termux
is not an option because it requires a minimum of Android 5.0. I do have root access.
I tried to install the ARM version of Java using rpm
, which worked but it is not usable. When I go to the /bin
directory and run ./java -version
, it gives me an error ./java: not executable : magic 7F45
.
Is there a way to install and run Java on a rooted Android phone, without the use of Termux?
NpGamingBoy
(21 rep)
Sep 13, 2021, 02:17 AM
• Last activity: Dec 20, 2022, 02:20 AM
3
votes
1
answers
3169
views
How to find HTTP requests in apk source code
I've extracted an apk(react native) with dex2jar and jar to java through jd-qui and also with apktool, and I can view the source code but there is no clue where are the HTTP requests in the source code. When I intercept the apk traffic I can see all the requests to graphql endoint but I cannot see i...
I've extracted an apk(react native) with dex2jar and jar to java through jd-qui and also with apktool, and I can view the source code but there is no clue where are the HTTP requests in the source code.
When I intercept the apk traffic I can see all the requests to graphql endoint but I cannot see in the source code, where they are triggered or stored.
I searched the extracted source code with some keywords such as
grahpql
endpoint name, and the server address but still no result.
And the code seems not obfuscated to me, just some parts are like;
@Metadata(d1 = {"\000\026\n\002\030\002\n\002\020\000\n\000\n\002\020\002\n\000\n\002\030\002\n\000\bf\030\0002\0020\001J\020\020\002\032\0020\0032\006\020\004\032\0020\005H&\006\006"}, d2 = {"Lcom/shopify/arrive/E2EModule;", "", "launch", "", "intent", "Landroid/content/Intent;", "app_release"}, k = 1, mv = {1, 7, 1}, xi = 48)
public interface E2EModule {
void launch(Intent paramIntent);
}
Is there any way to reach where these requests are triggered or stored on the source code?
This is the apk name, com.shopify.arrive
Luor Themes
(31 rep)
Dec 15, 2022, 02:28 PM
• Last activity: Dec 16, 2022, 07:57 AM
1
votes
1
answers
790
views
What is the official Android repository containing APKSIGNER?
What is the official source for `apksigner` as referenced e.g. in this [answer](https://android.stackexchange.com/a/218161/375063)? People are citing Android Studio, Android SDK Build Tools/Platform Tools/Command Line Tools etc. (as well as some shady archives on Google Drive), but non of these cont...
What is the official source for
apksigner
as referenced e.g. in this [answer](https://android.stackexchange.com/a/218161/375063) ? People are citing Android Studio, Android SDK Build Tools/Platform Tools/Command Line Tools etc. (as well as some shady archives on Google Drive), but non of these contain the program. I've downloaded, installed and searched them all.
Alternatively, what is the official source for Android SDK Build Tools 24.0.3, which allegedly contains the apksigner
?
I've found an apksigner.jar
and apksigner.bat
inside a private Google [repository](https://dl.google.com/android/repository/build-tools_r24.0.3-windows.zip) , but running
apksigner verify --verbose --print-certs
apksigner.bat verify --verbose --print-certs
apksigner.jar verify --verbose --print-certs
doesn't work (no output). This is the content of said batch file apksigner.bat
:
@echo off
REM Copyright (C) 2016 The Android Open Source Project
REM
REM Licensed under the Apache License, Version 2.0 (the "License");
REM you may not use this file except in compliance with the License.
REM You may obtain a copy of the License at
REM
REM http://www.apache.org/licenses/LICENSE-2.0
REM
REM Unless required by applicable law or agreed to in writing, software
REM distributed under the License is distributed on an "AS IS" BASIS,
REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
REM See the License for the specific language governing permissions and
REM limitations under the License.
REM don't modify the caller's environment
setlocal
REM Locate apksigner.jar in the directory where apksigner.bat was found and start it.
REM Set up prog to be the path of this script, including following symlinks,
REM and set up progdir to be the fully-qualified pathname of its directory.
set prog=%~f0
rem Check we have a valid Java.exe in the path.
set java_exe=
if exist "%~dp0..\tools\lib\find_java.bat" call "%~dp0..\tools\lib\find_java.bat"
if exist "%~dp0..\..\tools\lib\find_java.bat" call "%~dp0..\..\tools\lib\find_java.bat"
if not defined java_exe goto :EOF
set jarfile=apksigner.jar
set "frameworkdir=%~dp0"
rem frameworkdir must not end with a dir sep.
set "frameworkdir=%frameworkdir:~0,-1%"
if exist "%frameworkdir%\%jarfile%" goto JarFileOk
set "frameworkdir=%~dp0lib"
if exist "%frameworkdir%\%jarfile%" goto JarFileOk
set "frameworkdir=%~dp0..\framework"
:JarFileOk
set "jarpath=%frameworkdir%\%jarfile%"
set javaOpts=
set args=
REM By default, give apksigner a max heap size of 1 gig and a stack size of 1meg.
rem This can be overridden by using "-JXmx..." and "-JXss..." options below.
set defaultXmx=-Xmx1024M
set defaultXss=-Xss1m
REM Capture all arguments that are not -J options.
REM Note that when reading the input arguments with %1, the cmd.exe
REM automagically converts --name=value arguments into 2 arguments "--name"
REM followed by "value". apksigner has been changed to know how to deal with that.
set params=
:firstArg
if [%1]==[] goto endArgs
set a=%~1
if [%defaultXmx%]==[] goto notXmx
if %a:~0,5% NEQ -JXmx goto notXmx
set defaultXmx=
:notXmx
if [%defaultXss%]==[] goto notXss
if %a:~0,5% NEQ -JXss goto notXss
set defaultXss=
:notXss
if %a:~0,2% NEQ -J goto notJ
set javaOpts=%javaOpts% -%a:~2%
shift /1
goto firstArg
:notJ
set params=%params% %1
shift /1
goto firstArg
:endArgs
set javaOpts=%javaOpts% %defaultXmx% %defaultXss%
call "%java_exe%" %javaOpts% -Djava.ext.dirs="%frameworkdir%" -jar "%jarpath%" %params%
UPDATE: As suggested, I've now tried apksigner
from Android Build Tools. Here is the output:
Verifies
Verified using v1 scheme (JAR signing): true
Verified using v2 scheme (APK Signature Scheme v2): true
Verified using v3 scheme (APK Signature Scheme v3): false
Verified using v4 scheme (APK Signature Scheme v4): false
Verified for SourceStamp: false
Number of signers: 1
Signer #1 certificate DN: CN=Unknown, OU=Unknown, O=Fiducia IT AG, L=Unknown, ST
=Unknown, C=DE
Signer #1 certificate SHA-256 digest: 53a6afa8f0d219bba2fe84154f256ecec85b34175f
fee5b7387fda0afcc12605
Signer #1 certificate SHA-1 digest: addb5ed43a27660e41acb1d39e85ddd7b9c9807c
Signer #1 certificate MD5 digest: 1be8c130e83eb6b36e4aff93bcdd1b28
Signer #1 key algorithm: RSA
Signer #1 key size (bits): 2048
Signer #1 public key SHA-256 digest: 671eafb570fa9e82cb7a8d5c435dad3d86990a09d5b
20f41b42e3152b3cd5a6a
Signer #1 public key SHA-1 digest: c021e779e6086e20a7c60b05a0c30b94c59c83ba
Signer #1 public key MD5 digest: d42dc7a6bcb0ace30d8ac316bc321c9c
WARNING: META-INF/androidx.navigation_navigation-fragment.version not protected
by signature. Unauthorized modifications to this JAR entry will not be detected.
Delete or move the entry outside of META-INF/.
WARNING: META-INF/androidx.camera_camera-camera2.version not protected by signat
ure. Unauthorized modifications to this JAR entry will not be detected. Delete o
r move the entry outside of META-INF/.
WARNING: META-INF/androidx.customview_customview.version not protected by signat
ure. Unauthorized modifications to this JAR entry will not be detected. Delete o
r move the entry outside of META-INF/.
WARNING: META-INF/services/ya.k not protected by signature. Unauthorized modific
ations to this JAR entry will not be detected. Delete or move the entry outside
of META-INF/.
WARNING: META-INF/androidx.room_room-runtime.version not protected by signature.
Unauthorized modifications to this JAR entry will not be detected. Delete or mo
ve the entry outside of META-INF/.
WARNING: META-INF/androidx.camera_camera-lifecycle.version not protected by sign
ature. Unauthorized modifications to this JAR entry will not be detected. Delete
or move the entry outside of META-INF/.
WARNING: META-INF/androidx.browser_browser.version not protected by signature. U
nauthorized modifications to this JAR entry will not be detected. Delete or move
the entry outside of META-INF/.
WARNING: META-INF/com.google.android.material_material.version not protected by
signature. Unauthorized modifications to this JAR entry will not be detected. De
lete or move the entry outside of META-INF/.
WARNING: META-INF/androidx.savedstate_savedstate-ktx.version not protected by si
gnature. Unauthorized modifications to this JAR entry will not be detected. Dele
te or move the entry outside of META-INF/.
WARNING: META-INF/androidx.activity_activity-ktx.version not protected by signat
ure. Unauthorized modifications to this JAR entry will not be detected. Delete o
r move the entry outside of META-INF/.
WARNING: META-INF/kotlinx_coroutines_play_services.version not protected by sign
ature. Unauthorized modifications to this JAR entry will not be detected. Delete
or move the entry outside of META-INF/.
WARNING: META-INF/androidx.slidingpanelayout_slidingpanelayout.version not prote
cted by signature. Unauthorized modifications to this JAR entry will not be dete
cted. Delete or move the entry outside of META-INF/.
WARNING: META-INF/androidx.dynamicanimation_dynamicanimation.version not protect
ed by signature. Unauthorized modifications to this JAR entry will not be detect
ed. Delete or move the entry outside of META-INF/.
WARNING: META-INF/androidx.exifinterface_exifinterface.version not protected by
signature. Unauthorized modifications to this JAR entry will not be detected. De
lete or move the entry outside of META-INF/.
WARNING: META-INF/androidx.sqlite_sqlite-ktx.version not protected by signature.
Unauthorized modifications to this JAR entry will not be detected. Delete or mo
ve the entry outside of META-INF/.
WARNING: META-INF/androidx.lifecycle_lifecycle-extensions.version not protected
by signature. Unauthorized modifications to this JAR entry will not be detected.
Delete or move the entry outside of META-INF/.
WARNING: META-INF/androidx.versionedparcelable_versionedparcelable.version not p
rotected by signature. Unauthorized modifications to this JAR entry will not be
detected. Delete or move the entry outside of META-INF/.
WARNING: META-INF/androidx.lifecycle_lifecycle-livedata-ktx.version not protecte
d by signature. Unauthorized modifications to this JAR entry will not be detecte
d. Delete or move the entry outside of META-INF/.
WARNING: META-INF/androidx.preference_preference-ktx.version not protected by si
gnature. Unauthorized modifications to this JAR entry will not be detected. Dele
te or move the entry outside of META-INF/.
WARNING: META-INF/androidx.preference_preference.version not protected by signat
ure. Unauthorized modifications to this JAR entry will not be detected. Delete o
r move the entry outside of META-INF/.
WARNING: META-INF/androidx.navigation_navigation-ui.version not protected by sig
nature. Unauthorized modifications to this JAR entry will not be detected. Delet
e or move the entry outside of META-INF/.
WARNING: META-INF/androidx.lifecycle_lifecycle-runtime.version not protected by
signature. Unauthorized modifications to this JAR entry will not be detected. De
lete or move the entry outside of META-INF/.
WARNING: META-INF/androidx.room_room-ktx.version not protected by signature. Una
uthorized modifications to this JAR entry will not be detected. Delete or move t
he entry outside of META-INF/.
WARNING: META-INF/androidx.appcompat_appcompat-resources.version not protected b
y signature. Unauthorized modifications to this JAR entry will not be detected.
Delete or move the entry outside of META-INF/.
WARNING: META-INF/androidx.appcompat_appcompat.version not protected by signatur
e. Unauthorized modifications to this JAR entry will not be detected. Delete or
move the entry outside of META-INF/.
WARNING: META-INF/androidx.lifecycle_lifecycle-livedata.version not protected by
signature. Unauthorized modifications to this JAR entry will not be detected. D
elete or move the entry outside of META-INF/.
WARNING: META-INF/androidx.navigation_navigation-runtime.version not protected b
y signature. Unauthorized modifications to this JAR entry will not be detected.
Delete or move the entry outside of META-INF/.
WARNING: META-INF/androidx.navigation_navigation-runtime-ktx.version not protect
ed by signature. Unauthorized modifications to this JAR entry will not be detect
ed. Delete or move the entry outside of META-INF/.
WARNING: META-INF/androidx.window_window.version not protected by signature. Una
uthorized modifications to this JAR entry will not be detected. Delete or move t
he entry outside of META-INF/.
WARNING: META-INF/androidx.cursoradapter_cursoradapter.version not protected by
signature. Unauthorized modifications to this JAR entry will not be detected. De
lete or move the entry outside of META-INF/.
WARNING: META-INF/androidx.savedstate_savedstate.version not protected by signat
ure. Unauthorized modifications to this JAR entry will not be detected. Delete o
r move the entry outside of META-INF/.
WARNING: META-INF/androidx.fragment_fragment.version not protected by signature.
Unauthorized modifications to this JAR entry will not be detected. Delete or mo
ve the entry outside of META-INF/.
WARNING: META-INF/androidx.vectordrawable_vectordrawable.version not protected b
y signature. Unauthorized modifications to this JAR entry will not be detected.
Delete or move the entry outside of META-INF/.
WARNING: META-INF/androidx.fragment_fragment-ktx.version not protected by signat
ure. Unauthorized modifications to this JAR entry will not be detected. Delete o
r move the entry outside of META-INF/.
WARNING: META-INF/androidx.sqlite_sqlite-framework.version not protected by sign
ature. Unauthorized modifications to this JAR entry will not be detected. Delete
or move the entry outside of META-INF/.
WARNING: META-INF/androidx.core_core.version not protected by signature. Unautho
rized modifications to this JAR entry will not be detected. Delete or move the e
ntry outside of META-INF/.
WARNING: META-INF/androidx.vectordrawable_vectordrawable-animated.version not pr
otected by signature. Unauthorized modifications to this JAR entry will not be d
etected. Delete or move the entry outside of META-INF/.
WARNING: META-INF/androidx.localbroadcastmanager_localbroadcastmanager.version n
ot protected by signature. Unauthorized modifications to this JAR entry will not
be detected. Delete or move the entry outside of META-INF/.
WARNING: META-INF/androidx.lifecycle_lifecycle-viewmodel-savedstate.version not
protected by signature. Unauthorized modifications to this JAR entry will not be
detected. Delete or move the entry outside of META-INF/.
WARNING: META-INF/androidx.security_security-crypto.version not protected by sig
nature. Unauthorized modifications to this JAR entry will not be detected. Delet
e or move the entry outside of META-INF/.
WARNING: META-INF/androidx.navigation_navigation-common-ktx.version not protecte
d by signature. Unauthorized modifications to this JAR entry will not be detecte
d. Delete or move the entry outside of META-INF/.
WARNING: META-INF/androidx.biometric_biometric.version not protected by signatur
e. Unauthorized modifications to this JAR entry will not be detected. Delete or
move the entry outside of META-INF/.
WARNING: META-INF/androidx.lifecycle_lifecycle-livedata-core.version not protect
ed by signature. Unauthorized modifications to this JAR entry will not be detect
ed. Delete or move the entry outside of META-INF/.
WARNING: META-INF/androidx.navigation_navigation-common.version not protected by
signature. Unauthorized modifications to this JAR entry will not be detected. D
elete or move the entry outside of META-INF/.
WARNING: META-INF/kotlinx_coroutines_android.version not protected by signature.
Unauthorized modifications to this JAR entry will not be detected. Delete or mo
ve the entry outside of META-INF/.
WARNING: META-INF/androidx.legacy_legacy-support-core-utils.version not protecte
d by signature. Unauthorized modifications to this JAR entry will not be detecte
d. Delete or move the entry outside of META-INF/.
WARNING: META-INF/androidx.viewpager2_viewpager2.version not protected by signat
ure. Unauthorized modifications to this JAR entry will not be detected. Delete o
r move the entry outside of META-INF/.
WARNING: META-INF/androidx.transition_transition.version not protected by signat
ure. Unauthorized modifications to this JAR entry will not be detected. Delete o
r move the entry outside of META-INF/.
WARNING: META-INF/androidx.print_print.version not protected by signature. Unaut
horized modifications to this JAR entry will not be detected. Delete or move the
entry outside of META-INF/.
WARNING: META-INF/androidx.documentfile_documentfile.version not protected by si
gnature. Unauthorized modifications to this JAR entry will not be detected. Dele
te or move the entry outside of META-INF/.
WARNING: META-INF/androidx.core_core-ktx.version not protected by signature. Una
uthorized modifications to this JAR entry will not be detected. Delete or move t
he entry outside of META-INF/.
WARNING: META-INF/androidx.emoji2_emoji2-views-helper.version not protected by s
ignature. Unauthorized modifications to this JAR entry will not be detected. Del
ete or move the entry outside of META-INF/.
WARNING: META-INF/androidx.recyclerview_recyclerview.version not protected by si
gnature. Unauthorized modifications to this JAR entry will not be detected. Dele
te or move the entry outside of META-INF/.
WARNING: META-INF/androidx.tracing_tracing.version not protected by signature. U
nauthorized modifications to this JAR entry will not be detected. Delete or move
the entry outside of META-INF/.
WARNING: META-INF/androidx.startup_startup-runtime.version not protected by sign
ature. Unauthorized modifications to this JAR entry will not be detected. Delete
or move the entry outside of META-INF/.
WARNING: META-INF/androidx.navigation_navigation-fragment-ktx.version not protec
ted by signature. Unauthorized modifications to this JAR entry will not be detec
ted. Delete or move the entry outside of META-INF/.
WARNING: META-INF/androidx.lifecycle_lifecycle-livedata-core-ktx.version not pro
tected by signature. Unauthorized modifications to this JAR entry will not be de
tected. Delete or move the entry outside of META-INF/.
WARNING: META-INF/androidx.arch.core_core-runtime.version not protected by signa
ture. Unauthorized modifications to this JAR entry will not be detected. Delete
or move the entry outside of META-INF/.
WARNING: META-INF/androidx.emoji2_emoji2.version not protected by signature. Una
uthorized modifications to this JAR entry will not be detected. Delete or move t
he entry outside of META-INF/.
WARNING: META-INF/androidx.lifecycle_lifecycle-viewmodel-ktx.version not protect
ed by signature. Unauthorized modifications to this JAR entry will not be detect
ed. Delete or move the entry outside of META-INF/.
WARNING: META-INF/androidx.lifecycle_lifecycle-runtime-ktx.version not protected
by signature. Unauthorized modifications to this JAR entry will not be detected
. Delete or move the entry outside of META-INF/.
WARNING: META-INF/services/ta.z not protected by signature. Unauthorized modific
ations to this JAR entry will not be detected. Delete or move the entry outside
of META-INF/.
WARNING: META-INF/INDEX.LIST not protected by signature. Unauthorized modificati
ons to this JAR entry will not be detected. Delete or move the entry outside of
META-INF/.
WARNING: META-INF/androidx.activity_activity.version not protected by signature.
Unauthorized modifications to this JAR entry will not be detected. Delete or mo
ve the entry outside of META-INF/.
WARNING: META-INF/androidx.drawerlayout_drawerlayout.version not protected by si
gnature. Unauthorized modifications to this JAR entry will not be detected. Dele
te or move the entry outside of META-INF/.
WARNING: META-INF/androidx.interpolator_interpolator.version not protected by si
gnature. Unauthorized modifications to this JAR entry will not be detected. Dele
te or move the entry outside of META-INF/.
WARNING: META-INF/com/android/build/gradle/app-metadata.properties not protected
by signature. Unauthorized modifications to this JAR entry will not be detected
. Delete or move the entry outside of META-INF/.
WARNING: META-INF/androidx.lifecycle_lifecycle-viewmodel.version not protected b
y signature. Unauthorized modifications to this JAR entry will not be detected.
Delete or move the entry outside of META-INF/.
WARNING: META-INF/androidx.camera_camera-core.version not protected by signature
. Unauthorized modifications to this JAR entry will not be detected. Delete or m
ove the entry outside of META-INF/.
WARNING: META-INF/androidx.swiperefreshlayout_swiperefreshlayout.version not pro
tected by signature. Unauthorized modifications to this JAR entry will not be de
tected. Delete or move the entry outside of META-INF/.
WARNING: META-INF/androidx.lifecycle_lifecycle-service.version not protected by
signature. Unauthorized modifications to this JAR entry will not be detected. De
lete or move the entry outside of META-INF/.
WARNING: META-INF/androidx.lifecycle_lifecycle-process.version not protected by
signature. Unauthorized modifications to this JAR entry will not be detected. De
lete or move the entry outside of META-INF/.
WARNING: META-INF/androidx.loader_loader.version not protected by signature. Una
uthorized modifications to this JAR entry will not be detected. Delete or move t
he entry outside of META-INF/.
WARNING: META-INF/androidx.viewpager_viewpager.version not protected by signatur
e. Unauthorized modifications to this JAR entry will not be detected. Delete or
move the entry outside of META-INF/.
WARNING: META-INF/androidx.cardview_cardview.version not protected by signature.
Unauthorized modifications to this JAR entry will not be detected. Delete or mo
ve the entry outside of META-INF/.
WARNING: META-INF/androidx.navigation_navigation-ui-ktx.version not protected by
signature. Unauthorized modifications to this JAR entry will not be detected. D
elete or move the entry outside of META-INF/.
WARNING: META-INF/androidx.coordinatorlayout_coordinatorlayout.version not prote
cted by signature. Unauthorized modifications to this JAR entry will not be dete
cted. Delete or move the entry outside of META-INF/.
WARNING: META-INF/kotlinx_coroutines_core.version not protected by signature. Un
authorized modifications to this JAR entry will not be detected. Delete or move
the entry outside of META-INF/.
WARNING: META-INF/androidx.camera_camera-view.version not protected by signature
. Unauthorized modifications to this JAR entry will not be detected. Delete or m
ove the entry outside of META-INF/.
WARNING: META-INF/androidx.annotation_annotation-experimental.version not protec
ted by signature. Unauthorized modifications to this JAR entry will not be detec
ted. Delete or move the entry outside of META-INF/.
WARNING: META-INF/androidx.sqlite_sqlite.version not protected by signature. Una
uthorized modifications to this JAR entry will not be detected. Delete or move t
he entry outside of META-INF/.
WARNING: META-INF/androidx.core_core-splashscreen.version not protected by signa
ture. Unauthorized modifications to this JAR entry will not be detected. Delete
or move the entry outside of META-INF/.
What is the meaning?
srhslvmn
(299 rep)
Jul 5, 2022, 11:47 PM
• Last activity: Oct 27, 2022, 07:13 AM
0
votes
0
answers
120
views
Using a VPN Server on Android device in order to perform remote vulnerability scan
I am working on an Android Java application that performs a vulnerability scan of the network where the mobile device is. Since I cannot install any type of vulnerability scan tool on Android I would like to send the vulnerability scan packets from a back-end server (running open-vas) to my android...
I am working on an Android Java application that performs a vulnerability scan of the network where the mobile device is. Since I cannot install any type of vulnerability scan tool on Android I would like to send the vulnerability scan packets from a back-end server (running open-vas) to my android device and then make the android device forward them to the destination hosts inside his network. The easiest way to do that would be to create a VPN Server on the android device, but I don't think it's possible with the VpnService APIs. From what I have found it looks like someone managed to forward traffic with VPN Service: Android VpnService - How to forward intercepted internet traffic .
Another idea was to create a sort of packet wrapping: I can wrap the original packet coming from the back-end server inside a standard TCP packet, send it to the android device, unwrap it and forward it to the host inside the device's network. Although I don't know if this would really work in my case for 2 main reasons:
1. I will probably receive RAW packets from the server (since vulnerability scanners forges specific RAW packets for vulnerability testing) and Java does not have any support for manipulating packets
2. Even if I am able to unwrap the packet I will still have a RAW
packet to send and from what I have seen Java does not have any
support for RAW sockets for security reasons.
So do you guys have an idea if there is a way to create a VPN Server on Android to do this remote vulnerability scan?
Thanks!
PS Maybe rooting the device will give some more alternatives but I am reserving this as last chance.
Leonardo
(1 rep)
Aug 2, 2022, 06:50 AM
• Last activity: Aug 2, 2022, 07:51 AM
3
votes
1
answers
1339
views
Is there a way to call/invoke a (private) Java function in an app?
Is there some tool that can be used in ADB shell or something similar (without root possibly) that can invoke a function in the app, while it is running?
Is there some tool that can be used in ADB shell or something similar (without root possibly) that can invoke a function in the app, while it is running?
hiddenhospitalresearch
(33 rep)
Jun 9, 2022, 11:36 PM
• Last activity: Jun 10, 2022, 11:29 AM
1
votes
3
answers
1707
views
How to solve problem in APK Tools
I'm trying to decompile an apk with the apk tools and I'm not getting it. When I run `apktool -d myapp.apk` it displays this **error** to me: Exception in thread "main" brut.androlib.AndrolibException: Invalid chunk type: expected=0x00000200, got=0x00000203 at brut.androlib.res.decoder.ARSCDecoder.c...
I'm trying to decompile an apk with the apk tools and I'm not getting it. When I run
apktool -d myapp.apk
it displays this **error** to me:
Exception in thread "main" brut.androlib.AndrolibException: Invalid chunk type: expected=0x00000200, got=0x00000203
at brut.androlib.res.decoder.ARSCDecoder.checkChunkType(ARSCDecoder.java:542)
at brut.androlib.res.decoder.ARSCDecoder.readTablePackage(ARSCDecoder.java:88)
at brut.androlib.res.decoder.ARSCDecoder.readTableHeader(ARSCDecoder.java:82)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:48)
at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibResources.java:786)
at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.java:67)
at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.java:59)
at brut.androlib.Androlib.getResTable(Androlib.java:66)
at brut.androlib.ApkDecoder.setTargetSdkVersion(ApkDecoder.java:236)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:118)
at brut.apktool.Main.cmdDecode(Main.java:170)
at brut.apktool.Main.main(Main.java:76)
Can anyone help me with that? I would offer more reward does not yet
Dakota
(119 rep)
Feb 19, 2021, 12:27 AM
• Last activity: Apr 2, 2022, 03:03 AM
0
votes
1
answers
1329
views
Can I change Java heap size on Android devices?
I have a Samsung Galaxy A20s with Android 11 and 2790 MB RAM. The phone was originally designed for Android 9.0 but now that it's been upgraded to 11; it's become slow and my RAM is always almost full and the [Droid Hardware Info](https://play.google.com/store/apps/details?id=com.inkwired.droidinfo)...
I have a Samsung Galaxy A20s with Android 11 and 2790 MB RAM. The phone was originally designed for Android 9.0 but now that it's been upgraded to 11; it's become slow and my RAM is always almost full and the [Droid Hardware Info](https://play.google.com/store/apps/details?id=com.inkwired.droidinfo) app says my Java Heap is 192 MB.
is there any way I could change the heap size? It's way too high for my A20s.
user366448
Dec 30, 2021, 06:19 AM
• Last activity: Dec 30, 2021, 12:12 PM
2
votes
1
answers
222
views
Custom Voice Action
Can i make the google assistant of my android phone to perform custom actions? For example: Ok google. open barrier via "AppName"? I have tried the system actions, but neither one matches my need. So is it doable to create my custom voice action?
Can i make the google assistant of my android phone to perform custom actions?
For example: Ok google. open barrier via "AppName"?
I have tried the system actions, but neither one matches my need. So is it doable to create my custom voice action?
Johnny Farjo
(21 rep)
Oct 11, 2018, 09:49 AM
• Last activity: Dec 29, 2021, 04:02 AM
1
votes
0
answers
265
views
Put like on YT Music song without wakening my phone with Tasker
I want to make a Tasker script to like the current song in YT MUSIC by holding down volume button for example. The perfect solution is that I can put likes without flashing the screen and silently, so as not to disturb at night. I'm thinking to use the example of Google Assistant, it can give likes...
I want to make a Tasker script to like the current song in YT MUSIC by holding down volume button for example. The perfect solution is that I can put likes without flashing the screen and silently, so as not to disturb at night.
I'm thinking to use the example of Google Assistant, it can give likes to the current track on command. I read the logs and found an event that looks like the right command:
A: Media Operation Type: media.SET_RATING sent to package: com.google.android.apps.youtube.music
Next I tried to send Intent of this kind, but nothing worked:
Send Intent [
Action:android.media.action.SET_RATING
Cat:Default
Mime Type:
Data:
Extra:
Package:com.google.android.apps.youtube.music
Class:
Target:Activity
]
Continued researching and came across a feature on the developer site :
onSetRating(android.support.v4.media.RatingCompat)
But I don't know how to use the native functions through Tasker. It may be shell command, Java function or something? Can anyone help?
Grzegorz Kiselev
(11 rep)
Aug 3, 2021, 04:00 PM
0
votes
0
answers
132
views
Voice Changer in Realtime GSM Phone Call
hello I was wondering whether it would be possible to apply voice changer on GSM Phone call in realtime? If possible, then I'm thinking of using a voice changer mechanism to secure the voice data before being transmitted to the receiver.
hello I was wondering whether it would be possible to apply voice changer on GSM Phone call in realtime?
If possible, then I'm thinking of using a voice changer mechanism to secure the voice data before being transmitted to the receiver.
dehils19
(1 rep)
Jul 12, 2021, 02:59 PM
4
votes
1
answers
9667
views
Error: java.lang.IllegalStateException: java.util.concurrent.TimeoutException: Thread Binder_C gave up waiting for partitionMixed after 180000ms
After entering the final command to make a mixed-format SD card in [How can I move apps to SD on non-adopted Marshmallow storage?](https://android.stackexchange.com/a/143041/94084): >$ adb shell sm partition disk:179,64 mixed 25 I meet this error: >Error: java.lang.IllegalStateException: java.util.c...
After entering the final command to make a mixed-format SD card in [How can I move apps to SD on non-adopted Marshmallow storage?](https://android.stackexchange.com/a/143041/94084) :
>$ adb shell sm partition disk:179,64 mixed 25
I meet this error:
>Error: java.lang.IllegalStateException: java.util.concurrent.TimeoutException: Thread Binder_C gave up waiting for partitionMixed after 180000ms
If it is
75
, then the error is:
>Error: java.lang.IllegalStateException: java.util.concurrent.TimeoutException: Thread Binder_4 gave up waiting for partitionMixed after 180000ms
How can I fix this? Only 3 results appear in Google, and neither of them helps.
- **Phone**: Sony Xperia M4 Aqua Dual
- **SD card**: SanDisk Ultra micro SDHC UHS-1 Card 16 GB, class 10
Ooker
(526 rep)
Mar 2, 2017, 05:15 PM
• Last activity: Jun 14, 2021, 11:19 PM
2
votes
3
answers
2177
views
Termux write permissions
pretext: as gmail no longer allows me to send zip files, i have been looking into other ways to get my java source directories from android to laptop and back again, depending whether I'm at home or not (folder hierarchy must be preserved). I have been trying to set up git on my android phone and ha...
pretext:
as gmail no longer allows me to send zip files, i have been looking into other ways to get my java source directories from android to laptop and back again, depending whether I'm at home or not (folder hierarchy must be preserved). I have been trying to set up git on my android phone and have been using termux as the command shell to do this.
the problem:
I am unable to create a directory for which BOTH termux and the java ide have read write access. I have setup storage permissions in termux. If the IDE can write termux can't, and in another location termux can write but the IDE can't.
What I need is a folder location that both apps have full read write permissions. (I am not too bothered if these permissions extent to other folders)
I do not want to root my device.
Nokia 7.2 Android 10
MrOtto
(21 rep)
Feb 21, 2021, 03:10 PM
• Last activity: Feb 24, 2021, 01:51 PM
1
votes
0
answers
372
views
How to extract a raw apk out of installed application?(Raw for reverse eng purpose)
So I developed an application but my hard drive failed and I lost access to project resources, but I had it previously installed on my phone through android studio debugging process. Now I want to extract a raw apk version out of my phone, Is there any way? NOTE that any regular apk extraction throu...
So I developed an application but my hard drive failed and I lost access to project resources, but I had it previously installed on my phone through android studio debugging process.
Now I want to extract a raw apk version out of my phone, Is there any way?
NOTE that any regular apk extraction through Google Play applications outputs a ~700kb apk of my project that lacks resources and cant be reversed, while it has to be ~4.4mb.
iBUYPOWER
(86 rep)
Feb 22, 2021, 10:05 AM
0
votes
3
answers
3545
views
Why is there no Java compiler on Android?
I'm not an Android developer but I do other stuff. I just rooted my phone so I was playing around with a shell and I was trying to compile some C packages and realized there is no C compiler, OK. Surely there must be Java right? Tried it and I can't get a `java` or `javac` command to work either. Ho...
I'm not an Android developer but I do other stuff.
I just rooted my phone so I was playing around with a shell and I was trying to compile some C packages and realized there is no C compiler, OK.
Surely there must be Java right? Tried it and I can't get a
java
or javac
command to work either.
How is that possible when Android apps are written in Java?
Joff
(101 rep)
Nov 3, 2016, 09:36 PM
• Last activity: Feb 8, 2021, 01:59 PM
Showing page 1 of 20 total questions