Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support to Onyx Tab Ultra C Pro #535

Merged
merged 5 commits into from
Jan 9, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 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 @@ -114,6 +114,7 @@ object DeviceInfo {
ONYX_POKE_PRO,
ONYX_TAB_ULTRA,
ONYX_TAB_ULTRA_C,
ONYX_TAB_ULTRA_C_PRO,
PUBU_PUBOOK,
RIDI_PAPER_3,
SONY_CP1,
Expand Down Expand Up @@ -494,6 +495,10 @@ object DeviceInfo {
MANUFACTURER == "onyx" && MODEL == "tabultrac"
-> Id.ONYX_TAB_ULTRA_C

// Onyx Tab Ultra C Pro
BRAND == "onyx" && PRODUCT == "tabultracpro"
-> Id.ONYX_TAB_ULTRA_C_PRO

// Pubu Pubook
MANUFACTURER == STR_ROCKCHIP && BRAND == STR_ROCKCHIP && MODEL == "pubook" && DEVICE == "pubook" && HARDWARE == "rk30board"
-> Id.PUBU_PUBOOK
Expand Down Expand Up @@ -590,6 +595,7 @@ object DeviceInfo {
Id.ONYX_NOVA_AIR_C,
Id.ONYX_NOTE_AIR_3C,
Id.ONYX_TAB_ULTRA_C,
Id.ONYX_TAB_ULTRA_C_PRO,
-> true else -> false
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ object EPDFactory {
DeviceInfo.Id.ONYX_POKE_PRO,
DeviceInfo.Id.ONYX_TAB_ULTRA,
DeviceInfo.Id.ONYX_TAB_ULTRA_C,
DeviceInfo.Id.ONYX_TAB_ULTRA_C_PRO,
-> {
logController("Onyx/Qualcomm")
OnyxEPDController()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ object LightsFactory {
DeviceInfo.Id.ONYX_PAGE,
DeviceInfo.Id.ONYX_POKE5,
DeviceInfo.Id.ONYX_TAB_ULTRA_C,
DeviceInfo.Id.ONYX_TAB_ULTRA_C_PRO,
-> {
logController("Onyx Adb")
OnyxAdbLightsController()
Expand Down