diff --git a/services/surfaceflinger/Android.mk b/services/surfaceflinger/Android.mk index 6db89f0a7..0d559e778 100644 --- a/services/surfaceflinger/Android.mk +++ b/services/surfaceflinger/Android.mk @@ -3,7 +3,6 @@ include $(CLEAR_VARS) LOCAL_SRC_FILES:= \ Client.cpp \ - DdmConnection.cpp \ DisplayDevice.cpp \ EventThread.cpp \ Layer.cpp \ @@ -58,6 +57,8 @@ include $(BUILD_SHARED_LIBRARY) # uses jni which may not be available in PDK ifneq ($(wildcard libnativehelper/include),) include $(CLEAR_VARS) +LOCAL_CFLAGS:= -DLOG_TAG=\"SurfaceFlinger\" + LOCAL_SRC_FILES:= \ DdmConnection.cpp diff --git a/services/surfaceflinger/DdmConnection.cpp b/services/surfaceflinger/DdmConnection.cpp index ece965cf4..d2c977df6 100644 --- a/services/surfaceflinger/DdmConnection.cpp +++ b/services/surfaceflinger/DdmConnection.cpp @@ -78,10 +78,10 @@ void DdmConnection::start(const char* name) { startClass = env->FindClass("android/ddm/DdmHandleAppName"); if (startClass) { startMeth = env->GetStaticMethodID(startClass, - "setAppName", "(Ljava/lang/String;)V"); + "setAppName", "(Ljava/lang/String;I)V"); if (startMeth) { jstring str = env->NewStringUTF(name); - env->CallStaticVoidMethod(startClass, startMeth, str); + env->CallStaticVoidMethod(startClass, startMeth, str, getuid()); env->DeleteLocalRef(str); } }