Should I root my phone? | Sololearn: Learn to code for FREE!

0

Should I root my phone?

I am trying to create a new virtual environment .But I get permission denied because symlink file is not allowed by android. I have tried everything .The only solution seems to be to root my phone .But their are risks to it .So should I do it or is there a temporary root. Or is it safer to just ran my project without virtual environment.What should I do?

10/20/2021 9:40:15 AM

Richard

10 Answers

New Answer

+2

You can use magisk to do a "systemless" root. Safer and revertable if you keep backups and are careful if you don't know what you're doing. Virtual enviornments are usually better. Although i usually use them on a pc. What does the script do that you need to run it on a VM?

+1

yeah you'll be fine then

+1

Symlinks are allowed under android but not across different storage devices. There are also restrictions imposed by the operating system on where applications can write to. You have to specify the required permissions in the manifest file for your project. Writing an application that needs the phone to be rooted is a bad idea.

+1

Richard, different storage devices are different physical media within the device. For example the internal storage is typically found at /mnt/sdcard (usually there is a symlink as /sdcard) and the removeable sdcard is at /mnt/ext_sdcard. This equates to different hard drives on a Linux system. If you don't know what a manifest file is how are you creating an Android application? https://developer.android.com/guide/topics/manifest/manifest-intro

+1

Richard, If your code is running in the context of another app then your code inherits the permissions of that app and there is nothing you can do about it.

+1

Android emulator with root on PC

0

Slick the script doesn't do much its just a Django project .But if there is a new Django update then I would get issues

0

Yeah Slick ,Let's just hope the next version of Django isn't too different

0

How do I specify the required permission.What is a Manifest file?. By different storage devices do you mean like 32GB devices and 62GB devices? Martin Taylor

0

Well, Martin Taylor, I am not trying to make an app. Even if I was. There is always room for growth