Skip to main content

Questions tagged [java]

Java is a general-purpose programming language. Use this tag only for topic/technology that is related to the Android environment. DO NOT USE THIS TAG FOR APP DEVELOPMENT ISSUE BECAUSE IT IS OFF-TOPIC.

Filter by
Sorted by
Tagged with
0 votes
0 answers
13 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 ...
13 votes
4 answers
89k 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?
9 votes
5 answers
59k 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.
1 vote
0 answers
16 views

Kaspersky Who Calls app keeps the phone screen on

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, ...
3 votes
0 answers
62 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 ...
2 votes
0 answers
342 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,...
3 votes
1 answer
2k 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 ...
1 vote
1 answer
491 views

What is the official Android repository containing APKSIGNER?

What is the official source for apksigner as referenced e.g. in this answer? People are citing Android Studio, Android SDK Build Tools/Platform Tools/Command Line Tools etc. (as well as some shady ...
0 votes
0 answers
68 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 ...
3 votes
1 answer
1k 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?
1 vote
3 answers
1k 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....
65 votes
1 answer
41k views

Does the Log4j vulnerability affect Android users?

The new vulnerability 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 ...
0 votes
1 answer
876 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 ...
2 votes
1 answer
210 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 ...
1 vote
0 answers
236 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 ...
0 votes
0 answers
114 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 ...
4 votes
1 answer
10k 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?: $ adb shell sm partition disk:179,64 mixed 25 I meet this error: ...
2 votes
3 answers
2k 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 ...
1 vote
0 answers
276 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 ...
0 votes
3 answers
3k 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. ...
1 vote
3 answers
2k views

Where are Androids’ developer options stored?

Can anyone please tell me, where Androids’ developer options are stored? I’m trying to modify the Pointer Location developer option in this file. After recompiling Android, where is the file ...
0 votes
1 answer
80 views

system ( com.Android google.com.gms ) share from gallery app suddenly stops working and crashes

there is a prominent gallery app that I am using -f-stop . been using it for very long time and never had this issue . gallery app itself seems to be working but when I select more than one picture ...
3 votes
1 answer
445 views

How determine if Java object is null or not in Tasker?

I want a Tasker task that reads SMS from a particular person and extracts some information out of the latest message. For example, I get a lot of messages from my bank due to the transactions I make. ...
1 vote
0 answers
386 views

How do AOT and JIT work together in Android Nougat and later?

The Android OS was using interp years ago, then they added Just-In-Time (JIT). However, since Android 5.0, they replaced JIT with Ahead-Of-Time (AOT) compilation which increased app installation time ...
-1 votes
1 answer
101 views

Does Android not supports Java?

Redmi 6 does not support java. Redmi Note 5 support java through third party support. What's the difference? I read on Quora that by not supporting Java I can't go to Play Store.
-1 votes
1 answer
3k views

Android Studios Adb server problems

I formatted the desktop and i'm try to install the Android Studios version 3.2.1 installation setup was completed but when try to run the project .It show error log like this Unable to detect adb ...
5 votes
1 answer
280 views

Do calls to Java native interface in android apps run within Dalvik VM?

I read that apps sometimes access the native libraries for optimization purposes via the Java native interface. As far as I understand, JNI just provides java wrappers around c/c++ libraries/...
0 votes
1 answer
735 views

How to install jdk for offline compile?

I want to compile java offline. I have project on PC, will just copy and make small changes to it, and test it, when I am away from home. Doesnt need to be an IDE. Not even code editor. Just a ...
1 vote
0 answers
268 views

Delete/remove a calendar in Android AccountManager's database using Tasker intent?

While trying to remove calendars from the Android AccountManager's database using Tasker, I've been exploring the Android calendar provider api but I have not been able to find a command to delete a ...
5 votes
2 answers
20k views

J2ME emulator that works for ICS? [closed]

Is there any J2ME emulator like JBed for ICS? I've found a ton of tutorials like this but as far as I know, all of them are exclusively for Gingerbread and below. P.S. I already tried J2ME Runner ...
5 votes
2 answers
1k views

How is the Android System running Java jars?

There is a large amount of Java jars in /system/framework, for example, am.jar. I understand that Android uses Java in a very confusing way (at least for me). I do not completely understand the way ...
0 votes
0 answers
86 views

Is BLE 5.0 impemented on Nougat version

Is BLE 5.0 features accessible from Android Nougat phones ? if not how will be the connection of phones with Ble 4.0/ble 4.2 with BLE 5.0 before Android Upgradation ?
0 votes
0 answers
319 views

Running java in android [duplicate]

Is there any way to run .jar files in android without rooting phone? I used jbed and some other apps but they instantly stopped unexpectedly after clicking.
3 votes
1 answer
8k views

Why is there no JRE for android?

I understand that android does not use a JRE and Google has build a platform only for android. But an android device is not really different from e.g a Raspberry PI. So why is it not possible to just ...
1 vote
2 answers
2k views

Why does Android phones need JAVA?

Im going to buy a Samsung A310F Galaxy A3. But I noticed one thing. FEATURES Java No This samsung smart phone doesnt have Java in it. So the main my question would be: is it really bad? And why ...
1 vote
0 answers
2k views

executing adb shell commands as root

I am using the following command from Java and it works with my old phone adb shell svc data disable But with my new phone I am required to change to root (su command) in shell before I can ...
1 vote
1 answer
9k views

Any way to reboot device programmatically without root?

I don't switch off mobile phone at night. After several weeks of uptime my mobile phone becomes slow. When I reboot it everything is smooth again. It's not possible to root my android 5 phone, there ...
-1 votes
1 answer
4k views

how to convert android APK file to JAR file and run it on pc with java runtime? [duplicate]

Here is the deal, I have a Apk file, just can run on android phone. Now I take the Apk I want, decompile it or do something can change Apk file to Jar file. Jar file will be a java execution, can run ...
9 votes
4 answers
15k views

Is it possible to run Minecraft on an Android?

I was thinking in using some tools to convert the JAR into an APK. But will my Nexus One have enough memory? And what about the controls?
1 vote
0 answers
288 views

Verified boot keystore generateion failure

I need to generate my own keystore for Android Verified Boot. I took these steps mmma system/extra/verity keystore_signer private.der verity.x509.pem keystore.img verity.der And i got this error ...
1 vote
1 answer
4k views

Check OpenSSL version in Android with Java runtime or shell command

I have a problem with checking OpenSSL version in Android device. I've tried to grep OpenSSL from system/lib/libssl.so with java runtime.exec, but it doesn't work? Anyone can help me, how to make a ...
1 vote
2 answers
1k views

Transparent notificationbar/statusbar for Android 4.3 [closed]

How can i make the notification/statusbar for Android 4.3 transparent, i know launchers like Dodol Launcher, Smart Launcher and Go Launcher has a transparent bar option. But i want it to be like it is ...
4 votes
2 answers
33k views

Compiling and running java applications from android terminal? [closed]

I recently got a bluetooth keyboard for my Motorola Xoom tablet, and upon realizing that BusyBox comes with vi for text editing I started wondering about writing and executing code on android. I ...
0 votes
1 answer
506 views

Files and Data loss when sd card is changed from java supported phone to android phone

I have changed my micro sd card from Samsung Star2 S5263 which is running on Java OS to a new android phone. Later I have connected my android phone to my PC to copy some files from the system. And ...
1 vote
1 answer
283 views

What exactly is a widget?

I found some conflicting definitions on the term. On http://developer.android.com/reference/android/view/View.html, the author defined widgets as "View is the base class for widgets, which are used to ...
0 votes
1 answer
442 views

Android App Force Closing [closed]

01-02 15:30:21.361: E/AndroidRuntime(3764): FATAL EXCEPTION: main 01-02 15:30:21.361: E/AndroidRuntime(3764): java.lang.NullPointerException 01-02 15:30:21.361: E/AndroidRuntime(3764): at com.htc....
0 votes
1 answer
265 views

SGS3 I-9300 Android 4.2 - why can't I disable these system apps?

nb. I can disable them using 3rd party root apps without any discernible negative effects. Are these networking protocols default? They seem to be harmless but everything I read about sit0 seems ...
20 votes
5 answers
119k views

Are there any Android browsers that support loading a Java Applet in-browser?

We have a client who are switching away from Windows Mobile (and IE Mobile) to Android based devices. We have some specific software that we deploy to their WM workforce by an ActiveX applet that ...
2 votes
1 answer
307 views

Are JS apps effectively running through 2 VM's?

When using Google Chrome mobile (or any other android web browser) is the Javascript VM running on top of the Java VM? Or is the JS code compiled to Java bytecode? I ask this because JS seems to run ...
3 votes
1 answer
225 views

Can Java be exploited through Android app ads?

It turns out that Java has a security flaw that is currently being exploited to put malware on people's computers. Is there any risk that advertisements in Android apps will have embedded, malicious ...