Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader > Kobo Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 05-11-2016, 04:36 AM   #1
pipcat
Connoisseur
pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.
 
Posts: 65
Karma: 200153
Join Date: Apr 2016
Device: Kobo Glo Hd
How to show games on Beta Features for Kobo Glo Hd

I bought my e-reader to read not to play, but if games are already in source code I prefer they are not hidden ;-)

This patches are only for Kobo Glo Hd, who doesn't show games on Beta Features screen.

Inside nickel there are some compressed streams (.qm for translations, .png, .css, ...).
In one of those css, there is the code that causes games are not shown on GloHd:
Spoiler:
#boggleContainer[qApp_deviceIsAlyssum="true"],
#solitaireContainer[qApp_deviceIsAlyssum="true"],
#rushHourContainer[qApp_deviceIsAlyssum="true"],
#sudokuContainer[qApp_deviceIsAlyssum="true"],
#sketchPadContainer[qApp_deviceIsAlyssum="true"] {
qproperty-visible: false;
}


With a python script, I changed that code, with care to respect the same number of bytes. You can install the resulting nickel with attached KoboRoot.tgz, or you can execute attached python code to do by your own.

My first attempt blocked my e-reader because I forgot to set attribute executable on nickel file! But after a factory reset (thx davidfor!), I tried again with permission set and that's right ;-) Attached files are ok with that.

With nickel patch, games are shown on Beta Features, but only the first page (Sketch Pad, Sudoku, Web Browser, Unblock It). The second page (Solitaire, Word Scramble) is not available. That is because a check is done on libnickel, so we must reverse that check with a patch, that could be processed inside libnickel.so.1.0.0.patch (from GeoffR patching instructions).
Spoiler:
<Patch>
patch_name = `Show second page of Beta Features for Glo Hd`
patch_enable = `yes`
#
replace_bytes = 986010, 00, 01
</Patch>


Python script could be useful for other firmwares, but KoboRoot.tgz and Patch are only for 3.19.5671!
Attached Files
File Type: zip nickel-patch-games.zip (4.19 MB, 763 views)
pipcat is offline   Reply With Quote
Old 05-11-2016, 11:41 AM   #2
tshering
Wizard
tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.
 
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
Nice idea! I adapted it for the "Modifications for bad eyes" patcher (link). I hope you do not mind.
tshering is offline   Reply With Quote
Advert
Old 05-11-2016, 11:46 AM   #3
pipcat
Connoisseur
pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.
 
Posts: 65
Karma: 200153
Join Date: Apr 2016
Device: Kobo Glo Hd
Thx tshering, well done!
If you have a "Trilogy" e-reader (Touch ?) that patch will do opposite effect, so it will hide games in Beta Features screen. Maybe it's a feature someone also wants ;-)
pipcat is offline   Reply With Quote
Old 05-11-2016, 12:54 PM   #4
surquizu
Evangelist
surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.
 
surquizu's Avatar
 
Posts: 411
Karma: 902071
Join Date: Jun 2008
Location: Zaragoza (Spain)
Device: prs-505, kobo auraHD, kobo auraH2O, kobo Glo HD, kobo aura ONE
Thanks pipcat, the patch works perfectly.
surquizu is offline   Reply With Quote
Old 05-11-2016, 07:33 PM   #5
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by pipcat View Post
Thx tshering, well done!
If you have a "Trilogy" e-reader (Touch ?) that patch will do opposite effect, so it will hide games in Beta Features screen. Maybe it's a feature someone also wants ;-)
Yes it is. There's been at least one person asking how to hide the games.
davidfor is offline   Reply With Quote
Advert
Old 05-12-2016, 06:44 AM   #6
pipcat
Connoisseur
pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.
 
Posts: 65
Karma: 200153
Join Date: Apr 2016
Device: Kobo Glo Hd
I realised that Word Scramble game is shown only for locales en, de, it, because it doesn't appears with my ca locale.
To show it for all locales we must apply a patch to libnickel.so.1.0.0 (only for fw 3.19.5761!)
Spoiler:
<Patch>
patch_name = `Show scramble game for all locales`
patch_enable = `yes`
#
# Scramble game is shown only for locales en, de, it. With this patch it's shown for all locales. (only for fw 3.19.5761!)
replace_bytes = 985FC6, 3E D0, 00 90
</Patch>
pipcat is offline   Reply With Quote
Old 02-17-2017, 04:26 AM   #7
Semwize
Guru
Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.
 
Posts: 873
Karma: 252902
Join Date: Jun 2016
Device: Kobo
Python script works fine

`Show second page of Beta Features for Glo Hd` firmware 4.2.8432 does not work, unfortunately
Semwize is offline   Reply With Quote
Old 09-08-2017, 10:04 PM   #8
tickyd
Junior Member
tickyd began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Sep 2017
Device: Kobo Glo HD
Sorry to bump an old thread, but I couldn’t find anyone giving these patches any love of late! 😅

