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 05-06-2017, 09:03 AM   #31
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 don't you start out by listing the applications?
Then find out if they are open source or closed source.
If they are open source, just build then for the Amazon OS.
If they are closed source, you'll have to support them at a binary level, similar to running hardfloat binaries.

And if they are closed source, do not expect to get much help at this site.
Amazon provides all of the closed source applications we care to deal with here.
knc1 is offline   Reply With Quote
Old 01-25-2020, 08:58 AM   #32
pedronac
Junior Member
pedronac began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Apr 2015
Location: Paris
Device: Onyx Boox T68, Tolino, Kindle Paperwhite
Quote:
Originally Posted by knc1 View Post
The difference between the Android OS and the Linux OS is one (or two) additional kernel system calls.

The difference between the Amazon OS and the Linux OS is the display drivers (and some system calls to handle some of the differences).

Unless you are running an application directly on the kernel (hardware) interface, applications should never notice the difference.
Those differences are handled by the system 'C' library and applications are programed against the 'C' library.

The difference between the Android OS applications and the Amazon OS applications is the 'C' library (Bionic vs. GLibc) that they are programed against.

Since Linux uses ELF format libraries, you can run different 'C' libraries concurrently.

I wrote up a long, worked and working, example -
"ARMhf on Kindle" (or similar title, it does have "ARMhf" in it).

That was because the Amazon OS uses a soft float 'C' library build and the Debian/Jessie distribution uses a hard float 'C' library build.

So that thread shows how to install two (2!) different system 'C' libraries on Linux (on the '5 series firmware' Kindles).
(You can install and use concurrently as many different 'C' libraries that you need on an ELF format system.)

I even mentioned in that thread that you could also install a copy of the Bionic 'C' library if you wanted to run Android applications rather than Debian.
AND asked if anyone wanted to see that example.

Zip, Zero, Nada replies - nobody wanted to see how to run Android applications on a Kindle.
Neither did I, so I never included it in the thread.

Your welcome to re-open the thread and show by example how to run Android binaries on the series 5 firmware devices.
You'll have to rip out (or build) a Bionic 'C' library against the Amazon OS kernel headers - but that is almost a non-effort task.
Non-effort because there are already so many build systems out there for doing such a task.

Note:
Since the second (and subsequent) 'C' library is installed in a non-standard location of the system tree, the binary application files have to have a change made in their headers.

There is a tool for that: "patchelf" -
It is attached in that thread and the folks at Buildroot.org included the ability to build it for the host build machine in the Buildroot, build system.
Just for us.

Re-building the single system library file, for which multiple build systems exist, is much easier than replacing the entire OS.

= = = =

Another of my wasted efforts and wastes of time on a subject too technical for the audience of this forum and at the time we still had a few developers here with a background in system's level work.
Hello KNC1,

I have my own application (source code available) on android that I would like to run on Kindle PaperWhite (latest edition).

What would be the best way to do it ?
  1. Jailbrake ?
  2. "Convert" from android app to "active content", even if here it seams not possible to installe "active content" anymore : https://www.mobileread.com/forums/sh...d.php?t=276201
  3. ... suggestions ?
pedronac is offline   Reply With Quote
Advert
Old 01-25-2020, 11:54 AM   #33
pazos
cosiñeiro
pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.
 
Posts: 1,406
Karma: 2451781
Join Date: Apr 2014
Device: BQ Cervantes 4
Quote:
Originally Posted by pedronac View Post
Hello KNC1,

I have my own application (source code available) on android that I would like to run on Kindle PaperWhite (latest edition).

What would be the best way to do it ?
  1. Jailbrake ?
  2. "Convert" from android app to "active content", even if here it seams not possible to installe "active content" anymore : https://www.mobileread.com/forums/sh...d.php?t=276201
  3. ... suggestions ?
The instructions provided by knc1 should work for build commandline apps, like curl or rsync.

Apks rely on android frameworks (both java and native services) and the dalvik vm. Most of android services rely heavily on kernel binder.

The benefits of building an open source app against bionic -for the kindle- are 0. You can built that agaisnt kindle c library and redistribute them without forcing your users to install parts of AOSP
pazos is offline   Reply With Quote
Old 01-25-2020, 05:14 PM   #34
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
The Kindlet API is deprecated (and now completely unsupported, as in, absent), and the Booklet API is private and now partly/completely obfuscated.

TL;DR: Have fun & good luck.
NiLuJe is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
YouTube: Paperwhite 2, Paperwhite 3 and Voyage Richard529 Amazon Kindle 30 07-01-2015 06:50 AM
YouTube (German) Paperwhite 2 and Paperwhite 3 - including light Richard529 Amazon Kindle 6 06-22-2015 07:13 AM
Easy Transition Paperwhite to Paperwhite lindylex Amazon Kindle 4 12-19-2014 05:36 PM
Android on Paperwhite nypaulie Kindle Developer's Corner 3 01-04-2014 08:58 AM


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


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