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

Help me create a command in Linux [on hold]

Help me create a command in Linux, with the contents of cmd here. @ECHO OFF Setlocal EnableDelayedExpansion set INPUT=E:\Dowload set OUTPUT=E:\Dowload for %%i in ("%INPUT%*.ogg") DO ffmpeg -loop 1 -i ...
-2
votes
0answers
24 views

Please help me to change the command cmd Linux Termux [on hold]

Here's the cmd command. It helps me create mylist. txt containing all the paths of the files (for %i in ("E:\in*.mp3") do @echo file '%i') > mylist.txt I want to use this command in Linux Termux ...
0
votes
1answer
30 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
15 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
42 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
19 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
0answers
23 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
39 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
68 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
84 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
82 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
49 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
40 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
59 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
26 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
90 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
23 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
30 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
64 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
34 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
37 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 ...
1
vote
2answers
2k 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
20 views

What is that TV Icon?

What is that tv icon with an X on the upper right?
3
votes
1answer
2k 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
62 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
459 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
23 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
199 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
353 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
116 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
58 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
43 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
92 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
105 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
253 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
434 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
50 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
72 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 ...
0
votes
0answers
169 views

Flashing stock LG firmware in GNU/Linux?

I'm looking for a way to flash stock LG firmware for the LG M700DSK (Q6) in GNU/Linux. I have tried running LG UP though Wine though it doesn't seem to open the installer for LG 8998 USB DLL. The LG ...
2
votes
1answer
927 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 ...
0
votes
0answers
81 views

Notepad/text-editor encrypt on Android, decrypt on linux — and vice-versa

I'm looking for an encrypted notepad or text editor for Android which encrypts files in a way that allows them to be decrypted under Linux. I also want this to work in the opposite direction: ...
1
vote
1answer
176 views

bricked mi a2 lite

Today I had a bad idea and decided to try to install Gcam on my A2 lite. So I installed ADB and Fastboot on my PC (linux), then flashed TWRP with the aim of later installing Magisk. However, ...
0
votes
1answer
141 views

Can't chown or chmod files on android phone

Hi there i got some files on my android phone and want to make them executable. Permissions are root:sdcard_rw. I cant remove tha sdcard_rw with chown, and cant make the files executable with chmod.
1
vote
1answer
539 views

How to set SELinux enforcing, config file not found?

I have Samsung Galaxy J7 Core (SM-J701F), I'm running Magisk on my device and I ran the SafteyNet test and it failed. While trying to solve this I tried to change selinux state to enforced by editing /...
0
votes
0answers
33 views

how do I connect an android phone to a Linux wifi? [duplicate]

I am using my Debian Linux computer (called 'theresia') as a wifi access point. I can use the network from iOS, Meego and Maemo, and from my other Debian machine obviously, but none of my Android ...
0
votes
0answers
24 views

How come desktop Linux has /dev/mmcblk0 and Android /dev/block/mmcblk0?

Why is mmcblk0 at /dev/block/mmcblk0 in Android and /dev/mmcblk0 on desktop Linux distributions? Other block devices (listed using lsblkcommand) are also under /dev/. Why is it under /dev/block/ on ...
0
votes
1answer
35 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?
1
vote
1answer
176 views

Forgot password on Samsung Galaxy S7 Edge, trying to access for Google Authenticator

I never wrote my password down for my old S7 Edge and managed to forget it. Overthinking the security and privacy, I also never signed up for Samsung's service and Google's Find My Phone only ...
3
votes
1answer
364 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 ...