Questions tagged [python]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
0 answers
36 views

Does Android have a system Python?

This is a random question. In a typical Android phone (say for example Pixel 6), is there an installation of CPython? I mean Python that's used internally by the system, rather than available to the ...
Ram Rachum's user avatar
0 votes
0 answers
45 views

Alternative installation source for QPython Plugin for Tasker

I am trying to get the QPython Plugin for Tasker from the UK Google Play but despite using voucher credit, it is denied. The creator's email address is not valid. So I am wondering if anybody has a ...
barney's user avatar
  • 1
1 vote
1 answer
131 views

How to install vdirsyncer on Android?

I would like to use vdirsyncer on android. To do so, I first installed termux and than ran: apt install python python3 pip3 install vdirsyncer However, that throws the warning: Warning pip is ...
a.t.'s user avatar
  • 369
0 votes
0 answers
19 views

Add pkt, apt or any other packet manager onto the Oneplus Nord

On my phone any kind of packet manager is missing. With that - presumably - it is possible to install python on Android. Not even dpkg or rpm are available (curl would be available though). Is there ...
Cowboy_Patrick's user avatar
3 votes
1 answer
9k views

ERROR: Could not build wheels for numpy, which is required to install pyproject.toml-based projects in Android Termux

I'm trying to install numpy in Termux in Android and I'm getting this error : ERROR: Could not build wheels for numpy, which is required to install pyproject.toml-based projects I tried apt update &...
DevProd_'s user avatar
1 vote
0 answers
1k views

Running a python script on an Android device

I need to control an android app using a python script. Currently, I connect my phone to my laptop and use adb (android debug bridge). Process: Laptop sends an adb shell command to android to take a ...
willer2k's user avatar
  • 111
1 vote
0 answers
682 views

How can I downgrade/compile Python in Termux?

I started using termux 1-2 weeks ago and I'm in love with it. Funnily, the first days in, everything worked fine and then a Python update hit, and I can no longer use my Python plugins in Neovim. It ...
user avatar
1 vote
0 answers
39 views

Boot-Up System Test tools

I am a test automation script developer using Python. One of my recents tasks has been to create scripts that can output the following test cases from an Android device under test during boot-up: -...
Bill's user avatar
  • 111
0 votes
0 answers
383 views

Is there a way to access the wide-angle camera in xiaomi redmi 9 from the computer?

I'm currently trying to access the wide angle camera that xiaomi redmi 9 has. My end-goal is to be able to stream frames from the camera in a python script (using openCV). But knowing how to access ...
Javier TG's user avatar
  • 101
0 votes
0 answers
361 views

Android Bootchart log analysis

We're running Android 11 on the custom board. We're using bootchart tool for calculating the Android bootup time. Bootchart logs which are generated after enabling bootchart for which we're not able ...
Raja's user avatar
  • 111
9 votes
1 answer
7k 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 ...
beeshyams's user avatar
  • 38.6k
3 votes
1 answer
158 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 ...
yoarch's user avatar
  • 31
1 vote
0 answers
138 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 ...
Tobias M.'s user avatar
  • 111
0 votes
0 answers
40 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, ...
Brian S's user avatar
  • 101
0 votes
1 answer
712 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 = ...
Dalisay's user avatar
2 votes
1 answer
6k 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 ...
Soheil Paper's user avatar
3 votes
2 answers
2k 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 Raspberry 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/...
rfguy's user avatar
  • 51
0 votes
0 answers
172 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
mranon's user avatar
  • 37
2 votes
0 answers
254 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) ...
YED's user avatar
  • 21
2 votes
1 answer
864 views

Setting up Python so that it can be run on any Android terminal apps

I'm trying to get Python 3 to run natively on Android. By "native", I mean native Linux, just an Android variation of it. I'd like to be able to simply open a terminal and type python /path/...
Myersj281's user avatar
1 vote
1 answer
2k 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 -...
user276807's user avatar
2 votes
2 answers
6k views

How can I run a Python script in terminal emulator?

I tried running a Python script in a terminal emulator (app) with ./script.py and I get an error saying "permission denied". It is to run a Twitter bot even if I close the app. So, I googled ...
FlamingBurrito15's user avatar
3 votes
2 answers
4k 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/...
Hakunamatata's user avatar
0 votes
3 answers
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] ...
claws's user avatar
  • 983
0 votes
2 answers
528 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 ...
Hamza Ahmed's user avatar
0 votes
0 answers
928 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 ...
George Profenza's user avatar
0 votes
1 answer
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, ...
user161557's user avatar
2 votes
0 answers
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 ...
convex-body's user avatar
-1 votes
2 answers
182 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?
reeglysonforubuntu's user avatar
0 votes
1 answer
484 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 ...
DarkXDroid's user avatar
0 votes
2 answers
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....
Calculus Knight's user avatar
1 vote
1 answer
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
Carlos Manuel's user avatar
1 vote
1 answer
910 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 ...
Afrowave's user avatar
  • 121
0 votes
1 answer
5k 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")...
Siddharthan Asokan's user avatar
0 votes
0 answers
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',...
MishaP's user avatar
  • 360
1 vote
1 answer
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,
marshall's user avatar
  • 131