Skip to content

Commit

Permalink
initial commit of p1-common
Browse files Browse the repository at this point in the history
  • Loading branch information
chirayudesai committed Mar 7, 2012
0 parents commit 771f07c
Show file tree
Hide file tree
Showing 202 changed files with 50,479 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Android.mk
@@ -0,0 +1,17 @@
# Copyright (C) 2010 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

ifeq ($(TARGET_BOOTLOADER_BOARD_NAME),s5pc110)
include $(all-subdir-makefiles)
endif
106 changes: 106 additions & 0 deletions BoardConfigCommon.mk
@@ -0,0 +1,106 @@
#
# Copyright (C) 2009 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# BoardConfig.mk
#
# Product-specific compile-time definitions.
#

# Set this up here so that BoardVendorConfig.mk can override it
BOARD_USES_GENERIC_AUDIO := false

BOARD_USES_LIBSECRIL_STUB := true

# ARMv7-A Cortex-A8 architecture
TARGET_CPU_ABI := armeabi-v7a
TARGET_CPU_ABI2 := armeabi
TARGET_ARCH_VARIANT := armv7-a-neon
ARCH_ARM_HAVE_TLS_REGISTER := true
TARGET_GLOBAL_CFLAGS += -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp
TARGET_GLOBAL_CPPFLAGS += -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp
ARCH_ARM_HAVE_TLS_REGISTER := true

TARGET_NO_BOOTLOADER := true
TARGET_NO_RADIOIMAGE := true

TARGET_PROVIDES_INIT := true
TARGET_RECOVERY_INITRC := device/samsung/p1-common/recovery.rc

TARGET_BOARD_PLATFORM := s5pc110
TARGET_BOARD_PLATFORM_GPU := POWERVR_SGX540_120
TARGET_BOOTLOADER_BOARD_NAME := s5pc110

TARGET_PROVIDES_LIBAUDIO := true

# Releasetools
TARGET_RELEASETOOL_OTA_FROM_TARGET_SCRIPT := ./device/samsung/p1-common/releasetools/p1_ota_from_target_files
TARGET_RELEASETOOL_IMG_FROM_TARGET_SCRIPT := ./device/samsung/p1-common/releasetools/p1_img_from_target_files

# Bluetooth
BOARD_HAVE_BLUETOOTH := true
BOARD_HAVE_BLUETOOTH_BCM := true

# WiFi related defines
BOARD_WPA_SUPPLICANT_DRIVER := WEXT
WPA_SUPPLICANT_VERSION := VER_0_8_X
BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_wext
BOARD_WLAN_DEVICE := bcm4329
WIFI_DRIVER_MODULE_PATH := "/system/lib/modules/dhd.ko"
WIFI_DRIVER_MODULE_ARG := "firmware_path=/system/etc/wifi/bcm4329_sta.bin nvram_path=/system/etc/wifi/nvram_net.txt dhd_watchdog_ms=10 dhd_poll=1"
WIFI_DRIVER_FW_PATH_AP := "/system/etc/wifi/bcm4329_aps.bin"
WIFI_DRIVER_FW_PATH_STA := "/system/etc/wifi/bcm4329_sta.bin"
WIFI_DRIVER_MODULE_NAME := "dhd"
BOARD_WEXT_NO_COMBO_SCAN := true

USE_CAMERA_STUB := false
ifeq ($(USE_CAMERA_STUB),false)
BOARD_CAMERA_LIBRARIES := libcamera
endif
BOARD_V4L2_DEVICE := /dev/video1
BOARD_CAMERA_DEVICE := /dev/video0
BOARD_SECOND_CAMERA_DEVICE := /dev/video2

# OpenGL stuff
BOARD_EGL_CFG := device/samsung/p1-common/prebuilt/lib/egl/egl.cfg
USE_OPENGL_RENDERER := true

# skia
BOARD_USE_SKIA_LCDTEXT := true

# Device related defines
BOARD_NAND_PAGE_SIZE := 4096 -s 128
BOARD_KERNEL_BASE := 0x32000000
BOARD_KERNEL_PAGESIZE := 4096
BOARD_KERNEL_CMDLINE := console=ttyFIQ0,115200 init=/init no_console_suspend

BOARD_BOOTIMAGE_PARTITION_SIZE := 7864320
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 262144000
BOARD_USERDATAIMAGE_PARTITION_SIZE := 1319108608
BOARD_FLASH_BLOCK_SIZE := 4096

# Vold
BOARD_VOLD_EMMC_SHARES_DEV_MAJOR := true
TARGET_USE_CUSTOM_LUN_FILE_PATH := "/sys/devices/platform/usb_mass_storage/lun0/file"

