camalot / madb

The Original MADB Project. This is a Managed port of the Android Debug Bridge to allow communication from .NET applications to Android devices. This wraps the same methods that the ddms uses to directly communicate with ADB. This gives more flexibility to the developer than launching an adb process and executing one of its build in commands.
http://madb.bit13.com
Other
110 stars 40 forks source link

Wrong split strings in PackageManager #45

Open INF1NUM opened 6 years ago

INF1NUM commented 6 years ago

Hi! Sorry for my English, I was bad at school. Function ProcessNewLines() in class PackageManagerReceiver receive wrong parameters, when i use Samsung Galaxy S7 and Xiaomi Redmi Note 4. With Xiaomi MI2S that's OK. Array lines(ProcessNewLines( string[] lines )) contains only one element with all string: see screenshot I can't fix this on my own, please, help.

INF1NUM commented 6 years ago

The reason the newline characters. Sometimes it happens \r\n, but sometimes only \n. The function MultiLineReceiver.AddOutput() does not provide this.