P3100: Cleanup

1. Move "DEVICE_RESOLUTION" to Common
2. Remove unneeded Package line from p3100.mk
3. Fix touchorientation in TWRP using "init.recovery.espresso.rc"
4. move init.recovery.espresso.rc and twrp.fstab inside rootdir
5. get rid of modem line in twrp.fstab
6. "preferences_prefer_dual_pane" set to false, not working in Omni
and not looking good in portrait mode on other roms

Change-Id: I3ca97cd52e24bfe22ba118b26de8e7f917ead4c5
P31XX: fix corrupt power off charging graphics

Seems that our charger graphics.c does not like 32bit PNGs
Converted images to 24bit PNGs and everything works fine

Change-Id: I325e08532b29d4d9b81241554329fbd7a378b41c
P31XX: use RGB565 for bootanimation

RGB565 uses considerably less memory, it allows us
really smooth bootanimation on not so powerful devices.

requires: https://gerrit.omnirom.org/#/c/5597/

Change-Id: Ifc2c350ef9dead9b91656081a6d48f6f71b18eba
[2/2] Keyguard: Fix Pin-Layout on Galaxy Tab 2

Fix a long standing lockscreen layout problem that was introduced in 4.2
e.g. on P3100 and P5100

Before: http://i.imgur.com/NETsfBy.png
After: http://i.imgur.com/8ghV2aG.png

Change-Id: I1e7e9cd38b2dc2ac6d2b3253a6148e45bdeb4ca3
P31xx: Update Bluetooth permissions/restorecon

Make /dev/ttyO1 group-writable, add restorecon to two BT sysfs paths.

Change-Id: Id0197f639b1ddb74a2af5f2ef0517b11fdf15de7
Revert "p3100: remove DeviceSettings" and integrate into OmniROM

This reverts commit 5b29f84146d6af2f9bb6cfb788e658d563c37dea.
Update ActionBar to fit KitKat's theme (adapted from i9100g)
Update Copyright notices

Change-Id: I3ca3b50c403f11bb9fcf12aef23dd8193fc36b02
P31XX: Enable Screenrecording

Enable option for screenrecording inside Settings -> Menus.
Force to use mic for audio while screenrecording,
because our audio blobs don't support submix.

Change-Id: I0432fe95ec5df07057348be132536394a9444d49
p3100: Device makefile cleanup

-Removes the redundant full_p3100
-Standardizes the layout of omni_p3100
-Align ro.product with stock
-Updates the fingerprint to P3100XWDNA1 (4.2.2)

  PS2: Add README
  PS3: ro.product.device is actually set with TARGET_DEVICE & not
       PRODUCT_DEVICE; this has been corrected.
  PS4: PRODUCT_RELEASE_NAME isn't used in omnirom.
  PS5: Align this change to the changes I'm making in the other
       device repos
  PS6: config_enableScreenrecordChord is already set to true by
       default

Change-Id: Iaad0fbf7cc37c1321c99bc47579d2d7035db2609
P3100: use common-tablet.mk, cleanup device-tree

Change-Id: Ia60a265241292f0b8a3b43ef623adc4bf67d4087
P31XX: Change bluetooth user group to net_bt_stack

 - fixes bluetooth get automatically turned off while switching
   from first to second user
 - fixes bluetooth can not turned on on second user

Change-Id: I4195edbedf28b68a7c5dc969111729b73f2a1f99
P31XX: remove unneeded usb nodes inside init.recovery.espresso.rc

When the recovery switches between adb and adb,mass_storage modes,
it overwrites them with its built-in values.
This could be troublesome for Windows users who will end up seeing
a device change when moving between modes.

The existing USB PID+VID in recovery work for all devices, but users
need to have the correct driver installed if using Windows.
Check the Device Manager and see if "Android Composite ADB Interface"
is correctly identified. If not, see
http://developer.android.com/tools/extras/oem-usb.html
for driver update instructions, where you can simply use the drivers
included with Google's Android SDK for ADB.
Koush's universal drivers should also work.

If you have problems using adb on Linux, then it is almost certainly
seeing a UDEV rule problem.
Copy the following set of rules to a text file and save it as
'/etc/udev/rules.d/51-android.rules'
and reboot your system:

SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", MODE="0664", GROUP="plugdev"
SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", MODE="0664", GROUP="plugdev"

Thanks at Matt Mower <mowerm@gmail.com> for pointing me on that.

Change-Id: I7048c482eeb215349d380ae62eae9599ee6c8157
P31XX: some formatting cleanup

Change-Id: Ib70ee152c2b4d4538bab5053175770933094aeea
P31XX: rework brightness, update lux values

Thanks to tuxafgmur @ XDA

Change-Id: I45fcc8f7714316866fb46161ed15558ec5d1cce2
P31xx: Preload libjhead in init

Older camera HALs call on libexif, and with the name change to libjhead here:
https://android.googlesource.com/platform/external/jhead/+/acbfc9c1c7e1a84b0db4dc5bc3d5346b6c55c473

It cannot find the necessary functions/symbols. Loading libjhead before any other libraries
solves this problem nicely.

Thanks to arcee for advice on the fix!

Change-Id: I93c9423e5ac18df85787b058273fef1503e0aa14