I figured this would be useful for people if I left this here. This video demonstrates uploading books to a Kindle from an Android phone and the instructions below tell you how to do it. Enjoy!
https://www.youtube.com/watch?v=jTRPfbjLOLI
Quote:
1. Install developer keys and obtain a root shell.
1a. Install developer keys: http://blitiri.com.ar/p/other/kindle...-external-keys
1b. Install and enable USB Networking and SSH: http://blitiri.com.ar/p/other/kindle/#usb-networking
1c. Obtain the root password based on your serial number: http://members.ping.de/~sven/kindle.html
2. Set up your Kindle to serve SSH and harden its security.
2a. Log in as root and change the "root" and "framework" passwords by running "passwd" and "passwd framework". On Windows, you can use PuTTY: http://www.chiark.greenend.org.uk/~s.../download.html. Linux and MacOS users can use the command line ssh.
2b. Create /etc/init.d/sshd on the Kindle with 755 permissions with this content: http://pastie.org/8107777 You can log in and use vi, use FileZilla, or whatever at this point. To apply 755 permissions on the file, from a root shell on the Kindle, run "chmod 755 /etc/init.d/sshd".
2c. Create a symlink, /etc/rc5.d/S83sshd, that links to ../init.d/sshd. You can do this while logged in from a root shell on the Kindle by running "ln -s ../init.d/sshd /etc/rc5.d/S83sshd".
2d. Edit the iptables firewall rules in /etc/sysconfig/iptables to allow incoming TCP connections on port 22. It should look like this: http://pastie.org/8107800 Notice lines 22-23. You can use vi in an SSH console, download, edit, and upload with FileZilla, or whatever.
2e. Restart the Kindle. On the Kindle via the UI, press Home, Menu > Settings, Menu > Restart. Alternatively, you can type "reboot" from a shell with SSH.
3. Set up Android as an access point, conect your Kindle to it, and install Android applications.
3a. Enable your phone as an access point: https://support.google.com/nexus/4/answer/2812516?hl=en
3b. Connect your Kindle to the running access point: http://www.amazon.com/gp/help/custom...deId=200690850
3c. Install AndFTP: https://play.google.com/store/apps/d...51bGwsMSwyLDNd
3d. Install ServerAssistant: https://play.google.com/store/apps/d...Npc3RhbnQiXQ..
4. Set up Android applications for uploading books to the Kindle.
4a. Find the IP address of the Kindle by running "cat /proc/net/arp" on your Android phone. You can do this with a "local" connection via ConnectBot: https://play.google.com/store/apps/d...5uZWN0Ym90Il0.
4b. In AndFTP, create a host using the obtained Kindle IP address as the hostname, "SFTP" as the server type, "root" as the username, the root password you set in 2a as the password, and /mnt/us/documents as the remote dir. Tap Save. Set the name as "Kindle" and tap Ok.
4c. In ServerAssistant, create a host using "Kindle" as the unitname, the obtained Kindle IP address for the SSH Server URL, "22" as the port, "root" as the user, and the root password you set in 2a as the password. Tap Save.
4d. Select the "Kindle" server from ServerAssistant. Press menu, Add command to unit. Use "Refresh books" as the name, and "dbus-send --system /default com.lab126.powerd.resuming int32:1" as the command. Tap Save.
5. Upload a book and refresh the Kindle's home screen.
5a. Make sure the Kindle is on (and not displaying a screen saver image).
5b. Open AndFTP, select Kindle, and tap Connect. Tap the Device file browser button, pick a file or directory with Kindle-compatible content, and tap Upload.
5c. Open ServerAssistant, tap Kindle, and tap "Refresh books". Your Kindle's home screen should refresh and the uploaded book should be available for reading!
|