mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-08-03 14:49:29 +00:00
Remove debug logs
This commit is contained in:
parent
428c4eef5d
commit
6b0a28e404
2 changed files with 3 additions and 20 deletions
|
@ -7,7 +7,7 @@ android {
|
||||||
minSdkVersion 21
|
minSdkVersion 21
|
||||||
targetSdkVersion 30
|
targetSdkVersion 30
|
||||||
versionCode 11900
|
versionCode 11900
|
||||||
versionName "1.19-ws4"
|
versionName "1.19-ws5"
|
||||||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
||||||
}
|
}
|
||||||
buildTypes {
|
buildTypes {
|
||||||
|
|
|
@ -4,7 +4,6 @@ import com.genymobile.scrcpy.DisplayInfo;
|
||||||
import com.genymobile.scrcpy.Ln;
|
import com.genymobile.scrcpy.Ln;
|
||||||
import com.genymobile.scrcpy.Size;
|
import com.genymobile.scrcpy.Size;
|
||||||
|
|
||||||
import android.os.Build;
|
|
||||||
import android.os.IInterface;
|
import android.os.IInterface;
|
||||||
import android.view.Display;
|
import android.view.Display;
|
||||||
|
|
||||||
|
@ -43,24 +42,8 @@ public final class DisplayManager {
|
||||||
method = manager.getClass().getMethod(methodName);
|
method = manager.getClass().getMethod(methodName);
|
||||||
return (int[]) method.invoke(manager);
|
return (int[]) method.invoke(manager);
|
||||||
} catch (NoSuchMethodException e) {
|
} catch (NoSuchMethodException e) {
|
||||||
Ln.d("Failed to get display ids");
|
Ln.e("FIXME: Returning only default display.");
|
||||||
Ln.d("Available methods:");
|
Ln.e("See https://github.com/NetrisTV/ws-scrcpy/issues/217");
|
||||||
for (Method m: manager.getClass().getMethods()) {
|
|
||||||
Ln.d(m.getName() + " parameters:");
|
|
||||||
if (m.getName().equals(methodName)) {
|
|
||||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
|
||||||
if (m.getParameterCount() > 0) {
|
|
||||||
for (Class c : m.getParameterTypes()) {
|
|
||||||
Ln.d(c.getName());
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
Ln.d("No parameters");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Ln.d("Return type: " + m.getReturnType().getName());
|
|
||||||
}
|
|
||||||
Ln.d("///");
|
|
||||||
return new int[]{Display.DEFAULT_DISPLAY};
|
return new int[]{Display.DEFAULT_DISPLAY};
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
throw new AssertionError(e);
|
throw new AssertionError(e);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue