Skip to main content
New
Stack Overflow Jobs powered by Indeed: A job site that puts thousands of tech jobs at your fingertips (U.S. only). Search jobs

Questions tagged [linux]

Use this tag when your issue involves a Linux laptop/PC or addresses Linux-specific topics on your Android device. In the latter case, consider if other tags like e.g. 'command-line' or 'shell' might be better fitting. See the full tag wiki for additional details and hints. Note that questions purely about operating Linux-based OS on Android devices are off-topic.

243 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6 votes
0 answers
13k views

How to install Google Play or other repo's on Waydroid?

Having just installed waydroid, how is the Google Play Store installed? nicholas@mordor:~$ nicholas@mordor:~$ sudo waydroid shell /system/bin/sh: No controlling tty: open /dev/tty: No such file or ...
Nicholas Saunders's user avatar
5 votes
1 answer
1k views

Can't mount ISO in Android

I tried to mount an ISO on Android using busybox mount. It always gives me "No such device". strace -- busybox mount -t iso9660 /sdcard/some_iso.iso /sdcard/a: execve("/system/xbin/...
user avatar
5 votes
1 answer
5k views

FFMpeg stream to FFServer from Back Camera

I'm looking for a way to stream my camera video from my Android phone to an FFServer, like I would with FFMpeg from the command line in Linux: ffmpeg -f video4linux2 -i /dev/video0 http://IP:8090/...
jfreak53's user avatar
  • 240
4 votes
1 answer
4k views

How to disable dm-verity on `Treble` , `system-as-root` device?

Background: Please check following links How to disable dm-verity on Android with “user” build type ROM? Stuck in boot-loop when unpack and pack system.img? Update: So, I am trying to disable dm-...
Vatish Sharma's user avatar
4 votes
1 answer
4k views

MTP not working under Android 6

I am running out of Ideas how to get MTP working again... I am simply not getting the dialog again on my android, asking me wether I want just charging, or MTP or Picture mode... Until most recently, ...
Frank N's user avatar
  • 141
4 votes
0 answers
12k views

Heimdall/JOdin: "We could not obtain the PIT file. We tried, but it didn't work."

I'm trying to root my Samsung S6, but I don't have a Windows computer. Luckily, JOdin works on Linux too and it connects to my phone, so I am now much closer to my goal. But now I am facing a new ...
Torben Gundtofte-Bruun's user avatar
4 votes
0 answers
7k views

fastboot oem unlock: hangs with `...'

First of all, I am a newbie to Android. I am using Ubuntu Gnome 14.10 to run all the commads. I am trying to unlock the bootloader of my Lenovo A536 (stock Android 4.4.2 aka KitKat). Here is what I ...
tukusejssirs's user avatar
4 votes
1 answer
2k views

How can I add a Shared partition that Anbox can access?

I know it's a relatively new and unstable application but I figured if anyone has suffered through the issue and solved it then they can help me too. I've got Anbox running and Apps open up really ...
Sumeet Deshmukh's user avatar
3 votes
0 answers
1k views

Why can't I turn on Wi-Fi on the Waydroid emulator?

I just installed the Android emulator called Waydroid on Ubuntu 22.04. Almost everything seems to work as expected, except that I'm completely unable to turn on Wi-Fi usage. Whenever I toggle Wi-Fi on ...
christian_js's user avatar
3 votes
0 answers
1k views

Rooting android with the dirty pipe vulnerability

there is a newly discovered Linux Vulnerability has which lets you inject code in root processes (source), i have been looking into it but failed to pull anything off, for what i understand to gain ...
Eloy Miguelez's user avatar
3 votes
0 answers
80 views

Which process is preventing me using Wifi?

I have a TV box provided by ISP (also TV channels provider), which has Android 4.4.4 Linux kernel 3.10.23. (I have root already) It uses PPPoE to get a network so can receive TV stream, but this ...
Bob Johnson's user avatar
3 votes
0 answers
2k views

How to root Samsung J5 2017 (Android 7.0) on Ubuntu Linux?

Phone Name: Samsung J5 2017 Model number: SM-J530F Build number: NRD90M.J530FXXU1AQI3 I am using Ubuntu 17.10. My question is, how could I root this phone using my PC? I have intermediate Linux ...
Thomas Jowsey's user avatar
3 votes
1 answer
2k views

Can I run a Linux executable on Android?

I wondered if it is possible to run a Linux executable on Android so I made a simple console application in Code::Blocks in C++ (I am using Ubuntu Linux), built it in release mode and copied it into a ...
xuwenbuwer's user avatar
3 votes
1 answer
997 views

Symlink to simulate /storage/extSdCard in Android 6.0

So recently, I started using Android 6.0, and one of the first things I noticed was that the external SD card was no longer mounted under /storage/extSdCard anymore; instead, it was mounted under a ...
senorchungbob's user avatar
3 votes
0 answers
4k views

Data recovery from android device with broken screen

Situation Summary - I have an Android device with a broken screen, LCD and touch I have an android phone (BQ Aquaris E4.5 Ubuntu Edition, which I have flashed with the Android firmware for the E4.5 - ...
user3728501's user avatar
2 votes
1 answer
49 views

Unable to connect via adb on a firewalled Android device

Connecting from Linux, using an older adb (downloaded at tried 1.0.41 just to troubleshoot this - no difference, except that the messages now do include "Connection refused"), and the ...
confused's user avatar
2 votes
0 answers
1k views

Android: how to use adb commands to block/unblock specific app from using the Internet, on rooted device if needed?

Background I want to temporarily block a specific app from using the Internet on my Android device, using a batch file. The device is rooted, so it should be possible via the PC. The problem I ...
android developer's user avatar
2 votes
0 answers
94 views

Hardening android to use it as a Linux Server

I want to convert a set of relatively old Android devices into Linux servers, while avoiding too many device specific actions, to make this an easily repeatable and shareable action. This means ...
Udinanon's user avatar
2 votes
0 answers
125 views

How to mount full image backup properly?

Did a full backup mmcblk0.img of a Redmi Note 7 (codename lavender) running Android 10. However, I'm not sure how exactly to mount it or view files. Worth noting that I was suffering from an ...
Yrevocer's user avatar
2 votes
0 answers
537 views

Required Img files for heimdall root

Folks, I'm trying to root a phone with Heimdall (on Linux). Completed steps so far: Downloaded Factory Firmware patched it with Magisk setup heimdall downloaded PIT from phone backed up phone with ...
Mat's user avatar
  • 41
2 votes
1 answer
222 views

Frame buffer not working in Android emulator when accessed from Linux

I am running Linux with kernel from Android SDK in an Android emulator. When writing from /dev/urandom to /dev/fb0, nothing is drawn in the emulator window. Why? Can you help me with this problem?
Pavel Samsonov's user avatar
2 votes
0 answers
571 views

Can I turn my Android to Linux desktop?

I want to turn my phone into a Linux Desktop when I connect it to an external display but not using screen mirroring (I.e., the external screen is running while phone screen is turned off). There is ...
Omar Shawky's user avatar
2 votes
0 answers
628 views

Is there a way to transfer SMS mesages from a Samsung Galaxy S5) to an Ubuntu PC, in a form in which I can view the SMS messages on my PC?

I want to transfer the SMS messages on my Samsung Galaxy S5 smartphone to my PC (with Linux Ubuntu 20.04.2 LTS), in a form in which I can open and view the messages on my PC as I do on my smartphone. ...
Allan's user avatar
  • 131
2 votes
0 answers
100 views

Charging/USB Notification Not Appearing on LG X Charge

For the past month I have been trying to connect my phone to my Ubuntu Linux with little luck- for context, I used to run Linux Mint and managed to get things to work just fine. However, I switched ...
pepsiman's user avatar
2 votes
0 answers
221 views

(ROOTED PHONE) Using WiFi and LTE Simultaneously

I have a rooted Google Pixel 4a and an IoT device which I connect to over WiFi. This WiFi network does not have internet connectivity and simply serves as a way to control the IoT device. I have a ...
Mihir Bala's user avatar
2 votes
0 answers
3k views

adb install-multiple fails with error: [INSTALL_FAILED_INVALID_APK: Split null was defined multiple times]

I'm trying to install multiple .apk files to my Samsung Note 4, over adb. I'm able to install the same set of files individually using the 'install' command, but when I try to 'install-multiple' I get ...
nohatsatthetable's user avatar
2 votes
0 answers
66 views

Can you help me recover my accidentally deleted videos?

I have a Nokia 2.2 smartphone runnig Android 10 ( a hateful piece of software from my opinion). From 16 GB of storage only 2 are available for the user and it's shrinking even more with every new ...
emanuel2020b's user avatar
2 votes
0 answers
423 views

cant flash Lenovo Tab M10 TB-X605L LTE with Android 8

I have a Lenovo Tab M10 TB-X605L LTE that I would like to give to my grandfather with Teamviewer Host installed to accept incoming calls because he is unable to do so. We want to give him the ...
Maceo's user avatar
  • 21
2 votes
0 answers
290 views

Does Termux call fork/exec system calls in Android?

There are tutorials (e.g., this and this) that use Termux to compile and run cpp codes in Android. Does Termux run fork/exec system calls and start running the program's main function? More generally, ...
smz's user avatar
  • 121
2 votes
0 answers
248 views

Can I install GNU/Linux in text mode on android?

I want to use my old smartphone (Moto 3G) like Rassbery Pi to make some low level things with just terminal. I want to install GNU/Linux in text mode, get access to it with SSH, get connection to ...
Dolidod Teethtard's user avatar
2 votes
0 answers
2k views

Best way to access the full Android internal storage directory tree from an Ubuntu pc

Background I am trying to free up memory from my phone that is becoming more and more unusable, as it reports only ~600MB free memory out of 16,0GB; but deleting cache files, moving images/videos to ...
lurix66's user avatar
  • 121
2 votes
0 answers
674 views

Linux kernel 4.4 Android devices

I am trying to find out what all devices are running linux kernel 4.4+ and having a hard time finding all. Till now I could only find Sony Xperia devices running kernel 4.4. The reason I was trying ...
Bharat's user avatar
  • 21
2 votes
0 answers
110 views

NTP sync over USB for chinese watch?

Context: I'm having some difficulty locating a specific .apk to synchronize the time on a specific watch. What are the challenges associated with running some type of NTP sync over USB between a ...
Thufir's user avatar
  • 215
2 votes
0 answers
93 views

Why not autostart PPP?

In the adb docs, under PPP it says "Note that you should not automatically start a PPP connection." Anybody know why this is discouraged? I'd like to do exactly that when I plug my tablet into my ...
ejegg's user avatar
  • 121
2 votes
0 answers
2k views

Android Emulator not starting

Using Ubuntu 15.10 I am not able to emulate an Android device using any x86 images. The emulator starts but the screen stays black. Using an ARM image works. From what I found it seems to be ...
Chris's user avatar
  • 21
2 votes
0 answers
2k views

How do I repair Android DHCP issues?

My phone plan comes standard with a lot of data and as a result, I've been regularly using the Mobile Hotspot feature built into it, on my laptop. The phone is a Samsung Galaxy S5 and is rooted on a ...
Daniel's user avatar
  • 21
2 votes
3 answers
2k views

Running android apps directly on ubuntu or gentoo

I wonder if is it possible to run android applications DIRECTLY on a Linux distribution like ubuntu or gentoo? I mean running the apps on linux without the help of virtualbox,simulators like ...
anil's user avatar
  • 21
2 votes
0 answers
238 views

How can I add the user of an application to the group of another application?

I'd like to add the user of one application to the group of another so that I can read the other applications private content without doing a su every time. I can't find the adduser or the useradd ...
Mridang Agarwalla's user avatar
2 votes
0 answers
194 views

I mounted Android on Ubuntu. Can I create subdirectories using mtpfs?

I use Android 4.0 and followed a tutorial to mount my tablet on Ubuntu using mtpfs when the device is connected via cable. It works almost perfectly. I can copy files and even whole directories to ...
moraes's user avatar
  • 121
2 votes
1 answer
6k views

How can I successfully run this script on a emulated terminal on Android?

Background I am trying to install Ubuntu onto my Acer Iconia A500 using VNC and this application called Complete Linux Installer. My tablet is rooted and I have found several sources saying they have ...
Grace's user avatar
  • 121
1 vote
0 answers
1k views

ADB | How do I Authorise Amazon FireTV Stick via. USB? - to run shell script on boot

Goal: Follow this tutorial, to run a shell script on boot. Despite following the tutorial and trying various solutions, I am still unable to authorise the ADB connection. I'd greatly appreciate any ...
StressedBoi_69420's user avatar
1 vote
0 answers
378 views

Unable to use Ctrl+A+D to exit screen session of Termius

I am using Termius Android app on my phone to SSH connect my server. When I get in a screen session, it can't input Ctrl+A+D to leave this session, only Ctrl + one key can be input. Also, my program ...
ham's user avatar
  • 11
1 vote
0 answers
47 views

How to notify Android that MicroSD is mounted?

I manually mount MicroSD like this: nsenter -t 104 -m mount -t sdfat -o rw,gid=9997,noatime /dev/block/mmcblk0p4 /storage/extSD As a result, file managers can work with it. But Android still thinks ...
Сергей Евтухов's user avatar
1 vote
0 answers
779 views

Attempting to extract .img files from a Samsung Rom, how?

So far i have extracted the files out of system.img and cache.img, but the others dont work, they dont seem to be ext4 or something, i tried 2 roms of different phones and tablets, i was able to ...
user avatar
1 vote
0 answers
407 views

Final steps to repair corrupted F2FS SD Card - How to fix "can't read superblock"

[I modified the question to reflect the progress] The TLDR version is, the card is adopted storage that says corrupted f2fs. I used the process detailed Here but when I tried to mount the decrypted SD ...
Captain-Science's user avatar
1 vote
0 answers
3k views

How do I have a Mediatek USB driver for Linux to flash a smart phone?

I am a Linux beginner, I just wanted to know how I properly download and use a "Mediatek USB driver". I am using a Linux Mint MATE, and I cannot turn on the USB debugging of that phone ...
LinuxNovice1's user avatar
1 vote
0 answers
391 views

How does Android creates block devices and mounts it?

How does Android create block devices in /dev? Android does not support devtmpfs and Android /init does not use udev or (busybox) mdev. ueventd.rc doesn't contain strings for /dev/block/.... But, ...
RandomDice 779's user avatar
1 vote
0 answers
379 views

Xiaomi Redmi Note 4 mido userdata partition type / data recovery

I am doing data recovery on a Xaomi Redmi Note 4(x?) [mido] and I have finally gotten a flash dump ( the screen is scuffed and no perms have been set ( no adb,oem unlock, storage access )) Only way to ...
qwerty_in_me's user avatar
1 vote
0 answers
552 views

How use Live boot on Android devices?

I want Live boot a Mobile Linux distribution(for example Mobian) on the Android device. I also have an adb and fastboot and my device is rooted. Is there a way to Live boot on Android? Sorry for my ...
Behzad's user avatar
  • 11
1 vote
0 answers
1k views

Fastboot recognizes device but unable to flash (stuck with no output)

I'm trying to flash a custom ROM on my Android smartphone using fastboot. When trying to flash the recovery, the command does not output anything and is stuck. ./fastboot flash recovery recovery.img ...
Syed Adil's user avatar

1
2 3 4 5