![]() |
#1 |
Member
![]() Posts: 19
Karma: 10
Join Date: Jul 2014
Location: stupidville, Florida
Device: DXG (B009), K4 (9023), PW1 (B024), KT2 (90C6)
|
KUAL can't replace store button on KT2 and PW1
I noticed this KUAL button to replace the store button on both my jailbroken KT2 (Special Offers) 5.8.9.2 and PW1 (No Advertising) 5.6.1.1. So I pushed it and then restarted. No change. The little shopping cart is still up there at the top on both Kindles and prompts me to enable networking to connect to Amazon when I press it.
Is my firmware too new? |
![]() |
![]() |
![]() |
#2 | |
Just a Yellow Smiley.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,161
Karma: 83862859
Join Date: Jul 2015
Location: Texas
Device: K4, K5, fire, kobo, galaxy
|
Quote:
|
|
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
Could you fix/update it for us? |
|
![]() |
![]() |
![]() |
#4 | |
Member
![]() Posts: 19
Karma: 10
Join Date: Jul 2014
Location: stupidville, Florida
Device: DXG (B009), K4 (9023), PW1 (B024), KT2 (90C6)
|
Quote:
I'm not a developer and I don't know my arse from my elbow about javascript. But I decided to set up USBnetwork and ssh in to have a look in my KT2, just for fun. I thought maybe changing STORE_ID might work in system_menu.js (I'm guessing this is the menu that drops down off the 3 dots in the upper right corner.) So I changed Code:
const STORE_ID = 'app://com.lab126.store'; Code:
const STORE_ID = 'file:///mnt/us/documents/KUAL-KDK-2.0.azw2'; grepping *.js for STORE_ID says it only appears in these two files. Maybe these two files don't do anything anymore and are just leftover in 5.8.9.2? Maybe some other searchy, java-y files are involved? Code:
lsof | grep search cvm 16323 framework 60r REG 179,1 636 10305 /opt/amazon/ebook/lib/searchbar-resources.jar cvm 16323 framework 86r REG 179,1 131439 8196 /opt/amazon/ebook/lib/searchbar-assets.jar cvm 16323 framework 105r REG 179,1 11577 6604 /opt/amazon/ebook/lib/systembar-search-results-resources.jar cvm 16323 framework 177r REG 179,1 10064 9512 /opt/amazon/ebook/lib/searchbar-resources-en_gb-assets.jar |
|
![]() |
![]() |
![]() |
#5 |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Well, even experienced developers check all of the easy things.
You never know when there might be low hanging fruit. Thanks for checking. Evidently things have changed, it will take someone who can devote some time to fixing the store button thingy. Last edited by knc1; 01-15-2018 at 08:42 PM. |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Member
![]() Posts: 19
Karma: 10
Join Date: Jul 2014
Location: stupidville, Florida
Device: DXG (B009), K4 (9023), PW1 (B024), KT2 (90C6)
|
Some progress on the PW1...
In this 5.6.1.1 firmware search_bar.js is one monstrous line and changing the consts does have some effect: The kual button to "replace store button" sets: Code:
const F="file:///mnt/us/documents/KUAL-KDK-2.0.azw2"; If I change F to aK, the search bar at the top disappears altogether: Code:
const aK="file:///mnt/us/documents/KUAL-KDK-2.0.azw2"; |
![]() |
![]() |
![]() |
#7 |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
There are on-line tools to pretty-print js
|
![]() |
![]() |
![]() |
#8 |
Member
![]() Posts: 19
Karma: 10
Join Date: Jul 2014
Location: stupidville, Florida
Device: DXG (B009), K4 (9023), PW1 (B024), KT2 (90C6)
|
Even nicely formatted, it looks like they've deliberately obfuscated these scripts. Meaningful variable names are gone and it's all weird constants(Bz, A, D, C,....). This might be hard to untangle even if I knew something about javascript. There is also a lot of red herring(?) cruft lying around: things having to do with searching/social network rubbish-sites like baidu and goodreads.
Whatever.... I'm thinking of selling this evil amazon junk and looking for a more open reader. |
![]() |
![]() |
![]() |
#9 |
Enthusiast
![]() Posts: 45
Karma: 10
Join Date: Jul 2017
Device: Kindle
|
I dont think you should change an app:// to an file://
I dont see how it would work. Try typing that lipc-set-prop com.lab126.appmgrd start file:///mnt/us/documents/KUAL-KDK-2.0.azw2 |
![]() |
![]() |
![]() |
#10 | |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
![]() If you did that, where would you get the fun of the challenge from? There isn't much fun when everything is handed to you. |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
KUAL DateTime Button | knc1 | Kindle Developer's Corner | 65 | 11-17-2023 01:16 PM |
Kual Button for Amazon apps? | nasser | Kindle Developer's Corner | 21 | 10-03-2016 03:23 PM |
Trying to run KUAL on a KT2 | sbmk | Kindle Developer's Corner | 14 | 07-10-2016 04:45 AM |
[KUAL] Button Def. Packages (SUPERSEDED) | knc1 | Kindle Developer's Corner | 6 | 09-27-2013 07:56 PM |
KUAL DevHelp - dmesg->doc button | knc1 | Kindle Developer's Corner | 1 | 02-17-2013 01:26 PM |