Related
I have two security certificates that I need to install on an HTC Hero in order to sync with an exchange server. I transfered them to the device using a different email account with no trouble. I had to download the "astro" file manager in order to then access the certificates, but when viewing them, the file manager does not know what to do with the files.
I cannot find any sort of "certificate manager" or anything like that on the device. Does anyone know how to actually install the certificates?
thanks
cpenticuff said:
I have two security certificates that I need to install on an HTC Hero in order to sync with an exchange server. I transfered them to the device using a different email account with no trouble. I had to download the "astro" file manager in order to then access the certificates, but when viewing them, the file manager does not know what to do with the files.
I cannot find any sort of "certificate manager" or anything like that on the device. Does anyone know how to actually install the certificates?
thanks
Click to expand...
Click to collapse
As far as i'm aware, certificates only works on mobile windows... no other mobile OS.
n.steenbergen said:
As far as i'm aware, certificates only works on mobile windows... no other mobile OS.
Click to expand...
Click to collapse
I have had to install these on Blackberries and they installed fine.
So with Android, certificates are not required?
*edit
I just realized there was a HTC Hero forum... I didn't see it when I posted initially, so I posted here since the Click runs Android.
My apologies
The security certificates also work on the Palm Pre for Exchange syncing.
My Sprint Hero has recently stopped syncing with Exchange and it's giving me security certificate errors now:
"There are problems with the security certificate for this site.
This certificate is not from a trusted authority."
Oddly it used to work, and nothing has changed on the Exchange 2003 SP2 server.
Does anyone know the answer to this??
chnzshyguy said:
Does anyone know the answer to this??
Click to expand...
Click to collapse
Android root certificates are stored in /system/etc/security/cacerts.bks
I found a programm which ca update the keystore : portecle
http://portecle.sourceforge.net/
i've to pull the cacerts on your PC (u need java 6) adb pull ../..
then update wtih protecle : run portecle.jar
an push the fil again adb push ../...
A+
Jpq
(Mind the bump)
Is there an adb daemon installed on the HTC Hero, or will I have to push one on there somehow, to allow me to copy files to and from the phone?
And when I hooked one of these things up to my PC, XP reported it as a USB mass storage device and not a composite device. It didn't have a memory card, so it showed up as a removable drive with no disk in it. Or can I use the Android USB driver for Windows in place of usbstor to get access to the phone's own file system?
My carrier says I can hack the cacerts.bks file without violating their terms of service. Now I just need a way to get to it. Hopefully I can copy over it without having to root the phone.
gordonf4xda said:
(Mind the bump)
Is there an adb daemon installed on the HTC Hero, or will I have to push one on there somehow, to allow me to copy files to and from the phone?
My carrier says I can hack the cacerts.bks file without violating their terms of service. Now I just need a way to get to it. Hopefully I can copy over it without having to root the phone.
Click to expand...
Click to collapse
adbd should be there, to connect you need to enable checkbox in Settings->Applications->Development->USB Debugging
Nforce25, Thanks: I found the setting and can run adb on the phone. No root access, but if I have read/write access to the certificate store I won't need it.
Just typing 'su' gives me 'permission denied,' but I'll try to avoid rooting the phone.
Importing certificates manually
Android root certificates are stored in /system/etc/security/cacerts.bks
I found a programm which ca update the keystore : portecle
[ .. .. his link here .. ..]
i've to pull the cacerts on your PC (u need java 6) adb pull ../..
then update wtih protecle : run portecle.jar
an push the fil again adb push ../...
A+
Jpq
Click to expand...
Click to collapse
Hey there, nice work finding that out!
Now that i have my cacert imported inside the cacerts.bks i may try tomorrow if the wpa_supplicant will detect it, thus making it selectable for the wifi connection of my university. Keep ya posted.
Thanks.
Need your help with HTC sync and Certs..
Hello All,
I have looked for the certs on my phone using asto but I do not have them, which might explain why I am unable to setup my work email again. It was working before. Can someone help me find a way to fix this? I am able to use yahoo, gmail and hotmail but not my work email. using active sync gives me an error: Failed to create account. Please try again later. I was able to use it before but i messed something up. Any help appreciated. Thanks
EM
Hey Guys.
i managed to put my personal certificate in the cacerts.bks.
im now having trouble putting the file back into the andriod phone.
im getting "read only" error when trying to "adb push" the file back and "read only" error when trying to chmod the cacerts.bks file on the device (so i will be able to replace it with the new one) - im with the root account.
maybe i need to change the directory security? (system/etc/security)
im a noob at linux/unix (just rooted the phone yesterday)
any help will be great!
thanks ahead and sorry for my English,
Lior.
Try adb remount before any other command.
You can use a file manager as QTADB or android commander to do operations like copy, delete, rename etc from a graphical interface.
i tried from connectbot on the device
i tried using adb shell with superuser access
buth gave me "read only file system"
i even tried creating a folder in "system\etc\security" with astro file manager and got "no permission"
i am not familiar with that file system - do i need to change "security" directory permission before file permission?
EDIT: i checked mounting on the device and one of the mounts is:
/dev/block/mtdblock7 /system yaffs2 ro 0 0
as i understand, "ro" is read only?
so i cant write to this mount?
im afraid of unmounting it so my device won't stop working.
EDIT2: i tried adb remount
got: remount failed: Operation not permitted
EDIT3: managed to make the mount RW by using the command:
mount -o rw,remount -t yaffs2 /dev/block/mtdblock7 /system
EDIT4: (more as progress status)
"chmod 777" on the cacerts.bks file
and
"adb push cacerts.bks /system/etc/security/"
WORKED!!!
Our nook touch's don't have the ability to allow mock locations for using tetherGPS.
It is usually found Settings->applications->development but we don't have Applications tab under settings.
Any ideas how I can get a touch to allow mock locations? Rooted running touchnooter.
Or, since running 2.1 it is host usb so that can't receive usb data, I have to use serial data. I have found serial pins under the sd card slot. Anyone have any ideas to see if touchnooter has the gps libraries? Yep, I'm a noob so maybe not even asking it properly.
Any feedback on getting GPS to work would be appreciated! thanks
lolokai said:
Our nook touch's don't have the ability to allow mock locations for using tetherGPS.
It is usually found Settings->applications->development but we don't have Applications tab under settings.
Any ideas how I can get a touch to allow mock locations? Rooted running touchnooter.
Click to expand...
Click to collapse
Assuming you have rooted your N2 and know how to use adb with it:
Code:
#adb pull /data/data/com.android.providers.settings/databases/settings.db settings.db
#sqlite3 settings.db
Code:
sqlite> update secure set value=1 where name='mock_location';
sqlite> .q
Code:
#adb push settings.db /data/data/com.android.providers.settings/databases/settings.db
#adb reboot
To verify it working you can fetch an app called "My Fake Location" from the market and use it to set your mock location
Just tested the above solution with TetherGPS Lite and my X10 as server and it worked just fine.
thank you ros87
I can't get my laptop to recognize my NT yet but I will figure that out.
So basically, I run adb and paste that code for first section. ADB pulls that file.
I then run? sqlite to get that variable changed, then push the file back? I am researching all I can but this is all new to me so thanks again for your feedback.
I found the easiest way to get laptop to recognize the nook by using ADB Wireless app, way simpler than messing with usb drivers etc.
When I ran the first pull command, it says: remote object does not exist '/data/data........
In sqlite3 I tried to change the values and it came back with:no such table: secure
So it seems it doesn't have that code. Back to square one. Touchnooter seems to run nook color so any code would be that of nook color (I think).
Any idea on how to proceed now? Can I create table and then push it?
lolokai said:
In sqlite3 I tried to change the values and it came back with:no such table: secure
So it seems it doesn't have that code.
Click to expand...
Click to collapse
This is not possible. secure table is the same table where you enable non-market install (e.g. with touchnooter). There has to be something wrong in the command you have use.
cceerrtt said:
This is not possible. secure table is the same table where you enable non-market install (e.g. with touchnooter). There has to be something wrong in the command you have use.
Click to expand...
Click to collapse
I just read this:To use sqlite3 locally, instead of within a shell, pull the database file from the device and start sqlite3:
Copy a database file from your device to your host machine:
adb pull <database-file-on-device>
Start the sqlite3 tool from the /tools directory, specifying the database file:
sqlite3 <database-file-on-host>
So since I couldn't pull the database as I mentioned, that is why sqlite3 coulnd't find the table.
Any ideas on why I can't pull the database?
Is your devices properly connected? Do you see nook in "adb devices" output?
Are you able to pull any other file?
Is the filepath in the command correct?
Why don't you copy & paste the terminal log? Much easier than let us guess what's wrong.
Update: another option - you should be able to use boot with noogie sdcard and copy that db file directly to your computer.
Device is connected. I will research how I can copy terminal log and paste that here. I was typing the post below when I saw your post but will work on terminal log.
If the goal is to change a value in sql, I just downloaded an app called SQLite Editor on the NT and changed the mock location variable from 0 to 1 there. I can see why it didn't pull the code in previous tries as i was not there on my system. The route for anyone else trying to get this done via SQLite:
settings storage>settings.db/secure
As a non-programmer flailing through this I found adb wireless app much easier than screwing with usb stuff which I never did get ADB (win7) to recognize device via command prompt. Also the SQLite editor is much easier than messing with ADB. Again, these are noob workarounds for someone who doesn't know that much about android stuff.
Alas, I still can't get TetherGPS to work. It says from the widget I can allow mock locations and turn on GPS but there are no menu items I can see from the widget. Also, I put in the IP address I used from ADB wireless- is that what I should use on both server and client? I did run a GPS toggle app and turned on GPS, no idea what that does but it didn't FC and stays 'on'. No response from Compton Soft who made the app.
Any ideas? Paypal ready for whomever can get me closer to running GPS on a Nook Touch, I might be able to get it but at this rate, it will take a long time.
I got the NT to see the GPS but it wasn't updating. I was using TetherGPS lite and when I bought TetherGPS, it showed some GPS data.
As ros87 said, My Fake Location is the way to get the NT to Allow Mock Location.
Now I have to see how to get the GPS to send data fast enough so the app I use can be of value.
I feel like the guy on the car forums who is troubleshooting the ECU but doesn't know how to change spark plugs lol. Thanks ros87 and cceerrtt!
com.android.providers.setting should be com.android.providers.settings to pull the file
Thiso said:
com.android.providers.setting should be com.android.providers.settings to pull the file
Click to expand...
Click to collapse
Thanks mate, fixed!
Does anyone know what local files is an APK accessing, or at least what url it is accessing from internet when downloading files?
I have an APK that is downloading files from internet, but is doesn't give me opportunity to move the files to SD Card. It is pretty annoying, as my system/internal memory is not infinite !
As an example, there is this "Process Monitor" from sysinternals.com
that shows accessed files by a program on PC for local files.
Maybe there is such a logger for Android too?
hmmm....
anyone alive?
since i don't really know what you are trying to do some suggestions
maybe logcat is what are you looking for
search for "logcat" at the market - there are a lot of apps
or titanium backup to move apps to sd
or do you mean the working memory ?
it's an other design as at other operating systems
android loads/unloads apps as needed
there are tools as setcpu to change when android begins to unload/close apps
thanks for answering!
suppose I am downloading a book with aldiko.
how can I know the URL it is downloading from, or the file where it saved it?
I tried moving the APK with Titanium already, but seems like the books are still there, and they are taking a lot of internal memory
I also tried already "alogcat", but it's not showing me what files an APK acesses from local nor the URLs
At least on PC such logger exists but maybe there is such a logger that show this info on Android too?
For the URL I'd use a packet sniffer, either on the device or on the network. Keep in mind, there's no guarantee that the downloads happen over HTTP at all...
As for the files, the data folder for any android application is referenced from /data/system/packages.list, and is almost always "/data/data/package_name". You could probably move the larger files/folders elsewhere and create a symlink to the new location, but on a fat32 partition for /mnt/sdcard you may run into permission (or case sensitivity) problems.
rorogio said:
I also tried already "alogcat", but it's not showing me what files an APK acesses from local nor the URLs
At least on PC such logger exists but maybe there is such a logger that show this info on Android too?
Click to expand...
Click to collapse
You can use the terminal app oder adb shell and run the following command
Code:
lsof | grep aldiko
to see the files aldiko has currently open. For the URL it's more complicated, the netstat (on terminal) command gives you only the connected IP's. If you want the exact URL (if it even is something like a HTTP URL) use a network sniffer or a Proxy.
nind said:
You can use the terminal app oder adb shell and run the following command
Code:
lsof | grep aldiko
to see the files aldiko has currently open. For the URL it's more complicated, the netstat (on terminal) command gives you only the connected IP's. If you want the exact URL (if it even is something like a HTTP URL) use a network sniffer or a Proxy.
Click to expand...
Click to collapse
I tried this with adb from command prompt, but this is the result:
Code:
"'lsof' is not recognized as an ...operable program or batch file."
Did you mean an android terminal app?
You can use the terminal app oder adb shell and run the following command
Click to expand...
Click to collapse
you have to issue the command in the adb shell
b63 said:
you have to issue the command in the adb shell
Click to expand...
Click to collapse
I put this one, but it says now that grep is not a known command
(I used this formula:
Code:
adb shell lsof | grep aldiko
)
Now I have another idea --
Because I know the extension of books loaded by aldiko - .epub,
I backed up the internal memory with TWRP to look for these files on the backup file on the PC.
But I have no idea how to open on PC these files. They have a .win extension.
Is this even possible?
did following:
adb shell
# lsof | grep maps
lsof | grep maps
com.googl 2046 ??? 32 ??? ??? ??? ??
? /data/app/com.google.android.apps.maps-2.apk
com.googl 2046 ??? 33 ??? ??? ??? ??
? /data/app/com.google.android.apps.maps-2.apk
com.googl 2046 ??? 36 ??? ??? ??? ??
? /data/app/com.google.android.apps.maps-2.apk
com.googl 2046 ??? 37 ??? ??? ??? ??
? /data/data/com.google.android.apps.maps/databases/LayerInfo
#
Click to expand...
Click to collapse
used maps cause i don't have aldiko on mine
don't know something to open .win at pc
I know that this is for second edition but I don't seen a forum for the first edition so this seems to be the closest match. Anyway I am trying to root my Nook Classic (the one with a E-ink display on the top and color touch screen on the bottom). I am following the instructions on nookdevs for rooting the Nook Classic on all hardware and firmware versions (I can't post the link here as I am new but PM me and I can pass it that way if you need). The method is that sometimes when the web browser browses a certain type of website it crashes and sometimes starts adbd and you can connect adb at that point.
I have managed to get adb to connect, pull the init.rc file, make the needed change, but when I try to push the ratc.bin file adb says it goes though but then the second command $ cd /sqlite_stmt_journals (after starting adb shell) says it is not found. So I can't go any further. ratc.bin is what gives root access long enough to push the init.rc back and without being able to run that, well I am up a creek.
Any ideas?
dob43 said:
I know that this is for second edition but I don't seen a forum for the first edition so this seems to be the closest match. Anyway I am trying to root my Nook Classic (the one with a E-ink display on the top and color touch screen on the bottom). I am following the instructions on nookdevs for rooting the Nook Classic on all hardware and firmware versions (I can't post the link here as I am new but PM me and I can pass it that way if you need). The method is that sometimes when the web browser browses a certain type of website it crashes and sometimes starts adbd and you can connect adb at that point.
I have managed to get adb to connect, pull the init.rc file, make the needed change, but when I try to push the ratc.bin file adb says it goes though but then the second command $ cd /sqlite_stmt_journals (after starting adb shell) says it is not found. So I can't go any further. ratc.bin is what gives root access long enough to push the init.rc back and without being able to run that, well I am up a creek.
Any ideas?
Click to expand...
Click to collapse
>> http://www.mobileread.com/forums/forumdisplay.php?f=209
>> http://www.the-ebook.org/forum/viewforum.php?f=44&sid=e250da1c3a4967da22dae8ca2d104ac8
Thanks osowiecki, I did find a thread on Mobile read shortly after I posted this. The other is non-english I am afraid, and sadly I only speak english.
Anyway I did mange to root my nook today. And I am posting here as I hope it will help someone in the future:
Yessssssssssssssss! I finally hacked my Nook Classic (Nook First Edition called by some)! I followed most of the instructions at http://nookdevs.com/Rooting_B&N_revision_1.4_to_1.7_on_any_hardware
I only tweeked in a few places. Here is a general list of what I did:
1. Look at the site above and grab the linked file (ratc.bin). Then go to this thread http://forum.xda-developers.com/showthread.php?t=1474956 and at the top there grab the adb + fasboot + drivers.zip. The reason I used this is because it is much smaller than the full Andriod SDK (which is over 500mb btw) and I figured this would work since it works for Nook Tablets. I didn't install the drivers or anything though. Just used adb.
2. Went with nook browser to http://nookadb.suspended-chord.info/ to crash the browser. If this should ever be down I see on the nookdevs page there is a discussion with the code that is on the crash page so you can put it on any web server and still do this procedure.
3. Once it crashed I went to cmd (comand prompt) and navigated to the folder that had the adb package I downloaded and decompressed earlier. I suggest putting this folder on your desktop for easy use. I gave the command
adb connect yournookip:5555 please note that the nookdevs instructions are not specific in that you NEED the :5555 after the IP. If it doesn't connect, keep crashing the browser by going to that page until it connect.
4. extracted the init.rc file with the command
adb pull /init.rc then edited as per the instructions on nookdevs
5. Now here is where things are different. I tried to push the ratc.bin file and while that seemed to work the commands after it didn't. It would keep saying the file wasn't there. I was cut and pasting the commands direct from the website so I don't think that was the issue. So what I did was grab the bat file at www.mobileread.com/forums/showthread.php?t=121655&page=2 by Jackr and edit it slightly removing the bit about location of adb and placed the bat in the same folder as adb on my desktop and ran it.
6. This actually worked and the bat prompted me to crash the browser again. I kept trying it took a while but as soon as I did it pushed the modifyed init.rc to the nook. The another reason why I think the bat/script is important as my nook totally froze a second after I crashed it. I think that if I was trying to paste that command manually after connecting I would still be trying lol.
7. After reboot I was fully rooted and I installed a bunch of apps from nookdevs using adb. Just make sure the apk (app file) is in the same directory as adb and use the command install nameofapp.apk
8. If you want to use nookmarket app to install files by itself then you need to:
adb connect nookIP:5555
adb shell
then type this after the #
/system/xbin/sqlite3 /data/data/com.android.providers.settings/databases/settings.db "update secure set value=1 where name='install_non_market_apps'"
It will allow nookmarket to install apps on the fly over the net. If you ever want to turn it back off just change the value=1 to value=0 in the above command. Of course you can always use adb, but it can be handy.
Of all the apps I would definitely suggest Nooklibary and wifilocker along with Nooksync. There are several other good nook apps such as trook. Oh I should also mention that Nook Browser still works fine. I think using the batfile/script helped with that situation.
I hope this helps someone who is thinking of taking the plunge (and trying to find out HOW). I wouldn't have bothered if B&N actually continued to update the Nook Classic and add the features that we BEGGED for (and are in NookLibrary). Instead of spending time adding things we didn't like games.
I've tried a thousand times, but always get "failed to copy 'init.rc' to '//init.rc': Permission denied" so RATC must not be working. And I'm on mac, so no bat. Any ideas?
lolbutts said:
I've tried a thousand times, but always get "failed to copy 'init.rc' to '//init.rc': Permission denied" so RATC must not be working. And I'm on mac, so no bat. Any ideas?
Click to expand...
Click to collapse
I would suggest looking at the bat, and creating the equivalent in apple script. If I remember right Mac's still have that option. Another option would be to run say WinXP in emulation (with virtual box for example) and do it that way.
How to root the original Nook tablet (model number: BNRZ100)
dob43 said:
Yessssssssssssssss! I finally hacked my Nook Classic (Nook First Edition called by some)! I followed most of the instructions at http://nookdevs.com/Rooting_B&N_revision_1.4_to_1.7_on_any_hardware
Click to expand...
Click to collapse
Okay, since nookdevs.com has apparently been down for sometime now, I was checking out the mobileread.com link that was shared above and found out the info that I have been searching for to find out how to root the Nook. Be forewarned that I have not tried this yet, but I am about to, and afterwards I will post the results, I am just posting it as sort-of a guide for myself and anyone interested at this point. I will edit this post accordingly once I am successfully rooted.. Please see below for links / details.
Disclaimer: I am not responsible for any damage that is done by you to your Nook, either physically or otherwise. I am just showing you what I have researched and if you choose to follow these directions it is at your own risk.
Which Nook Device Do You Have?
click here to find out:
http://glyde.com/glydecast/how-to/which-nook-do-you-have/
Remember, this is for the first generation only (model number: BNRZ100)
Here is a visual aid that will help you find the SD card that you need to look for once you get the Nook opened up (yes, you will need to open your Nook and access the motherboard):
http://www.wired.com/2009/12/nook-torn-open-hacked-and-rooted/
How to open the Nook up:
https://www.youtube.com/watch?v=GEDqiNiQFHk
Hint: you don't need to take to front panel / bezel off, just the back section because all we need is access to the motherboard to be able to remove the internal SD card, which contains the file that we will be editing.
Finally, the info that you need to root the device (also posted below the link for quick reference, and just in case the link gets broken):
http://www.mobileread.com/forums/showthread.php?t=128210
How to root the Nook, after you figute out how to open it up:
Just you need a microSD Card reader + Linux (any linux ) !
just you should remove the System file MicroSD ( which is inside the Nook )
put it in your PC , change the "init" file with Any txt editor !
just find "service adbd /sbin/adbd" and change the "disable" to "enable" ...
you are done !
Wow I had no idea that Nookdevs went down. Thankfully I did archive all the information on that page. While the method you mentioned is great, and the best, only the earliest nook classic's had removable system SD cards. After the first batch they were soldered chips instead.
With that in mind I am posting what was contained in the link I posted before on NookDevs since it is not available on the internet archive.
------------
This method of rooting is known to work on B&N firmware revisions 1.4-1.7, on all hardware versions. Unlike the other rooting methods, this one involves an element of luck -- it takes advantage of a memory-corrupting bug in the web browser, and its success depends on the current contents of the memory which depends on more variables than we can control. As such, the method requires a little bit of (or more) patience. Warning: After this root is completed, the web browser will be irreversibly damaged.
Contents
1 Preparation
2 Enable adbd on the Nook
3 Pull and modify /init.rc
4 Getting root access
4.1 Keeping root access
5 Your rooted Nook
6 Notes
Preparation
Install Google's Android platform tools from developerdotandroiddotcom. These include many useful utilities, such as the ADB control software.
Open up a terminal to use ADB
Open a command prompt
Navigate to the directory that you installed, then go into the platform-tools subdirectory. This is where the adb executable lives.
Connect your nook to the same WiFi that your computer is on. You need direct (non-firewalled) access to the Nook's IP address to connect via ADB.
Find your Nook's IP address (How to find our your nook's IP address)
Write it down somewhere.
Enable adbd on the Nook
This is the luck portion of the root. adbd is the other half of ADB: ADB runs on your computer, and tries to connect with adbd on the nook. Once connected, you can issue commands, shuffle files, and install applications. Our final goal is to be able to start and stop adbd at will[1].
Open the Nook's web browser and navigate to the web site nookadb.suspended-chord.info. You may want to bookmark the page for a quicker access.
When you load this web page, the browser will crash. (It may automatically reload itself a few times first.) After it crashes, it might enable adbd.
Go back to the command prompt on your computer, and type:
adb connect <nook's IP>
One of two things will happen:
You will get the message unable to connect to <ip address>:5555.
In this case, restart your web browser and load the web page again (from the history or the bookmark). You may have to do this a dozen times or more, so keep at it!
You will get the message connected to <ip address>:5555.
Success!
At this point you have (temporarily) access the nook via ADB, can now enter commands on your PC for the Nook, and can move files back and forth. If you reboot the nook, adbd (the nook companion to ADB) will not be running.
Pull and modify /init.rc
If this isn't your first time through, and you have a modified copy of init.rc, skip this step.
Now that you can connect into the Nook, you will want to pull and edit the /init.rc file. This file is run when the nook turns on, and includes an option to enable adbd (disabled by default). Download the file to your PC with:
adb pull /init.rc
Open this file with Notepad (or a different plain text editor), and find the part the lines:
service adbd /sbin/adbd
disabled
Change 'disabled' to 'enabled' and save the file.
Getting root access
You got the web browser to launch adbd, but you only have the privilege level of the web browser's user - system. To install software and to start adbd when the Nook reboots, you need root access. Rage Against the Cage will give you root access. Next, you'll restart adbd, and push the modified init.rc back to the nook. After that, reboot the nook and you're done!
Download [ratc.zip].
Extract it to the same directory that adb is stored in, then go back to the command prompt:
adb push ratc.bin /sqlite_stmt_journals
adb shell
$ cd /sqlite_stmt_journals
$ /system/bin/chmod 777 ./ratc.bin
$ ./ratc.bin
(several lines of output follow -- don't do anything, a few seconds later adb will disconnect you.)
Keeping root access
If everything went well, you should have root access on the Nook. However, the Nook is now relatively unstable and may stop working at any point, so work quickly!
The nook may crash - just reboot, then restart the process from scratch. (Remember, you don't need to pull init.rc again.)
First, you need to stop your PC's ADB server. It still thinks that it's connected to the nook.
adb kill-server
Second, you need to re-establish the connection with adbd on the nook and then push init.rc file. You can do this by typing these commands[2]:
adb connect <nook IP>
adb push init.rc /
Perform the browser crash procedure again. After each attempt, check if the computer successfully transferred init.rc. If it did, you're done!
If the nook crashes before the transfer completes (so you are not able to connect to your nook), go back to "Enabling adbd on the Nook". You can skip "Pull and modify /init.rc", but do the other steps.
If the adb push gives a permission denied error, redo the "Getting root access", and try again. You may have to do this quite a few times until the whole process succeeds.
Your rooted Nook
Assuming everything worked, you now have a rooted Nook with adbd running on reboot, with root access. You should be able to establish the connection with adbd on the nook without jumping through any other hoops.
What's next? Browse the applications, and install to your heart's content.
Suggestions:
Mynook.ru Launcher A polished replacement launcher. You must replace the launcher to access additional applications with the nook.
Trook A RSS feed reader for the nook, and much more! It can install applications, too. Just go into the nookdevs feed.
NookLibrary A replacement library for the nook. If unifies sideloaded books with Barnes & Noble content, and offers other improvements.
NookMarket A program that allows you to easily install everything on nookdevs. Trook offers more functionality (imho)
Games There are a few games on the applications page.
Notes
↑ There's also a Python script to automate the process: root-nook-eink.tar.xz (Updated Jun 6 , 2011)
↑ You may want to run a script that automatically issues the following commands, reducing the chances of the nook crashing before init.rc has been pushed to it. In this case, extract this [batch file] to the same directory as ADB. Run it by typing:
push.bat
It will prompt you for your nook's IP address, then try connecting. Every few seconds, ADB will complain that it can't connect to the nook. Let's fix that.
------------------------------------------------
The above is from Nookdevs.com and I did not write it I am only posting it here as the site has went down.
I am also posting the html file that is needed to do this (although here it is in txt format). If the the site listed above ever dies you can put this on a website somewhere to use it. And the ratc.bin file needed.
And finally I am adding the apps that make rooting the nook classic worth while. The improved library definitely. Which btw are two parts, the library app and the nooksync which enables you to download from B&N directly. Otherwise you need to use the normal nook library app to download then you can read with the nookdev version. I am not sure which version of the library works best, been a while since I installed it so I included both.
Also wifilocker is great to turn wifi on/off not to mention lock it and keep the nook from going to sleep while you are connected to adb. I definitely suggest installing that as well. The others are handy. Trook can connect to calibre and download books from your desktop. The nook browser is a improved web browser for nook classic, although I never really bothered with it.
Nook notes is good for quick little notes when you don't have any other device handy. Txt reader reads txt files, not the best but it is handy. Personally I just make epubs of anything with calibre. But if you don't want to bother making a epub first, this is handy.
Hope this helps someone!
I downloaded files and rat.bin has malware in it.
I also have hard time understanding the ones that are explained above. Is there any easier way to do it? Does anybody have a good tutorial video or "fool-proof" instruction on this? I have Nook classic wifi version.
I would like to read kindle books on nook as well as the nook books. Is this even possible on this model?
Thanks for the help
kidollt said:
I downloaded files and rat.bin has malware in it.
I also have hard time understanding the ones that are explained above. Is there any easier way to do it? Does anybody have a good tutorial video or "fool-proof" instruction on this? I have Nook classic wifi version.
I would like to read kindle books on nook as well as the nook books. Is this even possible on this model?
Thanks for the help
Click to expand...
Click to collapse
Er of course rat.bin would be flagged as malware, because technically it is. You are hacking a system that is designed not to let you in. But in this case all rat.bin will do is let you in so you can get root of your own device, nothing else. No back doors for anyone else or making your device do odd things.
The problem you are having is not using rat.bin, without that you might as well not try. I also only managed to do it with a BAT file so that it would keep trying to push the init.rc RIGHT AFTER the rat.bin was used. Generally you can't type fast enough to do the push. The window of opportunity is very very small.
This does work but is tricky as the window of opportunity is very small. I tried for hours trying to get it to work, then I used the BAT file to make the push automatic and on the second try it worked. Rooting the Nook Classic is the toughest device to root that B&N made. If you have one of the really early models that has a removable internal SD card then you can pull that, made modifications (install a old version of the ROM, make a modification to init.rc), and reinstall the SD card. I forget the serial numbers of the models that this worked with, but I do know it was the first batch of Nooks B&N made. If you got yours after the first Christmas, then it is likely it doesn't have a internal SD card that you can remove. Later on they soldered them to the board.
As for reading kindle books, no. There isn't a mobi reading app that I have found, let alone kindle books with DRM. The better bet is to use Calibre calibre-ebook.com to convert your kindle books to epub. But they can't be encrypted/DRM. If they are, then you have to remove that. There are scripts for Calibre that can do it for nook and kindle. I use calibre to convert my mobi/kindle books to epub then side load them. Another benefit of rooting a nook classic, you can then browse and download wireless from your calibre library with the took app. Although I never bothered and just did the transfers via USB.
Hi!
I would like to ask for help in this case:
I followed all the instructions here, however for some reasons I wanted to install this app first using the command "adb push Home.apk /system/app" pushing the app found here: Github
Now it turns on/off, shows "Home", batter and time at the top bar, but everything else is black both the Eink screen and the touchscreen as well.
It does not connect to wifi automatically so I can't connect via ADB to switch back to the original Home apk
Please help me, what should I do?
Is 1.7 software not rootable?
I can't get adb to come on, no matter how many browser crashes I do. Even wrote a script for it:
@echo off & setlocal
set IP=192.168.0.119
set loopcount=0
set s
:loop
set /a loopcount=loopcount+1
echo Connecting %loopcount% time...
adb connect %IP% | find /i "connected to" > %s
if errorlevel 1 (
echo Not successful + %ERRORLEVEL% + %s%
goto loop
) else (
echo Successful + %ERRORLEVEL% + %s%
adb shell
goto exitloop
)
:exitloop
pause
Click to expand...
Click to collapse
Is OTA rooting (by redirect on sync.barnesandnoble.com) not possible any longer as well?
Sorry for the late response, for some reason the email telling me there was a post here just arrived TODAY lol.
It should be, I did it with 1.7. The script I have I modded a little from another one I found online here is mine:
Code:
@echo off
echo The website hack seems to work on the round right after it has an instant crash.
echo.
adb kill-server
adb start-server
set /p ip=Enter the IP here.
:CON
cls
echo Crash the browser.
echo.
adb connect %ip%
for /f "tokens=2" %%A in ('adb devices') Do (Set dev=%%A)
if %dev%==device goto INT
echo.
goto CON
:INT
if exist ratc.bin (set f1=1) else (set f1=0)
if exist init.rc (set f2=1) else (set f2=0)
if %f1%==%f2% (if %f1%==1 (goto RTT) else (goto 2fi)) else (goto 2fi)
:2fi
if %f1%==0 (echo "The ratc.bin file is not in the %cd% directory.") else (echo Ratc.bin file present.)
echo.
if %f2%==0 (echo "The init.rc file has not been pulled from the device to the %cd% directory, pulling now.") else (echo Init.rc file present.)
if %f2%==0 adb pull /init.rc
echo.
echo Please add the required files and restart this batch. If init.rc was just pulled, you will need to modify the file.
cmd
:RTT
adb push ratc.bin /sqlite_stmt_journals
adb shell cd /sqlite_stmt_journals
adb shell /system/bin/chmod 0777 /sqlite_stmt_journals/ratc.bin
adb shell /sqlite_stmt_journals/ratc.bin
adb kill-server
adb start-server
goto CO2
:CO2
cls
echo Re-crash the browser.
echo.
adb connect %ip%
for /f "tokens=2" %%A in ('adb devices') Do (Set dev=%%A)
if %dev%==device goto PSH
echo.
goto CO2
:PSH
adb push init.rc /
adb shell reboot
echo.
echo Congrats! The device is now rooted.
echo.
cmd
It is RANDOM on the browser crashes. Sometimes it happens fast, another time it look me a hour or two to get a good crash and root the nook. Also if it doesn't seem to be doing it for a long time, try rebooting the nook (hold down the power until the screen blanks then press the button again to restart it). In my opinion, this is the toughest Nook to root, but definitely worth it. Especially now that B&N ended support some time ago. Also make sure the ADB, this script, and the ratc.bin is in the same folder. I used a folder on the desktop as it made it much easier/faster to get to. Also after you get the init.rc and modded, that should be in the same folder as well.
As for OTA rooting, I have no idea if it will work or not. I never used that method. But if it depended on any sort of connection from B&N, I doubt it will work now since they have abandoned the Nook classic.
If you need any of the nook apps that were on the nook developer site let me know. I downloaded all the apps before the site went down.
dob43 said:
Sorry for the late response, for some reason the email telling me there was a post here just arrived TODAY lol.
It should be, I did it with 1.7. The script I have I modded a little from another one I found online here is mine:
Code:
@echo off
echo The website hack seems to work on the round right after it has an instant crash.
echo.
adb kill-server
adb start-server
set /p ip=Enter the IP here.
:CON
cls
echo Crash the browser.
echo.
adb connect %ip%
for /f "tokens=2" %%A in ('adb devices') Do (Set dev=%%A)
if %dev%==device goto INT
echo.
goto CON
:INT
if exist ratc.bin (set f1=1) else (set f1=0)
if exist init.rc (set f2=1) else (set f2=0)
if %f1%==%f2% (if %f1%==1 (goto RTT) else (goto 2fi)) else (goto 2fi)
:2fi
if %f1%==0 (echo "The ratc.bin file is not in the %cd% directory.") else (echo Ratc.bin file present.)
echo.
if %f2%==0 (echo "The init.rc file has not been pulled from the device to the %cd% directory, pulling now.") else (echo Init.rc file present.)
if %f2%==0 adb pull /init.rc
echo.
echo Please add the required files and restart this batch. If init.rc was just pulled, you will need to modify the file.
cmd
:RTT
adb push ratc.bin /sqlite_stmt_journals
adb shell cd /sqlite_stmt_journals
adb shell /system/bin/chmod 0777 /sqlite_stmt_journals/ratc.bin
adb shell /sqlite_stmt_journals/ratc.bin
adb kill-server
adb start-server
goto CO2
:CO2
cls
echo Re-crash the browser.
echo.
adb connect %ip%
for /f "tokens=2" %%A in ('adb devices') Do (Set dev=%%A)
if %dev%==device goto PSH
echo.
goto CO2
:PSH
adb push init.rc /
adb shell reboot
echo.
echo Congrats! The device is now rooted.
echo.
cmd
It is RANDOM on the browser crashes. Sometimes it happens fast, another time it look me a hour or two to get a good crash and root the nook. Also if it doesn't seem to be doing it for a long time, try rebooting the nook (hold down the power until the screen blanks then press the button again to restart it). In my opinion, this is the toughest Nook to root, but definitely worth it. Especially now that B&N ended support some time ago. Also make sure the ADB, this script, and the ratc.bin is in the same folder. I used a folder on the desktop as it made it much easier/faster to get to. Also after you get the init.rc and modded, that should be in the same folder as well.
As for OTA rooting, I have no idea if it will work or not. I never used that method. But if it depended on any sort of connection from B&N, I doubt it will work now since they have abandoned the Nook classic.
If you need any of the nook apps that were on the nook developer site let me know. I downloaded all the apps before the site went down.
Click to expand...
Click to collapse
Does this still work? I recently dug up my old nook 1st edition, I tried the website and it didn't crash my browser, it just sat there forever loading.. I looked at the site, now it's using TLS 1.3, but old nook 1st edition is stuck with TLS 1.2... I tried for many hours just couldn't "crash" the web browser at all...
Hi,
I want to save my bookmarks, it's on the chrome browser.
I don't want to sync the bookmarks on the google cloud.
I find no application to save the bookmarks file.
I hear that the bookmarks file is located in data/data/com.android.chrome/app_chrome/default/bookmarks but is the file can be read by the chrome browser of a computer, and saved as a html file ?
To access on data/data/com.android.chrome/app_chrome/default/bookmarks it seems that the phone must be rooted and mine is not rooted, i try to access to the file with adb but without success; it give this :
[email protected]:/home/user adb shell
harpia:/ $ cd /data/data/com.android.chrome/app_chrome/default
/system/bin/sh: cd: /data/data/com.android.chrome/app_chrome/default: Permission denied
or
[email protected]:/home/user adb pull /data/data/com.android.chrome/app_chrome/default/bookmarks /home/user/Downloads
adb: error: remote object '/data/data/com.android.chrome/app_chrome/default/bookmarks' does not exist
or
[email protected]:/home/user# adb root
adbd cannot run as root in production builds is there a solution ?
To root my phone it seems that i must unlock the bootloader, but the motorola website say that it will erase all data, is this real ? The bookmarks will be erased ?
If you have an idea to help me to saving the bookmarks file, thank you in advance.
Try to use some robust application to transfer data from one phone to another. This is generally done after buying a new phone, but after all, you can do a transfer to a phone that is rooted.