Allow optional nested parenthesis in the kernel compiler version string.
This fixes parsing of the kernel version string in so that groups 3 and 4 can be shown in About phone. Submitted on behalf of Patrick Auchter <patrick.auchter@motorola.com> Signed-off-by: Jared Suttles <jared.suttles@motorola.com>
This commit is contained in:
committed by
Nick Pelly
parent
d63c011225
commit
5807c64631
@@ -121,7 +121,7 @@ public class DeviceInfoSettings extends PreferenceActivity {
|
||||
"\\w+\\s+" + /* ignore: version */
|
||||
"([^\\s]+)\\s+" + /* group 1: 2.6.22-omap1 */
|
||||
"\\(([^\\s@]+(?:@[^\\s.]+)?)[^)]*\\)\\s+" + /* group 2: (xxxxxx@xxxxx.constant) */
|
||||
"\\([^)]+\\)\\s+" + /* ignore: (gcc ..) */
|
||||
"\\(.*?(?:\\(.*?\\)).*?\\)\\s+" + /* ignore: (gcc ..) */
|
||||
"([^\\s]+)\\s+" + /* group 3: #26 */
|
||||
"(?:PREEMPT\\s+)?" + /* ignore: PREEMPT (optional) */
|
||||
"(.+)"; /* group 4: date */
|
||||
|
Reference in New Issue
Block a user