Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [android]

An operating system running on top of the Linux kernel, targeting mobile devices such as smartphones and tablets.

-1
votes
1answer
41 views

Bash command “reset” — dash (sh) equivalent?

When the fonts get messed up in dash (jackpal.androidterm), how do I reset that one? When printing contents of binary files, special characters can mess up the terminal character set. How can this be ...
1
vote
0answers
20 views

How to dump stack trace for all processes in Linux?

I am trying to track down a bug on an Android device that involves IPC between several native processes. At a given point in time I would like to dump native stack traces for all threads in some or ...
-1
votes
0answers
6 views

How to display one animation for multiple images in vuforia & unity?

I want to display one particular animation for the same image of a different kind. For example, I want to display a animation for alphabet A. But the alphabet(A) can be in many different fonts like ...
0
votes
0answers
3 views

Using Android FOTA system on general Linux systems

The Android FOTA API is really great imo, even though I really dislike almost everything else about Android. Here's why it's great: built-in authentication and integrity checks inter-OS communication ...
-1
votes
1answer
73 views

How to solve error of missing destination file operand after '/sdcard/ngrok/ngrok ' in termux [closed]

I am using termux in my android but I get the following error when I want to copy some data from sdcard to $HOME IN TERMUX the following error shows up: missing destination file operand after '/sdcard/...
0
votes
1answer
28 views

Android kernel compiling error

When compiling the kernel, if I choose Ethernet Gadget (with CDC Ethernet support) or Network Control Model (NCM) instead of the Android composite device, I get an error: drivers/built-in.o:coresight-...
1
vote
1answer
30 views

Moving .android on Linux

Android Studio complains that it can't launch the emulator due to a lack of space. The folder ~/.android contains (among others) the virtual devices and is therefore quite big. I would like to move it ...
0
votes
0answers
19 views

How do I merge a single feature of the Linux Kernel into my project?

I'm building a custom kernel for Android, but I want to replace Motorola's F2FS implementation with that of upstream Linux, which is unaffected by a certain bug present in the former. I dont know a ...
0
votes
1answer
54 views

Android Serial Port is being used for no permission to open

I have a Wandboard IMX 6 with Android OS. I can't read RS232 data. I was wrote an app for this on QtCreator with C++. I have an issue. When i pressed the connect button i take serial port is being ...
0
votes
0answers
27 views

Saving cat file in termux

I was using termux in my android and i tried to use cat command to save some text and save it but i am not able to save the file after writing some text in it .In unix and linux i know we can save the ...
1
vote
3answers
1k views

Does “Linux” require Python? [closed]

One of my friends told me that without Python, Linux cannot get ip, cannot open network stack and can't make "port switching", even he thinks kernel can't boot without Python. Is python really a ...
1
vote
1answer
98 views

How to adjust headphone gain in /sys/kernel/sound_control/headphone_gain?

I want to increase headphone gain. So I have found the file location at /sys/kernel/sound_control/headphone_gain. cat /sys/kernel/sound_control/headphone_gain shows 0 0 For writing some desired ...
1
vote
1answer
29 views

Output of `ip route show` seems incomplete: no default route, but internet is reachable anyway

On my Android phone, where I have a Debian system running in userspace (apt, GNU tools, and other software runs in a chroot, accessible through ssh), the routing table seems incomplete. Output of ip ...
-2
votes
1answer
43 views

Obtain information on encrypted android card image

For several days now I have tried to recover the key for an encrypted android-container (android_expand, used as internal storage) without success. As all kinds of stuff of the past years is on that ...
0
votes
0answers
23 views

Bluetooth Simple Secure Paring issues

I have a bluetooth capable chip and an android, I am trying to have the two communicate over RFCOMM. I have an android app and a python server on linux that works, the only issue is my pairing ...
-2
votes
1answer
340 views

How to mount USB device using jmtpfs on Linux (Debian 9)? [duplicate]

Device Information Settings -> System -> About device SAMSUNG-SM-G900R4, Android version 6.0.1 Computer System Information (Terminal command: uname -a) Linux debian 4.9.0-8-amd64 #1 SMP ...
0
votes
0answers
30 views

errors while compiling android kernel

I'm trying to compile the android kernel which I have patched it with some application patch file, which have changed the kernel. here is the the compilation error: androtrace/androtrace.c: In ...
2
votes
2answers
51 views

