Skip to content

Commit

Permalink
Initial Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
TheAndreiM committed Aug 21, 2024
0 parents commit 8f2699e
Show file tree
Hide file tree
Showing 24 changed files with 983 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.repo
19 changes: 19 additions & 0 deletions Android.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#
# Copyright (C) 2011 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.
#

LOCAL_PATH := $(call my-dir)

include $(call all-makefiles-under,$(LOCAL_PATH))
18 changes: 18 additions & 0 deletions AndroidProducts.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#
# Copyright (C) 2011 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.
#

PRODUCT_MAKEFILES := \
$(LOCAL_DIR)/full_SEDNAME.mk
28 changes: 28 additions & 0 deletions BoardConfig.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Copyright (C) 2011 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.

# Use the non-open-source part, if present
-include vendor/allwinner/SEDNAME/BoardConfigVendor.mk

# Use the part that is common between all allwinner
include device/allwinner/common/BoardConfig.mk

BOARD_CUSTOM_RECOVERY_KEYMAPPING := ../../device/allwinner/SEDNAME/recovery_keys.c

TARGET_KERNEL_CONFIG := SEDNAME_defconfig

SW_BOARD_USES_GSENSOR_TYPE := bma250
SW_BOARD_GSENSOR_XY_REVERT := true
SW_BOARD_GSENSOR_DIRECT_X := true
SW_BOARD_GSENSOR_DIRECT_Y := true
30 changes: 30 additions & 0 deletions README.MD
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# JukaDroidTSP

An Android Operating System for Trimui Smart Pro.

Please consider contributing to the source!

## Development Instructions

- Install git openjdk-11-jdk python3 repo
- Clone this repository, "git clone https://github.com/jukaLang/jukaDroidTSP"
- Initialize repo (setup main android source) "repo init -u https://android.googlesource.com/platform/manifest" and then do "repo sync" (may take hours)
- Clone all winner kernel, "git clone https://github.com/allwinner-dev-team/linux-allwinner.git -b allwinner-3.0"


TODO:
- Add Kernel Source
- Create or find a device tree for TSP


- Run "source build/envsetup.sh"
- "lunch aosp_arm64-eng"
- Compile code "make -j$(nproc)" <- will take many many hours.


Flash Images:
- fastboot flash boot boot.img
- fastboot flash system system.img
- fastboot flash userdata userdata.img
- fastboot flash recovery recovery.img
- fastboot reboot
21 changes: 21 additions & 0 deletions cm.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Release name
PRODUCT_RELEASE_NAME := SEDPRETTYNAME

# Boot animation
TARGET_BOOTANIMATION_NAME := horizontal-1024x768

# Inherit some common CM stuff.
$(call inherit-product, vendor/cm/config/common_full_tablet_wifionly.mk)

# Inherit device configuration
$(call inherit-product, device/allwinner/SEDNAME/full_SEDNAME.mk)

## Device identifier. This must come after all inclusions
PRODUCT_DEVICE := SEDNAME
PRODUCT_NAME := cm_SEDNAME
PRODUCT_BRAND := SEDBRANDING
PRODUCT_MODEL := SEDPRETTYNAME
PRODUCT_MANUFACTURER := Allwinner

#Set build fingerprint / ID / Product Name etc
PRODUCT_BUILD_PROP_OVERRIDES += PRODUCT_NAME=SEDNAME BUILD_FINGERPRINT="allwinner/SEDNAME/SEDNAME:4.0.4/IMM76I/330937:user/release-keys" PRIVATE_BUILD_DESC="SEDNAME-user 4.0.4 IMM76I 330937 release-keys"
34 changes: 34 additions & 0 deletions config/Goodix-TS-board-3.idc
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# 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.

# Basic Parameters
touch.deviceType = touchScreen
touch.orientationAware = 1

# Size
touch.size.calibration = diameter
touch.size.scale = 10
touch.size.bias = 0
touch.size.isSummed = 0

# Pressure
# Driver reports signal strength as pressure.
#
# A normal thumb touch typically registers about 200 signal strength
# units although we don't expect these values to be accurate.
touch.pressure.calibration = amplitude
touch.pressure.scale = 0.005

# Orientation
touch.orientation.calibration = none
1 change: 1 addition & 0 deletions config/axp20-supplyer.kl
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
key 116 POWER WAKE
142 changes: 142 additions & 0 deletions config/camera.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
;-------------------------------------------------------------------------------
; 1 for single camera, 2 for double camera
;-------------------------------------------------------------------------------
number_of_camera = 2

