Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Sony Reader > Sony Reader Dev Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 01-28-2012, 02:28 PM   #196
mrspaceman
Lurker in the Dark
mrspaceman is a marvel to beholdmrspaceman is a marvel to beholdmrspaceman is a marvel to beholdmrspaceman is a marvel to beholdmrspaceman is a marvel to beholdmrspaceman is a marvel to beholdmrspaceman is a marvel to beholdmrspaceman is a marvel to beholdmrspaceman is a marvel to beholdmrspaceman is a marvel to beholdmrspaceman is a marvel to behold
 
mrspaceman's Avatar
 
Posts: 114
Karma: 11760
Join Date: Apr 2011
Location: Bristol, UK
Device: Asus Transformer Prime, Sony PRS-T1, HTC Sensation
okay, I've added a null check to get past the current error on a nook:


http://sonyprst1home.googlecode.com/...me-0.0.4.5.apk
mrspaceman is offline   Reply With Quote
Old 01-28-2012, 05:01 PM   #197
mrspaceman
Lurker in the Dark
mrspaceman is a marvel to beholdmrspaceman is a marvel to beholdmrspaceman is a marvel to beholdmrspaceman is a marvel to beholdmrspaceman is a marvel to beholdmrspaceman is a marvel to beholdmrspaceman is a marvel to beholdmrspaceman is a marvel to beholdmrspaceman is a marvel to beholdmrspaceman is a marvel to beholdmrspaceman is a marvel to behold
 
mrspaceman's Avatar
 
Posts: 114
Karma: 11760
Join Date: Apr 2011
Location: Bristol, UK
Device: Asus Transformer Prime, Sony PRS-T1, HTC Sensation
okay, I've played around trying to get this to work on a Nook, but it looks like the android system has the database open exclusivly, so I can't even open it read-only.

I will need to get hold of the system apps, so that I can decompile them and see if I can work out wether I can get hold of the books information via a ContentProvider.
mrspaceman is offline   Reply With Quote
Old 01-28-2012, 05:18 PM   #198
met67
Connoisseur
met67 can program the VCR without an owner's manual.met67 can program the VCR without an owner's manual.met67 can program the VCR without an owner's manual.met67 can program the VCR without an owner's manual.met67 can program the VCR without an owner's manual.met67 can program the VCR without an owner's manual.met67 can program the VCR without an owner's manual.met67 can program the VCR without an owner's manual.met67 can program the VCR without an owner's manual.met67 can program the VCR without an owner's manual.met67 can program the VCR without an owner's manual.
 
Posts: 75
Karma: 165846
Join Date: Jan 2012
Device: Nook Touch
Quote:
Originally Posted by mrspaceman View Post
okay, I've played around trying to get this to work on a Nook, but it looks like the android system has the database open exclusivly, so I can't even open it read-only.

I will need to get hold of the system apps, so that I can decompile them and see if I can work out wether I can get hold of the books information via a ContentProvider.
Well, I can open that DB with SQLite Editor with NST and also modify field's value, so it should not be a problem of file access.
met67 is offline   Reply With Quote
Old 01-28-2012, 05:23 PM   #199
mrspaceman
Lurker in the Dark
mrspaceman is a marvel to beholdmrspaceman is a marvel to beholdmrspaceman is a marvel to beholdmrspaceman is a marvel to beholdmrspaceman is a marvel to beholdmrspaceman is a marvel to beholdmrspaceman is a marvel to beholdmrspaceman is a marvel to beholdmrspaceman is a marvel to beholdmrspaceman is a marvel to beholdmrspaceman is a marvel to behold
 
mrspaceman's Avatar
 
Posts: 114
Karma: 11760
Join Date: Apr 2011
Location: Bristol, UK
Device: Asus Transformer Prime, Sony PRS-T1, HTC Sensation
Quote:
Originally Posted by met67 View Post
Well, I can open that DB with SQLite Editor with NST and also modify field's value, so it should not be a problem of file access.
did you manage to open it from another application? (is SQLite Editor and app running on the Nook?)
mrspaceman is offline   Reply With Quote
Old 01-28-2012, 05:26 PM   #200
met67
Connoisseur
met67 can program the VCR without an owner's manual.met67 can program the VCR without an owner's manual.met67 can program the VCR without an owner's manual.met67 can program the VCR without an owner's manual.met67 can program the VCR without an owner's manual.met67 can program the VCR without an owner's manual.met67 can program the VCR without an owner's manual.met67 can program the VCR without an owner's manual.met67 can program the VCR without an owner's manual.met67 can program the VCR without an owner's manual.met67 can program the VCR without an owner's manual.
 
Posts: 75
Karma: 165846
Join Date: Jan 2012
Device: Nook Touch
Quote:
Originally Posted by mrspaceman View Post
did you manage to open it from another application? (is SQLite Editor and app running on the Nook?)
Yes, it is an Android app from the market which is normally used to edit files on the devices. And yes,I use it on the Nook.
met67 is offline   Reply With Quote
Old 01-31-2012, 07:14 AM   #201
mrspaceman
Lurker in the Dark
mrspaceman is a marvel to beholdmrspaceman is a marvel to beholdmrspaceman is a marvel to beholdmrspaceman is a marvel to beholdmrspaceman is a marvel to beholdmrspaceman is a marvel to beholdmrspaceman is a marvel to beholdmrspaceman is a marvel to beholdmrspaceman is a marvel to beholdmrspaceman is a marvel to beholdmrspaceman is a marvel to behold
 
