General :: How To Install Python On Android With Working Command SU

May 11, 2014

I've 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?!?

I've installed qpython app from playstore but you cant do commands like su, cd ..... I've tried ping in terminal emulator and it works so you can enter internet over terminal emulator, so i tried apt-get install python but it says no apt-get command founder something like this, so how to install python on android with working commands( su ...) so that it can enter filesystem directories like /sdcard....

General :: How to install python on android with working command SU


General :: (SL4A) Importing PHP Or Python Script From Github To Execute From Command Line

Jun 1, 2013

What I am trying to do is get either nest-api in PHP or pynest in python to run out of SL4A in order to control my Nest thermostat ultimately out of Tasker. Both are found on github, but I can't link to them as I apparently need ten posts to do so. So a google search for "nest-api github" and "pynest github" will have to do I suppose.

I have absolutely no issues getting either to run out of Terminal on my MacBook Air, but for whatever reading the SL4A shell seems to escape my understanding. I would rather have the PHP script work, as it has more options for things I can set, which I like. Where to put the nest.class.php on my phone in order for the PHP shell to reference it when running the example.php or any script I write myself. When I put both files in the sdcard/sl4a/scripts folder and try to run either from within either sl4a or sl4a's shell I get a call to undefined function error.

For the python script, I'm not sure how I need to import the module so that I can call it with nest.py at the beginning of my command line prompt and follow it up with the user name and password and so on. I've done everything including trying to create an .egg file, which I've since been told is not necessary, and that I simply have to put it in the /sl4a/scripts folder. That doesn't make sense to me though, as I needed to run the setup.py command on my computer in order to start using it, and the .egg file should be the equivalent of that on the phone, no?

So what I am looking for is the foolproof way to get either a php or python script running through the shell that isn't actually hooking into the Android environment at all, which is what all the writeups I have found in my searching seems to pertain to. Then eventually make sure that they are available in a way that Tasker can call them. I should also note that all this has been done in an emulator through eclipse until this point, as I didn't want to go screwing around with my brand new Nexus 4's file structure until I had the best practice perfected.

View 2 Replies View Related

Android :: How To Install Python On Droid?

Jun 16, 2010

As the title ,I'm an absolutely newbie ,and I don't know how to get my milestone install some valuable linux software , for example ,MySQL ,Apache ,and so on. And ,there's any tool that I can use to operate remotely by linux command line on my lap top through usb or WIFI ? Or can I get some app running on mobile side can using linux commands?

View 6 Replies View Related

Android :: Way To Install Python Packages On Droid?

Apr 29, 2010

I want to install a python package from source on android. Is this possible? I tried in the console to run the py install files, but disturbing (.core, ccompiler) isn't being found. Is it possible to still install them?

View 2 Replies View Related

Android :: Python Not Working / How To Fix?

Nov 15, 2010

I have installed python environment using python_for_android_r1.apk file. While installing, it installed some other 'extra packages' also so almost 8 - 10 MB files are instralled looks like. I got an icon in my applications, as "Python for Android". But now when I try to execute this by clicking on this icon, it gives a blank screen with a button with a text "Uninstall" . Not sure what else I need to do to get this work.

View 4 Replies View Related

General :: Install CWM From Command Comport In Android - Phone Bricked?

Feb 20, 2013

i tryed to install cwm from command comport in android so my phone bricked and when i start it black screen apperas so want to install cwm from zip.i can run only android system recovery(3e) so is any .backup file or .zip file to i use as apply update from sdcard or restore user data to install cwm than i can flash rom and new android version and hope it will works

i have tryed recovery-clockwork-5.0.2.6.zip it starts flashing and i got

Error: invaild OTA package
update.zip is not correct
Installation aborted

View 1 Replies View Related

General :: How To Install APK From ADB Command Line

Feb 15, 2012

How do install a *.apk from adb command line?

First I tried to cp the *.apk from /sdcard/backups/apps to /system/app (after rw mounting the file system of course)

I did successfully move it to /system/app but the *apk was not "installed"

then I rm it and tried:

install /sdcard/backups/appa/<package>.apk /system/app

and it copied the *apk to /system/app but still was not "installed"

I also tried:

install /system/app/<package>*apk but got the error dialog:

Code:

BusyBox v1.19.0.git.adrynalyne (2010-12-21 22:03:30 MST) multi-call binary.

Usage: install [-cdDsp] [-o USER] [-g GRP] [-m MODE] [SOURCE]... DEST

Copy files and set attributes

Options:
-cJust copy (default)
-dCreate directories
-DCreate leading target directories
-sStrip symbol table
-pPreserve date
-o USERSet ownership
-g GRPSet group ownership
-m MODESet permissions

