Torch: Do not hard code crespo as not having high brightness.

Change-Id: I5bfbad91790a7dedaeb86745a6b6331a775549e6
Don't show variable brightness options when using the camera iface

Camera is a single-setting interface

Change-Id: I034ba323ee73fc71cdd40249cfbf59467aafb735
make torch to a real system app

give it the correct permissions to allow to write
to sys interface with less permissions needed to
keep security alive

Thanks Alex for the hint to the hidden API

and gmillz for the idea

Change-Id: I44f70bdf3ecfb57ccac85eebe61e57a163bdf501
Torch: add better error handling and added fallback mechanism

The handling of the Torch if an exception occured was very bad and
it was easy to break:

- notify the user with toast if the camera interface is not pressent
- catch the case that sys led controlled devices have wrong permissions
  (eg third party kernel) and torch will completly crash.
  Checking now if sys init is present.......if not successful
  try to switch back to the camera interface.
- send broadcast change only if the state really switched
- when error occured turn off the service and the notification
- cleanup
- send broadcast with qualified users

Change-Id: Iabeb3b5f1c17d784a06c154f9a33e8d3d5214b7d
Translated missing line to Russian

Change-Id: I76a70558b2a6e010d3d144a86dc0d948fb8bdea8
Torch: move back out as privileged app

Due that I introduced a fall back system it is not needed any
more to keep it as privileged app. Move it back to normal app.

Change-Id: I1cacfbeacd1ebc976abc968f0e3db4540672193b
Torch: Glowpad Torch (2/3)

Allow on / off functions to be
	sent to torch.

Change-Id: I5d090b00b6ea54ebed5057ba353b3e9c15b71d51
Fix crash of torch app

A hard to track bug occurs when using the torch:
The local variable surfaceTexture gets collected by GC causing it
to free the underlying buffer.
The next access to this buffer crashes with an SIGSEGV after an
assertion failure (BufferQueue already abandoned)

NOTE: The native camera object may possibly hold that reference so
it does not get GC'ed

Change-Id: Ib39d55ffb379ed16a0b94915c1b727e8ddc7f180
Torch: add 2nd sysfs luminosity

PS
fix codestyle a bit

Change-Id: Iedc172984bb20c0a4a073a8cbf5f0f008aa57c38