cpcaprw's Introduction
READ AND WRITE CPCAP PMIC REGISTERS ON ANDROID DEVICES This utility allows easily reading and writing the CPCAP PMIC registers when booted to the Android kernel. The Motorola custom CPCAP PMIC is used on various Motorola phones and tablets such as droid 4. Note that it currently only supports the mainline kernel regmap suitable registers offsets as listed in motorola-cpcap.h and not the Motorola mapphone Linux kernel register index. To build and use, just do: $ export CROSS_COMPILE=/path/to/arm-linux-gnueabi $ make $ adb push cpcaprw /sdcard $ adb shell $ su # mount -o rw,remount /system/bin # cp/sdcard/cpcaprw /system/bin/ # cpcaprw 0x0048 # read CPCAP_REG_VERSC1 CPCAP register18 0x0048=0x0013 For write access, you probably need to modify the selinux permissions for /dev/cpcap with chcon or something similar. And note that to use the binary with most Android kernels, the compiler must be armel and not armhf. To see the cpcap registers with the mainline kernel, just do: # cat /sys/kernel/debug/regmap/spi0.0/registers
cpcaprw's People
Forkers
imbackkRecommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.