Questions tagged [linux]

Use this tag when your issue involves a Linux laptop/PC, or addresses Linux specific topics of your Android device. (Note that running Linux distros on Android is off-topic.) 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.

Filter by
Sorted by
Tagged with
0
votes
0answers
17 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 ...
1
vote
1answer
23 views

Android asks me for USB debugging permission on one computer, but not another

I have two Ubuntu machines, a laptop and a tower. ADB works on the tower but not on the laptop. I'm using the same Android device on each, with the same adbkey and adbkey.pub. On my tower, ADB works - ...
0
votes
0answers
25 views

How do I access a SD card in an Android phone, via phone USB and Linux?

I've got a 256 GB card in my Nokia 5, which is set up to be used as phone storage, and not for portable use. However, I can't seem to be able to find any files on it. The directory in Android shows: ...
0
votes
0answers
30 views

Linux Multifunction Composite Gadget

I am trying to connect a beagle bone black to my android 10 device so that I can access the serial console. The device is listed as "Multifunction Composite Gadget" I am using "Debian GNU/Linux 9 (...
1
vote
3answers
280 views

How can i factory/hard reset/wipe a Nokia 2.2 (TA-1188) without a (windows) pc?

Having looked around hither and thither now for a night as to how to factory reset a Nokia 2.2 i'm still a bit confused and unable to do it. Holding volume-down + power on brings me to a boot screen ...
0
votes
0answers
40 views

Why `diag_mdlog` not able to write on `/sdcard` if it is fired from an Android App that has write permissions?

I am getting a weird behavior with diag_mdlog executable. I am executing it from my Android app as su -c /vendor/bin/diag_mdlog -o /sdcard/abc -f /sdcard/Test.cfg The issue is: if the android ...
0
votes
0answers
52 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 ...
0
votes
0answers
90 views

Why Android x86 9.0 boots in command line and not in GUI?

i just installed android x86 9.0c and i don't know why it doesn't boot on GUI mode and it boots only in commandline then after some seconds i can only see just a dash appearing and disappearing. I ...
3
votes
1answer
48 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 ...
0
votes
1answer
28 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 ...
1
vote
1answer
139 views

How to configure and Enable WiFi Hotspot through terminal without ROOT

How can i configure and enable/disable the WiFi Hotspot by using terminal command without ROOT? Also I want to kick user from my hotspot using terminal command
0
votes
0answers
24 views

KDE Connect filesystem expose not working on LineageOS 16

I am trying to mount my Android filesystem on my desktop and it is not working with LineageOS 16 installed. It used to work earlier before installing LineageOS on my phone which was earlier running ...
0
votes
0answers
21 views

What happens in low level when booting a Android Q (10) device?

I have read this article which introduce Linux booting process. However, even if Android system also use Linux as kernel, the surrounding software is greatly different. So I have searched this post ...
0
votes
1answer
75 views

How to make `adb reboot` work like `/system/bin/reboot`?

I have a problem with my device. When I do adb reboot then it stuck on boot in a loop. But, when I do adb shell and then reboot, it works fine. I searched over the internet and understand that both ...
0
votes
0answers
44 views

How to extract `magiskpolicy` from `magiskinit64`?

I have cloned the Magisk code at my Ubuntu machine. I have successfully run build.py and get the Magisk.zip file in Out directory. This zip contains arm, chromeos, common, META-INF and x86 folders. ...
0
votes
2answers
55 views

easy (command line) way to transfer a folder of photos from Android phone to Linux Debian desktop

I have a RedMi note 7 phone model M1901F7G, running Android 9PKQ1.180904.001; I don't want to root my new phone (it is a gift from my wife, and I don't want risking bricking it). I am an expert ...
1
vote
0answers
30 views

How to increase the sample rate of the current measured from the Android kernel?

I need to monitor some applications power consumption of my Samsung A8, programmatically. I'm doing this by accessing the files: /sys/class/power_supply/battery/current_now /sys/class/power_supply/...
0
votes
1answer
35 views

Unlocking Samsung Galaxy S7 with broken screen plugged into computer

The screen on my phone is broken, and there are a few files I'd like to get off of it. I don't care about the phone at all, just the files. I know the password, I just can't enter it on the broken ...
0
votes
0answers
18 views

Critical processes in android which are speed sensitive?

I am trying to increase the battery life of my phone by changing the power governors. One of the governor: "powersave" sets the CPU frequency to its lowest possible value. I am concerned whether there ...
1
vote
0answers
127 views

How to capture kernel panic logs when ROM failed to flash?

Background: Stuck in boot-loop when unpack and pack system.img? Short Description: I am trying to modify the system partition of my Samsung S10 5G system-as-root treble device. I have successfully ...
1
vote
0answers
346 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
0answers
367 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 ...
0
votes
0answers
349 views

How to patch `system.img` using MagiskManager patch feature to root the device?

I have a treble and system-as-root but it is not an A/B device. I have rooted it with the help of the MagiskManager patch feature. My understanding is: MagiskManager has modified the following three ...
1
vote
1answer
214 views

init: cannot execve('/system/bin/custom.sh'): Permission denied

I have a rooted system-as-root Samsung Device and I am trying to run an init service which runs custom.sh script using u:r:su:s0 SELinux context. # define service, use executable here if script not ...
1
vote
1answer
197 views

