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 12-11-2011, 03:27 AM   #241
theholyraptor
Junior Member
theholyraptor began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Nov 2011
Device: Kindle 4
yifanlu,
I know you posted a new thread with jailbreak info but perhaps you'll want to update your first post on this thread too to indicate that the jailbreaks have been done just to be completely clear and concise.
theholyraptor is offline   Reply With Quote
Old 12-11-2011, 05:09 AM   #242
Belkaar
Junior Member
Belkaar began at the beginning.
 
Posts: 9
Karma: 32
Join Date: Nov 2011
Device: Kindle 4
My first post and first steps:

!! Read the entire tutorial before starting. If you don't understand one of the steps don't try it. You will risk bricking your Kindle !!

How to enable SSH via Wifi on Kindle 4 (4.0.1) nt on windows:

1) Get your kindle serial from the settings menu

2) Run the following python code to get your root password
Code:
#!/usr/bin/env python
import hashlib
print("fiona%s"%hashlib.md5("XXXYOURSERIALXXX\n".encode('utf-8')).hexdigest()[7:11])
3) Enter diagnostic mode: create an empty file with name ENABLE_DIAGS on your kindle via USB and reboot (Settings -> Menu -> Restart)

4) In diagnostic mode plug in the USB cable and go to usb networking: Misc individual diagnostics -> Utilities -> Enable USBnet

5) Install windows driver. Windows (7) won't recognize the correct driver, so you have to select it manually: Go to device manager, and select the new unkown device, right click and install driver. Then click your way to the driver list, select "Network card" then "Microsoft Inc" then "Remote NDIS based internet sharing device"

6) setup windows network. Setup the IP for the new connection: IP 192.168.15.1 Subnet 255.255.255.0, rest empty

7) Open ssh client like putty and connect to 192.168.15.244 user name root and password from the python script 'fionaXXXX' (or 'mario' for 4.0)

8) mount main partition
Code:
mount /dev/mmcblk0p1 /mnt/base-mmc
9) copy dropbear binary:
Code:
cp -r /usr/local /mnt/base-mmc/usr/
sync
10) add firewall rule:
Code:
vi /mnt/base-mmc/etc/sysconfig/iptables
add line
Code:
-A INPUT -i wlan0 -p tcp --dport 22 -j ACCEPT
hit ESC , then enter :wq and press enter

11) reboot: On the kindle exit usb mode and go to the main menu, then select 'Exit, Reboot or Disable Diags' -> 'Disable Diagnostics'

12) disconnect USB cable

13) after it finished rebootin you can point your SSH client (or WinSCP) to the Wifi IP when kindle is running in normal mode

Last edited by Belkaar; 12-11-2011 at 11:46 AM. Reason: Brick warning
Belkaar is offline   Reply With Quote
Old 12-11-2011, 06:40 AM   #243
AlexeyII
Junior Member
AlexeyII began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Dec 2011
Location: Uzbekistan
Device: Kindle 4
removed

Last edited by AlexeyII; 12-11-2011 at 02:44 PM.
AlexeyII is offline   Reply With Quote
Old 12-11-2011, 08:01 AM   #244
thomass
Wizard
thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.
 
Posts: 1,669
Karma: 2300001
Join Date: Mar 2011
Location: Türkiye
Device: Kindle 5.3.7
Quote:
Originally Posted by kacir View Post
I believe you do remember Sony Rootkit scandal. Official, stamped (that is, not burned) CDs from Sony BMG label were, at the time just before scandal, as trustworthy source as they get. And yet ...

It only takes one distributor of audiobooks (just as an example) to get "creative" with protecting their "Intellectual Property" and you can get very nasty stuff installed on your Kindle.

There are *so* many relatively trustworthy sources of legal mp3s, e-books, audiobooks and other stuff. Such as http://www.jamendo.com/en/ . I have discovered lots of great music through that site. Music that is NOT distributed by MAFIAA members.


