Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Barnes & Noble NOOK > Nook Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 02-20-2011, 05:32 PM   #1
dereksurfs
Member
dereksurfs began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Oct 2010
Device: nook
File Management

Ok,

I finally rooted my NC without much trouble. The thing I'm trying to figure out now is the best way to manage files. I intalled Astro File Manager which is pretty good for viewing. But I am running into difficulty editing. Here are a couple of questions:

1. Can I simply use my computer plugged into the the nook and windows explorer to access /system/apps files? I am able to get to some directories, but are these hidden to MS? This would seem easier although I know we are dealing with a different OS. So things could get messy.

2. How does one edit files in system/apps which are read only? Is best to change their permissions first like most Unix OSs? If so how?

Here is what I am trying to do. I want to go back to the original NC keyboard. I read the thread about this in which Scion provided the original LatinIME.apk file. So I downloaded it to my pc. Then sideloaded it to the NC in a temp directory.

Now I would like to backup the android keyboard file first renaming it to something like LatinIME.apk.Old. So I tried renaming it. But it said I don't have permission. Next I thought Ok, I'll make a copy and rename the copy. But it never seemed to copy. Once I back it up, then I'll delete the original and replace with the sideloaded one.

Is this mainly a permissions issue? If so what's the best or easiest way of going about this sort of file management?

BTW, I'm an old unix programmer. I'm just not sure if I need to go into that mode here form a console app. Maybe that would be easier - simply chmod 777 the file.

Derek

Last edited by dereksurfs; 02-20-2011 at 05:35 PM.
dereksurfs is offline   Reply With Quote
Old 02-20-2011, 06:53 PM   #2
zartemis
Addict
zartemis knows what time it iszartemis knows what time it iszartemis knows what time it iszartemis knows what time it iszartemis knows what time it iszartemis knows what time it iszartemis knows what time it iszartemis knows what time it iszartemis knows what time it iszartemis knows what time it iszartemis knows what time it is
 
zartemis's Avatar
 
Posts: 283
Karma: 2002
Join Date: Nov 2007
Device: Kindle3, Kindle2, Nook, NookColor
Quote:
Originally Posted by dereksurfs View Post
1. Can I simply use my computer plugged into the the nook and windows explorer to access /system/apps files? I am able to get to some directories, but are these hidden to MS? This would seem easier although I know we are dealing with a different OS. So things could get messy.

2. How does one edit files in system/apps which are read only? Is best to change their permissions first like most Unix OSs? If so how?

BTW, I'm an old unix programmer. I'm just not sure if I need to go into that mode here form a console app. Maybe that would be easier - simply chmod 777 the file.
Well, if you remember your unix stuff, you can remount the system mount point read/write (that's probably what is blocking you) and yes, indeed, use chmod to change permissions if you need to using a terminal emulator app or by accessing the shell via adb (either over USB or ADBWireless).

If you don't mind paying for an app, you can also just pick up root explorer which will give you one-button access to remounting /system r/w and allow you to change simple permissions (but not setuid or setgid) via GUI (faster than typing on the Nook's keyboard, IMO).

Last edited by zartemis; 02-20-2011 at 06:57 PM.
zartemis is offline   Reply With Quote
Advert
Old 02-22-2011, 11:20 AM   #3
dereksurfs
Member
dereksurfs began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Oct 2010
Device: nook
Ok, first of all a big thank you to Zartemis!

I finally got this working. But it was a royal pain. I'll include the steps for those who may want to do this or something similar. This might save you some time.

1. download terminal emulator app
2. download ADBWireless
3. download Android SDK on notebook
4. download Java SDK on notebook
5. set windows PATH environment variable to point to adb folder:<Android Install Directory >\android-sdk-windows\platform-tools
6. Enable ADBWireless from NC
7. connect to NC from Windows command prompt using adb connect <NC IP>
8. adb shell
9. remount the system mount point read/write (see link above)
10. cd system/app
11. chmod 777 LatinIME.apk
12. cat LatinIME.apk > LatinIME.apk.Orig (this backs up the original)
13. rm LatinIME.apk
14. cd to the directory with the sideloaded LatinIME.apk file
15. cat LatinIME.apk > /system/app/LatinIME.apk
16. Go into nook tools and reselect the keyboard

