Skip to content

Commit d3b4190

Browse files
committed
Add instruction to check service running
1 parent 313ed26 commit d3b4190

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ You need ROOT permission from the adb
1111

1212
$ ndk-build
1313
$ adb push libs/armeabi-v7a/ipc /data/local/
14-
$ adb shell /data/local/ipc # start the service
14+
$ adb shell /data/local/ipc # start the service
15+
$ adb shell service list | grep binder_shm # check the service running
1516

1617
Then just use your Eclipse in the regular way.

jni/BinderSHM.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class BnSHM : public BnInterface<ISHM> {
5353
virtual status_t onTransact(uint32_t code, const Parcel& data, Parcel* reply, uint32_t flags = 0)
5454
{
5555
ALOGD("BnSHM::onTransact(%u)", code);
56-
CHECK_INTERFACE(IScreenComposer, data, reply);
56+
CHECK_INTERFACE(ISHM, data, reply);
5757
switch(code) {
5858
case SET_FD: {
5959
reply->writeInt32(setFD(data.readFileDescriptor()));

0 commit comments

Comments
 (0)