I consider this ability to run arbirtary code as root on device just by opening an mp3 file (and God knows what else!) to be a severe security risk.
I think, a hack to disable such hacks,apart from jailbreak, which execute through a mp3 file is necessary
thomass is offline   Reply With Quote
Old 12-11-2011, 09:30 AM   #245
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Quote:
Originally Posted by thomass View Post
I think, a hack to disable such hacks,apart from jailbreak, which execute through a mp3 file is necessary
I completely agree -- the jailbreak should install this protection to prevent malware from using this mp3 vector.

And for kindle touch owners who do not want a full jailbreak on their kindle, a stripped version of the hack that ONLY fixes the mp3 bug would be a good thing to have.
geekmaster is offline   Reply With Quote
Old 12-11-2011, 10:20 AM   #246
Belkaar
Junior Member
Belkaar began at the beginning.
 
Posts: 9
Karma: 32
Join Date: Nov 2011
Device: Kindle 4
Quote:
Originally Posted by AlexeyII View Post
- startup script /init.d/dropbear search binary at /usr/local/sbin/dropbear
- my kindle 4 doesnt have /usr/local/ on main partition
You are correct. sorry for that. I corrected the tutorial.
You just need to copy the directory p2/usr/local to p1/usr
Belkaar is offline   Reply With Quote
Old 12-11-2011, 10:28 AM   #247
zackor
Junior Member
zackor began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Dec 2011
Device: Kindle 4
First of all, thanks for your work and congratulations for all you've already achieved!

However, I find this little unfair, that Kindle4 non-touch users (such as myself) are being marginalized :P Id be greateful for an answer; if it's actually possible to change K4 classic screensavers to the custom ones? As nobody answered hawkeye85 question - Im waiting to change screensavs too and have been following this thread since I got my K4!

Do I need to manually ssh Kindle, like Belkaar described?
zackor is offline   Reply With Quote
Old 12-11-2011, 10:51 AM   #248
abishur
Enthusiast
abishur is generous with chocolateabishur is generous with chocolateabishur is generous with chocolateabishur is generous with chocolateabishur is generous with chocolateabishur is generous with chocolateabishur is generous with chocolateabishur is generous with chocolateabishur is generous with chocolateabishur is generous with chocolateabishur is generous with chocolate
 
Posts: 48
Karma: 33436
Join Date: Dec 2011
Device: Kindle 4 Touch
Actually, even though the thread says kindle 4 touch everyone keeps posting solutions for the kindle 4 nt isn't that non-touch (as you can tell from my posts amount I new) ? Will any of the posted solutions actually work for the touch?
abishur is offline   Reply With Quote
Old 12-11-2011, 10:51 AM   #249
hondamarlboro
Enthusiast
hondamarlboro turned on, tuned in, and dropped out.hondamarlboro turned on, tuned in, and dropped out.hondamarlboro turned on, tuned in, and dropped out.hondamarlboro turned on, tuned in, and dropped out.hondamarlboro turned on, tuned in, and dropped out.hondamarlboro turned on, tuned in, and dropped out.hondamarlboro turned on, tuned in, and dropped out.hondamarlboro turned on, tuned in, and dropped out.hondamarlboro turned on, tuned in, and dropped out.hondamarlboro turned on, tuned in, and dropped out.hondamarlboro turned on, tuned in, and dropped out.
 
hondamarlboro's Avatar
 
Posts: 32
Karma: 35466
Join Date: Jul 2010
Location: Japan
Device: Kindle2, Kindle3, Kindle4, Kindle Touch, Kindle Fire
pw generating script

