Skip to content
This repository has been archived by the owner on Sep 11, 2023. It is now read-only.

How to add new Devices to DualBootPatcher?

Youssif Shaaban Alsager edited this page Sep 6, 2017 · 1 revision

To add your/new device to DualBootPatcher you need to get some information first then add it to DualBootPatcher devices:

  1. Flash GetLogs-20161128-1.zip using recovery [TWRP highly recommended]
  2. Copy /sdcard/logs/[Date&Time].tar to PC, extract it and let's start.
  3. This is new device template: Here
  4. You'll edit all values between brackets.
  5. open logs/system/build.prop, you'll find: ro.product.model= is your (Device Name)

ro.product.name= and ro.product.device= is your (device id) and (device codename1), if you know more names for your device add it in (device codename2) / (device codename3)

ro.product.cpu.abi= is your (device architecture)

  1. open logs/recovery/recovery.fstab, you'll find main device mount points, copy each mount point to it name
  2. open logs/recovery/recovery.log, you'll find TW_BRIGHTNESS_PATH := /sys/class/leds/lcd-backlight/brightness this is your (brightness_path)

I:Got max brightness 255 is (max_brightness)

setting GGL_PIXEL_FORMAT_RGBA_8888 is (pixel_format)

  1. Note: you can get these info from BoradConfig.mk in your device twrp tree.

  2. Now read "Partition Logs:" in recovery.log

it'll tell us second mount point, as example /system | /dev/block/mmcblk0p41 so you should add it like

system:

  • /dev/block/bootdevice/by-name/system
  • /dev/block/mmcblk0p41

and so on with other partitions.

Checking more mounts: (not necessary but i recommend it)

open logs/listings/dev_full and scroll down to /dev/block/platform/soc.0 you'll find another main mount point which contain by-name and by-num folders like /dev/block/platform/soc.0/f9824900.sdhci

from /dev/block/platform/soc.0/f9824900.sdhci/by-name list copy each partition mount point to your device

  • Now we're done, you should have something like this

  • Open DualBootPatcher/data/devices/(your device manufacturer).yml and add your device codes.

then Check your code syntax here if everything is right, make commit to add your device to your repository.

  • Build apk using any method explained to test it.