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 06-27-2013, 11:13 PM   #1
Sothh
Shaman of Time
Sothh began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Aug 2011
Device: Kindle Paperwhite First Gen
Writing to Protected Directories

So I have my Kindlet working, but I want to write a file to the "documents" directory. I found out really fast that my PW did not like that idea. At all. java.security.AccessControlException: access denied

So, am I just out of luck, or is there anyway to get around this?

Thanks!
Sothh is offline   Reply With Quote
Old 06-27-2013, 11:22 PM   #2
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
Quote:
Originally Posted by Sothh View Post
So I have my Kindlet working, but I want to write a file to the "documents" directory. I found out really fast that my PW did not like that idea. At all. java.security.AccessControlException: access denied

So, am I just out of luck, or is there anyway to get around this?

Thanks!
The "Kindlet Jailbreak" modifies the "sandbox" limits that Kindlet's run inside of.

Hmm...
Source is probably in one of ixtab's repositories if not included in the Kindlet Jailbreak archive.
knc1 is offline   Reply With Quote
Advert
Old 06-28-2013, 12:24 AM   #3
Sothh
Shaman of Time
Sothh began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Aug 2011
Device: Kindle Paperwhite First Gen
Found his source, and got it working perfectly. Now I can write to anywhere! The scary part means now I can write a Kindlet to wipe all the data from my Kindle...

A thought and a two questions,

The thought: Because this is possible, I believe the forum should strongly encouraged that Kindlets be released with their source. Otherwise, it would not take very much malicious code to really screw up someone's Kindle.

And the questions: Will the Kindlet Jailbreak allow me to use sockets for networking? And, does the Kindlet Jailbreak work on non-jailbroken devices?

As for the second, I am sure Amazon would quickly revoke any developer that used it for a public release.

Thanks!
Sothh is offline   Reply With Quote
Old 06-28-2013, 05:55 AM   #4
aditya3098
Guru
aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.
 
Posts: 608
Karma: 1588610
Join Date: Jan 2012
Device: Kindle Scribe
All devs here release their source. We're not amazon.
aditya3098 is offline   Reply With Quote
Old 06-28-2013, 07:18 AM   #5
ixtab
(offline)
ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.
 
ixtab's Avatar
 
Posts: 2,907
Karma: 6736094
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
Quote:
Originally Posted by Sothh View Post
Found his source, and got it working perfectly. Now I can write to anywhere! The scary part means now I can write a Kindlet to wipe all the data from my Kindle...

A thought and a two questions,

The thought: Because this is possible, I believe the forum should strongly encouraged that Kindlets be released with their source. Otherwise, it would not take very much malicious code to really screw up someone's Kindle.

And the questions: Will the Kindlet Jailbreak allow me to use sockets for networking? And, does the Kindlet Jailbreak work on non-jailbroken devices?

As for the second, I am sure Amazon would quickly revoke any developer that used it for a public release.

Thanks!
The "trust" issue is the same everywhere. If you don't trust someone, don't install his/her programs

That said, you can build your own safety net while developing by requesting very specific permissions (e.g., write permissions for a particular directory only, instead of AllPermissions), so you don't accidentally screw up.

Concerning sockets: I never tried, but it should work. You may also need to extend SuicidalKindlet (instead of AbstractKindlet) in order to escape the restricted Kindlet Class Loader - see KUAL, JBPatch, or Collections Manager sources for examples.

To install the Kindlet jailbreak, your device has to be jailbroken in the first place. So no, it won't work on stock FWs.
ixtab is offline   Reply With Quote
Advert
Old 06-28-2013, 08:14 AM   #6
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
MR "trust" policy

Quote:
Originally Posted by Sothh View Post
- - -
The thought: Because this is possible, I believe the forum should strongly encouraged that Kindlets be released with their source. Otherwise, it would not take very much malicious code to really screw up someone's Kindle.
- - -
Quote:
Originally Posted by aditya3098 View Post
All devs here release their source. We're not amazon.
Oh, but we do strongly encourage.
We use something here called: "Peer Pressure". Not a "policy" or "practice" enforced by the site operators.
Which is why you will not find it written in the "Guidelines" page link.

Quote:
Originally Posted by ixtab View Post
The "trust" issue is the same everywhere. If you don't trust someone, don't install his/her programs
Example:
But I was just surfing the web and found this XYZWX posted here -
Should I trust the posting?

Answer:
Read the thread.
Posted without sources will generate a large number of comment posts requesting that the source be released.
Then, like anywhere else, make up your own mind.

Our history here shows that it (peer pressure) works quite well.
A bit slowly in a very few cases (authors wanted time to "clean up" their code first), but it works.

PS: Three of our most technically knowledgeable developers here are also forum moderators.
But I don't recall anyone's contribution that required it to be moderated into the bit bucket.
(Other than the special case of copyright violations.)

Last edited by knc1; 06-28-2013 at 08:34 AM.
knc1 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Odyssey directories Bookripper Bookeen 21 11-30-2012 08:03 AM
deleting corrupted directories jebradley Library Management 11 10-13-2012 04:23 PM
double directories sar026@gmail.com Calibre 2 10-02-2012 07:47 AM
PRS-600 Can somebody explain the directories? Cue Sony Reader 5 01-19-2012 07:31 AM
Default Directories goldberry Library Management 8 04-10-2011 12:56 PM


All times are GMT -4. The time now is 03:11 AM.


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