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 04-17-2013, 09:52 PM   #1
fireether
Junior Member
fireether began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Apr 2013
Device: Kindle 3 Wifi
Kindle 3 wifi keeps deleting Developer Keystore every time wifi is turned on.

Hi,

I registered just to post this. I also found a solution (kind of) for the issue. I'm more than happy to post my notes, but first wanted to know if anybody else had this problem. I've searched the forums and couldn't find anything.

First of all, my k3w is jail broken with ver 3.4 installed. My issue is that my Kindle is not registered, yet every time it connects to the internet - it will check to see if the device is registered and then delete the developers keystore (which I installed from KUAL prerequisites) and then leave a nice document in my home titled: "Test Kindle Installation Result".

I've reinstalled the key store, but every time I go online it gets deleted.

Anybody else have this issue? If so, how did you solve it? I'll post my notes once I know for sure that this isn't a duplicate of another post.
fireether is offline   Reply With Quote
Old 04-17-2013, 10:00 PM   #2
fireether
Junior Member
fireether began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Apr 2013
Device: Kindle 3 Wifi
Just found this thread that dealt with this problem.
https://www.mobileread.com/forums/sho...d.php?t=194795

My solution was to add a line to the hosts file.

echo "192.168.5.2 firs-g7g.amazon.com" > /etc/hosts

I guess I'll have to try chattr versus the above solution and see which uses the least amount of CPU - i.e. spamming log with "cannot delete" versus trying to connect to the server (and not getting a response).

I also found where in the java file this is done.
fireether is offline   Reply With Quote
Advert
Old 04-18-2013, 09:46 AM   #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 fireether View Post

First of all, my k3w is jail broken with ver 3.4 installed. My issue is that my Kindle is not registered, yet every time it connects to the internet - it will check to see if the device is registered and then delete the developers keystore (which I installed from KUAL prerequisites) and then leave a nice document in my home titled: "Test Kindle Installation Result".

I've reinstalled the key store, but every time I go online it gets deleted.

Anybody else have this issue? If so, how did you solve it? I'll post my notes once I know for sure that this isn't a duplicate of another post.
That is a normal part of the registration process.
Just register the device, **THEN** re-install the key store.

The diverting by domain name is a poor idea - it only takes the address owner a few minutes to change and/or add a new name. Rendering your solution suddenly useless.

Blocking by address range is harder (and much more expensive) for the address owner to avoid.
That is the method used in the BBB (Block Big Brother) filter of the KUAL.firewall, you might want to try that instead of your own solution.

PS: Your command example presumes that **ONLY** your re-direction should be present in /etc/hosts. The removal of the other entries in /etc/hosts will probably break a few things on your machine.
So better to use the append ">>" rather than replace ">" operator.

Last edited by knc1; 04-18-2013 at 10:31 AM.
knc1 is offline   Reply With Quote
Old 04-18-2013, 12:23 PM   #4
fireether
Junior Member
fireether began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Apr 2013
Device: Kindle 3 Wifi
Quote:
Originally Posted by knc1 View Post
That is a normal part of the registration process.
Just register the device, **THEN** re-install the key store.

The diverting by domain name is a poor idea - it only takes the address owner a few minutes to change and/or add a new name. Rendering your solution suddenly useless.

Blocking by address range is harder (and much more expensive) for the address owner to avoid.
That is the method used in the BBB (Block Big Brother) filter of the KUAL.firewall, you might want to try that instead of your own solution.

PS: Your command example presumes that **ONLY** your re-direction should be present in /etc/hosts. The removal of the other entries in /etc/hosts will probably break a few things on your machine.
So better to use the append ">>" rather than replace ">" operator.
I was going for append, but accidentally did replace. In my defense, that was after two hours of going through java code. I was trying to see if perhaps the java app was checking for a setting before checking the developer keys.

As for diverting by domain name - you have a good point. However, looking at packet captures by wireshark (mirrored my wireless router on my managed switch and captured everything going from/to the kindle) shows that when wireless is turned on, it immediately does DNS look ups for a few names.

dogvgb9ujhybx.cloudfront.net
dns.kindle.com
ntp-g7g.amazon.com
todo-g7g.amazon.com
firs-g7g.amazon.com

No idea what dog is for, but the rest are used. Also looking in other configuration files, it has todo and firs explicitly defined. So doing the redirection works - I should also add todo because it does a https connection ONLY to todo and firs - in case they can update through that route.

My question was, which takes more CPU - simply putting 2 lines into hosts in which the servers for amazon (namely firs and todo, don't want to touch NTP because that keeps my clock correct) - or blocking by ip range? I'd assume the latter. And thank you for referencing me to the KUAL firewall - I didn't know it had a BBB filter.

Quote:
Originally Posted by knc1 View Post
Blocking by address range is harder (and much more expensive) for the address owner to avoid.
What do you mean by this? I understand the "harder" part - i.e. they would have to write code that would be called infrequently to check and modify ipchains/iptables/hosts - but don't understand the expensive part. Mainly because they can easily update their code or write a shell script that runs via cron. MD5 checksums is one way to verify that stuff has been changed, and can revert it back to original.

I did not know that registering stops the checks. I have not investigated the behavior of the java app while the kindle is registered - I assumed it would be like the Xbox - i.e. if you modify it and you login to xbox live, you can be banned.

Last but not least, does anybody have the original /etc/hosts file for a 3.4 k3w? That way if I have to update the OS, the checksum will be correct.

Thanks.
fireether is offline   Reply With Quote
Old 04-18-2013, 12:56 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
Why expensive ? Because address blocks are sold, not 'free'.

IPv4 address block ranges are hard to get and purchase. The Kindles do not (yet) use IPv6 networking (their Wifi connectivity provider AT&T does not (yet) support IPv6).

Also, you do not have to announce to Amazon whenever you get your clock set - - -
There is a KUAL.ntpdate button for that, using public NTP networks and/or servers - which allows the end-user to change from the defaults that it ships with.

Since these are **NOT** Amazon NTP servers, the ntpdate button works with the KUAL.firewall installed and the BBB filter enabled.

You might also want to checkout the KUAL.backdoor_lock application.
(I did not write that one - but it seems to be well thought out and well tested.)

Last edited by knc1; 04-18-2013 at 01:02 PM.
knc1 is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Merged Developer Keystore PoP Kindle Developer's Corner 94 06-30-2016 11:08 AM
WIFI : autoconnect - no time to select the wifi spot. Randy11 Onyx Boox 2 01-20-2013 12:15 PM
Glo will leaving wifi turned on shorten battery life? irow Kobo Reader 6 12-02-2012 04:07 PM
Stuttering when WiFi turned OFF astrodad Kindle Fire 1 11-18-2011 09:33 AM
When Wifi is turned off an android process hangs after boot. kenjennings enTourage Archive 1 09-03-2010 11:18 AM


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


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