Merge pull request #17 from marcin92/master

update PL translations
profiles: save profiles as sharedPrefs

 * Each profile will be saved as a new SharedPreference.
   This will be achieved by getting the default SharedPreference
   and save those values as new file. It also is aware of either
   string or boolean values.

 * Since each new profile is now a valid object, it gets
   its own listeners (onClick and onLongClick)

Signed-off-by: Blechd0se <alex.christ@hotmail.de>
cpu: fix oc/uc values won't stick on boot

 * The new kernel panic check ( ad6a61f971d48022a52b383fe38ef41069fc9346 ) would do
   way to much when executed on boot and thus no values won't stick
   after a reboot.

 * Fixing also the bug, where vsel4 won't be updates and rework
   the execution a bit (note: default values may need a update too)

 * Fixing also a bug where the app would crash when updating
   the cpu values, the RefresherThread would just be called twice,
   which results in a crash.

 * Fixing also the governor specific parameters would show
   "Unavailable" on first change. This is due the wrong
   permissions, just change the governor to performance first
   and then change to the actual new governor.

 * If one governor parameter is not writeable disable the
   preference and infrom the user about this. Some governors
   (interactive) have parameters which can't be changed by the
   user (e.g. boostpulse).

 * Also fixing a bug, where the min freq for the cpu won't
   update if it was changed due live oc/uc.

Signed-off-by: Blechd0se <alex.christ@hotmail.de>
cpu: update default cpu values

 * Since the last change we use a arraylist for storing
   those values.

Signed-off-by: Blechd0se <alex.christ@hotmail.de>
Create string.xml
Delete string.xml
Create strings.xml
Update strings.xml
Update strings.xml
Merge pull request #18 from Android74/master

Italian translation
translation: fix compile errors for italian

Signed-off-by: Blechd0se <alex.christ@hotmail.de>
cpu/memory: make threads smarter

 * Only start threads if they are not already alive

Signed-off-by: Blechd0se <alex.christ@hotmail.de>
profiles: add basic profile mapping

 * Each profile is mapped to its preference file.
   Meaning, if deleting one, the pref file also gets deleted.

 * If a profile gets deleted, the pref shouldn't just be cleared,
   it should completely been removed, thus we need the shell command
   and a small check, if its really gone.

 * Cleaning up a few things here and also set object as finals
   where possible to get some small performance.

Signed-off-by: Blechd0se <alex.christ@hotmail.de>
helpers: add a simple root check

If the device is not rooted, there is no point in using
this app. Show a small dialog which informs the user
about this and exit the app afterwards.

Signed-off-by: Blechd0se <alex.christ@hotmail.de>
root: set dialog cancelable to false

Signed-off-by: Blechd0se <alex.christ@hotmail.de>
helpers: make logs easier to read

Signed-off-by: Blechd0se <alex.christ@hotmail.de>
boot: add a switch for reboot detector

Sometimes its usefull to deactive this feature. It becomes
very useful when flashing tons of kernels.

Signed-off-by: Blechd0se <alex.christ@hotmail.de>
cpu: cleanup UI after fragment switch

Just for a better UI experience.

Signed-off-by: Blechd0se <alex.christ@hotmail.de>
cpu: change governor specific menu into button

Before this patch the user had to change the governor to
see the governor specific parameters. If one just want to
change one tunable of the already set governor one has to
always set the governor again.
This changes this behaviour. I introduced a new action bar
button which gives the user the same functionality with one
less click.
Also fixing some bugs regarding permissions and increase
execution time by simple not sleeping that long.

setGovernor() is a generic method to set a governor for
all available cpus.

Signed-off-by: Blechd0se <alex.christ@hotmail.de>
helpers: remove deprecated code

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