introduce: set on boot implementation

This introduces the set on boot feature. This may
also require new permissions (boot_complete). All
settings inside Aero Control are now saved as long
as they are preferences.

One thing that might not work out of the box are
governor specific parameters. However, this can
be considered as very good start for a clean set-on-
boot option.

There are also some random fixes here and there.
set-on-boot: fix various things

- Don't save zcache value, its redundant
- Fix compile errors
- Fix wrong paths
- Add display color

Signed-off-by: Blechd0se <alex.christ@hotmail.de>
fix accents in spanish
Merge pull request #13 from xAnubiSx/master

fix accents in spanish
add basic history stack support

If users hit the back button, the app would exit.
Normally it should display the previous fragment.
This adds the basic support for this feature.

ToDo:
 * Update Title for current fragment
 * Update Drawer for current fragment

Signed-off-by: Blechd0se <alex.christ@hotmail.de>
sane warning dialogs in logcat

When the app is started, there is also a refresher Thread
started to update the values. While it stops refreshing
when another fragment is visible it doesn't check if the
app is running in forground at all. This could lead to
battery drain and also spam in logcat.

The next step would be to freeze those threads in the
meantime completely and wake them up, when the app
is visible again.

Signed-off-by: Blechd0se <alex.christ@hotmail.de>
aero: show all available cpu cores

If a device has more than one core, display all
cores and their respective frequencies.
While not only cores could have different frequency
values, a governor could be also (in theory) core-specific.

Since no one makes core based governors, this doesn't
need to be considered in future versuions.

Signed-off-by: Blechd0se <alex.christ@hotmail.de>
cpu: fix unnecessary warning

If the same governor was set, there was a warning
dialog for the user that the governor couldn't be
changed. Since one has to tap the governor specific
menu, this might be confusing for the user.

Signed-off-by: Blechd0se <alex.christ@hotmail.de>
boot: make some coding style fixes

This won't change any functionality, its
just for better reading.

Signed-off-by: Blechd0se <alex.christ@hotmail.de>
set mRefresherThread priority to minimum

Signed-off-by: Blechd0se <alex.christ@hotmail.de>
aero: use runtime instead of regex for cpu

Instead of getting the available cpus with regular
expressions, use javas built in availableProcessors()
call.

Signed-off-by: Blechd0se <alex.christ@hotmail.de>
cpu: set cpu values for each cpu

Instead of setting the desired value only
for the first cpu (cpu0) we should set it
for all available cpus. This ensures we have
the same governors for all cpu in sync.

Signed-off-by: Blechd0se <alex.christ@hotmail.de>
memory: add low mem option

Kitkat introduced a new low_ram flag for devices
with low memory ram. This simple switch lets the
user choose if it should be activated or not.

Signed-off-by: Blechd0se <alex.christ@hotmail.de>
boot: show alert if random reboot was detected

Use the new boot receiver to show an alert if
the kernel detected a sudden reboot. It informs
the user to checkout /proc/last_kmsg
This requires a 3.0.x kernel, since our old kernel
didn't support this feature.

This could be even enhanced in the future with an
automatic copy to sdcard or something similar.

Signed-off-by: Blechd0se <alex.christ@hotmail.de>
boot: make dialog not cancelable

To ensure the user won't miss the message.

Signed-off-by: Blechd0se <alex.christ@hotmail.de>
boot: add missing icon

Signed-off-by: Blechd0se <alex.christ@hotmail.de>
cpu: thread should sleep longer

In some circumstance it was possible, that the
new governor parameter list won't show, because
the kernel was to slow to update the dictionaries.

Fix this with a longer sleep for the thread.

Also disable some things in settings, so users won't
be confused.

Signed-off-by: Blechd0se <alex.christ@hotmail.de>
Version 0.9.6

Signed-off-by: Blechd0se <alex.christ@hotmail.de>
boot: fix governor specific settings won't save

 * Save governor specific settings with full path as well
   as the desired value

 * Let the bootService read out all parameters for a given
   governor and add the values for each parameter to the
   array list.

 * Also change the set-on-boot order for cpu governors. We
   need to set the cpu governor before we execute the array
   list since we need to give the kernel some time to update
   the dictionaries, otherwise we would have a nullpointer.

Signed-off-by: Blechd0se <alex.christ@hotmail.de>
main: fix strange behaviour with BackStack

If back button is pressed twice the application will
exit. Navigation should now be happening only via
the navigation drawer. Only Exception is the settings
panel which is now a preference activity.

Since we have by design no "100-steps-deep-settings-things"
this is actually a good approach.

Signed-off-by: Blechd0se <alex.christ@hotmail.de>