mrspaceman's Avatar
 
Posts: 114
Karma: 11760
Join Date: Apr 2011
Location: Bristol, UK
Device: Asus Transformer Prime, Sony PRS-T1, HTC Sensation
okay, I have updated my code so that I use root permissions to change the file permissions of the database.

I can now open the database

if anyone want to test out this version please download

http://sonyprst1home.googlecode.com/...e-0.0.4.12.apk
mrspaceman is offline   Reply With Quote
Old 01-31-2012, 08:06 AM   #202
met67
Connoisseur
met67 can program the VCR without an owner's manual.met67 can program the VCR without an owner's manual.met67 can program the VCR without an owner's manual.met67 can program the VCR without an owner's manual.met67 can program the VCR without an owner's manual.met67 can program the VCR without an owner's manual.met67 can program the VCR without an owner's manual.met67 can program the VCR without an owner's manual.met67 can program the VCR without an owner's manual.met67 can program the VCR without an owner's manual.met67 can program the VCR without an owner's manual.
 
Posts: 75
Karma: 165846
Join Date: Jan 2012
Device: Nook Touch
Quote:
Originally Posted by mrspaceman View Post
okay, I have updated my code so that I use root permissions to change the file permissions of the database.

I can now open the database

if anyone want to test out this version please download

http://sonyprst1home.googlecode.com/...e-0.0.4.12.apk
Closer, but still no cigar

Now it starts, but shows a dialog saying that it failed to open /data/data... etc .....db.
met67 is offline   Reply With Quote
Old 01-31-2012, 08:11 AM   #203
met67
Connoisseur
met67 can program the VCR without an owner's manual.met67 can program the VCR without an owner's manual.met67 can program the VCR without an owner's manual.met67 can program the VCR without an owner's manual.met67 can program the VCR without an owner's manual.met67 can program the VCR without an owner's manual.met67 can program the VCR without an owner's manual.met67 can program the VCR without an owner's manual.met67 can program the VCR without an owner's manual.met67 can program the VCR without an owner's manual.met67 can program the VCR without an owner's manual.
 
Posts: 75
Karma: 165846
Join Date: Jan 2012
Device: Nook Touch
Speaking of root,

the other tests never invoked SuperUser to ask for root permissions, this could explain why you wheren't able to open the DB.

After running this latest APK, though, I checked permissions on the DB and it was the same as before:
Code:
# busybox ls -ln
total 404
-rw-rw----    1 10000    10000        48128 Jan 31 11:58 external-469fe3eb.db
-rw-rw----    1 10000    10000       357376 Jan 31 11:58 internal.db
where 10000 is the uid/gid of app_0
met67 is offline   Reply With Quote
Old 01-31-2012, 08:19 AM   #204
met67
Connoisseur
met67 can program the VCR without an owner's manual.met67 can program the VCR without an owner's manual.met67 can program the VCR without an owner's manual.met67 can program the VCR without an owner's manual.met67 can program the VCR without an owner's manual.met67 can program the VCR without an owner's manual.met67 can program the VCR without an owner's manual.met67 can program the VCR without an owner's manual.met67 can program the VCR without an owner's manual.met67 can program the VCR without an owner's manual.met67 can program the VCR without an owner's manual.
 
Posts: 75
Karma: 165846
Join Date: Jan 2012
Device: Nook Touch
After the last post (BTW, are consecutive posts ok? I have found nothing against in the posting guidelines) I chmoded 666 the DB (i.e. granted rw access to averyone) and now it opens the DB and shows the last read book.
It also shows the right number of books in the lower left icon, but I can't select it...: if I try, the screen flashes, SuperUser shows the dialog saying that it has granted root access and then falls back to the starting screen.

Last edited by met67; 01-31-2012 at 09:17 AM.
met67 is offline   Reply With Quote
Old 01-31-2012, 09:45 AM   #205
mrspaceman
Lurker in the Dark
mrspaceman is a marvel to beholdmrspaceman is a marvel to beholdmrspaceman is a marvel to beholdmrspaceman is a marvel to beholdmrspaceman is a marvel to beholdmrspaceman is a marvel to beholdmrspaceman is a marvel to beholdmrspaceman is a marvel to beholdmrspaceman is a marvel to beholdmrspaceman is a marvel to beholdmrspaceman is a marvel to behold
 
mrspaceman's Avatar
 
Posts: 114
Karma: 11760
Join Date: Apr 2011
Location: Bristol, UK
Device: Asus Transformer Prime, Sony PRS-T1, HTC Sensation
the only thing that should work in this (at the moment) is showing books in the currently reading section at the top.

There is a "/data/data/com.android.providers.media/databases/internal.db" database on my sony prs-t1, but it doesn't have the docs table in it.
when I executed this code on my sony, it came up, asked for root permission, and changed the file permissions correctly, it then opened the database file.

