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 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.

General :: Device information with python script

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:


The line I'm specifically trying to change is:


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 :: Create Device That Only Shows / Gets Information From One Source On Internet

Mar 25, 2013

We are looking to create a device that only shows/gets information from one source on the internet. There will be only one application running on the device.

View 1 Replies View Related

Android :: Location Device And Information Usage

May 8, 2010

I have a few questions regarding the usage of localization in android applications: Are there any interfaces available to find out when an application uses location information? Is it possible to know if the application is using coarse or fine grained location information? Is it possible to detect which type of localization is being provided, i.e. gps vs. wifi? And if the answer to any of the above question is yes, how? You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to To unsubscribe from this group, send email to For more options, visit this group at

View 2 Replies View Related

Android :: Getting Device Characteristics And Network Information

Jul 1, 2010

I am developing a context aware mobile application. I need to have information about the capabilities of terminal devices and network characteristics such as current bandwidth. My question is, are there APIs in android to access this information?

View 1 Replies View Related

HTC Tattoo :: Any Another Way To Copy Contact Information S40 Device

Dec 2, 2009

Just received my first HTC device (HTC Tattoo) and I have tryed several times to pared that for my old Nokia device for sending contact (Vcard) to my new and superb phone. Unfortunately I have no success on that. It will always inform me paired but not connected. Is there any how has similar problems with Android platform or is there any another way to copy contact information S40 device.

View 6 Replies View Related

Android :: Retrieve Device Information On Droid / Where To Find It?

Feb 4, 2010

My program is targeting Android 1.5. I would like to retrieve system information about the device itself. I have found very few helpful classes by searching the APIs. the best I've found so far is the Runtime class and a few Build.* system properties.

I would like to be able to get information like the total amount of memory on the device, the amount of free memory (which I do not know if the Runtime class is actually giving me, since it specifically refers to memory available to the JVM) along with information about the processor.

Is this information available, and if so, where can I find it?

View 2 Replies View Related

Android : How To Detect System Information Like Os / Device Type?

Jul 9, 2010

The most important things i want to know are the device type, the os version, if it has a hardware keyboard and maybe the screen resolution. but if you know other useful debug information.

View 2 Replies View Related

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....

View 2 Replies View Related

Android :: Need Testing Service To Use Real Debug Information From A Device?

Dec 5, 2009

I need test my Android app on a Motorola Cliq but don't have one. Is there a testing service that will let me make a debug connection to that device so I can run some tests and find out where the code is failing. Video connections won't tell me that.

View 2 Replies View Related

Android :: Information Of Music Track Playing On Device / Droid Powered Api For This?

Sep 24, 2010

I want to get the Information of the Music track playing on a android device?
Is there any android powered api available for this?

Or do I have to write a plugin for respective android media players?

View 1 Replies View Related

Android :: Keep Authentication Information For Droid Device In Sync With Desktop And Laptop?

Nov 2, 2009

Would sure like to find a good way of keeping authentication info for my android device in sync with my desktop, and laptop. anyone know of such.

I had been thinking about using pwdhash for firefox then I could keep my info between the desktop and laptop, still does not help with the android though.

View 12 Replies View Related

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 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 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 :: Sync Information And Future Information

Jul 7, 2010

I am a Mac user (photographer/ videographer). I also rely heavily on my iPod Touch when mobile (i can often find a wifi signal when i am out and about). I use iCal on the Touch and iCal on my Mac as well as the address book on both everyday and as a Mobile Me user, my two devices sync so everything is mirrored and up to date. I also HATE AT&T for their terrible signal strength and coverage and have been a loyal Verizon customer for many years and this is why I don't have an iPhone. Okay, all that being said, is there an easy way to still use everything I love and rely on with my Mac (the calender and address book, mainly) and easily sync all of my existing information and future info to an Android based device? How easy is it to use an Android device with a Mac? I don't want to have to manually re-enter my entire address book into a new device.

View 8 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

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

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 :: 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();
// 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 :: 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 :: 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:


while True:


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:



View 2 Replies View Related

General :: Why Does 2G Network Provides More Information Than 3G

Feb 22, 2012

In my application, I want to collect the surrounding cell ID and LAC on my Android phone (to estimate the location).I use the telephonyManager.getNeighboringCellInfo() function which returns a list of NeighboringCellInfo.

If the phone has enabled the option "use only 2G networks" I receive the correct list but if this option is not enabled (connecting also on 3G networks), the NeighboringCellInfo has "-1" for cell ID and LAC for the whole list.

why 3G networks provides less information than 2G ? Is there some technical reason ? Can I still get the cell details on 3G ?

View 2 Replies View Related

General :: How To Push Information To App

Feb 24, 2012

We've had some people develop and application for us. For now, our application uses static data that requires a manual update each time this data changes. Our plan in the future is to have this data updated automatically the instant this new data is available.

For now, is there a way like through some online cloud that I can link the application to? So, that way when I put the data online in this service thing, the application whenever it has a data connection or Wi-Fi pulls the new data?

For the future, what's the best way to set up this automated updates?

View 5 Replies View Related

General :: What Information Does Accelerometer Report

Oct 15, 2012

I am recently doing a graduate research on the accelerometer in mobile devices. Accelerometer is a MEMs device built in almost every smart phone nowadays. I am interested in finding what information does the hardware accelerometer report that the software knows the raw values X, Y, Z to detect the orientation in which the phone is held?

View 1 Replies View Related

General :: Where Password Information Located In System

Feb 14, 2012

Where password information is located in the system? Like password information from the browser and other apps. Is it just the app data or is there extra information on the phone?

View 2 Replies View Related

General :: Weather Widget With Detailed Information?

Sep 1, 2013

I love weather apps, but I've yet to find one that I really like that much. A lot of them are pretty good, some have this function or that function but none of them seem to have everything.

Anyway, years ago I used an app called PocketWeather on Windows Mobile and used a skin called Wonder Skin. It looked like this:

Notably it has humidity, pressure, forecast, current conditions (inc wind), temperature graph etc.. It had everything at a glance, I rarely needed to look into the app at all for this.

Most weather apps I can find today just have some current info, mostly seem to be clock widgets + some weather info.

Any weather widgets with more details on them? I don't really want to get into the complexities of making my own with something like UCCW but I'm pondering it.

View 1 Replies View Related

General :: How Safe Is Confidential Information When Use Custom ROM

Jul 13, 2012

So how safe is my confidential information such as google checkout acount etc. when I use Custom ROM? Any tips to keep me safe buying apps from google play if I use custom rom? HTC One V

View 1 Replies View Related

Copyrights 2005-15, All rights reserved