Derek

Last edited by dereksurfs; 02-22-2011 at 08:42 PM.
dereksurfs is offline   Reply With Quote
Old 02-22-2011, 11:42 AM   #4
dereksurfs
Member
dereksurfs began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Oct 2010
Device: nook
The biggest annoyance was trying to use the ADB Shell from the NC. Android's ADB Shell is weak. It doesn't even have the cp command which is a basic unix shell command. And using the limited keyboard doesn't help. I was seriously considering installing bash shell which has many more standard features. But I'm not sure how much trouble it would be. I've seen some threads where others have discussed using bash on Android. I think they had to install and configure it. If I was going to do Android development I would switch shells for sure.

BTW, I'm sure using tools such as root explorer would help simplify this process. However having familiarity with shell commands when needed is helpful as well.

Derek

Last edited by dereksurfs; 02-22-2011 at 12:08 PM.
dereksurfs is offline   Reply With Quote
Old 02-22-2011, 12:32 PM   #5
zartemis
Addict
zartemis knows what time it iszartemis knows what time it iszartemis knows what time it iszartemis knows what time it iszartemis knows what time it iszartemis knows what time it iszartemis knows what time it iszartemis knows what time it iszartemis knows what time it iszartemis knows what time it iszartemis knows what time it is
 
zartemis's Avatar
 
Posts: 283
Karma: 2002
Join Date: Nov 2007
Device: Kindle3, Kindle2, Nook, NookColor
Quote:
Originally Posted by dereksurfs View Post
The biggest annoyance was trying to use the ADB Shell from the NC. Android's ADB Shell is weak. It doesn't even have the cp command which is a basic unix shell command.
Install Busybox and then you'll have cp and others.

Also a clarification: you shouldn't need to use both adbwireless and terminal emulator, they both do essentially the same thing: adb gives you access to the Nook shell from your PC keyboard (via the 'adb shell' command) and teminal emulator gives you access to the Nook shell using the Nook itself (unless futzing with the keyboard files made you lose all keyboard temporarily? -- in which case you'd need just adb).

Quote:
BTW, I'm sure using tools such as root explorer would help simplify this process. However having familiarity with shell commands when needed is helpful as well.
Yes to both: Root explorer is handy and shell familiarity is useful. Also, Root explorer is a paid app and the other two methods are free.

Last edited by zartemis; 02-22-2011 at 12:47 PM.
zartemis is offline   Reply With Quote
Advert
Old 02-22-2011, 01:30 PM   #6
dereksurfs
Member
dereksurfs began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Oct 2010
Device: nook
Thanks,

I saw BusyBox mentioned as well. I'll give it a look. I just thought bringing a more robust shell like bash would make life easier. But I'm not sure if its worth it. Adding BusyBox looks pretty straight forward. I may even try both and see which I prefer.

With regards to installing and using terminal emulator, it was more of a convenience thing to have as an option. It's nice to have around to do a quick check from the device. But you are right, it is not necessary for this excercise.

Derek

Last edited by dereksurfs; 02-22-2011 at 01:41 PM.
dereksurfs is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PRS-600 Audio file management luthier58 Sony Reader 2 06-24-2010 09:52 PM
PRS-600 File management advices ? sebastienbillard Sony Reader 4 11-06-2009 05:12 AM
File/Folder Management Hellmark Calibre 6 10-15-2009 11:50 PM
File management: how to copy file from USB stick? Lec0mte iRex 5 05-04-2009 07:19 AM
Email to Amazon CS re: File Management daffy4u Amazon Kindle 13 07-10-2008 11:48 AM


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


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