# Recovery
TARGET_USERIMAGES_USE_EXT4 := true
BOARD_HAS_NO_SELECT_BUTTON := true
BOARD_CUSTOM_BOOTIMG_MK := device/samsung/p1-common/shbootimg.mk
TARGET_RECOVERY_PRE_COMMAND := "echo 1 > /cache/.startrecovery; sync;"
BOARD_CUSTOM_GRAPHICS := ../../../device/samsung/p1-common/recovery/graphics.c
BOARD_USES_BML_OVER_MTD := true

# MTP
BOARD_MTP_DEVICE := "/dev/usb_mtp_gadget"
98 changes: 98 additions & 0 deletions Credits.html
@@ -0,0 +1,98 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=iso-8859-1">
<TITLE></TITLE>
<META NAME="GENERATOR" CONTENT="OpenOffice.org 3.2 (Linux)">
<META NAME="AUTHOR" CONTENT="desktop ">
<META NAME="CREATED" CONTENT="20111224;4343000">
<META NAME="CHANGEDBY" CONTENT="desktop ">
<META NAME="CHANGED" CONTENT="20111225;6261100">
<META NAME="CHANGEDBY" CONTENT="desktop ">
<META NAME="CHANGEDBY" CONTENT="desktop ">
<META NAME="CHANGEDBY" CONTENT="desktop ">
<META NAME="CHANGEDBY" CONTENT="desktop ">
<META NAME="CHANGEDBY" CONTENT="desktop ">
<META NAME="CHANGEDBY" CONTENT="desktop ">
<STYLE TYPE="text/css">
<!--
@page { margin: 2cm }
P { margin-bottom: 0.21cm }
-->
</STYLE>
</HEAD>
<BODY LANG="fr-FR" DIR="LTR">
<H1 ALIGN=CENTER STYLE="margin-top: 0cm; margin-bottom: 0cm; background: transparent; text-decoration: none">
<FONT FACE="Arial Black, sans-serif"><FONT SIZE=5><B>CyanogenMod 9</B></FONT></FONT></H1>
<H1 ALIGN=CENTER STYLE="margin-top: 0cm; margin-bottom: 0cm; background: transparent">
<BR>
</H1>
<H1 ALIGN=CENTER STYLE="margin-top: 0cm; margin-bottom: 0cm; background: transparent">
<FONT FACE="Arial, sans-serif"><FONT SIZE=2><B><SPAN STYLE="text-decoration: none"><FONT FACE="Tahoma, sans-serif">Th</FONT></SPAN><FONT FACE="Tahoma, sans-serif">is
is an unofficial</FONT> <FONT FACE="Tahoma, sans-serif">port of
cyanogenmod 9 for Galaxy Tab (P1).</FONT></B></FONT></FONT></H1>
<P ALIGN=CENTER STYLE="background: transparent"><BR><BR>
</P>
<P ALIGN=CENTER STYLE="background: transparent"><FONT FACE="Tahoma, sans-serif"><FONT SIZE=2>Official
thread : <A HREF="http://forum.xda-developers.com/showthread.php?t=1101218">http://forum.xda-developers.com/showthread.php?t=1385153</A></FONT></FONT></P>
<P ALIGN=CENTER STYLE="background: transparent"><FONT FACE="Tahoma, sans-serif"><FONT SIZE=2>Visit
<A HREF="http://www.cyanogenmod.com/">http://www.cyanogenmod.com</A>
!</FONT></FONT></P>
<P ALIGN=CENTER STYLE="background: transparent"><BR><BR>
</P>
<P ALIGN=CENTER STYLE="background: transparent"><FONT FACE="Tahoma, sans-serif"><FONT SIZE=3>This
ROM is free of charge and must not be sold. You are free to copy and
distribute it as long as this file remains unchanged.</FONT></FONT></P>
<P ALIGN=CENTER STYLE="background: transparent"><BR><BR>
</P>

