how to root android emulator - Android Q&A, Help & Troubleshooting

i found a tut for this but i get "no device" after
adb root
adb remount

Have you got lucky with rooting the Android in qemu emulator inside Android Studio?
For a Task, I also need to root the PlayStore version of the Android Emulator.
ADB root say "adbd cannot run as root in production builds"
Installing the Magisk Manager doesn't give me the option to install su, only download the zip or patch an image.
I also try to mount the "userdata-qemu.img" with "ImDisk Virtual Disk" and place the su file directly,
but if I open it in Windows Explorer, it needs to be initialized.
I Think the filesystem is not readable by Windows. I try to investigate more and more.

@reverser69
What emulator are you using? At least default API 23 x86_64 emulator is rooted by default.

jwoegerbauer said:
@reverser69
What emulator are you using? At least default API 23 x86_64 emulator is rooted by default.
Click to expand...
Click to collapse
I Use the API 29 x86_64 with Google Play Services.

well got BS 4 and BS tweaker working

Related

[Q]My Files.apk root access

Hey Guys,
Would it be possible to give Samsung's stock app "My Files" root access through su or perhaps modifying the code? I purchased root explorer but to be completely honest like the feel of the original app.
No.
Ability to access root must be built into the application. There are only a few that have it. Root Explorer is by far the most popular and most used.
Isn't android based on linux, and don't applications run like programs? So in theory couldn't you use a sudo or su like command that would give the program full rights?
I know it's got to be possible given the environment that it's running in and I feel like it would be relatively rudimentary.
With root access you can use android terminal emulator and the su command to get root access. Or you can use Android Debug Bridge (adb) from a Windows, Mac or linux computer. Since you are new to android, perhaps you should do some searching and reading so you can gain some general knowledge. In the guides linked in my signature you can find some directions for using adb and terminal emulator.
But still, installed applications will only function the way they are programed, and MyFiles does not have root access.
Thanks for your help, i'll look into adb. Inevitably I want to start developing on the kernel level but thought this would be a good place to start.
Have you tried ES File Explorer? It is free and has root access (must be enabled within app settings).
I also was not a fan of Root Explorer.

How install python on android? so that it works with su, cd, ls ... commandss?

Hey,
ive got a moto g and its my first android and its rooted and bootrom is unlocked, and ive installed terminal emulator, but i cant find out how to install python so that it works in terminal eit su, cd , ls ... commands?!?
ive installed qpython app from playstore but you cant do commands like su, cd .....
ive tried ping in terminal rmulator and it wotks so you can enter internet over terminal emulator, so i tried apt-get install python but it says no apt-get command foundor something like this, so i hope someone can trll me how to install python on android with working commands( su ...) so that it can enter filesystem directorys like /sdcard....
please help
Hi,
You don't need python to run commands like su and cd! All you need is a nifty binary called 'BusyBox'. Since you mentioned apt-get, I assume you come from Ubuntu? Well I'm sure you're familiar with BusyBox. Look for BusyBox installers in the Play Store.
Once you've installed Busybox, enter this command in the terminal emulator to let BusyBox symlink its applets:
(Are you sure you're rooted? Running su successfully is a must.)
Code:
su
busybox --install /system/xbin
If all goes well, then you should be able to use Unix utilities like cd and ls.
Sent from my GT-I8730 using Tapatalk
aureljared said:
Hi,
You don't need python to run commands like su and cd! All you need is a nifty binary called 'BusyBox'. Since you mentioned apt-get, I assume you come from Ubuntu? Well I'm sure you're familiar with BusyBox. Look for BusyBox installers in the Play Store.
Once you've installed Busybox, enter this command in the terminal emulator to let BusyBox symlink its applets:
(Are you sure you're rooted? Running su successfully is a must.)
Code:
su
busybox --install /system/xbin
If all goes well, then you should be able to use Unix utilities like cd and ls.
Sent from my GT-I8730 using Tapatalk
Click to expand...
Click to collapse
Thank you for answering me,
i tell you whats my problem, i need to run a python file, for example: python dummy.py 12345
then it createsa txt file in the path where i am!
that what it should do, but on my android (busybox is installed and its rooted and bootrom unlocked) i ve installed terminal emulator from play store and su and cd and ls command works, but i cant run python files, it says python not found even when i installed pythonforandroid, so i try to apt-get install python but it says apt-get not found, then ive installed qpython from play store, but it doesnt do what i want too !
so my question is, is there any way to tun my python file that creates a new file (its like a passwordgenerator) ???
Basically, you don't need superuser to run simple Python or to develop using it.
If you are looking for Jupyter type IDE on android, visit the following link here.
It will help you install Python and run ipython notebooks without hassle.

[Q]

Hi,
I'm trying to run a bash script on Android without root access (Nexus 4) using Terminal IDE app. Script fails with output "parent shell dies". I tried to run the same script on Ubuntu on Android phone with root access and script worked fine. In both cases I used the same version of bash shell. Does anyone know how can I solve this?

Is there a way to run Snapchat on Root Device like Android X86?

I have tried to run Snapchat after installing, it crashes. After all i tried Switch Root and also to delete the liblooksery file, nothing works. Switch Root cannot turn of root i also dont know how i can root Android X86 Again because i have it installed on my notebook in another partition. I also cannot find Superuser in my settings but i have a terminal emulator and if i type su there pops up a window and i can see that Android X86 is running Superuser.
I also tryed App Cloner and set the options to hide that the system is rooted. I Mean the most people talk about Switch Root in 2016 or 2017 and the Snapchat Team is not sleeping.
My Question is there any way to get Snapchat running?

[ COMPLETE LINUX INSTALLER ] can't get permission from terminal app. Please reinstall Complete Linux Installer

Hi.
I'm a bit new to android rooting but have experience with linux.
I was trying Complete Linux Installer app for installing Kali Linux on my android phone.
I follow the instructions the app provides by downloading the zip folder and extracting the two files into a directory called kali in /
Before this I installed both the terminal app and the Android VNC app on my phone.
When i try to boot linux it says "unable to get permission from terminal app. Please reinstall Complete Linux Installer"
...and I did. But to no surprise, it still didn't work.
The app requires rooted android. rooting android phone is a bit more than just getting root privileges on shell. You need to unlock bootloader and root the device first.
Also please note you can't run linux on android, these kind of apps just provide some chroot environment for command line you can connect to VNC or SSH.
The app mentioned is outdated, but you can use Linux Deploy.

Categories

Resources