Questions tagged [android-debug]

The Android SDK provides most of the tools that you need to debug your applications. This tag covers debugging concerns when developing Android applications.

Filter by
Sorted by
Tagged with
0 votes
0 answers
20 views

Not able to extract OTP from the message

public class SMSBroadcaster extends BroadcastReceiver { private static SmsListener mListener; Boolean b; String abcd, xyz; @Override public void onReceive(Context context, Intent ...
Ayush Sharma's user avatar
1 vote
0 answers
174 views

Android Studio adb server Connection reset by peer

I set up a new Ubuntu installation and after that my adb is not working correctly. Normally adb would recognize my emulator but when i startup my Computer i believe it does not start an adb server. ...
snux_cs's user avatar
  • 63
-1 votes
1 answer
70 views

What is __LIBC_HIDDEN__ in C header?

Introduction In a log output of a crash, there is an error with backtrace output as: #00 pc 00038cf0 /apex/com.android.runtime/lib/bionic/libc.so (__futex_wait_ex(void volatile*, bool, int, bool, ...
Mauricio Schalch's user avatar
-2 votes
1 answer
28 views

UninitializedPropertyAccessException while working with lateinit

I'm working on Android development using Kotlin, and encountering an issue with a lateinit var named polyline. The error I'm getting suggests that even though I assigned a value to polyline inside a ...
kosi's user avatar
  • 1
-1 votes
1 answer
27 views

UninitializedPropertyAccessException:

I'm working on Android development using Kotlin, and encountering an issue with a lateinit var named polyline. The error I'm getting suggests that even though I assigned a value to polyline inside a ...
Kossy's user avatar
  • 9
0 votes
1 answer
705 views

What does ro.debuggable=1 actually do?

I am trying to understand what the Android system property ro.debuggable actually does. I am using Arm Streamline to profile my android application and the documentation states that I can do ...
MrCMcC's user avatar
  • 1
0 votes
0 answers
37 views

How to retrieve Android bug reports after encountering error "No apps can perform this action"

I strictly followed the official instructions to get an Android bug report but got the following error ("No apps can perform this action"): Could anyone offer a tip on how to get the bug ...
Hong's user avatar
  • 17.9k
0 votes
0 answers
457 views

adb pair for Wireless debugging of Android phone from Ubuntu

I am trying to run adb shell commands on an Android phone from my Ubuntu machine. The Android phone (192.168.1.123) is on my wifi network while the Ubuntu machine (192.168.1.122) is on the wired ...
gameveloster's user avatar
  • 1,021
0 votes
0 answers
13 views

How to react when Debugger attaches to app during it's work?

How to react when Debugger attaches to app during it's work? The only thing I was able to find is Debug.isDebuggerConnected() , but I wonder is there any better way than setting this in a loop? Maybe ...
Vlad Alexeev's user avatar
  • 2,092
0 votes
0 answers
74 views

Recomposition doesn't trigger even after using mutablestatelistof in Jetpack compose While Updating the Values

I have this state var testFeedList : MutableList<Feed>? = mutableStateListOf() Inside the viewModel override fun onGetFeedList() { viewModelScope.launch(Dispatchers.Main) { ...
Srijan Khadka's user avatar
0 votes
0 answers
21 views

Android Studio Crash Debug log opens another class with same name from different module

I am using 'Android Studio Dolphin | 2021.3.1'. From the crash logs on Android Studio logcat when I select to open the link to the class/line where the crash occurred it opens another class with the ...
Sumit T's user avatar
  • 1,293
0 votes
1 answer
143 views

Getting android debuggable default value for release build true

I have not set attribute debuggable in AndroidManifest nor in build gradle. Niether any of library I used in my project does not use this attribute. As default value for attribute debuggable is false. ...
Aman Srivastava's user avatar
0 votes
1 answer
614 views

The following _TypeError was thrown building HomePage(dirty, dependencies: [MediaQuery]): type 'int' is not a subtype of type 'double'

import 'package:first/app_styles.dart'; import 'package:first/custom_tab_indicator.dart'; import 'package:first/size_config.dart'; import 'package:flutter/material.dart'; void main(){ runApp(MyApp())...
kcbibek43's user avatar
0 votes
0 answers
136 views

unable to open android.permission.RECORD_AUDIO permissions dialogue box and change record Button on clicking for recording

RecordFragment I build a voice recording app Problem is that i give every permissions but when i install my app and click on the record Button Neither the dialogue permission box is open for asking to ...
Talha Waris's user avatar
0 votes
0 answers
122 views

Cause: null pointer dereference Android APK

I'm getting below error when I run my Andorid APK, It's a simple Natvive C++ based application with an prebuilt shared library linked to it. I'm new to Android development and would like to know how ...
harry's user avatar
  • 1,015
0 votes
1 answer
221 views

Attach to a process on the Android device

I've published an Android bundle on Play Store for internal testing. Now I've installed it (from Play Store) on a physical device and started. As the application is malfunctioning I want to see the ...
Ralfeus's user avatar
  • 845
0 votes
1 answer
164 views

How to use java language to dynamically debug APK in AndroidStudio?

Requirement: I now have a CrackMe.apk without project file and code, I want to modify its code in java language without using smali and to dynamically debug the modified java file. I looked up many ...
Suceru's user avatar
  • 1
0 votes
1 answer
164 views

Android Boot Debug : Init ends up in OnBootPhase_XXX loop ( Android-13 on Qemu / Virtual Platform )

I am new to Android bringup, Kernel boot seems successful and we arrive at console prompt but beyond that, logcat does not reveal what might be holding back Android-13 boot. In terms of Software, we ...
user21034288's user avatar
0 votes
1 answer
420 views

MAUI: NullReferenceException when DisplayAlert in Android Emulator

I have a .NET MAUI project and just want to display an alert. This already worked well, but in some cases it throws me a NullRefereceException. The Code is: private async void Info_Appearing(object ...
nicetomitja's user avatar
49 votes
5 answers
44k views

React Native Android build failure with different errors without any changes in code for past days due to publish of React Native version 0.71.0-rc.0

Note: Error may be different but if you are getting any error when taking android build without any changes in code for past two days My Error - Failed to install the app. Error: Command failed: ./...
Thanhal P A's user avatar
  • 4,260
0 votes
0 answers
54 views

how to solve this problem in set adapter i'm trying to setadapter for creating tablayout

'setAdapter(androidx.viewpager.widget.PagerAdapter)' in 'androidx.viewpager.widget.ViewPager' cannot be applied to '(com.example.tablayout.viewpager)' package com.example.tablayout; import android.os....
mm m's user avatar
  • 71
0 votes
1 answer
824 views

Attach Debugger to Android process button is not showing dialog window

Clicking on Attach Debugger to Android process button is not showing dialog window to select android process. Nothing happens what I've tried so far: kill adb and restart it restart device try on new ...
iamanbansal's user avatar
  • 2,492
0 votes
1 answer
240 views

Is there a way to copy text from device to computer when debugging in IntelliJ?

Is there any convenient way to copy text to the computer from an Android app when running the app in debug mode from IntelliJ? To be clear, I want to add a button in my app that when tapped copies a ...
Magnus's user avatar
  • 17.4k
0 votes
0 answers
78 views

adb command select device, which is not connected to workstation

I have a device connected to a worksation, lets says it serial number to be "abcdefgh", whenever I run any adb command, it throws an o/p "adb: unable to connect for root: device '...
Himanshu Singh's user avatar
0 votes
1 answer
1k views

How to debug react native application in android device?

I have installed the React native APK file on my android device. I am able to open the application on my android device. In my application, some functionalities are not working. I need to debug the ...
VisualEmail Keto's user avatar
0 votes
2 answers
317 views

My Android app text size is changing if user decrease or increase size from mobile setting

I have website using Webview I created Android application. I want the text size same as website in android application. And text size should not change if user increase or decrease text size from ...
JAYESH rathi's user avatar
0 votes
0 answers
2k views

ADB Shows "unauthorized" device, on a device with a broken screen. How do I authorize the session while "blind"?

I've done a bunch of reading on this topic and I believe this is the closest you can probably get, but I don't know if it's possible to do this in fastboot mode or another mode other than normal. ...
notdan's user avatar
  • 41
0 votes
2 answers
893 views

How to store contacts from adb shell? [Android]

I came across the following: Android adb command to get total contacts on device Im at a point where my display isnt working. The command given above just displays my contatcts. Is there some way I ...
Sharan Shetty's user avatar
4 votes
0 answers
8k views

How to add "-Dkotlinx.coroutines.debug" JVM option to android project

According to the docs we can add -Dkotlinx.coroutines.debug JVM option to debug Kotlin coroutines. How to do it for Android project in Android Studio?
Sergio's user avatar
  • 28.2k
0 votes
1 answer
103 views

Using a user entered string as an instance name in Java

I am developing an android app in Java, where I have this contacts class defined. What I want is that user enters a person name in an EditText and clicks a button and it becomes a instance name of a ...
vibhum mohan's user avatar
0 votes
1 answer
229 views

Object evaluate is always null in Android Studio debug

I have found a weird behavior while debugging in Android Studio. I am using a real device (not an emulator). I have the following code: val currentFragment = supportFragmentManager.findFragmentById(R....
andumava's user avatar
0 votes
0 answers
73 views

Does android create intermediate printing files like spool files in windows?

Our requirement is to develop a system that captures intermediate print file before it goes out to printer and read data from it for a record keeping solution. Did it on Windows recently where we ...
neotropical's user avatar
3 votes
1 answer
267 views

Android Studio Bumblebee 2021.1.1 Hangs at Waiting For Debugger

Since i have updated to Android Studio Bumblebee 2020.1.1 Patch 2, i am not able to debug my applications because it stuck at Loaded Module. and it is not running my application on debug mode, before ...
SHAZ's user avatar
  • 41
3 votes
1 answer
13k views

Android Studio returns error "Installation failed due to: ''cmd package install-create..."

I'm working on an Android App in Android Studio. After updating Android Studio to Bumblebee 2021.1.1 Patch 2 it has stopped working. Now I get the following error: Installation did not succeed. The ...
Snostorp's user avatar
  • 587
1 vote
0 answers
442 views

Debugging Android app stuck at waiting for debugger

Problem description I'm debugging an app by gdb remote. Actually I did following steps: start the app with Developer options -> Wait for debugger enabled gdbserver :5039 --attach ${pid of the app ...
aijm's user avatar
  • 11
1 vote
0 answers
155 views

How can I produce a call chain of Android application layer function call to linux kernel system calls?

I have been trying to get behind the call chain of some of the android framework's app initiated termination functions such as System.exit(0), finish(), finishAndRemoveTask(), etc. I have used strace ...
Sydur Rahaman's user avatar
4 votes
1 answer
2k views

Getting IMEI number using ADB commands Android 12

For android versions before 11 I was using the below command to get IMEI number from my device: adb shell "service call iphonesubinfo 4 | cut -c 52-66 | tr -d '.[:space:]'" or adb shell ...
Joãozinho Pereira's user avatar
2 votes
1 answer
8k views

FAILED (remote: unknown command) fastboot oem unlock in adb

I tried everything, I have a SAMSUNG GALAXY A02s. I want to unlock the bootloader of my device. I have enabled OEM unlocking I have enabled USB debugging ^^ ---> developer options.. I also deleted ...
RDMotivation  Krunklier's user avatar
5 votes
0 answers
181 views

SSL_get_fd return -1

I have tried to debug android application to print out SSL_write and SSL_read data with that project and print out the file descriptor (to get src&dst ip ) with SSL_get_fd But for some SSL* the ...
vtable's user avatar
  • 294
-2 votes
1 answer
2k views

What could be the cause of this error? (Kotlin) (AndroidRuntime: FATAL EXCEPTION: main)

I got the following error while debugging my app: E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.studycountdowntimer, PID: 16161 java.lang.RuntimeException: Unable to instantiate ...
devAndre's user avatar
3 votes
0 answers
898 views

Android Studio art_sigsegv_fault when debugging native methods that receive a jstring

When I try debugging NDK code under Android Studio, if I set a breakpoint in a function that receives a jstring, I get an immediate art_sigsegv_fault. I've made a very simple test app: MainActivity....
Edward Falk's user avatar
  • 10.1k
0 votes
1 answer
556 views

How to get the exact resoutions list for Video recording using camera2 api?

I'm making a custom camera application for android. I'm recording the videos using camera2 API. But I want to get the list of resolutions supported by the device. So that I can record the videos ...
mendax01's user avatar
0 votes
0 answers
356 views

bottom Sheet Dialog Crashing

holder.itemView.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { //handle item clicks show item details (in bottom sheet) ...
Siddhant Jain's user avatar
1 vote
1 answer
122 views

Flash is turning off, when starting video recording using Camera2 api

I am using two capture session one is previewSession() and second is recordingSession() private fun previewSession() { val surfaceTexture = textureView.surfaceTexture MAX_PREVIEW_HEIGHT = ...
mendax01's user avatar
2 votes
0 answers
90 views

App icon issue on Huawei EMUI 10, 11, just grey, that cannot show my app icon

The app has launcher icons that were created by Android Studio, however, it cannot be rendered on EMUI 10, 11.
TeeTracker's user avatar
  • 7,112
2 votes
0 answers
792 views

Unable to attach debugger in Android Studio in MacBook

I am unable to attach debugger in Android Studio in MacBook. I am getting this error Failed to start monitoring <deviceID> I have tried multiple solutions : Turn on/off usb debugging on device ...
user3543477's user avatar
0 votes
0 answers
220 views

Cannot connect to Android Debug Database, even changing port

I am trying to use Android Debug Database to see the contents of my local Room DB. The phone is correctly connected to USB Debug and I can see the logs on logcat in Android Studio. However, if I try ...
Bunny's user avatar
  • 1
1 vote
1 answer
479 views

Chrome inspect devices broken default window shape

I am facing an issue while using chrome://inspect#devices to debug my android app. DevTools window is broken I look like this (but it was ok recently). I have done the following: re-install chrome ...
obolsh's user avatar
  • 129
0 votes
1 answer
240 views

Logcat error in BottomNavigationView Listener [duplicate]

While running my app on debug mode, a logcat error occurs on opening an Activity with a BottomNavigationListener. There doesn't seem to be an "error" in the code. Could it be caused by using ...
Team Skillocity's user avatar
2 votes
1 answer
584 views

Logcat Error: App Crashes and does not run. Error at setContentView as per Logcat

I'm developing a basic equation balancing app and am new to android dev. The app does not run on the phone at all. I had a splash screen as launcher previously and that used to pop and the app would ...
Team Skillocity's user avatar

1
2 3 4 5
9