<P ALIGN=CENTER STYLE="margin-bottom: 0cm; background: transparent; text-decoration: none">
<FONT FACE="Tahoma, sans-serif"><FONT SIZE=3><B>Greetings to</B></FONT></FONT></P>
<P ALIGN=CENTER STYLE="margin-bottom: 0cm; background: transparent"><BR>
</P>
<P ALIGN=CENTER STYLE="margin-bottom: 0cm; background: transparent; font-weight: normal; text-decoration: none">
<FONT FACE="Tahoma, sans-serif"><FONT SIZE=2>me (cdesai)</FONT></FONT></P>
<P ALIGN=CENTER STYLE="margin-bottom: 0cm; background: transparent; font-weight: normal; text-decoration: none">
<FONT FACE="Tahoma, sans-serif"><FONT SIZE=2>angel_666</FONT></FONT></P>
<P ALIGN=CENTER STYLE="margin-bottom: 0cm; background: transparent; font-weight: normal; text-decoration: none">
<FONT FACE="Tahoma, sans-serif"><FONT SIZE=2>koxudaxi</FONT></FONT></P>
<P ALIGN=CENTER STYLE="margin-bottom: 0cm; background: transparent; font-weight: normal; text-decoration: none">
<FONT FACE="Tahoma, sans-serif"><FONT SIZE=2>Humberos</FONT></FONT></P>
<P ALIGN=CENTER STYLE="margin-bottom: 0cm; background: transparent; font-weight: normal; text-decoration: none">
<FONT FACE="Tahoma, sans-serif"><FONT SIZE=2>red_rebel</FONT></FONT></P>
<P ALIGN=CENTER STYLE="margin-bottom: 0cm; background: transparent; font-weight: normal; text-decoration: none">
<FONT FACE="Tahoma, sans-serif"><FONT SIZE=2>sbradymobile</FONT></FONT></P>
<P ALIGN=CENTER STYLE="margin-bottom: 0cm; background: transparent; font-weight: normal; text-decoration: none">
<FONT FACE="Tahoma, sans-serif"><FONT SIZE=2>jt1134</FONT></FONT></P>
<P ALIGN=CENTER STYLE="margin-bottom: 0cm; background: transparent; font-weight: normal; text-decoration: none">
<FONT FACE="Tahoma, sans-serif"><FONT SIZE=2>Techomancer</FONT></FONT></P>
<P ALIGN=CENTER STYLE="margin-bottom: 0cm; background: transparent; font-weight: normal; text-decoration: none">
<FONT FACE="Tahoma, sans-serif"><FONT SIZE=2>Cyanogenmod Team</FONT></FONT></P>
<P ALIGN=CENTER STYLE="margin-bottom: 0cm; background: transparent; font-weight: normal; text-decoration: none">
<FONT FACE="Tahoma, sans-serif"><FONT SIZE=2>TeamHacksung!</FONT></FONT></P>
<P ALIGN=CENTER STYLE="margin-bottom: 0cm; background: transparent; font-weight: normal; text-decoration: none">
<FONT FACE="Tahoma, sans-serif"><FONT SIZE=2>Google!</FONT></FONT></P>
<P ALIGN=CENTER STYLE="margin-bottom: 0cm; background: transparent; font-weight: normal; text-decoration: none">
<FONT FACE="Tahoma, sans-serif"><FONT SIZE=2>Samsung</FONT></FONT></P>
<P ALIGN=CENTER STYLE="margin-bottom: 0cm; background: transparent; font-weight: normal; text-decoration: none">
<FONT FACE="Tahoma, sans-serif"><FONT SIZE=2>All the Tab community@xda</FONT></FONT></P>
<P ALIGN=CENTER STYLE="margin-bottom: 0cm; background: transparent; font-weight: normal; text-decoration: none">
<FONT FACE="Tahoma, sans-serif"><FONT SIZE=2>All the folks who have worked on aries and the tab</FONT></FONT></P>
<P ALIGN=CENTER STYLE="margin-bottom: 0cm; background: transparent; font-weight: normal; text-decoration: none">
<FONT FACE="Tahoma, sans-serif"><FONT SIZE=2>All the XDA developers</FONT></FONT></P>
<P ALIGN=CENTER STYLE="margin-bottom: 0cm; background: transparent; font-weight: normal; text-decoration: none">
<FONT FACE="Tahoma, sans-serif"><FONT SIZE=2>And anyone else i forgot</FONT></FONT></P>
<P ALIGN=CENTER STYLE="margin-bottom: 0cm; background: transparent"><BR>
</P>
<P ALIGN=CENTER STYLE="margin-bottom: 0cm; background: transparent"><BR>
</P>
<P ALIGN=CENTER STYLE="margin-bottom: 0cm; background: transparent"><FONT FACE="Tahoma, sans-serif"><FONT SIZE=2>Enjoy
this ROM!</FONT></FONT></P>
<P ALIGN=CENTER STYLE="margin-bottom: 0cm; background: transparent"><BR>
</P>
<P STYLE="margin-bottom: 0cm; background: transparent"><BR>
</P>
<P STYLE="margin-bottom: 0cm"><BR>
</P>
</BODY>
</HTML>
16 changes: 16 additions & 0 deletions P1Parts/Android.mk
@@ -0,0 +1,16 @@
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)

