droidVncServer
droidVncServer copied to clipboard
bad gralloc computed width
hi all, i'm trying to use this app on my nexus 4 ( 4.2.2 ) but all i see it'a a black screen. according to other users i should use the Gralloc method since reading from /dev/graphics/fb0 produce a black screen cast. here you are the log: I/VNCserver( 1202): Loading lib: /data/data/org.onaips.vnc/files//libdvnc_gralloc_sdk10.so I/gralloc ( 1202): using (fd=7) I/gralloc ( 1202): id = msmfb44_80601 I/gralloc ( 1202): xres = 768 px I/gralloc ( 1202): yres = 1280 px I/gralloc ( 1202): xres_virtual = 768 px I/gralloc ( 1202): yres_virtual = 3840 px I/gralloc ( 1202): bpp = 32 I/gralloc ( 1202): r = 24:8 I/gralloc ( 1202): g = 16:8 I/gralloc ( 1202): b = 8:8 I/gralloc ( 1202): width = 61 mm (319.790161 dpi) I/gralloc ( 1202): height = 102 mm (318.745087 dpi) I/gralloc ( 1202): refresh rate = 60.00 Hz D/CALCFPS ( 1202): DEBUG_CALC_FPS: 0 D/CALCFPS ( 1202): period: 10 D/CALCFPS ( 1202): ignorethresh_us: 500000 D/CALCFPS ( 1202): DEBUG_CALC_FPS: 0 D/CALCFPS ( 1202): period: 10 D/CALCFPS ( 1202): ignorethresh_us: 500000 I/VNCserver( 1202): Error: I have received a bad screen size from gralloc.
i think that the problem is when the gralloc library handler convert the returned value into the global screenformat variable. probably here: https://github.com/oNaiPs/droid-VNC-server/blob/master/nativeMethods/gralloc/gralloc.c#L123 the "Error: I have received a bad screen size from gralloc" it's yelled here: https://github.com/oNaiPs/droid-VNC-server/blob/master/jni/vnc/screenMethods/gralloc.c#L83 can someone explain me how to rebuild the entire apk after adding extra debugging code? i'll prefer to avoid to install eclipse + ADT if possible...
thanks in advance :)