;-------------------------------------------------------------------------------
; CAMERA_FACING_BACK
; gc0308
;-------------------------------------------------------------------------------
camera_id = 1

;-------------------------------------------------------------------------------
; 1 for CAMERA_FACING_FRONT
; 0 for CAMERA_FACING_BACK
;-------------------------------------------------------------------------------
camera_facing = 1

;-------------------------------------------------------------------------------
; driver device name
;-------------------------------------------------------------------------------
camera_device = /dev/video0

;-------------------------------------------------------------------------------
; device id
; for two camera devices with one CSI
;-------------------------------------------------------------------------------
device_id = 0

used_preview_size = 1
key_support_preview_size = 640x480
key_default_preview_size = 640x480

used_picture_size = 1
key_support_picture_size = 1280x960,1280x1024,640x480,320x240
key_default_picture_size = 640x480

used_flash_mode = 0
key_support_flash_mode = on,off,auto
key_default_flash_mode = on

used_color_effect=1
key_support_color_effect = none,mono,negative,sepia,aqua
key_default_color_effect = none

used_frame_rate = 1
key_support_frame_rate = 25
key_default_frame_rate = 25

used_focus_mode = 0
key_support_focus_mode = auto,infinity,macro,fixed
key_default_focus_mode = auto

used_scene_mode = 0
key_support_scene_mode = auto,auto,portrait,landscape,night,night-portrait,theatre,beach,snow,sunset,steadyphoto,fireworks,sports,party,candlelight,barcode
key_default_scene_mode = auto

used_white_balance = 1
key_support_white_balance = auto,incandescent,fluorescent,warm-fluorescent,daylight,cloudy-daylight
key_default_white_balance = auto

used_exposure_compensation = 1
key_max_exposure_compensation = 4
key_min_exposure_compensation = -4
key_step_exposure_compensation = 1
key_default_exposure_compensation = 0

; only for facing back camera
used_zoom = 1
key_zoom_supported = true
key_smooth_zoom_supported = false
key_zoom_ratios = 100,120,150,200,230,250,300
key_max_zoom = 30
key_default_zoom = 0

;-------------------------------------------------------------------------------
; CAMERA_FACING_FRONT
; gt2005
;-------------------------------------------------------------------------------
camera_id = 0

;-------------------------------------------------------------------------------
; 1 for CAMERA_FACING_FRONT
; 0 for CAMERA_FACING_BACK
;-------------------------------------------------------------------------------
camera_facing = 0

;-------------------------------------------------------------------------------
; driver device name
;-------------------------------------------------------------------------------
camera_device = /dev/video0

;-------------------------------------------------------------------------------
; device id
; for two camera devices with one CSI
;-------------------------------------------------------------------------------
device_id = 1

used_preview_size = 1
key_support_preview_size = 1600x1200,640x480
key_default_preview_size = 640x480

used_picture_size = 1
key_support_picture_size = 2592x1936,2048x1536,1600x1200,1280x1024,1024x768,800x600,640x480
key_default_picture_size = 1600x1200

used_flash_mode = 0
key_support_flash_mode = on,off,auto,red-eye,torch
key_default_flash_mode = off

used_color_effect=1
key_support_color_effect = none,mono,negative,sepia,aqua
key_default_color_effect = none

used_frame_rate = 1
key_support_frame_rate = 15, 30
key_default_frame_rate = 30

used_focus_mode = 0
key_support_focus_mode = auto,infinity,macro,fixed
key_default_focus_mode = auto

used_scene_mode = 0
key_support_scene_mode = auto,auto,portrait,landscape,night,night-portrait,theatre,beach,snow,sunset,steadyphoto,fireworks,sports,party,candlelight,barcode
key_default_scene_mode = auto

used_white_balance = 1
key_support_white_balance = auto,incandescent,fluorescent,warm-fluorescent,daylight,cloudy-daylight
key_default_white_balance = auto

used_exposure_compensation = 1
key_max_exposure_compensation = 4
key_min_exposure_compensation = -4
key_step_exposure_compensation = 1
key_default_exposure_compensation = 0

; only for facing back camera
used_zoom = 1
key_zoom_supported = true
key_smooth_zoom_supported = false
key_zoom_ratios = 100,120,150,200,230,250,300
key_max_zoom = 30
key_default_zoom = 0
3 changes: 3 additions & 0 deletions config/devicespecific.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/sbin/sh

# device specific commands to run on postrecoveryboot
Loading

0 comments on commit 8f2699e

Please sign in to comment.