Revert "change battery binary path and debug log"

This reverts commit fe7cc3cc8f21eeb399284115299154aa6b7c5731.
Revert "update build script"

This reverts commit c86cf7275fe6cea1ff41c24cc908220834a19329.
Revert "diag: Improve handling of IOCTLs"

This reverts commit c47da388c781124514ef71c595ef44b34dc9d518.
Revert "msm: kgsl: Detect and avoid malformed ioctl codes"

This reverts commit 5135d91582d0b2a761479fa33f8862b1d279341a.