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
6 votes
2 answers
7k views

How do I send a YouTube video from my desktop to my Android tablet?

Apps such as YouTube and Netflix use the X protcol to conect to smart TVs so you can send (a link to) the video you're watching to the TV, and it starts playing on the TV right away. I'm looking for ...
1 vote
1 answer
740 views

Android Device Partition table not recognized by any of the partition management tools

I have an Android 8.0.0 device (https://www.tvbox-manufacturer.com/product_category/fire-tv-stick/) with eMMC as a storage medium. The eMMC is removable (BGA socket on the Board). The device boots ...
1 vote
1 answer
40 views

Can I mount dead phone's partitions in VM?

Dead phone. Have all partitions saved/read off internal memory including data partitions, all not encrypted, phone was rooted. Android 11 custom ROM, crDroid. Need to mount data partition if possible, ...
0 votes
0 answers
24 views

Termux and Termux11 change root/home directory

as default termux use /data/data/.../home as home directory and we access file in home, but we can't use or see (permission) for other subdirectory, that which make sense application like intelij or ...
0 votes
1 answer
81 views

Does Termux have media folder?

I am running a Java application using Termux. I need a media folder to store a folder named DSKEYS with pfx key file because the Java application needs that pfx file from media/DSKEYS/. I could not ...
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, ...
1 vote
1 answer
3k views

Blank screen when accessing Kali Linux

I'm trying to access Linux Deploy, Kali Linux via a VNC Client on my Android phone. I could access it, but I get a blank screen. How to fix it?
1 vote
0 answers
2k 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 ...
-2 votes
0 answers
42 views

Install normal Linux Ubuntu on Blackview Tab 11 [duplicate]

I try, but I don't know why installation don't run. Pendrive was in reading. I can't with Android. Please instructions how install Linux. Thanks.
4 votes
3 answers
2k views

Replacing Android OS on Android phone with Linux OS

I'd like to entirely replace Android on my phone, which I plan to eventually root. I've learned so far that Linux Deploy can be used to run a full Linux distro alongside the Android OS, but really I ...
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-...
0 votes
0 answers
21 views

error when compilling TWRP for VTR P10

i'm using manjaro linux i/m trying to compile TWRP for Huawei p10 vtr-l09 i'm using this repo: https://github.com/minimal-manifest-twrp/platform_manifest_twrp_omni?tab=readme-ov-file and this is the ...
0 votes
1 answer
148 views

Unlock Unisoc bootloader on Linux

I need a Linux command to unlock my Unisoc bootloader using modified fastboot. The command ./fastboot devices keeps telling me permission is denied. joseph@penguin:~/modified_fastboot$ ./fastboot ...
0 votes
0 answers
37 views

Intel Atom powered tablet running android. Can It run a Linux Distro?

I recently got my hands onto a Neso N810 i7 (ECS TA80TA1 rebranded) tablet, powered by an Intel Atom Z3735E processor, 1GB of DDR3, and 16GB of internal storage. It runs Android 4.2.2, and given the ...
0 votes
1 answer
4k views

Block Instagram for Android to access the Internet, using a software like SQUID on my Laptop/Desktop

Is there any way I could block Android Apps for example Instagram from accessing the Internet, using the SQUID software or something similar on my Personal Computer?
0 votes
0 answers
71 views

Access Pixel 2 XL "taimen" through ADB (while in the process of installing lineageOS)

I followed this guide until fastboot flash boot boot.img included and OK Then reboot in recovery mode Then "Now tap Factory Reset, then Format data / factory reset" included and OK /!\ BUT ...
0 votes
1 answer
52 views

Android/Linux system is changing the audio drivers on boot with USB mic attached

I have logged the proc/asound/cards for sound drivers below. You can see the first one is before I attach the mic array, the second one is after I attach it at runtime, and the third is after ...
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 ...
0 votes
0 answers
64 views

How to recover files from Android device on bootloop?

I have an old Android device that is stuck on bootloop. I found on another website that you can use adb for this purpose. I installed adb and found the device through adb devices command but when I ...
0 votes
0 answers
48 views

Export Recorder tracks preserve file dates

I need to copy tracks from the system app Recorder (apk: com.android.soundrecorder) onto Google Drive and/or Linux PC with file dates preserved. I've tried Send and Save options to phone SD and Google ...
0 votes
0 answers
38 views

Can't recover Storage Taken By Linux Deploy

I used the Linux Deploy app to install Linux on my phone using root Access. It seems to make a partition on my device to install Linux which took up some storage on my Phone. Now I want to recover ...
0 votes
2 answers
480 views

Hotspot DHCP issues without mobile data (dhcp4 request timed out)

By default, does the Android "hotspot" functionality provide a DHCP server to its clients? Or does it just pass DHCP info on from the network that it's connected to? I'm trying to create a ...
0 votes
1 answer
453 views

Can I run an Android emulator (with GUI) on a headless Linux server?

I have a hosted server that runs the Ubuntu server, and I was wondering if there was a way to run Android applications and get access to the Android GUI remotely, such as with a remote desktop. Also, ...
1 vote
1 answer
405 views

Why is a vendor blob needed to build an Android ROM?

Why do we need a vendor blob in order to make our custom Android ROM from the AOSP project? As far as I know, the vendor blob contains the required proprietary drivers. But these drivers we could have ...
0 votes
1 answer
305 views

Why are Android ELF files different?

When I try to run a x64 ELF file which was build for Android on my desktop PC I get a "file not found" error. I think that's normal because Android ELF files aren't compatible to normal ELF ...
1 vote
2 answers
1k views

Modifications of vendor image on Android 10

There is a vendor image in my device I want to change (unpack/mount, doing changes, pack/umount). My purpose is to update boot.img with my new kernel (in a rooted device). Unfortunately, it does not ...
0 votes
1 answer
112 views

Samsung Galaxy Tab 2 running Lineage OS not rebooting properly after `adb reboot` unless USB disconnect

I am currently facing an issue with my Samsung Galaxy Tab 2 tablet running Lineage OS. Whenever I attempt to reboot the device using the adb reboot command through adb, it enters a strange hanging ...
1 vote
0 answers
897 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 ...
0 votes
0 answers
134 views

FakeGPS apps on android are not affecting on other apps

I downloaded some fakeGPS app. enabled mock location (developer options) but some app won't take the fake location. For example tiner. The above solutions did not work for me because I was testing on ...
-2 votes
1 answer
69 views

How to make my PC become an "psudo/fake" external display for android phone via USB ports (without using any USB to HDMI dongles)

I want my Android phone to recognize my PC as its external display (psuedo/fake or virtual displays) via USB connection (USB-C - USB-A cable or TCP connection) without using any USB to HDMI dongles or ...
2 votes
0 answers
872 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 ...
0 votes
0 answers
74 views

How to resolve cannot stat /data/dalvik-cache when installing ubuntu via termux

I am trying to follow the suggestions in the answer to this question (How can I get a ubuntu desktop on my Galaxy S8 Ultra?) in order to be able to run vscode and ubuntu on my samsung galaxy s8+ ...
1 vote
0 answers
276 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 ...
2 votes
0 answers
83 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 ...
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 ...
1 vote
1 answer
129 views

Mount a MicroSD to all namespaces on Android 11

I'm trying to mount a MicroSD. As I understand it, this should be done in the global namespace. Root - Magisk. I tried: su --mm -c mount -t sdfat /dev/block/mmcblk0p1 /storage/0123-4567 nsenter -t 1 -...
-1 votes
1 answer
91 views

Anyone know what rooting an android device actually does? [duplicate]

I am wondering about what rooting my android device actually does. I know quite a lot about linux and android, so I think it just uses an exploit to install a su binary onto the android rootfs. I'd ...
0 votes
0 answers
58 views

Run avdmanager with sudo

I am running avdmanager create avd from my python script that I start with sudo -E to make my script be able to do priveldged stuff. But for some reason avdmanager created AVD inside /root/.android/...
0 votes
2 answers
2k views

Fastboot flash boot (FAILED)

I am using Ubuntu 20.04.3 LTS and when trying to boot into, or flash, the TWRP recovery bootimage image I compiled. I have no additional information on why I got this error. Just flashing twrp ...
1 vote
1 answer
2k views

How can I get a ubuntu desktop on my Galaxy S8 Ultra?

I have installed UserLand and selected Ubuntu but all I see is this (note that I am in DEX mode on a Galaxy S8 Ultra): All the tutorials say I have to set a VNC username and password but it never ...
2 votes
0 answers
114 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 ...
1 vote
0 answers
23 views

How to dig deep into mmcblk0? [duplicate]

I've got an old backup file: mmcblk0.img I'm wondering if there is any specific tool that can work with this file, as no standard partition tool has been able to view it. I think there's a chance it ...
1 vote
2 answers
102 views

adb server stutters ubuntu desktop

My environment is: Ubuntu 20.04.2 LTS (xubuntu to be more specific), NVidia driver 470.103.01, Android SDK 33 When I start adb server by running some adb commands, the UI, mouse and other things ...
0 votes
0 answers
195 views

VM acceleration is not working on another VM for Android Emulator

We want to run our instrumented tests on Gitlab. We've created a Linux runner(amd64,Ubuntu 22.04) to execute connectedAndroidTest gradle task. However we've come across some obstacles. I have two ...
2 votes
1 answer
992 views

Fastboot commands extremely slow

I'm trying to unlock my HTC U11 and I've tried to run fastboot both from the packages of my Ubuntu derivative (fastboot version 1:7.0.0+r33-2) and from the platform tools (fastboot version 28.0.1-...
1 vote
0 answers
732 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 ...
1 vote
0 answers
370 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 ...
0 votes
0 answers
107 views

Why does the emulator perform so many writes?

I'm using the Android Emulator from IntelliJ on Kubuntu. I noticed in plasma-systemmonitor that qemu-system-x86_64 continuously does on the order of a few MB/s of disk writes even as I'm not using the ...
2 votes
2 answers
2k views

Fastboot stuck on "Sending 'boot.img'" (TWRP, Moto G7 plus "lake")

fastboot version 30.0.4-6686687 Trying to temporarily boot TWRP recovery image twrp-3.4.0-0-lake.img on my unlocked Motorola Moto G7 Plus. Phone is connected via USB Type-C to Type-C cord from the box ...
0 votes
0 answers
38 views

Some tablets respond to pings, others don't

There are dozens of tablets on my table that are all connected to the same 5GHz Wi-Fi network. All IP addresses were given by DHCP in subnet 192.168.34.0/24. I want to find the ip addresses of all of ...

1
2 3 4 5
13