Skip to content
This repository has been archived by the owner on May 9, 2024. It is now read-only.

Commit

Permalink
Add TWRP, enable GPS
Browse files Browse the repository at this point in the history
  • Loading branch information
xunmod committed Feb 3, 2024
1 parent 7aabe4c commit d3403fa
Show file tree
Hide file tree
Showing 9 changed files with 57 additions and 144 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ jobs:
sudo rm -f /usr/bin/python
sudo ln -sf /usr/local/bin/python3.8 /usr/bin/python
repo init --depth=1 -u https://github.com/xunmod/android_manifest -b lollipop
mkdir .repo/local_manifests
wget https://github.com/minimal-manifest-twrp/platform_manifest_twrp_omni/blob/twrp-5.1/twrp-extras.xml -O .repo/local_manifests/twrp-extras.xml
repo sync -c -f --no-tags --no-clone-bundle -j16
rm -r device/softwinner/octopus-ibt
git clone --single-branch -b lollipop --depth 1 https://github.com/xunmod/android_device_ONDA_octopus-ibt device/ONDA/octopus-ibt
Expand Down
5 changes: 2 additions & 3 deletions BoardConfig.mk
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,8 @@ BOARD_SYSTEMIMAGE_PARTITION_SIZE := 104857600
BOARD_USERDATAIMAGE_PARTITION_SIZE := 2097152000

# recovery stuff
#TARGET_RECOVERY_PIXEL_FORMAT := "BGRA_8888"
TARGET_RECOVERY_UI_LIB := librecovery_ui_octopus_ibt
SW_BOARD_TOUCH_RECOVERY := true
TARGET_RECOVERY_PIXEL_FORMAT := "BGRA_8888"
include device/ONDA/octopus-ibt/recovery/twrp.mk

# wifi and bt configuration

Expand Down
1 change: 0 additions & 1 deletion device.mk
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ PRODUCT_COPY_FILES += \
device/ONDA/octopus-ibt/verity/rsa_key/verity_key:root/verity_key \
device/ONDA/octopus-ibt/init.recovery.sun8i.rc:root/init.recovery.sun8i.rc \
device/ONDA/octopus-ibt/ueventd.sun8i.rc:root/ueventd.sun8i.rc \
device/ONDA/octopus-ibt/recovery.fstab:recovery.fstab \
device/ONDA/octopus-ibt/modules/modules/nand.ko:root/nand.ko \
device/ONDA/octopus-ibt/modules/modules/sunxi_tr.ko:root/sunxi_tr.ko \
device/ONDA/octopus-ibt/modules/modules/disp.ko:root/disp.ko \
Expand Down
5 changes: 0 additions & 5 deletions init.recovery.sun8i.rc
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,3 @@ on init
mkdir /bootloader
exec /sbin/busybox sh /sbin/init_parttion.sh

service console /sbin/sh
console
disabled
user shell
group log
14 changes: 7 additions & 7 deletions init.sun8i.rc
Original file line number Diff line number Diff line change
Expand Up @@ -213,16 +213,16 @@ service p2p_supplicant /system/bin/wpa_supplicant \
-O/data/misc/wifi/sockets \
-g@android:wpa_wlan0
class main
socket wpa_wlan0 dgram 660 wifi wifi
Socket wpa_wlan0 dgram 660 wifi wifi
disabled
oneshot


## Run gps service
#service gps-daemon /system/bin/glgps -c /system/etc/gps/gpsconfig.xml
# class main
# socket gps seqpacket 0660 gps system
# socket rilgps.socket seqpacket 0660 gps system
# user gps
# group system inet sdcard_rw
service gps-daemon /system/bin/glgps -c /system/etc/gps/gpsconfig.xml
class main
socket gps seqpacket 0660 gps system
socket rilgps.socket seqpacket 0660 gps system
user gps
group system inet sdcard_rw

15 changes: 0 additions & 15 deletions recovery/Android.mk

This file was deleted.

113 changes: 0 additions & 113 deletions recovery/default_device.cpp

This file was deleted.

12 changes: 12 additions & 0 deletions recovery/twrp.fstab
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/bootloader vfat /dev/block/by-name/bootloader flags=display="Bootloader";backup=1;flashimg=1
/env emmc /dev/block/by-name/env flags=display="U-Boot env";backup=1;flashimg=1
/boot emmc /dev/block/by-name/boot flags=backup=1;flashimg=1
/system ext4 /dev/block/by-name/system flags=backup=1;flashimg=1
/data ext4 /dev/block/by-name/UDISK flags=backup=1;wipeingui;wipeduringfactoryreset;encryptable=/dev/block/by-name/metadata
/misc emmc /dev/block/by-name/misc flags=backup=1;flashimg=1
/recovery emmc /dev/block/by-name/recovery flags=backup=1;flashimg=1
/cache ext4 /dev/block/by-name/cache flags=backup=1;wipeingui;wipeduringfactoryreset
/external_sd vfat /dev/block/mmcblk1p1
/external_sd vfat /dev/block/mmcblk1
/external_sd vfat /dev/block/mmcblk0p1
/external_sd vfat /dev/block/mmcblk0
34 changes: 34 additions & 0 deletions recovery/twrp.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
LOCAL_PATH := device/ONDA/octopus-ibt

TARGET_USERIMAGES_USE_EXT4 := true
BOARD_HAS_LARGE_FILESYSTEM := true
BOARD_BOOTIMAGE_PARTITION_SIZE := 16384000
BOARD_RECOVERYIMAGE_PARTITION_SIZE := 32768000
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 1048576000
BOARD_USERDATAIMAGE_PARTITION_SIZE := 2097152000
BOARD_CACHEIMAGE_PARTITION_SIZE := 786432000
BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
BOARD_FLASH_BLOCK_SIZE := 131072

RECOVERY_SDCARD_ON_DATA := true
TARGET_RECOVERY_FSTAB := $(LOCAL_PATH)/recovery/twrp.fstab

TW_SCREEN_BLANK_ON_BOOT := true
TW_EXTRA_LANGUAGES := true
TW_THEME := landscape_hdpi
LOCAL_RESOLUTION := 1280x720
TARGET_SCREEN_WIDTH := 1280
TARGET_SCREEN_HEIGHT := 720
TW_SCREEN_BLANK_ON_BOOT := true
BOARD_SUPPRESS_SECURE_ERASE := true
TW_DEFAULT_EXTERNAL_STORAGE := false
TW_INCLUDE_FB2PNG := true
TW_INCLUDE_FUSE_EXFAT := true
TWRP_INCLUDE_LOGCAT := true
TW_INCLUDE_CRYPTO := true
TW_INCLUDE_NANO := true
TW_INCLUDE_SUPERSU := true
TW_DEFAULT_LANGUAGE := zh-CN
TW_USE_MODEL_HARDWARE_ID_FOR_DEVICE_ID := true
TARGET_USE_CUSTOM_LUN_FILE_PATH := "/sys/class/android_usb/android0/f_mass_storage/lun/file"
TWHAVE_SELINUX := true

0 comments on commit d3403fa

Please sign in to comment.