My goal is to figure out how to use adb command line and also I want to install an app as if it were a pre-installed app. For example pre-installed apps don't show up as a removable app and stay installed after a factory reset.

View 9 Replies View Related

General :: Using Find Command To Install APK Files?

Dec 11, 2013

I would like to "deploy" .apk files to a set of tablets for student use in the school. Every now and then I will be required to install new apps across a range of devices. I have sorted out the transfer of the apk files to the tablets using an app called "FolderSync" so that the files will be local on the SD Card. Hopefully this part should not be problematic. Due to the fact that the tablets will be used by students, I want to make the process of installing the apps as automated as possible. Using the command "pm install <app.apk>" command I have achieved this step also. My trouble is that I will require the script to improvise and find all apk files in a folder and install them. So far I have tried the following:

Code:
su
cd /sdcard/FolderSync/
find *.apk -exec "pm install {}" ;

However this returns "find: pm install app.apk: No such file or directory" This may be more of a Linux issue than android, or maybe even just me missing something obvious, however I have tried adjusting the syntax here and there and can't figure out how to successfully install a directory of .apk files.

View 2 Replies View Related

General :: Busybox Dd Command Not Working?

Feb 28, 2012

I'm currently working on a project which involves imaging Android phones - specifically, the program I've written is mean to automate identifying the memory block containing the userdata and then using the following sequence of commands (using Android Debug Bridge) to copy it to the computer that the phone is connected to:

Code:
adb forward tcp:5555 tcp:5555
adb shell
busybox nc –l –p 5555 –e dd if=/dev/mtd/mtd[mtd block number] bs=4096

This is done in command prompt and then you have to manually open another command prompt and type in:

Code:

adb forward tcp:5555 tcp:5555
nc 127.0.0.1 5555 | dd of=[chosen file name].bin bs=4096 -- progress

This copies the memory block over without any problems when done manually and even shows you in real time how much data has been transferred.The problem I have is with automating the process in C#. Specifically, I can get every stage of it to work through using a process to write the commands to standard input and using a tcp listening port to receive the data. Apart from this crucial element of the process:

Code:
adb shell "busybox nc –l –p 5555 –e dd if=/dev/mtd/mtd[mtd block number] bs=4096"

For some reason, no matter how I try to phrase it or do it, C# hates that command and won't execute it. I can manually type the exact same thing into the command prompt and it works fine but trying to do it in C# just leads to busybox acting as though I typed the command in incorrectly - this is what it gives me:

Code:

BusyBox v1.15.2 <2009-11-27 10:38:30 GMT> multi-call binary

Usage: nc [-in] [-wN] [-l] [-p Port] [-f FILENAME|PADDR PORT] [-e PROG]

Open a pipe to IP:port or file[code]....

At the moment I'm using a script to send the commands to the command prompt but that's a kludge that I'd really prefer not to have to use.

View 4 Replies View Related

Android :: Install Command To Install Apk In System/app

Nov 17, 2009

Anybody knows the install command to install an apk in system/app directory .

View 2 Replies View Related

General :: Listen To Voice Command Not Working Anymore?

Dec 6, 2012

Yesterday I was trying to showoff the features of our phone to a friend and decided to demo the listen to command, but it didn't launch a song it just did a google search.

I have my langauge set to English (US). I cleared the Google Search application data.

Other voice actions work, likes "send text", "navigate to", "call", pizza, "how old is Barak Obama". For some reason "Listen to" just does a google search. SGH-I317M

View 4 Replies View Related

General :: Device Information With Python Script

Nov 19, 2012

How can i get device information from nonrooted device with python script? As I understand python don't have API like os.android.build in Java.

I need to get system information from device, such as cpu frequencies, gpu vendor and other (like in Antutu and another benchmarks).

I know how to write python script with $getprop information from shell, and from buil.prop file in the system files, but it isn't enough. I also know how to get these information with shell command and busybox installed, but I shouldn't root them.

View 1 Replies View Related

Android :: Logcat Not Working On Command Prompt - Freezes

Oct 13, 2010

So I can see Logcat working with no problems in my eclipse IDE. However, when I try to run it in a command prompt, i get a bunch of logcat data for about a second, and then the whole thing freezes.

View 2 Replies View Related

General :: Install Rom Which Has Working Arabic Language

Mar 4, 2014

I have lg su760 the Korean version and I wanted to install a rom which has working Arabic language.i followed the guides but I couldn't get the omap drivers to work because I don't have the lg original usb cable,but mine works well with adb.i rooted it using super click and installed cwm.when I installed the rom ,it didn't boot again but got stuck at the lg logo.,then I found out that I had to flash xloader and boot.img.now I can boot to cwm but cannot mount usb and it doesn't read sd cardsas it gives me an error.