How to make SELinux permissive with `systemless-root` on a `system-as-root device`?

I have a Samsung S10 5G device that is actually a system-as-root device. I have rooted it by following the instructions given here. As the system-as-root devices have no ramdisk in boot.img but in ...
1
vote
1answer
292 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 ...
0
votes
0answers
36 views

Android Galaxy S9 can't connect to Debian Wi-Fi hotspot if it's secured

I try to connect to a Wi-Fi password-secured hotspot using an Android Galaxy S9 device. My Android smartphone says incorrect password. The hotspot kernel logs output says iwlwifi 0000:00:14.3: ...
1
vote
1answer
229 views

How To Enable Debug Mode From ADB Shell or ADB Via Terminal In Linux

so far I have put my android device in ftm mode i have tried from adb sideload now i am trying with busybox ash I'm able to run ls but anything else says permission denied or error:closed. / $ ls ...
0
votes
0answers
26 views

Phone not recognized by computers at all. No adb, usb, lsusb, fastboot

For over a year my phone had no issue connecting to my computer via usb cable. I could transfer files back and forth via adb no problem. It stopped being recognized about a month or two ago, So I've ...
0
votes
0answers
43 views

Wifite not showing network (or not working)

I am using Kali nethunter that is installed from magisk but I am facing problem with wifite, firstly I got the hashcat and other packages problem (got fixed), but after all the work I got this screen ...
3
votes
0answers
69 views

learning then mastering and using Android for a Linux “guru” using the command line? [closed]

I am a 60-year old Linux guru: coding Bismon (documented here) and using and coding on Unix since 1987 (SunOS3.2) and Linux since 1993 (but I never used Windows, and very probably never will). Of ...
0
votes
0answers
43 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, ...
1
vote
1answer
49 views

How can large amounts of files be transferred to Linux via MTP?

I'm trying to copy all of my pictures from my Samsung Galaxy S9+ to my laptop (running Linux Mint). I can transfer a few files at a time no problem, but I have amassed 1000's of files in my pictures ...
2
votes
2answers
4k views

How to unpack/repack system.img of android ROM?

I have OnePlus 6T device which has A/B partition system and has a ROM of user type i.e [ro.build.type]: [user]. This device is rooted with Magisk. I have a requirement(Want to place customized ...
0
votes
0answers
21 views

What is that TV Icon?

What is that tv icon with an X on the upper right?
3
votes
1answer
5k 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 ...
0
votes
1answer
116 views

Why isn't my Galaxy S8 popping up my Captive Portal login page?

I'm dealing with a Raspberry Pi 3 that is using hostapd to create its own wireless network. When an Android client first connects to the network, it tries to grab the page http://connectivitycheck....
0
votes
2answers
742 views

Question on installation of android-x86-8.1-r2.x86_64.rpm on Ubuntu 18.04

I installed the android-x86-8.1-r2.x86_64.rpm package on Ubuntu 18.04 using the following commands as suggested by Release Note 8.1-r2 but it didn't add boot entries to the grub2 menu. sudo apt ...
1
vote
0answers
25 views

'Recycling' off-the-shelf Android devices as server ('Toaster-Net')

Since Android devices tend to be relatively low-power un*x devices, this seems like an obvious usage, I was already able to run the basic setup of what I had in mind, but I think it's a right time for ...
2
votes
1answer
346 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 ...
1
vote
1answer
690 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 ...
0
votes
0answers
158 views

How to root Samsung Galaxy A8 (2018) from Linux?

I have a Samsung Galaxy A8 (2018) phone (model SM-A530F), running android 9. I also have a Linux PC. I want to root my phone, but any guide I have found mentions that I have to use some special tool ...
0
votes
1answer
77 views

How to make F-Droid hide data about incompatible packages?

In 2019 with F-Droid v1.22 running on an ancient DROID Pro about 95% of the much newer software is incompatible and grayed out. When browsing by category, these grayed out apps consume most of the ...
0
votes
0answers
106 views

Mount image of encrypted internal storage data partition from android P

When trying to upgrade to a newer rom, my system got a little messed up and I had to format my /data partition. I had made TitaniumBackup and twrp backups but they were on the encrypted data partition....
1
vote
1answer
242 views

How to access VNC server running in an android phone in another computer?

I have installed Ubuntu in my Android phone and I can access its GUI in my phone by connecting a VNC viewer to localhost:1. The VNC server is running inside Android. Is it possible to access this in ...
3
votes
0answers
106 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 ...
0
votes
0answers
462 views

Android NetHunter can't find several files

I'm trying to get KaliNethunter to work on my OnePlus5. I'm facing a problem though, and I really don't know what to say of it. There are several errors and they're all No such file or directory. ...
0
votes
0answers
454 views

How to unlock bootloader on Sony Xperia XA2 Plus?

I'm following the tutorial on https://developer.sony.com/develop/open-devices/get-started/unlock-bootloader/how-to-unlock-bootloader/ . Following are commands and their outputs. sudo ./fastboot ...
0
votes
0answers
61 views

Linux kernel, Hypervisor, and Android boot loader

Is it possible to run a hypervisor between the Linux kernel on Android and the boot loader?
0
votes
1answer
124 views

Can android user become a super user in android?

Is it possible to change the rights of normal user in android to super user? My requirement is to run the super user code(I want to read a file data from system directory) in a device that has ...

1 2 3 4 5 11