Superuser: SK translation

- little help for our neighbors - SK translation

Change-Id: I8818ad459bb76701a841dd4ad50cdc0712c35c88
Superuser: CS translation

- fixed some misaligned translation
- fixed element names and small glitches

Change-Id: I410ef0c50a6b236c13bfde1658187e9136176862
Change the root_access property by SystemProperties.set

This works if Superuser is embedded.

Change-Id: I779d06c1777bb63740649b2b6db1e944275a5e0a
Superuser: PT-rPT translations

Change-Id: Ic3862ca92aa18ff837ca2a28b8a487c0fb725fc4
Make emulated storage available via su.

Apps (e.g. file managers) expect that they get the same view of files in
su and non-su mode.

Change-Id: I613d021dddb7b90c34bd6d7cf6d2234448404731
Change target API from 17 to 18

Change-Id: I7adb61ad20740875e31a7e94b218aeb593e3b368
Fix several Lint's warnings

Change-Id: I8da5969d7fb2dd2bc2d0760e445da96470042598
su is an optional component

Do not build it unless explicitly included in PRODUCT_PACKAGES

Change-Id: Ic7337daeb61aa8eb862aa33c4533a0177db87aa1
Fix incorrect prerequisites

'Nothing to be done' build failed because

* $(LOCAL_MODULE) should not be a prerequisite
* The created symlink doesn't exist in the host out tree

Besides, all prerequisites of $(SYMLINKS) are removed. This is because
'make' checks the timestamp of the file the link references rather than
the link itself. Therefore $(LOCAL_INSTALLED_MODULE) is a useless
prerequisite. On the other hand, $(LOCAL_PATH)/Android.mk should not
be a prerequisite of $(SYMLINKS) unless it is also a prerequisite of
$(LOCAL_INSTALLED_MODULE). Otherwise, if $(LOCAL_PATH)/Android.mk is
newer than $(LOCAL_INSTALLED_MODULE), $(SYMLINKS) will always be
re-made.

Correct the prerequisites of $(SUPERUSER_RC) as well.

Change-Id: I5746e983046a9cdc3ee2b8ecd3827f1f7e6b596e
Make emulated storage mounting consistent to Zygote.

- Mount in private namespace
- Mount in forked child
- Mount /storage/emulated/legacy

All of this is optional and must be enabled by setting the environment
variable MOUNT_EMULATED_STORAGE.

Change-Id: Ied9c4485e58ab26ba8e6eafcbe05bb75fe6fdc52
Only use access_disabled if SUPERUSER_EMBEDDED.

It is not possible to reenable Superuser when non embedded. su will reject.

Change-Id: If440d9d758c21c61a2d7c0bef132eb716b494c5d
Merge "Make emulated storage mounting consistent to Zygote." into cm-10.2
Superuser: UG translation, added Uyghur translation.

Change-Id: If71d506c1a18fa9525d8b70dbd3d733050909c7f
Update version check to work with >= 4.3

Now that 4.4 is out, the check was failing and not properly setting up
the su daemon.

Using POSIX sh parameter substitution allows us to extract the major and
minor version numbers from ro.build.version.release in build.prop and
compare them.

This was tested on a Nexus 4 running 4.4.
Merge pull request #194 from tmzullinger/kitkat-version-check

Update version check to work with >= 4.3
README: Update build information

Specify the required SDK API and NDK versions.  Add info on signing the
release build, as build.xml is hardcoded to use Superuser-release.apk only.
reboot: Build utility from source

This was based on disassembling the HTC ARM reboot binary currently
shipped with Superuser.  It attempts to mimic the behavior of the
original program.

Future work may involve cleaning it up, removing the HTC-specific
features, etc.
MainActivity: Split getArch() into a common function
Use new assets/<ARCH>/reboot binary

Now that we are building the reboot binary from source, we'll need to
retrieve it from the proper subdirectory according to the device's CPU
architecture.
Add MIPS support

Tested on:
 - Ainol Novo 7 Paladin (JZ4770 MIPS SoC) with ICS 4.0.3 and CWM
 - Nexus 5 (ARM) with KK 4.4 and TWRP

Not tested on x86.

I checked to make sure "uname -m" is standard in busybox (not a feature
flag).  "uname" doesn't seem to exist at all in AOSP, so without busybox,
the original script probably wouldn't have detected the architecture
correctly.