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.

Filter by
Sorted by
Tagged with
8 votes
1 answer
21k views

How to run an executable on boot and keep it running?

I have an executable build from a ndk-build program. I want to run it on a rooted Android device. How much is the possibility that Android will kill my executable? Using adb shell, I am able to ...
Vatish Sharma's user avatar
6 votes
1 answer
7k views

Why can't I see Android storage as a partition on PC?

I'm trying to recover an accidentally deleted video from Huawei P10. I use Ubuntu, so I tried to recover it using photorec. The problem is that I can't see the mobile's internal storage or SD card ...
Milano's user avatar
  • 161
17 votes
3 answers
7k views

Why are there not generic phone OS installers? [duplicate]

I am used to install and remove various operating systems in my PCs, even having several at a time. Usually, to install a new OS means: Burn the ISO to a CD/DVD/USB. Insert it. Boot. (Maybe you have ...
Yajo's user avatar
  • 273
7 votes
1 answer
8k views

How to boot Ubuntu persistent live USB on Android?

I'm discovering the possibilities offered by persistent live USB using Ubuntu 19.10 and I was wondering if it would be possible to boot with Ubuntu on Android (i.e. using your computer capabilities ...
user avatar
6 votes
2 answers
21k views

Configuring ADB for Nexus 4 on Ubuntu 11.10

I'm trying to deploy and test an Android app on my Nexus 4 from my Ubuntu 11.10 computer, but ADB doesn't recognize it. I think I need the Google USB drivers, but I cannot find instructions on how to ...
user1068378's user avatar
39 votes
3 answers
110k views

How do I get my device detected by ADB on Linux?

I just got my shiny new Wileyfox Swift – and before putting it to use I want to oem unlock and root it (as I usually do with new devices ;) Trouble is, though usb-debugging is enabled on the device, ...
Izzy's user avatar
  • 91.2k
6 votes
1 answer
5k views

How to run SSH/SFTP server for multiple user logins with password authentication on Android?

I want to run an SSH server on my Android phone so that my clients (varying between 10 to 20) can easily and securely share data with me when I'm on the go, without using any third-party hosting ...
Irfan Latif's user avatar
  • 20.6k
8 votes
2 answers
53k views

How to disable dm-verity on Android with "user" build type ROM?

I have One Plus 6T Android device which has a ROM of build type user. This device is rooted with Magisk and I want to disable dm-verity on this device. I have tried to run adb disable-verity but I got ...
Vatish Sharma's user avatar
6 votes
1 answer
4k views

Are multiple-users protected from each other differently than apps?

I confess that I come from the happy world of unix computers, and am used to the concept of user accounts and hence group gids and userids uids. For the occasional usage of an untrusted app (i.e. ...
humanityANDpeace's user avatar
5 votes
1 answer
9k views

Why my DCIM folder is empty seen in the computer but not empty in the phone [duplicate]

I am using HuaWeiNova device, and I tried to access it with aft-mtp-cli. $ aft-mtp-cli $ ls DCIM/ I got folders listed here: |-photos |-Camera .... When I tried to list or download my photos in the ...
coin cheung's user avatar
54 votes
9 answers
422k views

Use an Android tablet as a Wacom drawing tablet for a PC?

Since a nice Wacom tablet is a bit pricey, especially for someone like me who doesn't do much graphic editing, I was wondering if it is possible to use a tablet (i.e. my Nexus 7) as a Wacom-esque ...
Garrett Fogerlie's user avatar
26 votes
5 answers
107k views

How do I run Windows or Linux as a virtual machine on Android?

I would like to run Windows XP as a virtual machine on my Android tablet. Since Android is based on Linux, is it possible to compile VirtualBox to run in Android? If not possible, is it possible to ...
StackOverflowed's user avatar
81 votes
3 answers
14k views

What linux distribution is Android based on?

Did Google use some existing distribution (Debian, Red Hat, etc.) to create Android, or did they use the bare essentials (kernel, file system and some mandatory files)?
lamcro's user avatar
  • 1,251
6 votes
4 answers
8k views

Linux fails to mount Android device in USB MSC mode

I wish to mount my Sony Xperia ST21i (Android 4.0.4) under Linux (Debian) via USB. However, I get this error: # mount /dev/sdb /mnt mount: no medium found on /dev/sdb What I did so far: On the ...
Joachim W's user avatar
  • 161
18 votes
3 answers
20k views

What is the difference between the Linux Kernel and the Android Kernel?

What are the modifications done in linux kernel to make it an android kernel ? By this question I mean what are the differences between linux kernel and android kernel ?
trish's user avatar
  • 191
8 votes
4 answers
15k views

ADB on Ubuntu does not recognize Nexus 4

I'm unable to get my Nexus 4 phone recognized by ADB on Ubuntu (12.04 with a newer kernel installed: 3.8.0-30-generic). Developer mode is enabled on the phone. The device shows up in lsusb: $ lsusb ....
Lespaul86's user avatar
5 votes
4 answers
9k views

How do I make my Linux PC mount my Android 4.2.2 phone using MTP?

I have just purchased a new TCL (S950) Idol x phone and I'm figuring out some issue to make it visible on my system. This phone uses Android 4.2.2 and I guess this is the cause of the issue: my ...
Francesco's user avatar
  • 192
4 votes
1 answer
4k views

Rooting GT-i9100G under linux

What is the safest method to root a Samsung Galaxy S 2 i9100 G under a GNU/Linux system? (ArchLinux). I am a programmer (without android programming experience, only desktop and web), it does not ...
Flavius's user avatar
  • 213
1 vote
2 answers
13k views

Rooting Samsung Galaxy S II GT-i9100

How does one root a Samsung Galaxy S II GT-i9100 (with its original Android 2.3 Gingerbread), preferably under Linux Mint? This questions pertains specifically the GT-i9100 version (not GT-i9100G nor ...
Timotheos's user avatar
  • 155
25 votes
4 answers
3k views

How can I use shell commands and interact with the Linux system underneath?

Android is based on Linux and has a Linux kernel underneath. Is there any way I can use shell commands and interact directly with the Linux system? E.g. A shell app that has access to the Linux system?...
Jonas's user avatar
  • 5,047
5 votes
1 answer
9k views

How to run an Android init service with superuser SELinux context?

I want to run an Android init service. I have a device which has rooted shell (purchased from manufacture as rooted). This device doesn't have Magisk or other su manager but adb shell is rooted and it ...
Vatish Sharma's user avatar
4 votes
2 answers
340 views

How to quickly understand the Android UI

I have experience with Windows, the MacOS, the iPad and Linux UI's like KDE. I have not used an Android device however so I do not really understand how it works and compares. My general understanding ...
user avatar
2 votes
4 answers
28k views

Mount Android file system on Windows or Linux

I want to edit some files on my phone, but I can not access the root folder on my phone. I'm using a rooted Google Nexus 5 running Android 5.0. I can read/write to my /, and /system by using the "...
The Dark Knight's user avatar
0 votes
0 answers
3k views

Stuck in boot-loop when unpack and pack `system.img`?

Background: I have a treble and system-as-root but it is not an A/B Samsung device. I am trying to modify the system.img. Before that, I have rooted it with the steps given here. After following these ...
Vatish Sharma's user avatar
19 votes
4 answers
28k views

How do you set up internet pass-through (reverse-tether) on linux?

I have an HTC Desire S that has the option to connect through usb, and use the computer's internet connection. This works fine on Windows, but I'm struggling to set it up in Ubuntu. When I plug in and ...
bluegray's user avatar
  • 317
19 votes
4 answers
165k views

Why can't I get root access from shell?

> adb shell sh-4.1$ su Permission denied I have rooted my phone successfully. I know this because I'm able to install apps on SD card and I have a program called SD Maid that is able to operate ...
Kshitiz Sharma's user avatar
16 votes
4 answers
2k views

Is Android based upon Linux?

Is Android based upon Linux?
user avatar
13 votes
3 answers
27k views

Mount Android encrypted data partition on PC

My Nexus 4 screen met a tragic end due to violent contact with flooring tiles. Everything works except the touchscreen (which displays fine but does not react to touch any more). I would like to get ...
personne3000's user avatar
6 votes
2 answers
8k views

How to flash Samsung devices from a GNU/Linux host running on ARM architecture?

To flash a Samsung Galaxy S (where do not have root access in the currently running OS, and with a stock recovery) with a new firmware (OS), I need to connect it with a USB cable to another computer ...
imz -- Ivan Zakharyaschev's user avatar
6 votes
2 answers
3k views

How to make SELinux injected rules persistent without unpacking-packing boot.img?

I am working on an application that needs root access and I have a device which is rooted but not with Magisk. This device has only adb shell root available. So, I need an alternative to call the ...
Vatish Sharma's user avatar
5 votes
1 answer
5k views

How to Remote Control Android smartphone, if not in same subnet

I'd like to "Remote Control" my Android 2.3.x (Oxygen 2.3.2 ROM) from my PC. I know that there are VNC servers available (previously available via https://market.android.com/details?id=org....
alexs77's user avatar
  • 71
5 votes
1 answer
3k views

What is needed to run ELF binaries compiled from android APKs? (understanding android internals)

I'm trying to understand how Android works internally. Before ART, it used Dalvik to run java code. I guess it created a Dalkiv process in 'Linux' kernel which was simply a VM that ran the dex ...
Guerlando OCs's user avatar
5 votes
1 answer
30k views

How to root MTK based mobile devices using a Linux PC?

It is easy to root an MTK device in MS Windows using powerful tool like SP Flash Tools, or a one-click root solution. Can it be done (especially with that flash tool) using a Linux machine? I've ...
daltonfury42's user avatar
4 votes
3 answers
21k views

How to Play Sound from Termux when using Linux?

I have a problem with audio streaming that I can not listen audio from Pulseaudio when using VNC with a Linux Desktop Environment. However it works if I export the audio to XSDL. But the problem is ...
Maher_2000's user avatar
3 votes
1 answer
714 views

How to create a copy of a file immediately when it's created?

I have an Android app that will create a file and immediately delete it. I want to know how can I catch this file or create a copy or even disable user permissions to delete a file. I have root access ...
Amin's user avatar
  • 49
3 votes
1 answer
6k views

How to delete a file (e.g. malware app) that cannot be even removed with root access?

I have root access in my device, but there is a malware in /system/app/ that I can't delete. This malware installs TimeService, MonkeyTest, and also some other apps like DR battery and privacy guard, ...
sajad's user avatar
  • 133
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
0 votes
1 answer
388 views

Why is it possible to backup the rom images from mediatek devices using third party (open source) tools such as SP flash tool unlike Google Pixel?

When running Linux i am able to use SP flash tool to do a readback from my mediatek device and do a full backup of the rom images while the device is in preloader mode, without the use of any ...
Rishi Gamit's user avatar
0 votes
1 answer
563 views

Packet forwarding between USB Tethering and Wifi on Android

I have Toshiba notebook with embedded wifi adapter 2.4Ghz, desktop without embedded wifi adapter and Samsung Galaxy smartphone with Mobile HotSpot feature also on 2.4Ghz. Smartphone is connected to ...
Kirill Bugaev's user avatar
10 votes
1 answer
3k views

Nexus 7 doesn't have sdcard folder when connected to PC

I've just bought a Nexus 7. When I plugged it into my laptop, it shows the media folder, I'd like to access the sdcard folder just like the other devices. How to transfer files? I think "adb push" ...
emeraldhieu's user avatar
8 votes
2 answers
955 views

Offline safe sync directory on sd card on non-rooted Android with Ubuntu PC

Is there a way how to offline safely synchronize directories between sd card on Android which is not rooted and PC with Ubuntu? Safely = using secured connection between the devices (for example ...
Tom's user avatar
  • 211
8 votes
4 answers
27k views

Can't explore files on my Sony Xperia U using my Ubuntu 12.10 laptop

I previously used Ubuntu 12.04. When I connected my phone (Sony Xperia U) in MTP mode, I would be able to see it in Nautilus as a "SEMC HSUSB device" and browse files, copy files, and so on. Now, I ...
airbornemihir's user avatar
8 votes
2 answers
12k views

How to sync contacts and calendar with Linux system, without using Gmail?

How can I sync my contacts and calendar with a Linux system? I'd prefer to sync with my desktop, but setting up a server on the internet would also be possible. I want to avoid Google mail for ...
starblue's user avatar
  • 388
7 votes
1 answer
1k views

Can Applications With Root Access Modify Their Own Permissions?

For rooted phones, there are several apps which require root privileges. Knowing this, the user does allow the app to get root. Now, the app would have been installed with a set of x permissions, say ...
asudhak's user avatar
  • 713
7 votes
3 answers
13k views

No-name i.onik android tablet not recognized by adb -- adb devices empty

I have followed various instructions and finally was able to connect my ZTE Blade to my Ubuntu laptop for USB debugging. The same setup does not work when I exchange the phone by my "no-name" i.onik ...
krlmlr's user avatar
  • 173
7 votes
7 answers
37k views

How do I get my phone to connect the internal SD by USB?

I recently rooted and upgraded my Samsung Galaxy S2 to version 4, ICS. Since doing so, when I connect my device by USB to my Ubuntu computer, only the 12GB internal storage shows up on my desktop and ...
Questioner's user avatar
  • 3,729
6 votes
1 answer
11k views

Turn a Android Phone with broken screen into dedicated Web server

I have a Nexus 4 with a broken LCD/Digitizer, I have no control via touch at all. The other parts of the phone are functional. Now, what I want to do and hope is possible is to clear the phone and ...
Majk's user avatar
  • 63
5 votes
1 answer
6k views

How to run Android in Virtualbox on Linux?

For days I try to get Android 5 or higher running inside Virtualbox on Linux (here: Mint 18.1), without success. At best, I get past the boot menu (Grub), the system switches to graphics mode, and I ...
Izzy's user avatar
  • 91.2k
5 votes
2 answers
14k views

How to Tether NordVPN internet from Android to Laptop?

I tether my internet with my phone. I connect with my laptop to it. If I keep my VPN client (NordVPN) activet, internet does not work. NordVPN support says to configure VPN in Settings > VPN. ...
Léo Léopold Hertz 준영's user avatar
4 votes
1 answer
7k views

How to fix "dmesg: klogctl: Permission denied" for normal user on Android?

I have a rooted Samsung device(system-as-root). When I open adb shell and run the dmesg then it behaves differently for su and normal user. It throws dmesg: klogctl: Permission denied error when ...
Vatish Sharma's user avatar