Pandora How to detect if your application is running on Pandora?


ekianjo

Hardcore Member
Joined
May 7, 2012
Messages
8,261
Location
神戸市、日本 (Japan)
A very basic question, i guess, but I am developing a small application that is intended to work not only on Pandora and I'd like to add some specific instructions for the Pandora version. 

I am doing that application in Python, but I don't think it really matters what language I use, what I want to do is to find a way to identify, at runtime, whether the application is running on a Pandora or another GNU/Linux machine.

I guess I could detect the screen size and these kind of things, but that's not really failproof. ANy idea?
 
felix20-openpandora:~$ cat /proc/cpuinfo
Processor       : ARMv7 Processor rev 3 (v7l)
BogoMIPS        : 596.38
Features        : swp half thumb fastmult vfp edsp thumbee neon vfpv3 tls
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x1
CPU part        : 0xc08
CPU revision    : 3

Hardware        : Pandora Handheld Console
Revision        : 0020
Serial          : 0000000000000000
I don't know if this is the same on other OSs though
 
felix20-openpandora:~$ cat /proc/cpuinfo


Processor       : ARMv7 Processor rev 3 (v7l)


BogoMIPS        : 596.38


Features        : swp half thumb fastmult vfp edsp thumbee neon vfpv3 tls


CPU implementer : 0x41


CPU architecture: 7


CPU variant     : 0x1


CPU part        : 0xc08


CPU revision    : 3

Hardware        : Pandora Handheld Console


Revision        : 0020


Serial          : 0000000000000000
I don't know if this is the same on other OSs though
Thanks, will check that out. 

How about detecting a library that would only be on Pandora ? Like libpnd ?
 
The entire /proc/pandora directory should be Pandora-specific, naturally.
 
Back
Top