LOCAL_MODULE_TAGS := optional

LOCAL_SRC_FILES := $(call all-java-files-under, src)

LOCAL_PACKAGE_NAME := P1Parts
LOCAL_CERTIFICATE := platform

# Required so that symbols used by the jni library doesn't get stripped out
LOCAL_PROGUARD_ENABLED := disabled

include $(BUILD_PACKAGE)

include $(call all-makefiles-under,$(LOCAL_PATH))
29 changes: 29 additions & 0 deletions P1Parts/AndroidManifest.xml
@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.cyanogenmod.P1Parts" android:sharedUserId="android.uid.system">
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS" />
<application android:label="@string/app_name">
<activity android:name=".P1Parts"
android:label="@string/app_name">
<intent-filter>
<action android:name="com.cyanogenmod.action.LAUNCH_DEVICE_SETTINGS" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<receiver android:name=".Startup">
<intent-filter android:priority="100">
<action android:name="android.intent.action.BOOT_COMPLETED" />
</intent-filter>
</receiver>
<service android:name=".TvOutService" />
<activity android:name=".Credits">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
</intent-filter>
</activity>
</application>
</manifest>
9 changes: 9 additions & 0 deletions P1Parts/res/drawable/color_tuning_preview.xml
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
android:angle="0"
android:startColor="#000000"
android:endColor="#FFFFFF" />
</shape>
92 changes: 92 additions & 0 deletions P1Parts/res/layout/preference_dialog_color_tuning.xml
@@ -0,0 +1,92 @@
<?xml version="1.0" encoding="utf-8"?>

<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">

<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center_horizontal"
android:paddingBottom="20dip">

<TextView android:id="@+id/color_red_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/color_red_title"
android:paddingTop="10dip"
android:paddingLeft="20dip"
android:paddingRight="20dip" />
<TextView android:id="@+id/color_red_value"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:paddingTop="10dip"
android:paddingLeft="20dip"
android:paddingRight="20dip" />
<SeekBar android:id="@+id/color_red_seekbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/color_red_text"
android:paddingTop="2dip"
android:paddingLeft="20dip"
android:paddingRight="20dip" />

<TextView android:id="@+id/color_green_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/color_red_seekbar"
android:text="@string/color_green_title"
android:paddingTop="10dip"
android:paddingLeft="20dip"
android:paddingRight="20dip" />
<TextView android:id="@+id/color_green_value"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/color_red_seekbar"
android:layout_alignParentRight="true"
android:paddingTop="10dip"
android:paddingLeft="20dip"
android:paddingRight="20dip" />
<SeekBar android:id="@+id/color_green_seekbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/color_green_text"
android:paddingTop="2dip"
android:paddingLeft="20dip"
android:paddingRight="20dip" />

<TextView android:id="@+id/color_blue_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/color_green_seekbar"
android:text="@string/color_blue_title"
android:paddingTop="10dip"
android:paddingLeft="20dip"
android:paddingRight="20dip" />
<TextView android:id="@+id/color_blue_value"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/color_green_seekbar"
android:layout_alignParentRight="true"
android:paddingTop="10dip"
android:paddingLeft="20dip"
android:paddingRight="20dip" />
<SeekBar android:id="@+id/color_blue_seekbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/color_blue_text"
android:paddingTop="2dip"
android:paddingLeft="20dip"
android:paddingRight="20dip" />

<ImageView android:src="@drawable/color_tuning_preview"
android:layout_width="match_parent"
android:layout_height="40dip"
android:layout_below="@id/color_blue_seekbar"
android:paddingTop="20dip"
android:paddingLeft="20dip"
android:paddingRight="20dip" />

</RelativeLayout>
</ScrollView>
18 changes: 18 additions & 0 deletions P1Parts/res/values-de/arrays.xml
@@ -0,0 +1,18 @@
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<string-array name="backlight_timeout_entries">
<item>Standard (1,6 Sekunden)</item>
<item>0,5 Sekunden</item>
<item>2 Sekunden</item>
<item>5 Sekunden</item>
<item>10 Sekunden</item>
<item>15 Sekunden</item>
<item>30 Sekunden</item>
<item>Nie</item>
</string-array>

<string-array name="hspa_entries">
<item>Nur UMTS</item>
<item>Nur HSDPA</item>
<item>HSDPA + HSUPA</item>
</string-array>
</resources>

0 comments on commit 771f07c

Please sign in to comment.