Cannot list contents of directory with 0755 and owned by current user

The platform is a rooted Android 8.1 phone (Magisk) with the Termux Android terminal emulator and Linux environment app installed. I use this as a server on the go. After connecting a USB smart card ...
1
vote
0answers
29 views

Can't format Samsung SD Card Android-Meta [closed]

I have a Xiaomi A1 with Android on it and I use my Samsung MicroSD Card Evo+ 129 GB, as as an internal storage. For no reason, it's stopped working and asking me to format it. The issue is, the ...
1
vote
1answer
108 views

How does Magisk on Android work as su without setuid and capabilities?

I've read in another answer that on Android the su binaries avoid needing to be setuid by using filesystem capabilities like cap_setuid. But then I tried to check this, and to my surprise, I found no ...
3
votes
1answer
131 views

Serial port ignoring custom divisor

I am trying to run a serial port at 3.25Mb/s by applying a divisor of 2 to a baud base of 6.5Mb/s. I am using an IoT device (Telit HE922-3GR) running android 6 with built in serial ports, the proc/tty/...
0
votes
1answer
169 views

insufficient permissions for device

While using the command adb root the output I obtained is adb: unable to connect for root: insufficient permissions for device: verify udev rules. See [http://developer.android.com/tools/device.html]...
1
vote
2answers
99 views

Bash replace string with command

I have a command (logcat) which outputs a long log like this: 07-27 09:26:22.416 17574 17886 D SurfaceControl: Excessive delay in setPowerMode() 07-27 09:26:22.421 17574 17599 I PowerManagerService: ...
0
votes
0answers
227 views

Android does not boot properly and services can't start due to read only

I have a sabresd based reference board and I have ported android O from official source. I am facing a problem that none of the service works. All are getting killed. In my case adb is not present as ...
1
vote
0answers
87 views

Error in mounting rootfs in android

Failed to make and chown /acct/uid_0: Read-only file system I have a i.xm6q sabresd reference board and another is a development board based on i.mx6. I'm trying to port Android O on development ...
1
vote
0answers
63 views

Disappearing android studio from the menu [closed]

I'm new to Linux and using Mint 19 Cinnamon, I've tried to make a menu shortcut of the android studio by passing this way in the android studio: Tools → Create desktop entry after these ...
0
votes
0answers
350 views

How to prevent “Unable to open MTP device” popups from opening?

System: Linux Mint 18.3 Cinnamon 64-bit which is based on Ubuntu 16.04. Cell phone: Samsung Galaxy S II (Android 4.1.2 Jelly Bean (API 16)) Problem: There is an unstoppable amount of popups on one ...
0
votes
0answers
32 views

How can I set up openVPN on Ubuntu 16.04 and which app do I need to connect to it on Android?

I tried this but I was unable to start NetworkManager after setting up the new interface. How can I set up openVPN on a GUI-less Ubuntu 16.04 and which app do I need to connect to it on Android?
1
vote
0answers
91 views

Install Linux and Android in a x86_64 device with preinstalled android

I have a tablet with a x86-64 intel processor, which is a Chuwi Hi12. This tablet can boot an USB device, so I can boot Linux (ArchLinux) in this tablet. Also, I can install Linux in this device ...
0
votes
0answers
51 views

How to set up fakechroot along fakeroot using mostly only system commands?

Situation I downloaded an android Terminal App which gives access only to system commands (there’s no app with native aarch64 support yet). Neverless, as I’m having more 24Gb of free ext4 space in ...
0
votes
0answers
332 views

AFT - Where is Android device mounted automatically on Arch Linux?

Having read this page, I decided to give AFT a try, so I installed it by sudo pacman -S android-file-transfer, connected the device (OnePlus 3T) to the computer through USB, set it to "Transfer files ...
27
votes
2answers
3k views

Why there are `/lib` and `/lib64` but only `/bin`?

In my laptop: $ cat /etc/issue Ubuntu 18.04 LTS \n \l There are two different folders for libraries x86 and x86_64: ~$ ls -1 / bin lib lib64 sbin ... Why for binaries exists only one ...
0
votes
2answers
190 views

Copying folders from MTP device using libmtp (over USB) [duplicate]

My question is very closely related to this question: How do I download complete folders (not only single files) with libmtp from an Android device to my laptop? I'm on Debian 9. There is a blog ...
2
votes
0answers
129 views

Accessing Android smartphone (Galaxy S3) via an unstable USB connection

I'm attempting to connect to an Android smartphone (Samsung Galaxy S3) whose screen is broken (i.e. completely black) in order to save all files on it. The whole phone is (almost) completely beyond ...
0
votes
0answers
30 views

Android's touchscreen key events on Linux

I am working on a Halium port for an Android device that has a Synaptics touchscreen (synaptics_dsx driver). The port is on a mature stage, has a Wayland compositor running, and the apps are provided ...
0
votes
1answer
199 views

How to unencrypt a micro SD card?

Few days ago I had to reformat my smartphone (Moto G5 with Android 7.0) but after, I received a very bad surprise when Android put me a message telling me the micro SD card was unreadable because ...
0
votes
1answer
63 views

Is it technically possible to install Ubuntu Server on a Android Device? [closed]

Can I install a normal Ubuntu Server on a Android device? Do I have to compile it first?
0
votes
1answer
170 views

How to change hostname on GNUroot debian?

I have installed GNURoot Debian on my Android phone and I ran a server in it. Then I tried to change hostname and also assing a name to my IP. I have changed both files in /etc/hosts/ and /etc/...
-5
votes
2answers
56 views

Android / Linux dd [closed]

Can any one give me a simple example? The partition size is 4 MB but the data inside is 3.1 MB. I need to dd only the 3.1 MB. dd if=/dev/block/partition of=/tmp/3.1mb.img bs= skip= I'm confused ...
0
votes
0answers
212 views

Android DHCP Port Forwarding

I am working on a MirrorLink implementation for the Google Pixel (Android 8.1.0). I must implement a DHCP server; however, Android applications cannot listen on reserved ports. The Android ...
3
votes
0answers
33 views

Debugging in android chrome as a non-root user

I am trying to debug a website displayed in Google Chrome on an Android device connected to my box via USB. To this end, there is the remote debugging protocol as implemented in the desktop versions ...
1
vote
0answers
613 views

Installation of Android x86 not working properly

I installed today the latest version of Android x86 OS on a old HP Compaq Mini 700 el, from USB key, after checking that everything worked with the live boot. Installation was rather tricky and I'm ...
0
votes
0answers
92 views

How to use tmux copy mode in Termux?

I installed Termux and using the pkg system installed tmux. However, the tmux that installs doesn't appear to support copying and pasting. I can enter tmux copy mode, but I can't select text and copy ...
0
votes
0answers
125 views

Android Auto and Linux; how to connect them together

I got a new car, a Honda CR-V 2018 and it comes with an "Android Auto" infotainment system. It also lacks any 3.5mm aux. port. Does any software exists to connect a Linux laptop to "Android Auto" ...
2
votes
0answers
58 views

Alternative to debugfs for Android environment

For the purposes of retrieving a file's creation time (if available), I'd use debugfs. Unfortunately, debugfs is not part of most Android distributions. Are there any similar, more ubiquitous ...
0
votes
1answer
844 views

Recover data from broken Samsung phone

I've got an old Android phone with broken display and I'd like to get the data (in particular photos) out of it. I connected it to my computer but it did not mount automatically and mount says that "...
2
votes
2answers
2k views

Why isn't Android's Captive Portal detection triggering a browser window?

I have a Raspberry Pi that is hosting a simple website using nginx. The RPi is acting as a Wireless Access Point - users can connect to its wireless network, the RPi gives them an IP (it runs a DHCP ...
0
votes
0answers
133 views

Why can't javac be found?

You are attempting to build with the incorrect version of javac. Your version is: /bin/bash: javac: command not found. The required version is: "1.8" That is what I see when I try to build LineageOS ...
1
vote
0answers
49 views

Unable to source PATH variable

I am able to source other variables except PATH # cd /data/local # mkdir env # vi env/dev <esc>i PATH=/data/local/workspace/clang+llvm-5.0.0-aarch64-linux-gnu/bin:$PATH CPLUS_INCLUDE_PATH=/data/...
0
votes
1answer
107 views

Problem installing android studio

I'm getting the following java error while trying to install android studio in linuxmint 18.3: # A fatal error has been detected by the Java Runtime Environment: # # SIGBUS (0x7) at pc=...