After some investigation, I’ve discovered the updated offsets for the “show second page” patch is 7c46b0 as of v4.5.9587. So here’s an updated patch:

Code:
<Patch>
patch_name = `Show second page of Beta Features for Glo Hd`
patch_enable = `yes`
#
replace_bytes = 7c46b0, 00, 01
</Patch>
For future reference, this offset can be found by reversing libnickel.so and finding the offset of a “cmp r0, #0” instruction immediately following a “blx” call to a function with a label containing “isAlyssum”

EDIT: Reversing involved using objdump like this:
Code:
gobjdump --target=elf32-littlearm -f -S -d libnickel.so.1.0.0
The Kobo firmware includes a surprising amount of debug information, which is useful! You can then search through the output to find “isAlyssum” and find the “cmp” line.

Hope that helps someone out!

Last edited by tickyd; 09-09-2017 at 02:16 AM. Reason: Add objdump info
tickyd is offline   Reply With Quote
Old 09-28-2017, 04:21 PM   #9
m-p{3}
Member
m-p{3} began at the beginning.
 
m-p{3}'s Avatar
 
Posts: 21
Karma: 10
Join Date: Mar 2017
Location: 🇨🇦
Device: Kobo Glo HD
Totally a noob regarding this, how would I apply that to my Kobo Glo HD on 4.5.9587?

EDIT: Nevermind, added the patch to the "Instructions for patching firmware 4.5.9587" package.

Sadly, page 2 is empty.

Last edited by m-p{3}; 09-28-2017 at 04:35 PM.
m-p{3} is offline   Reply With Quote
Old 10-01-2017, 01:56 PM   #10
philie
Junior Member
philie began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Oct 2014
Device: kobo glo
Smile Games install on Glo HD 4.5.9587

Hello , Does anybody know an easy way to have the games on a Glo HD
by install like

KoboRoot.tgz and Patch for 4.5.9587 please help me
philie is offline   Reply With Quote
Old 10-25-2017, 06:26 PM   #11
m-p{3}
Member
m-p{3} began at the beginning.
 
m-p{3}'s Avatar
 
Posts: 21
Karma: 10
Join Date: Mar 2017
Location: 🇨🇦
Device: Kobo Glo HD
Hi philie, I don't think this is possible anymore on firmware 4.x and newer.
m-p{3} is offline   Reply With Quote
Old 10-26-2017, 12:05 AM   #12
tickyd
Junior Member
tickyd began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Sep 2017
Device: Kobo Glo HD
It’s definitely possible on 4.x, you just need both the first patch from the original post, and my updated version of the “Show second page of Beta Features for Glo Hd” patch. They work together.
tickyd is offline   Reply With Quote
Old 10-26-2017, 03:46 AM   #13
Semwize
Guru
Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.
 
Posts: 873
Karma: 252902
Join Date: Jun 2016
Device: Kobo
Quote:
Originally Posted by tickyd View Post
It’s definitely possible on 4.x, you just need both the first patch from the original post, and my updated version of the “Show second page of Beta Features for Glo Hd” patch. They work together.
On FW 4.6.9995 do not work, unfortunately: (
Semwize is offline   Reply With Quote
Old 10-27-2017, 12:18 AM   #14
tickyd
Junior Member
tickyd began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Sep 2017
Device: Kobo Glo HD
Quote:
Originally Posted by Semwize View Post
On FW 4.6.9995 do not work, unfortunately: (
Yes, the offset will need to be found again for the new firmware using the instructions I posted previously.
tickyd is offline   Reply With Quote
Old 10-27-2017, 05:30 AM   #15
traycold
Connoisseur
traycold doesn't littertraycold doesn't litter
 
Posts: 63
Karma: 196
Join Date: Oct 2010
Device: Kobo Glo Hd, Kobo H2O2
Quote:
Originally Posted by tickyd View Post
Yes, the offset will need to be found again for the new firmware using the instructions I posted previously.
hi, I tried to find new offset with objdump on firmware 4.6.9995 (I used the command from the toolchain found on this post), but either I did something wrong or maybe the code of the library changed in a relevant way, I was not able to identify the new offset of the statement to patch.
Could you help?
traycold is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Glo easy way to display games & tools on Kobo Glo HD nicopilami Kobo Developer's Corner 11 02-13-2017 04:36 PM
El Capitan Beta 1 - device connect issue (Kobo Glo HD) brandon_ Devices 3 07-10-2015 03:10 PM
Beta Features - Kobo Touch tigerstripe Kobo Reader 3 02-16-2015 08:34 AM
Glo (Kobo Glo) Show 'em if you got them! tnforpaul45 Kobo Reader 11 10-11-2012 11:39 PM
Beta Beta Test of Major New Features Starson17 Calibre 45 05-17-2010 10:55 AM


All times are GMT -4. The time now is 02:41 PM.


MobileRead.com is a privately owned, operated and funded community.