Since we now have more than one solution that provides full root access between reboots, I figured I'd try writing a shell script to run fre3vo. I can... and it runs... but I get the message "this device is not supported by this exploit".
So why does it run from ADB and not a script? Does the phone have more rights/access when connected via ADB? If the script would work, we could write one that could run after every reboot (using script manager) and it'd be a permanent solution.
Mike
I am trying the same thing with the easyfre3vo package...Setting the root.redo.bat to 'run as root', and executing just seems to hang...
Any ideas?
Sent from my PG86100 using XDA App
What about that app "gscript lite", or " adb wireless"?
Sent from my 3rd Dimension of Evolution
ADB has different permissions compared to a terminal on the phone. A terminal emulator on the phone and/or a tool like Gscript doesn't have the ability to do anything in the /data/local/tmp directory like ADB does.
ADB over wifi needs root, so you can't use it to run fre3vo since you don't have root - you can use it AFTER you've run fre3vo though.
I'm looking to develop a script to do a few things:
1. Start OpenVPN
2. Wait for connection
3. SSH to a given machine using pubkey
4. Run a command on that machine
I already have OpenVPN installed and working properly. I've tried getting this working with gscript, but there seems to be a few problems:
1. When OpenVPN starts in the terminal, it doesn't release control back to the user, even with an & following the command. Though it's possible it actually does and other commands error out too fast for me to see. I've tried putting the OpenVPN start command in a separate script to call from this script, but it gives a permission denied error, even with root.
2. I cannot for the life of me find an SSH implementation for Android that will work from the command line with pubkey. I have better terminal editor pro installed, but it gives a segmentation fault when running ssh-keygen.
Does anyone know a better way of doing this?
My device is a Motorola Droid 3 running 2.3.4
I was wondering if we can manage commands like
adb logcat > somefile.txt
adb fastboot flash some.IMG
Like commands which we use during custom ROM installation or while testing it by connecting to pc.
Is there any way to manage these commands inside an android terminal emulator app.
I tried to use those command directly after switching to root access but it didn't work out for me.
Does anyone knows if it is possible and if it is what is the correct way to do it.
I am not searching for app just a way to do it through your phone.
Sent from my HOV using CM10....
Dear Sirs/Madams,
I'm new to Android development and I'm writing my very first Android apps but recently I have encounter the below problem:
I want to call reboot command in non-rooted phone but as you know, reboot command needs root permission.
I want my app to run in both rooted and non-rooted phones. For rooted phones there is no problem.
However for non-rooted phones, I am trying to find a way to restart it without root permission.
I have been thinking of calling shell command in non-rooted phones (E.g, adb shell reboot), but I don't know how to put the script file
to an apk file and excecute the script within java code.
Therefore I'd like to ask for your help to solve this problem.
Thank you very much
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.