From b2d8f73b3cfc8a2a9e5e3be51ff3ea075e24b3cc Mon Sep 17 00:00:00 2001 From: Lanchon Date: Thu, 17 Mar 2016 15:46:58 -0300 Subject: [PATCH] i9100g: added --- device/galaxy-s2/common.sh | 6 ++++- device/galaxy-s2/{ => exynos-4210}/d710.sh | 0 device/galaxy-s2/{ => exynos-4210}/i777.sh | 0 device/galaxy-s2/{ => exynos-4210}/i9100.sh | 0 device/galaxy-s2/{ => exynos-4210}/n7000.sh | 0 device/galaxy-s2/omap-4430/i9100g.sh | 26 +++++++++++++++++++++ 6 files changed, 31 insertions(+), 1 deletion(-) rename device/galaxy-s2/{ => exynos-4210}/d710.sh (100%) rename device/galaxy-s2/{ => exynos-4210}/i777.sh (100%) rename device/galaxy-s2/{ => exynos-4210}/i9100.sh (100%) rename device/galaxy-s2/{ => exynos-4210}/n7000.sh (100%) create mode 100644 device/galaxy-s2/omap-4430/i9100g.sh diff --git a/device/galaxy-s2/common.sh b/device/galaxy-s2/common.sh index edaec49..8d4b678 100644 --- a/device/galaxy-s2/common.sh +++ b/device/galaxy-s2/common.sh @@ -19,7 +19,11 @@ device_init() { # the block device on which REPIT will operate (only one device is supported): - sdev=/sys/devices/platform/dw_mmc/mmc_host/mmc0/mmc0:0001/block/mmcblk0 + # exynos 4210: + #sdev=/sys/devices/platform/dw_mmc/mmc_host/mmc0/mmc0:0001/block/mmcblk0 + # omap 4430: + #sdev=/sys/devices/platform/omap/omap_hsmmc.1/mmc_host/mmc0/mmc0:0001/block/mmcblk0 + sdev=/sys/block/mmcblk0 spar=$sdev/mmcblk0p ddev=/dev/block/mmcblk0 diff --git a/device/galaxy-s2/d710.sh b/device/galaxy-s2/exynos-4210/d710.sh similarity index 100% rename from device/galaxy-s2/d710.sh rename to device/galaxy-s2/exynos-4210/d710.sh diff --git a/device/galaxy-s2/i777.sh b/device/galaxy-s2/exynos-4210/i777.sh similarity index 100% rename from device/galaxy-s2/i777.sh rename to device/galaxy-s2/exynos-4210/i777.sh diff --git a/device/galaxy-s2/i9100.sh b/device/galaxy-s2/exynos-4210/i9100.sh similarity index 100% rename from device/galaxy-s2/i9100.sh rename to device/galaxy-s2/exynos-4210/i9100.sh diff --git a/device/galaxy-s2/n7000.sh b/device/galaxy-s2/exynos-4210/n7000.sh similarity index 100% rename from device/galaxy-s2/n7000.sh rename to device/galaxy-s2/exynos-4210/n7000.sh diff --git a/device/galaxy-s2/omap-4430/i9100g.sh b/device/galaxy-s2/omap-4430/i9100g.sh new file mode 100644 index 0000000..4f2740d --- /dev/null +++ b/device/galaxy-s2/omap-4430/i9100g.sh @@ -0,0 +1,26 @@ +##################################################### +# Lanchon REPIT - Device Handler # +# Copyright 2016, Lanchon # +##################################################### + +##################################################### +# Lanchon REPIT is free software licensed under # +# the GNU General Public License (GPL) version 3 # +# and any later version. # +##################################################### + +### i9100g + +device_checkDevice() { + + checkTool getprop + + case ":$(getprop ro.product.device):$(getprop ro.build.product):" in + *:i9100g:*) ;; + *:GT-I9100G:*) ;; + *) + fatal "this package is for '$deviceName' devices; this device is '$(getprop ro.product.device)'" + ;; + esac + +}