Skip to content

Commit

Permalink
Add support for Crema Grande (#495)
Browse files Browse the repository at this point in the history
Commercial name of product: Crema Grande
Android Version: 4.4.2
Light: Tolino Ntx
Display: Freescale/NTX

Manufacturer: iwg
Brand: crema
Model: crema-0710c
Device: ntx_6sl
Product: ntx_6sl
Hardware: e60qn0
Platform: imx6
  • Loading branch information
Ki-qu authored Aug 7, 2024
1 parent f3cc017 commit 5393d61
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
9 changes: 9 additions & 0 deletions app/src/main/java/org/koreader/launcher/device/DeviceInfo.kt
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ object DeviceInfo {
BOYUE_T103D,
CREMA,
CREMA_0650L,
CREMA_0710C,
CREMA_CARTA_G,
ENERGY,
FIDIBOOK,
Expand Down Expand Up @@ -119,6 +120,7 @@ object DeviceInfo {
enum class LightsDevice {
NONE,
BOYUE_S62,
CREMA_0710C,
CREMA_CARTA_G,
MEEBOOK_P6,
NOOK_GL4,
Expand Down Expand Up @@ -204,6 +206,7 @@ object DeviceInfo {
private val BOYUE_T103D: Boolean
private val CREMA: Boolean
private val CREMA_0650L: Boolean
private val CREMA_0710C: Boolean
private val CREMA_CARTA_G: Boolean
private val EMULATOR_X86: Boolean
private val ENERGY: Boolean
Expand Down Expand Up @@ -346,6 +349,10 @@ object DeviceInfo {
CREMA_0650L = BRAND.contentEquals("crema")
&& PRODUCT.contentEquals("keplerb")

// Crema Grande
CREMA_0710C = BRAND.contentEquals("crema")
&& MODEL.contentEquals("crema-0710c")

// Crema Carta G
CREMA_CARTA_G = BRAND.contentEquals("crema")
&& MODEL.contentEquals("crema-0670c")
Expand Down Expand Up @@ -714,6 +721,7 @@ object DeviceInfo {
deviceMap[EinkDevice.BOYUE_T103D] = BOYUE_T103D
deviceMap[EinkDevice.CREMA] = CREMA
deviceMap[EinkDevice.CREMA_0650L] = CREMA_0650L
deviceMap[EinkDevice.CREMA_0710C] = CREMA_0710C
deviceMap[EinkDevice.CREMA_CARTA_G] = CREMA_CARTA_G
deviceMap[EinkDevice.ENERGY] = ENERGY
deviceMap[EinkDevice.FIDIBOOK] = FIDIBOOK
Expand Down Expand Up @@ -786,6 +794,7 @@ object DeviceInfo {
// devices with custom lights
val lightsMap = HashMap<LightsDevice, Boolean>()
lightsMap[LightsDevice.BOYUE_S62] = BOYUE_S62
lightsMap[LightsDevice.CREMA_0710C] = CREMA_0710C
lightsMap[LightsDevice.CREMA_CARTA_G] = CREMA_CARTA_G
lightsMap[LightsDevice.MEEBOOK_P6] = MEEBOOK_P6
lightsMap[LightsDevice.NOOK_GL4] = NOOK_GL4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ object EPDFactory {
}

DeviceInfo.EinkDevice.BOYUE_T65S,
DeviceInfo.EinkDevice.CREMA_0710C,
DeviceInfo.EinkDevice.JDREAD,
DeviceInfo.EinkDevice.LINFINY_ENOTE,
DeviceInfo.EinkDevice.NOOK,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ object LightsFactory {
logController("TolinoRoot")
TolinoRootController()
}
DeviceInfo.LightsDevice.CREMA_0710C,
DeviceInfo.LightsDevice.CREMA_CARTA_G,
DeviceInfo.LightsDevice.MEEBOOK_P6,
DeviceInfo.LightsDevice.RIDI_PAPER_3,
Expand Down

0 comments on commit 5393d61

Please sign in to comment.