![]() |
#1 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 165
Karma: 593460
Join Date: Oct 2012
Device: K5 B011 5.3.2.1
|
Tell which kindle model from a filepath?
Can a shell script determine which kindle model among K2/K3/K4/K4DX/K5/PW by looking if a well-know filepath exists? Essentially I'm looking for a filepath which is guaranteed to exist and is unique to each model. Even an incomplete answer would help me.
And is there some other simple way for a shell script to determine which kindle model? |
![]() |
![]() |
![]() |
#2 |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
What about just looking up the version info ?
Does not give the model number, but does give the firmware version and build. Which, except for bastardized DXs, relates to the model of the device. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 165
Karma: 593460
Join Date: Oct 2012
Device: K5 B011 5.3.2.1
|
Thanks. What actual sh command returns the firmware version and build? Is it the same command on all models? Do you have a mapping of fw version/build to device model?
I was also hoping that the filepath approach could lead somewhere, because I have already implemented the necessary plumbing in KUAL. |
![]() |
![]() |
![]() |
#4 |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
cat /etc/version
cat /etc/pretty-version something like that anyway https://www.mobileread.com/forums/sho...d.php?t=206188 |
![]() |
![]() |
![]() |
#5 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 608
Karma: 1588610
Join Date: Jan 2012
Device: Kindle Scribe
|
cat /etc/version.txt
cat /etc/pretty-version.txt |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 165
Karma: 593460
Join Date: Oct 2012
Device: K5 B011 5.3.2.1
|
So far my Kindle Touch detection command looks like
Code:
[root@kindle root]# grep "\\s5\\.[13]\\." /etc/prettyversion.txt Kindle 5.3.2.1 (~~otaVersion~~) What about matching other Kindles? Any suggestions for suitable patterns? If no other ideas than prettyversion.txt will come up, this will become the Kindle model detection mechanism in KUAL (the launcher). I'm a little concerned that it isn't future-proof, so a new firmware release might break the pattern and require rolling a new KUAL. Mumble, mumble... |
![]() |
![]() |
![]() |
#7 | |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
|
|
![]() |
![]() |
![]() |
#8 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 165
Karma: 593460
Join Date: Oct 2012
Device: K5 B011 5.3.2.1
|
Where I can find a table of firmware version numbers for each kindle model?
|
![]() |
![]() |
![]() |
#9 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
I think a bit of "outside the box" is required here... uname -a might be the answer.
PW: Linux kindle 2.6.31-rt11-lab126 #1 Mon Apr 1 22:09:02 PDT 2013 armv7l GNU/Linux Touch: Linux kindle 2.6.31-rt11-lab126 #1 Wed Dec 12 19:58:30 PST 2012 armv7l GNU/Linux K4: I can get this K3: Linux kindle 2.6.26-rt-lab126 #5 Wed Sep 15 19:25:13 PDT 2010 armv6l unknown K2: (niluje posted this somewhere... damned if I can find it) DX: and this Working on filling in the blanks now... tomorrow (The date/time is unique on them all as a hint. I would go with that) EDIT: Plus it doesn't change AFAIK. Last edited by twobob; 05-14-2013 at 09:43 PM. |
![]() |
![]() |
![]() |
#10 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,669
Karma: 2300001
Join Date: Mar 2011
Location: Türkiye
Device: Kindle 5.3.7
|
|
![]() |
![]() |
![]() |
#11 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 165
Karma: 593460
Join Date: Oct 2012
Device: K5 B011 5.3.2.1
|
Date/time info tends to be finicky, I'd rather avoid it.
Processor info is definitive. It only helps to set ARM6 and AMR7 models apart. /etc/prettyversion.txt info seems more consistent. So far I have figured the following patterns: Code:
KT 5.[013].[02] PW 5.[13].[13] K4NT 4.* K4DX K3 3.* |
![]() |
![]() |
![]() |
#12 | |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
|
|
![]() |
![]() |
![]() |
#13 |
but forgot what it's like
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 741
Karma: 2345678
Join Date: Dec 2011
Location: north (by northwest)
Device: Kindle Touch
|
KT has about of 4GB of storage, while PW has only about of 2GB. This will print storage size to help you distnguish one from another reliably:
Code:
awk '$4 == "mmcblk0" {print $3}' /proc/partitions |
![]() |
![]() |
![]() |
#14 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 165
Karma: 593460
Join Date: Oct 2012
Device: K5 B011 5.3.2.1
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
what model kindle fire do I have? | hayles79 | Kindle Fire | 4 | 03-20-2013 12:03 PM |
What Kindle model have I? | zzroger | Amazon Kindle | 21 | 01-06-2012 02:50 PM |
which model Kindle do I have? | StickMaker | Amazon Kindle | 14 | 03-01-2011 10:53 AM |
New Kindle Model????? | ssophon | Amazon Kindle | 33 | 10-30-2009 01:30 AM |