diff options
author | Kyle Repinski <repinski23@gmail.com> | 2015-11-06 02:10:01 -0600 |
---|---|---|
committer | Ziyan <jaraidaniel@gmail.com> | 2016-01-24 02:43:37 +0100 |
commit | 5488b1998f55b58d248b192af5cbb208e01cd478 (patch) | |
tree | a071ba38d7869f63ed34fcd6c17cf28c2f63126b /factory-images/generate-factory-images-package.sh | |
parent | 1c2eca15fed9393b35811bb4c5162a470e08667e (diff) | |
download | device_samsung_maguro-5488b1998f55b58d248b192af5cbb208e01cd478.zip device_samsung_maguro-5488b1998f55b58d248b192af5cbb208e01cd478.tar.gz device_samsung_maguro-5488b1998f55b58d248b192af5cbb208e01cd478.tar.bz2 |
Fix RIL_Init ending unexpectedly when passed unknown args.
When libsec-ril receives an unknown argument, RIL_Init completely aborts early.
With Android 5.0 and up, a "client id" argument is passed (via '-c' param),
but libsec-ril's getopt call uses "p:d:s:", and anything not '-p' '-d' or '-s'
jumps to the end of RIL_Init.
By passing '--' before '-c', getopt ignores what's left and signals it's done.
Currently there's no extra args passed after rild.libargs other than '-c',
but even if that were to change in the future this change would still be
required for RIL_Init to work.
Conflicts:
system.prop
Change-Id: I904d1c7fd83c71f1c2e1961ed96ac698a160f7f9
Diffstat (limited to 'factory-images/generate-factory-images-package.sh')
0 files changed, 0 insertions, 0 deletions