Questions tagged [python]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
571 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 &...
user avatar
0 votes
0 answers
131 views

Connect to frida server on same device

Is there a way to use frida on rooted emulator without the need for adb? For example, install frida tools on emulator with termux and copying the the frida-server binary on the device, connect to it ...
user avatar
1 vote
0 answers
356 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 ...
user avatar
  • 111
1 vote
0 answers
270 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
37 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: -...
user avatar
  • 111
0 votes
0 answers
218 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 ...
user avatar
  • 101
0 votes
0 answers
169 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 ...
user avatar
  • 111
9 votes
1 answer
6k 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 ...
user avatar
  • 37.9k
3 votes
1 answer
111 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 ...
user avatar
  • 31
1 vote
0 answers
85 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 ...
user avatar
  • 111
0 votes
0 answers
39 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, ...
user avatar
  • 101
0 votes
1 answer
549 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 = ...
user avatar
1 vote
1 answer
5k 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 ...
user avatar
2 votes
2 answers
1k 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 ...
user avatar
  • 41
0 votes
0 answers
67 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
user avatar
  • 37
2 votes
0 answers
231 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) ...
user avatar
  • 21
1 vote
1 answer
723 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"...
user avatar
1 vote
1 answer
1k 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 -...
user avatar
1 vote
2 answers
6k 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 ...
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/...
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] ...
user avatar
  • 973
0 votes
2 answers
521 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 ...
user avatar
0 votes
0 answers
922 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 ...
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, ...
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 ...
user avatar
-1 votes
2 answers
178 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?
user avatar
0 votes
1 answer
466 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 ...
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....
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
user avatar
1 vote
1 answer
877 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 ...
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")...
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',...
user avatar
  • 350
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,
user avatar
  • 131