View Single Post
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