Sony Pmca Re

Reverse Engineering Sony Digital Cameras
Alternatives To Sony Pmca Re
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Webcam Capture2,109315212 months ago10January 17, 2018290mitJava
The goal of this project is to allow integrated or USB-connected webcams to be accessed directly from Java. Using provided libraries users are able to read camera images and detect motion. Main project consist of several sub projects - the root one, which contains required classes, build-in webcam driver compatible with Windows, Linux and Mac OS, which can stream images as fast as your camera can serve them (up to 50 FPS). Main project can be used standalone, but user is able to replace build-in driver with different one - such as OpenIMAJ, GStreamer, V4L4j, JMF, LTI-CIVIL, FMJ, etc.
Esp Who1,404
3 months ago63otherC
Face detection and recognition framework
Sony Pmca Re1,394
10 months ago138mitPython
Reverse Engineering Sony Digital Cameras
a year ago35otherPython
Deepdrive is a simulator that allows anyone with a PC to push the state-of-the-art in self-driving
2 days ago3gpl-2.0C
akvcam, virtual camera for Linux
Mediadevices44525a day ago61August 24, 202265mitGo
Go implementation of the MediaDevices API.
9 days ago7otherC++
A ROS Driver for V4L USB Cameras
4 years ago23otherC++
PS3EYE Camera Driver for OSX and Windows
4 months ago121C
5 months ago3gpl-2.0C
PlayStation 4 Camera driver implementation reference
Alternatives To Sony Pmca Re
Select To Compare

Alternative Project Comparisons

Reverse Engineering Sony Digital Cameras

This tool interfaces with Sony digital cameras through USB. It allows to tweak settings, dump firmware, and in some cases install custom Android apps.


There are two binaries:

  • pmca-console: The main command line application
  • pmca-gui: A graphical user interface with a limited set of features


The application should work fine on Windows using the operating system's mass storage and MTP USB drivers.

Download the latest stable release or the newest development build.


macOS binaries are also distributed, but less tested than the Windows equivalents. Getting the USB drivers to work may require some fiddling. To communicate with cameras in mass storage mode, Sony's Camera Driver has to be installed. Make sure to close all applications which could access USB drivers, including Photos, Dropbox and Google Drive.

The latest release binaries can be found in the release section.


The application uses Python 3 and should work fine on Linux using libusb drivers.

Clone or download this repository, then run the following commands:

pip install -r requirements.txt  # to install the dependencies
./  # for the command line application
./  # for the gui application


There are three main modes of interfacing with a camera:

App Installer

If the camera supports PlayMemories Camera Apps (PMCA), it is possible to install custom Android apps using this tool. A list of supported cameras can be found here.

It is recommended to install the OpenMemories: Tweak app. This app allows to tweak settings and to start telnet and adb servers to execute code on the system.

Other apps are available. A list can be found here.

There are two ways to install apps:

  • pmca-gui: In the Install app tab, select an app from the list and click Install selected app.
  • pmca-console: Run pmca-console install -i to interactively select an app to install.

Firmware Updater

Sony cameras can boot from a secondary partition for firmware updates. Using a custom firmware file, we can execute code in this mode. Note that the camera firmware itself remains untouched. The firmware update process is only used to execute custom code.

This mode does not require any special drivers, the operating system's mass storage USB driver is enough.

A list of supported camera models can be found here. Devices based on the CXD90045 and CXD90057 architectures are not compatible, since their firmware is cryptographically signed.

There are two ways to use this:

  • pmca-gui: In the Tweaks tab, click Start tweaking (updater mode). You can then use the checkboxes to configure your camera's settings.
  • pmca-console: Run pmca-console updatershell. There are commands available to dump the firmware, execute Linux commands, and to tweak settings.

Note that this requires rebooting the camera to firmware update mode. You will be guided through this process.

Service Mode

Sony cameras have a USB mode called senser mode, which is used during servicing for calibration and other things. It can also be used to execute code on the running system.

Service mode has the best camera compatibility, but requires custom USB drivers.

It is currently only supported in the command line application:

  • pmca-console: Run pmca-console serviceshell. There are commands available to dump the firmware and to execute Linux commands.

Windows Drivers

To use service mode on Windows, custom drivers have to be installed using Zadig:

  • Make sure the camera is connected in mass storage mode.
  • In Zadig, check Options -> List All Devices, select the camera, select libusb-win32 and click Replace Driver.
  • Run pmca-console serviceshell to make the camera switch modes.
  • Once the camera has switched, repeat the above step to install a driver for service mode.
  • You should now be able to use pmca-console serviceshell.

To be able to use the camera normally again, the libusb drivers have to be uninstalled in device manager.

Is it safe?

This is an experiment in a very early stage. All information has been found through reverse engineering. Even though everything worked fine for our developers, it could cause harm to your hardware. If you break your camera, you get to keep both pieces. We won't take any responsibility.

What about custom apps?

It is possible to develop custom Android apps for supported cameras. Keep in mind that they should be compatible with Android 2.3.7. Debug and release certificates are accepted by the camera. See PMCADemo for a demo app.

There are a few special Sony APIs which allow you to take advantage of the features of your camera. They can be used through OpenMemories: Framework.

Special thanks

Without the work done by the people at nex-hack, this wouldn't have been possible. Thanks a lot!

Popular Camera Projects
Popular Driver Projects
Popular Hardware Categories

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.