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
0 votes
0 answers
7 views

How can I bind mount and have exec permissions only for a certain group of processes? [closed]

I have a .mount file that has this code in it filename: mnt-android-data.mount [Unit] Description=Bind mount for android [Mount] What=/shared/android/data Options=bind,rw,nodev,exec [Install] ...
user avatar
1 vote
0 answers
29 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
19 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 ...
0 votes
0 answers
21 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 ...
0 votes
0 answers
106 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
81 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
37 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 ...
  • 1
1 vote
2 answers
55 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
27 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 ...
2 votes
0 answers
243 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 ...
0 votes
0 answers
15 views

Android camera access [duplicate]

I mean if when one app is using camera in background , is using another camera app at the same time possible?? Some people say it depends on how the applications is coded. Also the app “sound ...
user avatar
0 votes
0 answers
14 views

Rooting android phone [duplicate]

In rooted android , apps can have root permission so they can do everything. I want to know if an app perform factory reset of command rm-rf, Will it reset everything including system partition? Cuz ...
user avatar
0 votes
0 answers
63 views

Matching a kernel's config for compatible kernel modules

I'm trying to compile a kernel module for an Android device for which I don't have the source for. I have: Downloaded the exact kernel version running on my device from an AOSP mirror (4.9.170) (...
  • 1
2 votes
0 answers
165 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 ...
  • 41
1 vote
0 answers
84 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?
0 votes
0 answers
723 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
3k 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 ...
0 votes
0 answers
135 views

How to save data/settings of OS in termux?

Short story. Installed termux, installed Ubuntu 20.04 using Andronix, curl https://raw.githubusercontent.com/AndronixApp/AndronixOrigin/master/repo-fix.sh > repo.sh && chmod +x repo.sh &...
  • 101
1 vote
1 answer
168 views

scrcpy access problem with Linux

I have 2 Android devices: a tablet from Denver and a cell phone from Xiaomi (Redmi 9C), I installed scrcpy on my MX Linux pc, I have no problem to access tablet through scrcpy, but when I tried with ...
2 votes
0 answers
125 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 ...
0 votes
0 answers
124 views

Traffic from mobile apps doesn't reflect in my Burp Suite

I need to send the traffic from mobile apps to my proxy (Burp). When I finally did it, I found out that everything is working only in Windows. The traffic from mobile apps is reflected in a Burp only ...
0 votes
0 answers
131 views

Everything freezes during booting virtual device in genymotion/android studio

I can't understand what's going - every time I try to boot virtual device in genymotion or android studio my laptop just freezes and needs to reboot. Every process just stuck. Can't fix this problem. ...
1 vote
0 answers
91 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, ...
0 votes
0 answers
116 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 ...
  • 61
2 votes
1 answer
2k views

VLC for Android: No connection to local network

All of a sudden, my VLC for Android app just up and stopped showing the local LAN network shares which are Samba running on a Xubuntu 20.04 host. I have no clue to what caused this. I have verified ...
  • 410
0 votes
1 answer
599 views

MTP changes with Android 12 update on Pixel 5?

I have a Google Pixel 5 that recently updated to Android 12. Since then, it has not been able to connect to my Debian 11 Linux desktop to transfer files in the usual way. The "usual way" is, ...
1 vote
0 answers
134 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 ...
1 vote
0 answers
176 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 ...
0 votes
0 answers
40 views

ADB crashes on Raspberry Pi when certain amount of data is transferred

I have a Raspberry Pi 3 Model B Plus Rev 1.3 with Kali 2021.2 running on it. This RPi works as a little server which I SSH to. The RPi is connected via USB to an Android 8.1 device, so I can SSH to ...
0 votes
0 answers
207 views

Installing v4l2loopback and other modules on android?

I'm trying to install v4l2loopback, ffmpeg and v4l-utils onto my android device. I believe I have figured out how to install v4l2loopback (by pushing it as a signed kernel module), but I'm stuck ...
0 votes
1 answer
97 views

How can I transfer files between this phone and my laptop?

I connect my Moto G Pure phone to my laptop (running NixOS) using the charging cable of the phone, with the phone turned on and with it turned off. In both cases, the phone doesn't show up in the ...
  • 445
0 votes
0 answers
19 views

How to install gapps on anbox for linux [duplicate]

I want to install gapps on Anbox. Below is a screenshot of Settings, about device. I'm hoping to find out what version of gapps should be used.
0 votes
1 answer
269 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 ...
1 vote
1 answer
195 views

File attributes on Android (Linux): Any way to make a file fully writable but not deleteable?

I tried chattr with the +a (+i is even more restrictive), but it immediately caused app panic aka "app has stopped". What I want to do is make a file & folder undeletable. You can ...
3 votes
0 answers
818 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 ...
1 vote
0 answers
123 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 ...
  • 11
0 votes
0 answers
102 views

How to navigate system image?

I've got a complete system backup mmcblk0.img I've tried various linux-based tools in order to be able to navigate inside this file (and thus access specific files or folders), but have so far been ...
  • 1
0 votes
0 answers
473 views

How to make a really complete backup of an Android device?

AFAIK, all Android partitions are listed in /dev/block/by-name. Assuming device encryption is turned on, if I backup all partitions with e.g. (one at a time) for PARTITION in $(ls /dev/block/by-name) ...
user avatar
0 votes
1 answer
83 views

Remote access to Android local network

I have devices connected to Android phone hotspot and phone have internet through LTE. I need access in my phone local network to access all devices web interface. What solution can you recommend? I ...
0 votes
1 answer
1k 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 ...
2 votes
1 answer
241 views

What file systems can I use with my SD card on a Samsung A10S?

I'm using a Samsung A10S phone. I use Arch Linux, no Windows, and I want my phone's SD card to be highly compatible with my PC. The default SD format seems to be vFAT which disallows many special ...
0 votes
1 answer
443 views

How to mount Andoid 10 file system on Ubuntu 20?

On the phone, I did Settings --> Developer Options --> Default USB Configuration --> Transferring files / Android Auto Hoping that would mount its filesystem on Ubuntu 20 when connected USB....
1 vote
0 answers
395 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 ...
1 vote
0 answers
191 views

backup on Linux desktop of an android phone

I am fluent with Linux command line (using Linux since 1993). I have a Ubuntu 21.10 desktop (with root access, and good fiber-optic connection to the internet). My mobile phone is a Redmi Note 7 (...
1 vote
0 answers
23 views

After "du -a", video file format not supported in android

I connected my android device to ubuntu, and ran the command du -a . | sort -n -r | head -n 10 by going to the home directory of the android file system to know the top 10 largest folders occupying my ...
0 votes
0 answers
394 views

How to mount mmbclk0 for data recovery using testdisk and the like?

No standard Linux tool seems to be able to mount mmcblk0.img The partition table isn't something regular tools know of. Testdisk knows nothing of it either. For background, I formatted the device by ...
  • 1
0 votes
0 answers
334 views

Commands failing to write due to protocol error in Fastboot using Linux Mint on ONN 100015685-E

FAILED (command write failed (Protocol error)) Any command I try to run in fastboot fails to write ONN Surf 100015685-E I tried using Windows and kept having problems so I'm trying Linux I'm trying ...
2 votes
1 answer
318 views

Native Linux on Android's SOCs

I wanted to know for quite some time why linux operating systems are not ported to phones or tablets SOCs with android? Like how they are on desktops and laptops. I know linux can run on various ...
  • 188
0 votes
0 answers
49 views

Linux on Android

I'm currently working on Android applications development. The projects are majorly about management and integration of Android applications on linux. and deployment of the codes on my applications, ...
0 votes
0 answers
1k views

How to Autostart App on Android TV

I'm using an Amlogic TV Box with Android 9. I'm trying to get an app to launch at startup, but the app will not launch. The method I'm using is: /data/local/userinit.sh #!/system/bin/sh am start com....

1
2 3 4 5
13