daemon: Send TTYs directly when SUPERUSER_SEND_TTY is set.

Enables reuse of the existing terminal instead of creating a proxy PTY.

Warning: Reuse of existing terminal breaks job control in the caller shell,
thus SUPERUSER_SEND_TTY should not be enabled by default unless the caller
shell is patched to reclaim the controlling terminal.
Merge pull request #222 from mkasick/master

daemon: Send TTYs directly when SUPERUSER_SEND_TTY is set.
Major refactor: switch to native fragments.

Change-Id: I8ad7c72f1b214aea3033e26725b02a4d155da58f
Merge remote-tracking branch 'koush/master' into cm-11.0
gradle and support widgets
WIP
Revert "Improve logging code."

This reverts commit ed55b0eed5680ece6d5bd0c54ab93b9b5da360b5.

Conflicts:
	Superuser/jni/su/daemon.c
remove need for exe link.
Prevent clickjacking of superuser requests

Enable filterTouchesWhenObscured on the accept request button to prevent
possible clickjacking attacks. This is a measure used in many sensitive
dialogs (app installation, backup & VPN) in AOSP.
Merge pull request #244 from veeti/filter_touches_when_obscured

Prevent clickjacking of superuser requests
Updates for new Widgets
Merge branch 'master' of ssh://github.com/koush/Superuser
Merge branch 'koush' into HEAD

Conflicts:
	Superuser/res/layout/request.xml
	Superuser/src/com/koushikdutta/superuser/PolicyFragmentInternal.java
	Superuser/src/com/koushikdutta/superuser/SettingsFragmentInternal.java

Change-Id: Ie4198fc8adce6497cac061d3fecdc00b379bd407