I m not sure, but the above script is in public? and are there no risk of brick k4 with the above method for entry users?
hondamarlboro is offline   Reply With Quote
Old 12-11-2011, 11:02 AM   #250
yifanlu
Kindle Dissector
yifanlu ought to be getting tired of karma fortunes by now.yifanlu ought to be getting tired of karma fortunes by now.yifanlu ought to be getting tired of karma fortunes by now.yifanlu ought to be getting tired of karma fortunes by now.yifanlu ought to be getting tired of karma fortunes by now.yifanlu ought to be getting tired of karma fortunes by now.yifanlu ought to be getting tired of karma fortunes by now.yifanlu ought to be getting tired of karma fortunes by now.yifanlu ought to be getting tired of karma fortunes by now.yifanlu ought to be getting tired of karma fortunes by now.yifanlu ought to be getting tired of karma fortunes by now.
 
Posts: 662
Karma: 475607
Join Date: Jul 2010
Device: Amazon Kindle 3
If anyone's interested in writing a book reader or reader plugin for the Kindle Touch, I can help. I don't have the time to do it, but I know pretty much how the Reader SDK works. Still waiting for that epub plugin...
yifanlu is offline   Reply With Quote
Old 12-11-2011, 11:33 AM   #251
Belkaar
Junior Member
Belkaar began at the beginning.
 
Posts: 9
Karma: 32
Join Date: Nov 2011
Device: Kindle 4
Quote:
Originally Posted by hondamarlboro View Post
I m not sure, but the above script is in public? and are there no risk of brick k4 with the above method for entry users?
Of course there is always risk for bricking your kindle.
Most of the information above (including the script) I got from the internet and this forum. It's just all packaged in one place.
Belkaar is offline   Reply With Quote
Old 12-11-2011, 11:44 AM   #252
Belkaar
Junior Member
Belkaar began at the beginning.
 
Posts: 9
Karma: 32
Join Date: Nov 2011
Device: Kindle 4
Quote:
Originally Posted by zackor View Post
First of all, thanks for your work and congratulations for all you've already achieved!

However, I find this little unfair, that Kindle4 non-touch users (such as myself) are being marginalized :P Id be greateful for an answer; if it's actually possible to change K4 classic screensavers to the custom ones? As nobody answered hawkeye85 question - Im waiting to change screensavs too and have been following this thread since I got my K4!

Do I need to manually ssh Kindle, like Belkaar described?
I don't know of an easier way.

But if you have ssh you can do the following:

1) create a folder on the kindle called 'screensaver' (where the documents folder is)

2a) ssh into the kindle via wifi
Code:
mv /opt/amazon/screen_saver/600x800 /opt/amazon/screen_saver/600x800_
ln -s /mnt/us/screensaver /opt/amazon/screen_saver/600x800
2b) ssh into kindle via usb
Code:
mount /dev/mmcblk0p1 /mnt/base-mmc
mv /mnt/base-mmc/opt/amazon/screen_saver/600x800 /mnt/base-mmc/opt/amazon/screen_saver/600x800_
ln -s /mnt/us/screensaver /mnt/base-mmc/opt/amazon/screen_saver/600x800
3) put your screensaver files into the created directory (you need to restart the kindle after putting in new files)

Don't worry if you delete the folder or don't have any files in it the screensaver will be blank white

Last edited by Belkaar; 12-11-2011 at 11:52 AM.
Belkaar is offline   Reply With Quote
Old 12-11-2011, 11:45 AM   #253
AlexeyII
Junior Member
AlexeyII began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Dec 2011
Location: Uzbekistan
Device: Kindle 4
Usbnetwork & Dropbear package for Kindle 4 no touch for runing in production (non-diag) mode

This stuff need because in PROD mode needed files in /usr/local absent, and startup scripts cannot run usbnetwork & dropbear services
Requirements: Kindle 4 no touch 4.0.0/4.0.1 firmware, installed jailbreak

Installing:
1) instal jailbreak if you dont have
2) place update_k4w_usbnetwork&dropbear.bin to root folder of attached kindle
3) update

