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
42 views

Backup.ab - Java NumberFormatException Error

I got an ab file with adb from my phone's notes folder. Which I can not access without root. I am trying to convert it to the tar file but cmd gives me this error in the picture. My command was ; ...
Kaan Ayhanoğulları's user avatar
1 vote
0 answers
13 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, ...
Artem S. Tashkinov's user avatar
3 votes
0 answers
58 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 ...
Corey F's user avatar
  • 31
3 votes
1 answer
1k 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 ...
Luor Themes's user avatar
0 votes
0 answers
38 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 ...
Leonardo's user avatar
1 vote
1 answer
371 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 ...
srhslvmn's user avatar
  • 267
3 votes
1 answer
936 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?
hiddenhospitalresearch's user avatar
0 votes
1 answer
536 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 ...
user avatar
65 votes
1 answer
40k 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 ...
mistes 's user avatar
  • 759
2 votes
0 answers
302 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,...
NpGamingBoy's user avatar
1 vote
0 answers
206 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 ...
Grzegorz Kiselev's user avatar
0 votes
0 answers
104 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 ...
dehils19's user avatar
1 vote
0 answers
209 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 ...
iBUYPOWER's user avatar
2 votes
3 answers
1k 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 ...
MrOtto's user avatar
  • 21
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....
Dakota's user avatar
  • 119
0 votes
1 answer
75 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 ...
user1874594's user avatar
-1 votes
1 answer
93 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.
user avatar
-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 ...
pradeep's user avatar
5 votes
1 answer
254 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/...
Sumesh Kumar's user avatar
1 vote
0 answers
237 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 ...
a.t.'s user avatar
  • 379
1 vote
0 answers
366 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 ...
Cyker's user avatar
  • 457
2 votes
1 answer
209 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 ...
Johnny Farjo's user avatar
3 votes
1 answer
424 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. ...
deostroll's user avatar
  • 157
0 votes
0 answers
84 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 ?
GOKUL's user avatar
  • 101
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.
user157588's user avatar
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 ...
NyxCode's user avatar
  • 133
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 ...
Tyler Richardson's user avatar
0 votes
1 answer
731 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 ...
VeganEye's user avatar
  • 151
4 votes
1 answer
9k 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: ...
Ooker's user avatar
  • 506
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 ...
Arya's user avatar
  • 243
1 vote
1 answer
8k 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 ...
POMATu's user avatar
  • 113
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. ...
Joff's user avatar
  • 101
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 ...
LiudvikaGrazuole's user avatar
-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 ...
james bond's user avatar
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 ...
fooness's user avatar
  • 11
1 vote
0 answers
282 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 ...
demonguy's user avatar
  • 161
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 ...
Erwin Sitorus's user avatar
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 ...
Liam Rabe's user avatar
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 ...
John Dorian's user avatar
0 votes
1 answer
502 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 ...
chaitanya.moguluri's user avatar
1 vote
1 answer
276 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 ...
user3761297's user avatar
13 votes
4 answers
88k 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?
scheurneus's user avatar
0 votes
1 answer
441 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....
User32's user avatar
  • 1
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 ...
Sam Dunlap's user avatar
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 ...
jdw's user avatar
  • 133
3 votes
1 answer
223 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 ...
Kevin's user avatar
  • 222
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 ...
Propeller's user avatar
  • 2,456
1 vote
0 answers
101 views

enabling java for Lenovo ThinkPad tablet? [duplicate]

Possible Duplicate: Are there any Android browsers that support loading a Java Applet in-browser? I am new to the tablet world. I have a Lenovo ThinkPad Tablet and I am having trouble on some ...
Soni's user avatar
  • 19
1 vote
0 answers
259 views

Code/Program Java on Kindle Fire [duplicate]

Possible Duplicate: How can I do development on my Android device? OK, so I've just got a new Kindle Fire (which I love), and I've been wondering: Can I develop Java programs on my Kindle? Is ...
Dynamic's user avatar
  • 159
1 vote
1 answer
1k views

Is there a web browser+Java plugin available for Android? [duplicate]

Possible Duplicate: Are there any Android browsers that support loading a Java Applet in-browser? I am having some issues accessing internet banking etc on my tablet with Android as the operating ...
Rosnes's user avatar
  • 19