To enable verbose message in logcat for libs (*.so camera libs for example) i've made this tricky solution, using Ultra Edit + perl regex.
x00 (NULL char) is not fully supported (it does a x20 replace, like notepad++), so i was needing a workaround (replace 0 with a unique pattern like 71 72 73 74, not present in the lib), do the magic, and replace the pattern with 00:
((.){0,32}) is the max distance from ex. UBFX.W R2, R0, #3, #1 to MOVS R0, #4 before BLX __android_log_print
since regex uses binary search, using ((.){0,32}) it replaces the ones with max distance before the ones with min distance, causing an error in the lib. A scrypt is of course better but it's ok for a tricky solution. You can do a longer search too, but the probability to broke the lib will increase.
Code:InsertMode ColumnModeOff HexOff PerlReOn Find RegExp "\x00" Replace All "\x71\x72\x73\x74" PerlReOn Find RegExp "\xC0\xF3(\x40|\x80)(\x71\x72\x73\x74|\x01|\x02|\x03|\x04|\x05|\x06|\x07)((.){0,2})(\x03|\x04)\x20" Replace All "\xC0\xF3\xC0$2$3\x05\x20" PerlReOn Find RegExp "\xC0\xF3(\x40|\x80)(\x71\x72\x73\x74|\x01|\x02|\x03|\x04|\x05|\x06|\x07)((.){0,4})(\x03|\x04)\x20" Replace All "\xC0\xF3\xC0$2$3\x05\x20" PerlReOn Find RegExp "\xC0\xF3(\x40|\x80)(\x71\x72\x73\x74|\x01|\x02|\x03|\x04|\x05|\x06|\x07)((.){0,6})(\x03|\x04)\x20" Replace All "\xC0\xF3\xC0$2$3\x05\x20" PerlReOn Find RegExp "\xC0\xF3(\x40|\x80)(\x71\x72\x73\x74|\x01|\x02|\x03|\x04|\x05|\x06|\x07)((.){0,8})(\x03|\x04)\x20" Replace All "\xC0\xF3\xC0$2$3\x05\x20" PerlReOn Find RegExp "\xC0\xF3(\x40|\x80)(\x71\x72\x73\x74|\x01|\x02|\x03|\x04|\x05|\x06|\x07)((.){0,10})(\x03|\x04)\x20" Replace All "\xC0\xF3\xC0$2$3\x05\x20" PerlReOn Find RegExp "\xC0\xF3(\x40|\x80)(\x71\x72\x73\x74|\x01|\x02|\x03|\x04|\x05|\x06|\x07)((.){0,12})(\x03|\x04)\x20" Replace All "\xC0\xF3\xC0$2$3\x05\x20" PerlReOn Find RegExp "\xC0\xF3(\x40|\x80)(\x71\x72\x73\x74|\x01|\x02|\x03|\x04|\x05|\x06|\x07)((.){0,14})(\x03|\x04)\x20" Replace All "\xC0\xF3\xC0$2$3\x05\x20" PerlReOn Find RegExp "\xC0\xF3(\x40|\x80)(\x71\x72\x73\x74|\x01|\x02|\x03|\x04|\x05|\x06|\x07)((.){0,16})(\x03|\x04)\x20" Replace All "\xC0\xF3\xC0$2$3\x05\x20" PerlReOn Find RegExp "\xC0\xF3(\x40|\x80)(\x71\x72\x73\x74|\x01|\x02|\x03|\x04|\x05|\x06|\x07)((.){0,18})(\x03|\x04)\x20" Replace All "\xC0\xF3\xC0$2$3\x05\x20" PerlReOn Find RegExp "\xC0\xF3(\x40|\x80)(\x71\x72\x73\x74|\x01|\x02|\x03|\x04|\x05|\x06|\x07)((.){0,20})(\x03|\x04)\x20" Replace All "\xC0\xF3\xC0$2$3\x05\x20" PerlReOn Find RegExp "\xC0\xF3(\x40|\x80)(\x71\x72\x73\x74|\x01|\x02|\x03|\x04|\x05|\x06|\x07)((.){0,22})(\x03|\x04)\x20" Replace All "\xC0\xF3\xC0$2$3\x05\x20" PerlReOn Find RegExp "\xC0\xF3(\x40|\x80)(\x71\x72\x73\x74|\x01|\x02|\x03|\x04|\x05|\x06|\x07)((.){0,24})(\x03|\x04)\x20" Replace All "\xC0\xF3\xC0$2$3\x05\x20" PerlReOn Find RegExp "\xC0\xF3(\x40|\x80)(\x71\x72\x73\x74|\x01|\x02|\x03|\x04|\x05|\x06|\x07)((.){0,26})(\x03|\x04)\x20" Replace All "\xC0\xF3\xC0$2$3\x05\x20" PerlReOn Find RegExp "\xC0\xF3(\x40|\x80)(\x71\x72\x73\x74|\x01|\x02|\x03|\x04|\x05|\x06|\x07)((.){0,28})(\x03|\x04)\x20" Replace All "\xC0\xF3\xC0$2$3\x05\x20" PerlReOn Find RegExp "\xC0\xF3(\x40|\x80)(\x71\x72\x73\x74|\x01|\x02|\x03|\x04|\x05|\x06|\x07)((.){0,30})(\x03|\x04)\x20" Replace All "\xC0\xF3\xC0$2$3\x05\x20" PerlReOn Find RegExp "\xC0\xF3(\x40|\x80)(\x71\x72\x73\x74|\x01|\x02|\x03|\x04|\x05|\x06|\x07)((.){0,32})(\x03|\x04)\x20" Replace All "\xC0\xF3\xC0$2$3\x05\x20" HexOn Find "71 72 73 74" Replace All "00"
I'll post verbose debug enabled camera libs when i have few hours to test them.
I'm sure this will help us to track some bugs.