View 9 Replies View Related

General :: Speech To Text No Longer Working - Can't Install App To Fix

Jun 8, 2012

I rooted my phone (Samsung Galaxy S Showcase i500) the other day and deleted a lot of the stock apk files, the ones that I thought I didn't need .

One of them was Voice Search (and also voice commands, if that matters). Now, my speech or voice to text in my text messaging program is not working. Whenever I press the mic icon, nothing happens. Through searching I think I've determined it's because I deleted the voice search apk?

Whenever I go to the Market to download Google Voice Search, the Market says its already "installed"...but obviously its not?! I've tried downloading the file from other places but when I try to install it says "There is a problem parsing the package."

Bottom line, how do I get my speech to text back?

View 5 Replies View Related

Android :: Need Scripting App Like Python

Nov 8, 2009

Hey I've been playing with my droid and I was wonder whether there are any scripting apps. Something like python on the phone? Is it possible? Is there anything like that?

View 4 Replies View Related

Samsung Captivate :: Wifi - Error 'mmc1 Got Command Interrupt 0x00060001 Even Though No Command Operation Was In Progress

Sep 6, 2010

I have a rooted samsung captivate with sideloading enabled. After experimenting with different wifi tethering apps from the unofficial market, I began experiencing difficulties with my wifi connection. Even after uninstalling every app that I thought was changing the wifi state, the problem still persists. I can turn on the wifi and it will act normally for about 30 seconds before turning off without user intervention. In dmesg, the error is as follows: 'mmc1: Got command interrupt 0x00060001 even though no command operation was in progress.' Is this caused by an app or is this a more complicated problem?

View 15 Replies View Related

Android :: How To Compress Data To Obtain Same Value In Python?

Mar 11, 2010

I am porting a Python application to Android and, at some point, this application has to communicate with a Web Service, sending it compressed data. In order to do that it uses the next method:
def stuff(self, data): "Convert into UTF-8 and compress."
return zlib.compress(simplejson.dumps(data))

I am using the next method to try to emulate this behavior in Android:
private String compressString(String stringToCompress) { Log.i(TAG, "Compressing String " + stringToCompress);
byte[] input = stringToCompress.getBytes();
// Create the compressor with highest level of compression Deflater compressor = new Deflater();
//compressor.setLevel(Deflater.BEST_COMPRESSION);
// Give the compressor the data to compress compressor.setInput(input); compressor.finish();
// Create an expandable byte array to hold the compressed data.
// You cannot use an array that's the same size as the orginal because
// there is no guarantee that the compressed data will be smaller than
// the uncompressed data.
ByteArrayOutputStream bos = new ByteArrayOutputStream(input.length);
// Compress the data byte[] buf = new byte[1024];
while (!compressor.finished()) { int count = compressor.deflate(buf);
bos.write(buf, 0, count); } try { bos.close();
} catch (IOException e) { } // Get the compressed data byte[] compressedData = bos.toByteArray();
Log.i(TAG, "Finished to compress string " + stringToCompress);
return new String(compressedData);
}
But the HTTP response from the server is not correct and I guess it is because the result of the compression in Java is not the same as the one in Python. I ran a little test compressing "a" both with zlib.compress and deflate.
Python, zlib.compress() -> x%9CSJT%02%00%01M%00%A6
Android, Deflater.deflate -> H%EF%BF%BDK%04%00%00b%00b
How should I compress the data in Android to obtain the same value of zlib.compress() in Python?

View 2 Replies View Related

Android :: Can I Port Existing Python Apps On ASE?

Feb 10, 2010

I learned that the Android Scripting Environment (ASE) supports python code. Can I take my existing python programs and run them on android? Apart from the GUI, what else will I need to adapt? How can I find the list of supported python libraries for ASE?

View 1 Replies View Related

Android :: Starting - Java Or Python - SL4A

Jul 27, 2010

I just ordered an Android smartphone and want to start playing around with creating my own applications. Now the question is which language to use, the native Java or Python using SL4A (former ASE).

I tend to Python, as I know it much better than Java, but I'm wondering what I would be missing using a "second class" language on Android. On the SL4A website it is also stated to be alpha quality software, which is not exactly encouraging.

I'm also not quite sure what the limitations of the scripting environment are and if they would be problematic.

View 3 Replies View Related

Android :: How To Write Executing Python Scripts In Droid?

Aug 25, 2009

