Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 01-15-2018, 12:08 PM   #1
cryptocoryne
Member
cryptocoryne began at the beginning.
 
cryptocoryne's Avatar
 
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?
cryptocoryne is offline   Reply With Quote
Old 01-15-2018, 12:10 PM   #2
Cinisajoy
Just a Yellow Smiley.
Cinisajoy ought to be getting tired of karma fortunes by now.Cinisajoy ought to be getting tired of karma fortunes by now.Cinisajoy ought to be getting tired of karma fortunes by now.Cinisajoy ought to be getting tired of karma fortunes by now.Cinisajoy ought to be getting tired of karma fortunes by now.Cinisajoy ought to be getting tired of karma fortunes by now.Cinisajoy ought to be getting tired of karma fortunes by now.Cinisajoy ought to be getting tired of karma fortunes by now.Cinisajoy ought to be getting tired of karma fortunes by now.Cinisajoy ought to be getting tired of karma fortunes by now.Cinisajoy ought to be getting tired of karma fortunes by now.
 
Cinisajoy's Avatar
 
Posts: 19,161
Karma: 83862859
Join Date: Jul 2015
Location: Texas
Device: K4, K5, fire, kobo, galaxy
Quote:
Originally Posted by cryptocoryne View Post
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?
On the 5.8.9 probably.
Cinisajoy is offline   Reply With Quote
Advert
Old 01-15-2018, 12:24 PM   #3
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by cryptocoryne View Post
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?
That feature is firmware version specific, and has been broken for a long time.
Could you fix/update it for us?
knc1 is offline   Reply With Quote
Old 01-15-2018, 07:38 PM   #4
cryptocoryne
Member
cryptocoryne began at the beginning.
 
cryptocoryne's Avatar
 
Posts: 19
Karma: 10
Join Date: Jul 2014
Location: stupidville, Florida
Device: DXG (B009), K4 (9023), PW1 (B024), KT2 (90C6)
Quote:
Originally Posted by knc1 View Post
That feature is firmware version specific, and has been broken for a long time.
Could you fix/update it for us?
Unless it's something simple like /usr/share/webkit-1.0/pillow/javascripts/search_bar.js has been moved or STORE_ID renamed, I really doubt I can do much.

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';
to
Code:
const STORE_ID = 'file:///mnt/us/documents/KUAL-KDK-2.0.azw2';
but it has no effect after restarting (killall) cvm. Choosing the store menu item still gives me an error asking if I want to turn off airplane mode.

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
Copying them all to my PC and unzipping then (jar xf), I see they've mostly got button images in them.
cryptocoryne is offline   Reply With Quote
Old 01-15-2018, 08:35 PM   #5
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
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.
knc1 is offline   Reply With Quote
Advert
Old 01-16-2018, 04:02 PM   #6
cryptocoryne
Member
cryptocoryne began at the beginning.
 
cryptocoryne's Avatar
 
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";
and nothing happens.

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";
(I found aK="store" by searching the long line and figured it would probably do something.) Gotta copy this search_bar.js to PC and study it a bit after wrapping the lines.... Such fun!
cryptocoryne is offline   Reply With Quote
Old 01-16-2018, 04:47 PM   #7
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
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
knc1 is offline   Reply With Quote
Old 01-22-2018, 08:53 AM   #8
cryptocoryne
Member
cryptocoryne began at the beginning.
 
cryptocoryne's Avatar
 
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.
cryptocoryne is offline   Reply With Quote
Old 01-22-2018, 09:11 AM   #9
lucasmpr
Enthusiast
lucasmpr began at the beginning.
 
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
lucasmpr is offline   Reply With Quote
Old 01-22-2018, 10:18 AM   #10
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by cryptocoryne View Post
- - - -
I'm thinking of selling this evil amazon junk and looking for a more open reader.
(I deleted the "whatever" part - If you don't consider it relevant, why should it be included? ).

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.
knc1 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 05:00 PM.


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