Without a nook myself I'm not sure how to test this out, but I'll keep thinking on it.
mrspaceman is offline   Reply With Quote
Old 01-31-2012, 09:53 AM   #206
met67
Connoisseur
met67 can program the VCR without an owner's manual.met67 can program the VCR without an owner's manual.met67 can program the VCR without an owner's manual.met67 can program the VCR without an owner's manual.met67 can program the VCR without an owner's manual.met67 can program the VCR without an owner's manual.met67 can program the VCR without an owner's manual.met67 can program the VCR without an owner's manual.met67 can program the VCR without an owner's manual.met67 can program the VCR without an owner's manual.met67 can program the VCR without an owner's manual.
 
Posts: 75
Karma: 165846
Join Date: Jan 2012
Device: Nook Touch
Quote:
Originally Posted by mrspaceman View Post
the only thing that should work in this (at the moment) is showing books in the currently reading section at the top.

There is a "/data/data/com.android.providers.media/databases/internal.db" database on my sony prs-t1, but it doesn't have the docs table in it.
when I executed this code on my sony, it came up, asked for root permission, and changed the file permissions correctly, it then opened the database file.

Without a nook myself I'm not sure how to test this out, but I'll keep thinking on it.
I think that that DB is the standard "media" DB of Android, the one which is updated by the media scanner process and B&N just modified it...

How do you change permissions?
met67 is offline   Reply With Quote
Old 01-31-2012, 10:45 AM   #207
mrspaceman
Lurker in the Dark
mrspaceman is a marvel to beholdmrspaceman is a marvel to beholdmrspaceman is a marvel to beholdmrspaceman is a marvel to beholdmrspaceman is a marvel to beholdmrspaceman is a marvel to beholdmrspaceman is a marvel to beholdmrspaceman is a marvel to beholdmrspaceman is a marvel to beholdmrspaceman is a marvel to beholdmrspaceman is a marvel to behold
 
mrspaceman's Avatar
 
Posts: 114
Karma: 11760
Join Date: Apr 2011
Location: Bristol, UK
Device: Asus Transformer Prime, Sony PRS-T1, HTC Sensation
yes, the database is a standard (it's on my HTC phone and Sony eReader), but B&N added the docs table (which contains the ebook data).

I would guess that there is a Content Provider to read books out of it, but I can't investigate without a nook myself.

Changing permissions is done with an 'su' command, which is why I need root permissions.

So far, only 1 person has donated, so there really isn't that much interest in Nook version.
mrspaceman is offline   Reply With Quote
Old 01-31-2012, 11:04 AM   #208
NotAPirate
Junior Member
NotAPirate began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Jan 2012
Device: nook simple touch
Hi, i just found out about your launcher and it looks much cooler than the original nook interface. i'm trying to get a Nook Touch on ebay right now and as soon as i get it, i'll try your software. Maybe you should start a Thread on XDA if you need more help, advices and funds.
NotAPirate is offline   Reply With Quote
Old 01-31-2012, 03:04 PM   #209
snarkophilus
Wannabe Connoisseur
snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.
 
Posts: 242
Karma: 1009530
Join Date: Apr 2011
Location: Geelong, Australia
Device: Sony PRS-T1, Sony PRS-350, Palm TX
Quote:
Originally Posted by mrspaceman View Post
if anyone want to test out this version please download

http://sonyprst1home.googlecode.com/...e-0.0.4.12.apk
With this version, once I navigate to the third screen then pressing the left button in the bottom left corner of the screen to try to navigate back to the first two screens appears to do nothing on my T1.

Cheers,
Simon.
snarkophilus is offline   Reply With Quote
Old 02-02-2012, 03:11 AM   #210
rpelton
Junior Member
rpelton began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Dec 2010
Device: Pocketbook IQ, Nook Simple Touch
Quote:
Originally Posted by mrspaceman View Post
yes, the database is a standard (it's on my HTC phone and Sony eReader), but B&N added the docs table (which contains the ebook data).

I would guess that there is a Content Provider to read books out of it, but I can't investigate without a nook myself.

Changing permissions is done with an 'su' command, which is why I need root permissions.

So far, only 1 person has donated, so there really isn't that much interest in Nook version.
Just to let you know, I donated 20 pounds. Keep on with the work !

Ron
rpelton is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PRS-T1 Recently Opened on Homescreen Hack for T1 Kolenka Sony Reader Dev Corner 65 07-28-2014 07:27 PM
Troubleshooting Recent personal documents show filename rather than document title on homescreen Sean Whitton Amazon Kindle 28 09-06-2011 10:28 PM
Sideloaded book on homescreen solution for Rooted NC mad5427 Nook Developer's Corner 17 03-14-2011 09:20 AM
I don't know what to put on my homescreen. SCION Nook Developer's Corner 3 01-16-2011 02:09 AM
Content PDF: Homescreen shows Filename instead of Title (Metadata) bear4hunter Amazon Kindle 1 08-02-2010 01:35 AM


All times are GMT -4. The time now is 04:08 PM.


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