Questions tagged [python]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
8
votes
1answer
508 views

How do you root a device with Magisk when it doesn't have a custom recovery

This is a self answered question to address the subject of title. With a recovery in place, rooting with Magisk is straightforward,it gets a tad difficult when you don't have a recovery.This was ...
3
votes
1answer
74 views

Android execute script at logout

I would like to execute a script at logout with my GS7 android 9 (Resurrection Remix). I see that it is advised to use tasker. I guess it is possible to do that without installing a graphical ...
0
votes
0answers
33 views

How to run Python interpreter embedded in apk and run script?

I would like to know how I can go about running a Python interpreter that is embedded inside an Android Apk and making it run a .py script, or a pyc script. How can all this be configured from code?
1
vote
0answers
57 views

Download all Reviews/App-Rattings from a App on Google PlayStore

I'm searching for a way to download all Ratings with Comments from an App on Google Play Store. The best way would be to do this directly in python. I have tried to download the whole website with the ...
0
votes
0answers
33 views

Is it possible to have shell access to Trusted Certificates

I have an Android Application that launches Python via JNI. Inside of Python I have web requets that I make, some need to be secure. I can configure the APK to be able to access a User CA certificate, ...
0
votes
1answer
221 views

ADB connect to device with Python

Can I connect to an Android device for the first time with python adb, in USB debug mode, without having to manually allow the connection? This is my code from python adb library: signer = ...
0
votes
0answers
33 views

Run PyOpenCl on android device

Does anyone have experience running PyOpenCl on Android Device through an Application or any other way? I can't seem to find any leads to begin with. The specifications of my device are as follows: ...
1
vote
1answer
2k views

How to install new Python modules in the Dcoder app?

The Dcoder app supports the Python programming language. However, for a code that requires 3rd-party modules (e.g. mlxtend), it will show the following error when running: Traceback (most recent call ...
1
vote
1answer
684 views

Install Python to run speedtest-cli on android phone with no access to device - via adb

I want to install python on an android phone (the phone is connected to a pi so I don't have any GUI or physical access to the device). I can connect to the phone via adb shell and run/install ...
0
votes
0answers
37 views

Where is usually located the Python Interpreter on Android devices?

I have installed qpython. Just don't know what exactly is an interpreter neither where should i look for it on Android devices. Thanks
1
vote
0answers
168 views

Termus/Python - How to mark unread SMS messages as read?

I made a simple SMS reader script with Python and Termux/Termux API (I use termux-tts-speak to read the messagees and execute the script from Termux). The script reads messages (with termux-sms-list) ...
1
vote
1answer
575 views

Python on android (not the usual solutions)

I'm trying to get Python 3 to run natively on android. By "native" I mean native Linux, just Androids variation of it. I'd like to be able to simply open a terminal and type "python /path/to/script.py"...
1
vote
1answer
997 views

Unable to install PyCrypto

I'm installing PyCrypto because it is a dependency of another package. The installation always ends in an error in Termux (pip install pycrypto): Command "/data/data/com.termux/files/usr/bin/python -...
1
vote
2answers
5k views

How can I run a python script in terminal emulator?

I tried running a python script in terminal emulator (app) with "./script.py" and I get an error saying "permission denied" so I googled how to do this and it said I have to download a file called ...
3
votes
2answers
2k views

How to install python in android rooted device?

I am trying to install python in my android device but it fails. For references i have used scripting language for android and python for android apks from the below link: https://github.com/...
0
votes
1answer
59k views

Android Emulator - INSTALL_FAILED_NO_MATCHING_ABIS: Failed to extract native libraries, res=-113

When I try to install an apk file through the monkeyrunner Python script, getting the error INSTALL_FAILED_NO_MATCHING_ABIS: Failed to extract native libraries, res=-113. How can I resolve this issue? ...
0
votes
3answers
3k views

Downloading using youtube-dl and QPython on Android

I used this tutorial to install youtube-dl and QPython on Android But when I run the command youtube-dl https://www.youtube.com/watch?v=D5nxkynkSDI It throws the following error: [youtube] ...
0
votes
2answers
498 views

How to install python on my Android GT-P7510?

My Samsung tablet 10.1 GT-P7510 is running Android 4.0.4. I have root access to the device. What is the best way to install python on my device. I have tried QPython - Python for Android however ...
0
votes
0answers
901 views

How to access GNURoot Debian executables from outside the app?

I've just setup GNURoot Debian and I could install Python 2.7. However, I'd like to run Python 2.7 outside of the GNURoot Debian Terminal Window. For example, if I ssh into the device, I'd like to be ...
0
votes
1answer
1k views

How to enable pip, QPython to write to Android filesystem?

I have been following this guide to install youtube-dl on my Android phone. http://www.arulraj.net/2015/11/download-any-videos-in-android-using-youtube-dl.html However, when downloading the videos, ...
2
votes
0answers
4k views

ipython notebook on android

im trying to run ipython notbook on my android. Followed this link: http://forum.xda-developers.com/nexus-7-2013/general/ipython-jupyter-notebook-android-t3037226 it worked fine but the kernel is ...
-1
votes
2answers
168 views

Invoking in the terminal

I have downloaded Python 3 and a terminal emulator. But when I type python3 in the terminal, it says "not found". How do I run the python interactive shell inside the terminal?
0
votes
1answer
450 views

Android Tethering - Shell To Python Code (SL4A API)

I know I can convert how I call an activity from within a shell to python code. So given the correct code can someone help me in that conversion? I know I can use pyjinus so that should be another ...
0
votes
2answers
2k views

How to display Python script output on screen, similarly to Conky

I use Conky as a desktop monitoring software. I also use it to monitor stock prices and portfolio net worth through a Python script. Basically, I fetch the stock prices from Yahoo Finance using curl....
1
vote
1answer
1k views

How install python interpreter on an android device

I cant download the http://code.google.com/p/android-scripting/ because in my country is block this URL. Where can I install the python app for android
1
vote
1answer
806 views

Python 3 on Android using TerminalIDE

I want to code Python 3 on my Android device. So I went through Lanky Cyril's blog post on using the Terminal IDE to put all that I needed to do code on an Android terminal. For Python 2.X that is ...
0
votes
1answer
4k views

Check if an app is installed on the device

I'm trying to use the package name and determine the apk path of an app to check if my app is installed in the device. pathCmd = './adb shell pm path ' + packageName pathData = os.popen(pathCmd,"r")...
0
votes
0answers
2k views

Using Popen to invoke adb sendevent

I am running into a strange issue, running adb shell sendevent x x x commands from commandline works fine, but when I use any of the following: subprocess.Popen(['adb', 'shell', 'sendevent', 'x', 'x',...
1
vote
1answer
1k views

Python with matplotlib

Is there a way to set up python 2.7.x + matplotlib on a tablet so that you can run simple standard python code? I would like to be able to run the same scripts I run on my Linux desktop,