Files
mkbootimg_tools/mkboot
Christopher R. Palmer 8047562c0a Properly escape the cmd_line
Previously img_info was created using double quotes and that
allows a lot of shell interpretation that can cause problems.
Switch to using ' to avoid most of the shell interpretation
(all that is left is ').  Make sure that works well by escaping
single quotes properly.

For example, the command line:

boo='ya' androidboot.selinux=permissive hi='there'

would be escaped in img_info as

cmd_line='boo='"'"'ya'"'"' androidboot.selinux=permissive hi='"'"'there'"'"''
2015-07-07 20:28:01 -04:00

9.5 KiB
Executable File