Activate:
1) place empty ENABLE_USBNET in root folder of attached kindle & restart
2) after restart you will see screen about usb connection with no switch to main screen
3) ssh to 192.168.15.244, login as root and enter password (password relative to serial number of your device, you need calculate it before )
4) if you want remove "usb connection screen" do command:
Code:
lipc-set-prop -i com.lab126.volumd useUsbForNetwork 1
/etc/init.d/volumd stop
/etc/init.d/volumd start
/etc/init.d/framework restart
5) if you want restore normal mode and have "usb connection screen", you need reboot device manualy, like "sh /etc/init.d/reboot stop" or other way
6) file ENABLE_USBNET will be deleted by kindle automaticaly, after reboot usbnetwork will be disabled
Attached Files
File Type: zip update_k4w_usbnetwork&dropbear.zip (90.6 KB, 561 views)
File Type: zip src.zip (90.4 KB, 521 views)

Last edited by AlexeyII; 12-12-2011 at 05:11 PM. Reason: added sources, 4.0.1 upd, "usb con. screen" removing
AlexeyII is offline   Reply With Quote
Old 12-11-2011, 11:48 AM   #254
abishur
Enthusiast
abishur is generous with chocolateabishur is generous with chocolateabishur is generous with chocolateabishur is generous with chocolateabishur is generous with chocolateabishur is generous with chocolateabishur is generous with chocolateabishur is generous with chocolateabishur is generous with chocolateabishur is generous with chocolateabishur is generous with chocolate
 
Posts: 48
Karma: 33436
Join Date: Dec 2011
Device: Kindle 4 Touch
I'll give it a shot, though I also notice when getting my serial number, my firmware is actually version 5.0.0 not 4.0.1 we'll see what happens!
abishur is offline   Reply With Quote
Old 12-11-2011, 11:55 AM   #255
yifanlu
Kindle Dissector
yifanlu ought to be getting tired of karma fortunes by now.yifanlu ought to be getting tired of karma fortunes by now.yifanlu ought to be getting tired of karma fortunes by now.yifanlu ought to be getting tired of karma fortunes by now.yifanlu ought to be getting tired of karma fortunes by now.yifanlu ought to be getting tired of karma fortunes by now.yifanlu ought to be getting tired of karma fortunes by now.yifanlu ought to be getting tired of karma fortunes by now.yifanlu ought to be getting tired of karma fortunes by now.yifanlu ought to be getting tired of karma fortunes by now.yifanlu ought to be getting tired of karma fortunes by now.
 
Posts: 662
Karma: 475607
Join Date: Jul 2010
Device: Amazon Kindle 3
Some useable tweaks I've found:

-To stop the browser from using an large font, edit /var/local/waf/browser/config.xml and delete the line that says "<setting name="defaultFontSize" value="20"/>" (must be done at each reboot as the device resets the settings)
-To rotate the device (in books and the browser but not home screen), type (in ssh)
# lipc-set-prop com.lab126.winmgr orientationLock L
for landscape left
# lipc-set-prop com.lab126.winmgr orientationLock R
for landscape right
# lipc-set-prop com.lab126.winmgr orientationLock U
for portrait
# lipc-set-prop com.lab126.winmgr orientationLock D
for inverted portrait
-To enable accelerator (no point except allow the Kindle to see rotate event, it does nothing with those events though), edit "/etc/upstart/makexconfig" and on line 120, edit "IS_ACCEL=0" to "IS_ACCEL=1"
yifanlu is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
No Progress bar on the Touch... grizedale Amazon Kindle 13 09-29-2011 05:02 PM
Questions about jailbreaking a Kindle 3 daviesgeek Kindle Developer's Corner 0 09-13-2011 02:09 PM
Touch screen vs keyboard e-ink only Zarich Which one should I buy? 24 03-05-2011 06:47 AM
Which Kindle do I need for jailbreaking? chas0039 Kindle Developer's Corner 6 11-10-2010 10:04 PM


All times are GMT -4. The time now is 12:29 PM.


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