This link says that Android support Python, Lua and BeanShell Scripts, subsequently for Perl too. If it is so, is it possible for developers to write python scripts and call them in their standard Java based android applications?

View 2 Replies View Related

Android :: Making Python Service To Run In Suspend State

Jan 16, 2010

Here's my Python script written using android-scripting:

CODE:............

while True:

CODE:.............

It basically vibrates every minute (like a motivator). However, when the phone is locked with screen blanked out, I don't sense any vibration. Perhaps Android is freezing the script (and hence the while loop)? Note that I am indeed running this script as a service (long-tap and click 'Start as service').

Is there a way to make this script work all the time regardless of the phone suspend state?

Update 1: I do hear the vibration occasionally, not every minute .. but rather like every 5-10 minutes randomly.

Update 2: This problems occurs if I run the script normally (not as a service). Seems like "time.sleep" is not sleeping for the specified time.

View 4 Replies View Related

Android :: Evaluate A Script - E.g. Python - In Java Platform

Aug 18, 2009

Is it possible to evaluate a string of python code (or Perl) from Java when developing Android applications?

I am try to do something like evaluating a text-input script:

e.g.

CODE:...........

View 2 Replies View Related

Android :: Modify Python USB Device Driver To Only Use Vendor_id And Product_id - Excluding BCD

Mar 27, 2010

I'm trying to modify the Android device driver for calibre (an e-book management program) so that it identifies devices by only vendor id and product id, and excludes BCD.

The driver is a fairly simply python plugin, and is currently set up to use all three numbers, but apparently, when Android devices use custom Android builds (ie CyanogenMod for the Nexus One), it changes the BCD so calibre stops recognizing it.

The current code looks like this, with a simple list of vendor id's, that then have allowed product id's and BCD's with them:

CODE:..........

The line I'm specifically trying to change is:

CODE:............

Which is, the line for identifying a Nexus One. My N1, running CyanogenMod 5.0.5, has the BCD 0x226, and rather than just adding it to the list, I'd prefer to eliminate the BCD from the recognition process, so that any device with vendor id 0x18d1 and product id 0x4e11 or 0x4e12 would be recognized. The custom Android rom doesn't change enough for the specifics to matter.

The syntax seems to require the BCD in brackets.

How can I edit this so that it matches anything in that field?

View 1 Replies View Related

General :: How To Pause Android Terminal Top Command

Jun 18, 2012

I want to pause terminal 'top' command. I tried using 'top -d 1000' but it makes it draw its output for the first time after 1000 seconds from launch, so first I would have to wait 1000 seconds to actually see its output.

How do I make 'top' stop refreshing itself?

View 1 Replies View Related

General :: Creating Zip Files In Android Command Line

Jun 27, 2011

I noticed in the newer releases of busybox there's no 'zip' command anymore. I'm running busybox 1.19 on my Incredible.

I have been using this command to create different bootanimation.zip files from my phone but am wondering if there is an alternative command I can use from within Android. I've tried tar -cvzf but I believe tar archives/compresses the files differently and renaming the extensions to .zip does not work.

View 8 Replies View Related

General :: Android Source Code Missing Mm Command?

Apr 26, 2011

I'm trying to add an application to the android source code in packages/apps. I have been following several tutorials and they all use the "mm" command to build their app they are adding. But I can't find the "mm" command in any of the android source code that I have downloaded and built.

-- mm: Builds all of the modules in the current directory.

Does mm have to be downloaded separately? When I build android source code, I get a folder containing lots of commands but mm is not there.

View 4 Replies View Related

General :: Android Live Wallpaper - Command Output

Aug 14, 2012

live wallpaper that shows the output of a command?

Example: the output of the "top" command as my live wallpaper.

View 1 Replies View Related

General :: Command Fastboot Oem Unlock Works On All Android Device?

Aug 1, 2012

The command "fastboot oem unlock" works on all android device?

View 2 Replies View Related

General :: Android Shell Command To Check If Process Is Cached

Sep 9, 2012

I am wondering what terminal command I can use to check if a process has been cached. On my Sprint Galaxy Nexus, rooted, with the latest build of the Paranoid Android jelly bean rom, I can go to my settings, click on apps, swipe to the "Running Apps" list, and click on the button at the top of the screen that says "Show Cached Processes," and that displays the list that I am trying to access. My reasoning for doing this, is to use "Secure Settings" in conjunction with "Tasker" to check if my "Groove IP" application is running. Initially, I was trying to use "pgrep -l com.*" and check that list for "com.gvoip" too see if "Groove IP" is running in the tray (pull down menu), but if the process is cached, it still shows up in that list. How to get a list of cached processes from terminal.

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved