[Q] Adb.exe has stopped working. - Android Software Development

Win7 64bit.
Latest drivers/adb/sdk.
Using appinventor
I searched and found only this forum (which was obv of no help):
'ADB Magically Stopped Working" (Can't link it because it's a new account)
Ok, now that the required infomation is out let me get to the question.
I am using googles appinventor to make a small app for a game (read FOR a game NOT a game).
While it does have quite a few pictures included in the app, it doesn't have anymore than similar apps on the market.
It wasn't until I started adding the extra pictures (~15-45kbs each) that I got the error: "adb.exe has stopped working".
The logcat for it is attached.
What I am wondering, is that because it has started to crash when I added more images, is there some sort of -notimeout command for ADB that I can use?
If not does anyone see anything that could possibly help?
Thanks a bunch!

It looks like your app was killed by the OS for not being active enough. Once that happens, the debugger might be understandably disgruntled.
Was this on a device or an emulator?

mstorer3772 said:
It looks like your app was killed by the OS for not being active enough. Once that happens, the debugger might be understandably disgruntled.
Was this on a device or an emulator?
Click to expand...
Click to collapse
On both. At first it was my G1. Then I tried connected it to the emulator and it was doing the same thing.
Thanks for the response.

Related

Eclipse and Android SDK

Hey all, i am starting to find out about creating apps. I have started with creating a simple webview app that shows a website.
What i am having trouble with is after editing the files in eclipse i hit run an in the SDK emulator all i get is a black screen wit android write on it.
Any ideas?
NOTE: i am very new to this
Be patient it takes like 10 mins or more for the emulator to load
Novice here.
Yes, it will take sometime. Here it starts quickly (core i5 notebook). But it may take a long long time.
You can also use your phone to debug and deploy. It's very very quick, takes virtually no time to load, like the emulator. At least here.
Good luck!
Thanks all it did take a while was juts me being inpatient.
Follow-up question: When debugging an app in eclipse, if you change your source during a debug session, it should restart my app/activity/whatsis, right?
Yeah.. not getting that at all, and my current dev box leaves something to be desired in the horsepower department. Those emulator restarts are killing my interest in working on this pet project of mine.
I found a link that should let me use my Evo directly, hopefully that will do the trick.
--Mark
Sent from my PC36100(Evo) using XDA App
Update:
Grr. I installed the HTC Sync 2.blah, so I can actually connect to my Evo now from within Eclipse but I'm still running into problems. Eclipse still isn't automagically updating my app when I change-n-save. Am I just expecting too much here?
Oddly enough, it DID update the changed app when I unplugged my evo from my laptop and plugged it back in. This took several seconds to catch up, but it beats the hell out of waiting for a new emulator to boot. Ouch. We need some way to freeze/save the emulator state so we can relaunch it with it's memory and so forth already in place.
I'd mangled my first hand-rolled "hello world" app (started monkeying with stuff without knowing what did what), so it no longer ran. Note To Self: "Test Only" flag seems to mean "emulator only". That was a snag.
So I whipped up a demo app (the "Skeleton App" for 2.1) project. Installed and ran fine. I changed a couple buttons to Log.d(...) instead of What They Did, and after the unplug-plugin trick, the app updated. The buttons no longer performed their original tasks... instead they now do what looks like NOTHING! LogCat isn't showing my debug messages at all (which wasn't a problem previously when I was just using the emulator).
Am I just missing the boat here or what?

[Q] Could someone test this app for me?

I'm doing a little bluetooth serial connection to a PCB I've done for my thesys. It should work, since it is based on the one posted at anddev, and I've only added an xml interface and now it connects and send a msg using 2 buttons.
Problem is I don't have an Android phone right now, and I need to test it. PC emulator doesn't support BT, and using VirtualBox doesn't work for my laptop either.
When I run the app, an error appears, and application is forced to shutdown. Can anyone test it to see if this error is due to not having bluetooth at the emulator or some code error?
If you have a look at the code and make some suggestions I won't complain. I have attached the Eclipse project
(I hope this is allowed at this forum)
ill check it out, but without the PCB you have i dont think i could test any functionality. you want me to just check for any FCs while pressing buttons and what not?
The apk in the bin/ folder of your eclipse project won't install. Error parsing package
Ill try to compile when I get home but try to just post an apk
From something awesome
I just realised that I was using a virtual machine running 2.1 for an app using 3.0 libraries. I'm fixing it, but anyway I'd love you to have a look at the app, just for getting the bluetooth running, even without connecting

Linux?

Is ubuntu possible on our u8800?
http://www.youtube.com/watch?v=xN4c61ETCWg maybe, try it
Without having seen the youtube vid that d3xtr0 linked, I'll post this link:
http://androlinux.com/android-ubuntu-development/how-to-install-ubuntu-on-android/
sebgus said:
Without having seen the youtube vid that d3xtr0 linked, I'll post this link:
http://androlinux.com/android-ubuntu-development/how-to-install-ubuntu-on-android/
Click to expand...
Click to collapse
lit's the same source
It will probably work if this device supports "loop devices" whatever that is? anyone know or tried it succsessfully?
skifyr123 said:
It will probably work if this device supports "loop devices" whatever that is? anyone know or tried it succsessfully?
Click to expand...
Click to collapse
I had no time to try it, maybe later in the week.
skifyr123 said:
It will probably work if this device supports "loop devices" whatever that is? anyone know or tried it succsessfully?
Click to expand...
Click to collapse
It supports loop device. I just tried to mount a loop device with a loop image and it worked.
EDIT: With flibblesan's r5 kernel but it should be supported by stock kernel anyway
You are aware that ubuntu has no proper support for touchscreens; even if it runs you won't gain anything by doing that. When I installed a linux a few months ago on another device it worked, then I was fascinated about one minute and then I decided that there is no use for it an deleted it eventually.
I just do not understand why it is so important to get a desktop-os running on a smartphone. Battery drains fast, no support for the radio etc.
XphX said:
You are aware that ubuntu has no proper support for touchscreens; even if it runs you won't gain anything by doing that. When I installed a linux a few months ago on another device it worked, then I was fascinated about one minute and then I decided that there is no use for it an deleted it eventually.
I just do not understand why it is so important to get a desktop-os running on a smartphone. Battery drains fast, no support for the radio etc.
Click to expand...
Click to collapse
Its not important, but funny and cool if it works (on this device). How did you do it?
Until recently I still had my old samsung-omnia-winmo6.5-phone. There was an app for linux available; you just had to install an imagefile to the sd-card. The fun did last for a minute and then I realized I cannot do anything with this small screen and that it was pretty much useless.
I think that a lot of people here will just read the topic and think "omg this is amazing, now I can have my desktop-os on the phone, great" and later they realize how much time they just wasted.
If it really is fun for you guys, I won't try and stop you
How about using linux programs? i think that it may be quite useful sometimes... Put honestly... it is just for funright now... but it may be helpful if we could dual boot.... maybe in the future
I got this working, it isn't that slow as you could imagine, firefox takes around 30 sec to start and load the front page. That said, the keyboard works but is way off and impossible to use (I push "d" and "f" shows up and so on).
if anyone understand this the keyboard will be fixed:
In VNC’s xstartup file: $HOME/.vnc/xstartup
You have to add the line export XKL_XMODMAP_DISABLE=1 before
/etc/X11/Xsession or gnome-session (in case you use GNOME)
Screenshot actually taken with an ubuntu tool, I have set the resolution to 1200*800 in the virtual enviriment.
Here is a video with Huawei Ideos X5 running Ubuntu: http://www.youtube.com/watch?v=8SaoneDtNqA&feature=BFp&list=WL01C152CD7D31A7C8&index=1
Will try this later tonight and let you guys know if it works. Just have to work first >.<
The significance of linux running is to have a backup operating system to use on the phone if the Oracle / Google dispute over Java begins to really disrupt the market.
Think also freedombox.org, your own personal, secure and anonymous cloud system as a refuge if a dictatorship emerges or particularly nasty rise of corporatism occurs.
At heart, our U8800's can easily be linux box server with up to 32Gb of onboard storage with wi-fi AND gsm network connections. Being battery operated, if the thought police decend upon your community, you could take it to another place, unknown to the nasty guys, and re-establish mesh network connection to get reports of civil rights abuses out to the rest of the world.
Reason enough to have the capability to run Ubuntu Server edition (or any other Linux Server flavour)?
If you're interested to see what's already possible, even within Android (Linux will deliver more power), install "File Expert" from the market to get your very own web file server, right there in your phone.
-- wrong post just ignore --
XphX said:
Until recently I still had my old samsung-omnia-winmo6.5-phone. There was an app for linux available; you just had to install an imagefile to the sd-card. The fun did last for a minute and then I realized I cannot do anything with this small screen and that it was pretty much useless.
I think that a lot of people here will just read the topic and think "omg this is amazing, now I can have my desktop-os on the phone, great" and later they realize how much time they just wasted.
If it really is fun for you guys, I won't try and stop you
Click to expand...
Click to collapse
You didn't Found a better ubuntu boot-file, x5 faster, keyboard works, WIFI, pre-installed with many programs ( Open Office for work.. etc) easy to use with touch screen. here is how it works: http://www.youtube.com/watch?v=KUG9aC_tH5s
And the files/instructions: http://forum.xda-developers.com/showthread.php?t=962023

Webtop: Working Ubuntu programs plus small guide

Let me start off by saying I am not a developer. And Im not too familiar with Linux either. Just goes to show that this isnt too difficult
To get ubuntu on the Atrix please go here first:
[MOD] Full Linux (Debian) inside WebTop! v0.2.6 [2011/07/07] [14.15 GMT+2:00] - xda-developers
Follow the steps. Must have CMW installed, rooted etc.
I was unsuccessful with webtop2sd. You might have good results with it, but for me it didnt.
Once you flash this cmw file, reboot you phone and enter into webtop (if you need the HDMI hack, you will find that on XDA). You will now see 3 new icons. Leafpad, Lxterminal, and a penguin. Click on the penguin, and you it will say found image. Click ok.
If your unfamiluar with linux, this will look french to you. Once it launches (the first time after reboot will take some time, be patient). Hit enter, enter again and scroll down to Shells, then hit enter on Bash. Now this is where the fun begins.
Enter synaptic. If that doesnt work you might need to install it. apt-get install synaptic. After thats opened search for gnome-panel, right click and select "mark for installation". Hit apply and go for a coffee. This will take a long time, and make sure your on wifi. This is a huge download.
Here is a list of working applications so far :
Epiphany web browser
Epiphany IM
Evolution Mail
Iceweasle
AbiWord
GNU image manipulation
All of the games
Im working on getting usb-to-ethernet dongle working.I can see it, just cant get access to it.
Almost all of the pre-installed applications with gnome work. EXCEPT sound. This is driving me nuts. I am unable to find a sound driver (gstreamer) that works. If anyone here figures it out let me know. And if anyone out there have programs that work let me know. I can always add it to the list. Im very green to Linux, and just playing around at this point. Im no developer, and most of your questions can be answered on XDA forums.
I have the same setup, and you can add openoffice.org and geany packages to the "functional" list. I use openoffice's writer every day and have found no missing functions. Geany is working, but does not build and compile, so it's basically a color-coded text editor (still useful for note-taking my language classes). I did NOT use synaptic to get these. I simply used the bash script (in the same manner you described for your synaptic install) to apt-get install openoffice.org and geany respectively. Nice thread,
-omni
Where you able to get sound working??
g2tegg said:
Where you able to get sound working??
Click to expand...
Click to collapse
My sound through the Webtop is functional, yes. I'm not sure if you were talking about gnome-specific apps (I wouldn't know, because I'm not using gnome panel), but anything through mobile view or iceweasel (not including flash) plays stereo through the Webtop. I didn't do anything special to get it working, it always just has. I hope you figure out your problem.
-omni
With epiphany did you encounter a problem where it uses xulrunner-1.9.2 instead of xulrunner-1.9 and fails to start the gecko engine? The epiphany version that is available through synaptic after fixing apt-get dependencies and sources uses xul1.9 once and works right then uses xul1.9.2 every time after that and fails. Epiphany lists both xul versions as deps so i, unsuccessfully, tried to lock xul1.9 and install a fake xul1.9.2. Any help would be awesome.
I did manage to make Webtop2SD work after I created a 4 GB partition on my ExtSD through Webtop2sd partitioning tool.
Here's what I got working (installed through Synaptic):
XFCE4 (full suite)
OpenOffice
GIMP
EPDFViewer
Fillezilla FTP client
VLC Media Player (marginal results)
Ristretto Image viewer
ABE's Amazing Adventure (game with full working sound)
I was hoping to have some sort of ScummVM, MAME and SNES emulator to run, but unfortunately they don't even after a successfull install.
Cheers!
Rayan
Sent from my Atrix using Tapatalk
@ g2tegg
I know it's a bit late for commenting lol. And probably my post may be off-topic. But was your issue the <no sound coming from HDTV via HDMI> one?
I also had this issue in webtop going on for like 3 months (like flashing and reflashing webtop to no end), until I stumbled upon this Motorola forum:
h**p://supportforums.motorola.com/message/330591#330591
(had to mod link because I didn't reach the minimum amounts of posts to allow links -_-)
Basically, if you switch display resolution to anything other than 1280x720, sound will not redirect to HDTV. And as for me, after switching to 1280x720, I had to reboot my Atrix in order to finally have sound . No need to find for drivers.
My sound would work within the Webtop apps from Motorola. But if I wanted to use a Linux MP3 player, watch a video etc there would be no sound. Kept getting a gstreamer error.
Hi g2tegg,
I have Atrix with iBlur ROM. I installed the WebTopMOD zip file using CWM and have the folder with linux image in sdcard-ext. But when I reboot the phone and plg it in Atrix Lapdock I don't see the icons like: penguin etc.
Could you please help.
Got it working !!
katlimaal said:
Hi g2tegg,
I have Atrix with iBlur ROM. I installed the WebTopMOD zip file using CWM and have the folder with linux image in sdcard-ext. But when I reboot the phone and plg it in Atrix Lapdock I don't see the icons like: penguin etc.
Could you please help.
Click to expand...
Click to collapse
Try to reflash the webtop and then the mod again. There is a thread in the developers area I believe called webtop mod v1 or something like that. When I get the chance I will try to dig it up. Driving in a snowstorm at the moment slightly hinders my searchability haha. Good ol Ontario I tell ya
quick question: are these persistent? can I make a desktop icon for these or do I have to apt-get them everytime?
seems counter intuitive to not be able to "hard" install the applications
V DidDy 210 said:
quick question: are these persistent? can I make a desktop icon for these or do I have to apt-get them everytime?
seems counter intuitive to not be able to "hard" install the applications
Click to expand...
Click to collapse
You dont have to apt-get everytime. The installed applications are on either the phones hard drive or the SD card. Only thing you will have to do is start the gnome panel every session, which is easy enough.
g2tegg said:
You dont have to apt-get everytime. The installed applications are on either the phones hard drive or the SD card. Only thing you will have to do is start the gnome panel every session, which is easy enough.
Click to expand...
Click to collapse
Yeah after tinkering with them for enough time I figured that out!
only question is how do I figure out where they are located on my phone? I can't find a DEBIAN folder anywhere on my device (sd or sd-ext) my webtopmod folder is on my internal storage btw
thanks for the response!
If you use webtopmod's debian chroot (the white shell) they'll be in the linuxdisk file, as it's actualy a filesystem in itself. You won't be able to 'directly' access them. I recommend switching to webtop2SD. I didnt' want to, but everything is native that way and most things run better anyways, I installed xfce4 and got rid of that stupid awn dock at the bottom and put in a little bar. Now it feels like linux!
My apps so far:
OpenOffice 3
XChat
rdesktop (doesn't work, keymap doesn't work)
gimp (not used yet)
Any other useful ones people know of? I don't need an email client... the phone's gmail app is sufficient enough, and if I need more support I'll just use gmail. Kind of wish I could get an updated firefox, or a tun/tap module so i could use hamachi.
Mgamerz said:
If you use webtopmod's debian chroot (the white shell) they'll be in the linuxdisk file, as it's actualy a filesystem in itself. You won't be able to 'directly' access them. I recommend switching to webtop2SD. I didnt' want to, but everything is native that way and most things run better anyways, I installed xfce4 and got rid of that stupid awn dock at the bottom and put in a little bar. Now it feels like linux!
My apps so far:
OpenOffice 3
XChat
rdesktop (doesn't work, keymap doesn't work)
gimp (not used yet)
Any other useful ones people know of? I don't need an email client... the phone's gmail app is sufficient enough, and if I need more support I'll just use gmail. Kind of wish I could get an updated firefox, or a tun/tap module so i could use hamachi.
Click to expand...
Click to collapse
I installed chromium, and it's running smoother than firefox ever did. Haven't really had a reason to install anything else, but i think i'm gonna get fxce4 because the current dock at the bottom annoys me
Sent from my MB860 using xda premium
^yeah after using it exclusively for the past day or so it's quite capable but I can also see the limitations of debian through chroot. I'd ideally like to get rid of the webtop all together and just have kde or gnome (i'm not picky, xcfe4 would work for me too)
but I'm assuming if I do webtop2sd I can have ubuntu with gnome installed no problem?
I went through the process of putting all of my gnuSTEP icons on the webtop and it's very much like my current gnuSTEP machine (supremely capable btw when using a debian core) I haven't run into any real problems using the chroot method, save for not being able to put shortcuts on the AWN bar and the occasional, but when I get my lapdock in the mail and start exclusively using this when I'm out and about I'll look into doing webtop2sd. I need to get a bigger sd card too, I have a 16 but I'd rather have a 32 external only for webtop and the 10 or so internal for android I don't listen to music on my android (I own a zune) so 10 should be plenty to just have apps and android
---------- Post added at 02:23 AM ---------- Previous post was at 02:20 AM ----------
Alcapone263 said:
I installed chromium, and it's running smoother than firefox ever did. Haven't really had a reason to install anything else, but i think i'm gonna get fxce4 because the current dock at the bottom annoys me
Sent from my MB860 using xda premium
Click to expand...
Click to collapse
Did you use the jaunty hack to get chromium working?
I successfully installed chromium but every page loads for a second and then crashes. I didn't really look into the chromium hack (I don't think I use jaunty for anything and synaptic/apt-get can get all the repositories I need) but it seemed intensive especially to get flash.
I've found that while firefox has FANTASTIC flash support (like, really good and speedy, no chops) I just end up using konqueror for regular internet tasks. I can't seem to get it to install flash (I don't know how to install .deb packages) but it's speedy for other things and makes an excellent file manager
If you could get chromium without 2.3.5 i'd get it... but 2.3.5 offers what appear to be no benefits at all, correct?
Just kinda scared to have to rebuild from a bricked phone.
Trolling from my ATRIX 4G's XDA premium app, still on the gold medal winner of worst customer satisfaction for the second year in a row! Congrats!
I upgraded to 2.3.5 it has the new firefox, it runs fine from what I've seen
I'm trying to install synaptic by "apt-get install synaptic", but it shows several "Failed to fetch http://ftp.debian.org/debian/......" messages.
How can I fix this?

Anyone else's Nook Simple Touch Kindle app just stop syncing?

I'm running a rooted Nook Simple Touch and the most recent compatible Kindle app (3.2.0.35), as I have been for about three years. Since last week, for no discernible reason, syncing my Kindle library no longer works, i.e. I get the 'Sync failed, please try again later' message, and it therefore no longer receives samples or new purchased ebooks. Also, when searching the Kindle store, the layout of the pages has changed to something that looks distinctly broken, as if CSS has been disabled.
Has anyone else encountered this? Perhaps Amazon have updated their API and broken compatibility with v3.2.0.35 in the process? Or am I the only one who's having this problem – in which case what should I do? I've already tried reinstalling the app, deregistering the device and re-registering, etc...
djpeanut said:
I'm running a rooted Nook Simple Touch and the most recent compatible Kindle app (3.2.0.35), as I have been for about three years. Since last week, for no discernible reason, syncing my Kindle library no longer works, i.e. I get the 'Sync failed, please try again later' message, and it therefore no longer receives samples or new purchased ebooks. Also, when searching the Kindle store, the layout of the pages has changed to something that looks distinctly broken, as if CSS has been disabled.
Has anyone else encountered this? Perhaps Amazon have updated their API and broken compatibility with v3.2.0.35 in the process? Or am I the only one who's having this problem – in which case what should I do? I've already tried reinstalling the app, deregistering the device and re-registering, etc...
Click to expand...
Click to collapse
I've never used the Kindle app for more than locally stored books but I tried looking at the Store today and got the same results you describe. This is the danger of old apps--they get left in the dust by changes made on the "other" side. I've seen that with the last working version of the CNN app as well as Zinio and others. They may continue to work locally but communication with a remote server might be broken. That will probably be the eventual fate of the NST with B&N.
Working fine for me this morning - not used it for months, and I'm able to sync a newly purchased book, and progress in another. The store view is broken, but I don't think that is a new problem.
tshoulihane said:
Working fine for me this morning - not used it for months, and I'm able to sync a newly purchased book, and progress in another. The store view is broken, but I don't think that is a new problem.
Click to expand...
Click to collapse
Can you confirm if this is still working for you? There have been a number of people reporting no sync function now. I don't have Amazon content to test, but if I do a clean reinstall of the app my "recommended" section is blank. Restoring a backup image brings back the cover images in that section from when I first installed the app long ago.
Not looking too good - I can see purchased books, but when I attempt to download anything, the progress bar doesn't move, and after a few seconds, 'pause' changes to 'resume'.
All I can see in logcat is
Code:
D/OpenSSLSessionImpl( 4183): Freeing OpenSSL session
D/OpenSSLSessionImpl( 4183): Freeing OpenSSL session
D/OpenSSLSessionImpl( 4183): Freeing OpenSSL session
D/OpenSSLSessionImpl( 4183): Freeing OpenSSL session
D/OpenSSLSessionImpl( 4183): Freeing OpenSSL session
D/OpenSSLSessionImpl( 4183): Freeing OpenSSL session
D/OpenSSLSessionImpl( 4183): Freeing OpenSSL session
D/OpenSSLSessionImpl( 4183): Freeing OpenSSL session
Doesn't look too hopeful, but if you have any suggestions, I can experiment.
tshoulihane said:
Not looking too good - I can see purchased books, but when I attempt to download anything, the progress bar doesn't move, and after a few seconds, 'pause' changes to 'resume'.
All I can see in logcat is
Code:
D/OpenSSLSessionImpl( 4183): Freeing OpenSSL session
D/OpenSSLSessionImpl( 4183): Freeing OpenSSL session
D/OpenSSLSessionImpl( 4183): Freeing OpenSSL session
D/OpenSSLSessionImpl( 4183): Freeing OpenSSL session
D/OpenSSLSessionImpl( 4183): Freeing OpenSSL session
D/OpenSSLSessionImpl( 4183): Freeing OpenSSL session
D/OpenSSLSessionImpl( 4183): Freeing OpenSSL session
D/OpenSSLSessionImpl( 4183): Freeing OpenSSL session
Doesn't look too hopeful, but if you have any suggestions, I can experiment.
Click to expand...
Click to collapse
If you visit Amazon's secure website in Browser, it complains about not trusting the certificate authority. I wonder if that's the reason the app isn't working. Anyway to add certificate authorities to the NST?
mr.rcollins said:
If you visit Amazon's secure website in Browser, it complains about not trusting the certificate authority. I wonder if that's the reason the app isn't working. Anyway to add certificate authorities to the NST?
Click to expand...
Click to collapse
That would make some sense. More likely than the SSL library being so old that modern protocols don't work, which was my line of thought.
I'd be fairly confident it is practical to update the certificate list - just need to find someone who knows how.... If you go looking, start with finding how to _revoke_ a certificate - that's more likely to have better search hits, I guess.
tshoulihane said:
That would make some sense. More likely than the SSL library being so old that modern protocols don't work, which was my line of thought.
I'd be fairly confident it is practical to update the certificate list - just need to find someone who knows how.... If you go looking, start with finding how to _revoke_ a certificate - that's more likely to have better search hits, I guess.
Click to expand...
Click to collapse
Looks like it's not that simple.
(As a new user I can't post a direct link to the stack overflow post)
From Stackoverflow: How to install trusted CA certificate on Android device?
"in all releases though 2.3, an OTA is required to update the cacerts.bks on a non-rooted phone."
Click to expand...
Click to collapse
I don't know what that means for rooted NST.
So there are a number of interesting-looking sites regarding adding to/updating the certificates file (cacerts.bks). It's troubling and ironic, though, that the official Cacerts website gives a security error in Firefox and won't load :silly:
Anyway, here's a Wiki which doesn't make it look too bad. I wonder if this could be done whether it would also fix the Amazon App Store issues.
Edit: Look at "way 3" on the page linked. Seems really easy--almost too easy!
Success. its not too complicated, just needs the right steps listing out.
I originally used jdk1.7.0_79, and bcprov-jdk15on154.jar since that was the java version I have working with android studio now, but ended up with a bootloop (but ADB working, so I was able to restore the old cacerts.bcs.
I managed to list the current certificates, one did expire Dec'15, although that doesn't seem to be in the path for amazon. When I started, an SSL checker app reported most sites failing. With the one update below, its about 50%
Download http://www.bouncycastle.org/download/bcprov-jdk15on-146.jar - this is used locally on your PC to manipulate the certificates and needs to be version 146 or 147 to work with android (or old android at least)
Navigate to https://www.amazon.co.uk, (must be https) click the padlock in the browser (chrome) and 'connection'. In certificate path, find verisign at the top. 'view certificate' and details, then 'copy to file'. I used 'Base-64 encoded X.509' format, and saved as verisign.cer
get the old key store, and keep a copy
Code:
adb pull /system/etc/security/cacerts.bks cacerts.bks
copy cacerts.bks cacerts.bks.old
In your java install, find keytool.exe. You need to provide the password changeit, and the path to the bcprov.jar which you downloaded earlier. Ass the certificate (and say yes when prompted to trust it)
Code:
'C:\Program Files\Java\jdk1.7.0_79\bin\keytool.exe' -storetype BKS -keystore d:\Documents\nook\cacerts.bks -provide
r org.bouncycastle.jce.provider.BouncyCastleProvider -providerpath "C:\Program Files\Java\jdk1.7.0_79\lib\ext\bcprov-jdk15on-146.jar" -storepass c
hangeit -importcert -alias verisign -file D:\Documents\nook\verisign.cer
Now re-mount /system as read-write (using ES root explorer, or remount) and
Code:
adb.exe push .\cacerts.bks /system/etc/security/cacerts.bks
Finally, remount read-only and reboot.
If you're feeling brave, my updated file is here https://drive.google.com/open?id=0BxZHbImYcMGJcjFMZmJ1Szg0VHc (I don't think you should trust your nook much anyway, so its not too bad even if i did something wrong!)
Here for one with a few more certificates found using ssl checker (droidski), working on my Pixel-C, and also trusted by chrome on windows. https://drive.google.com/open?id=0BxZHbImYcMGJRDRXS2NZVmZTSVE
Mirror copies:
https://www.androidfilehost.com/?w=files&flid=50094 - Basic version (amazon working)
https://www.androidfilehost.com/?w=files&flid=50095 - More complete
tshoulihane said:
Success. its not too complicated, just needs the right steps listing out.
I originally used jdk1.7.0_79, and bcprov-jdk15on154.jar since that was the java version I have working with android studio now, but ended up with a bootloop (but ADB working, so I was able to restore the old cacerts.bcs.
I managed to list the current certificates, one did expire Dec'15, although that doesn't seem to be in the path for amazon. When I started, an SSL checker app reported most sites failing. With the one update below, its about 50%
Click to expand...
Click to collapse
Mmm.....that's looking just this side of fearsome to me. My keystore report showed 7 certs. out of 54 expired with a few more going in 2017 and many in 2019 and then much later.
So my first question is, did this resolve the Kindle issue or are we barking up the wrong tree!
Second, I assume you are in the UK, hence the amazon.co.uk?
nmyshkin said:
Mmm.....that's looking just this side of fearsome to me. My keystore report showed 7 certs. out of 54 expired with a few more going in 2017 and many in 2019 and then much later.
So my first question is, did this resolve the Kindle issue or are we barking up the wrong tree!
Second, I assume you are in the UK, hence the amazon.co.uk?
Click to expand...
Click to collapse
Yes, kindle app working fine now - even the kindle store pages load OK, and they have been broken for ages for me. Just synced about 6 books.
I used amazon.co.uk since its local for me, but they probably use the same root (verisign) so copying my file ought to work for you (but no guarantees, I was assuming my nook was junk if I couldn't fix this)
tshoulihane said:
Yes, kindle app working fine now - even the kindle store pages load OK, and they have been broken for ages for me. Just synced about 6 books.
I used amazon.co.uk since its local for me, but they probably use the same root (verisign) so copying my file ought to work for you (but no guarantees, I was assuming my nook was junk if I couldn't fix this)
Click to expand...
Click to collapse
Wow, this is great! Thank you for pursuing it. It makes me wonder now about other odd behaviors like older versions of Google Books that can't sync, and the Market app itself that can't seem to do a search properly. Some people have recently begun to complain that even SearchMarket is returning just a couple of apps on a search. Maybe it's why the old CNN app stopped loading up content. And, of course, the old Amazon App Store.
I need to read about all this carefully and "gird my loins", so to speak, to make an attempt!
The only really messy bit is the long keytool command. It has a few other options, so you can '-list' your key store to check the update worked before pushing it back onto the phone. Of course, you don't need to use adb, but it might save you in case there is a problem.
Once I updated the certs, I did see more syncing activity on logcat - suggesting more things were working, but as far as I can tell, the market is still just as brokn, needing searchmarket.
tshoulihane said:
If you're feeling brave, my updated file is here **REMOVED** (I don't think you should trust your nook much anyway, so its not too bad even if i did something wrong!)
Here for one with a few more certificates found using ssl checker (droidski), working on my Pixel-C, and also trusted by chrome on windows. **REMOVED**
Click to expand...
Click to collapse
Both Google Drive links aren't open to the public...
mr.rcollins said:
Both Google Drive links aren't open to the public...
Click to expand...
Click to collapse
Try again - works for me in incognito now.
Feeling a bit too brave here, so I tried this method found on Stack Exchange:
What I did to be able to use startssl certificates was quite easy. (on my rooted phone)
I copied /system/etc/security/cacerts.bks to my sdcard
Downloaded http://www.startssl.com/certs/ca.crt and http://www.startssl.com/certs/sub.class1.server.ca.crt
Went to portecle.sourceforge.net and ran portecle directly from the webpage.
Opened my cacerts.bks file from my sdcard (entered nothing when asked for a password)
Choose import in portacle and opened sub.class1.server.ca.crt, in my case it already had the ca.crt but maybe you need to install that too.
Saved the keystore and copied it baxck to /system/etc/security/cacerts.bks (I made a backup of that file first just in case)
Rebooted my phone and now I can visit my site that's using a startssl certificate without errors.
Click to expand...
Click to collapse
In my case I just tried the certificate from amazon.com and everything seemed to work as described--until I rebooted, or tried to. Bootloop. Thank goodness for Nook Manager and backups!
Real progress!
Many thanks @tshoulihane! I've successfully copied over your more extensive update of cacerts.bks
The Kindle app seems to function like it should, including the store. The Amazon App store "functions" in that, while I could not seem to log in with my Amazon credentials I could see and browse apps. I didn't try downloading any, though, as I've never cared for the behavior of the App Store on the NST, but it looks like the app might be salvageable, perhaps requiring additional certs.
The old CNN news app still will not load up content, although you can enter your location and get a weather forecast
The old version of Google Books (1.0.1.6) works great! I was able to look at my online content, both from Google and also an e-book (not from Google) I had uploaded. My memory tells me that this was a BIG issue with a lot of people who wanted to use the Books app in the past. (see edit below)
I think this is headed in the right direction for apps that seem to fail because they can't negotiate a secure server connection (those which need to sync data). What a neat discovery!
Edit: in fact Google Books 1.0.1.6 works fine locally as a reader but cannot upsync your reading position. BUT, a working version of Google Books has been discovered. Read here.
nmyshkin said:
The old CNN news app still will not load up content, although you can enter your location and get a weather forecast
Click to expand...
Click to collapse
If you can find a URL I can extract a suitable cert from, I can update again easily enough.
tshoulihane said:
If you can find a URL I can extract a suitable cert from, I can update again easily enough.
Click to expand...
Click to collapse
Thanks for the offer. I've been snooping through the logcat for both the Amazon App Store and the CNN
News app. I can say definitively that the App Store is broken. This line appears in the logcat during the whole log-in cycle that does not work:
Code:
E/AmazonAppstore.AbstractJsonWebResponse( 5845): failed to construct JSON response: {"message":"The registerDevice API has been retired. Please upgrade your appstore client."}
As for the CNN News app, there are many, many JSON errors related to fetching headlines and images that are "not found". Those would likely be the little pictures that act as access "buttons" for each story. While there's nothing as explicit as the message for the App Store, it seems pretty clear to me that whatever the app is looking for is no longer where it expects to find it.
Still, I think the certificate update has been very helpful in rescuing Google Books and Kindle--maybe others in the near future, who knows? And I learned something

Categories

Resources