asadkamran / connectbot

Automatically exported from code.google.com/p/connectbot
Apache License 2.0
0 stars 0 forks source link

ConnectBot prompts me with initial "Agree" and "Hint" screens each time it is restarted #524

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Start ConnectBot
2. Find that I am greeted with the "agree" and "hint" screens
3.

What is the expected output? What do you see instead?

I'd hope to only be asked those once in the life of connectbot being installed 
on my phone

What version of the product are you using (you can see this by using Menu
-> About in the Host List)?
1.7.1 (v1.7.1.2010.10.08)

What type of system are you trying to connect to?
Connections to hosts work great once I suffer through the initial screens.

If you are able to connect, what is the output of "echo $TERM", "uname -a",
and any other relevant information on the host?

I suspect this, from adb logcat is root cause
E/ApplicationContext(22745): Couldn't rename file 
/dbdata/databases/org.connectbot/shared_prefs/org.connectbot_preferences.xml to 
backup file 
/dbdata/databases/org.connectbot/shared_prefs/org.connectbot_preferences.xml.bak

What's interesting here is that /dbdata does not contain a subdirectory 
databases.. hmmmmm

Device is Samsung Infuse 4G running stock Froyo

Please provide any additional information below.

Original issue reported on code.google.com by washer...@gmail.com on 1 Nov 2011 at 1:35

GoogleCodeExporter commented 8 years ago
It seems, without rooting, I cannot create directory in /dbdata, so, is there a 
config option for where ConnectBot stores this data?

Original comment by washer...@gmail.com on 1 Nov 2011 at 1:36

GoogleCodeExporter commented 8 years ago
Ok, I rooted the phone and found the directory /dbdata/databases/org.connectbot 
does
indeed exists. So, I removed connectbot. Re-installed. Now seems to be working 
as expected. Sorry to have bothered everyone.
-
PLEASE CLOSE issue 524

Original comment by washer...@gmail.com on 1 Nov 2011 at 5:22

GoogleCodeExporter commented 8 years ago
ARRRRRGHHH.. I take it back, once connectbot had actually exited, it does 
indeed ask me to confirm everything on the next startup
Here's the output from "adb logcat 2>&1 | grep -i connectbot"

I/ActivityManager( 2623): Starting activity: Intent { 
act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] 
flg=0x10200000 cmp=org.connectbot/.HostListActivity bnds=[245,534][355,672] }
I/ActivityManager( 2623): Start proc org.connectbot for activity 
org.connectbot/.HostListActivity: pid=6191 uid=10093 gids={3003, 1015}
D/com.nullwire.trace.ExceptionsHandler( 6191): APP_PACKAGE: org.connectbot
D/com.nullwire.trace.ExceptionsHandler( 6191): FILES_PATH: 
/data/data/org.connectbot/files
D/com.nullwire.trace.ExceptionsHandler( 6191): URL: 
http://connectbot.the-b.org/trace/
W/ApplicationContext( 6191): Attempt to read preferences file 
/dbdata/databases/org.connectbot/shared_prefs/org.connectbot_preferences.xml 
without permission
I/ActivityManager( 2623): Starting activity: Intent { 
cmp=org.connectbot/.WizardActivity }
E/ApplicationContext( 6191): Couldn't rename file 
/dbdata/databases/org.connectbot/shared_prefs/org.connectbot_preferences.xml to 
backup file 
/dbdata/databases/org.connectbot/shared_prefs/org.connectbot_preferences.xml.bak
I/ConnectBot.TerminalManager( 6191): Starting background service
D/com.nullwire.trace.ExceptionsHandler( 6191): APP_PACKAGE: org.connectbot
D/com.nullwire.trace.ExceptionsHandler( 6191): FILES_PATH: 
/data/data/org.connectbot/files
D/com.nullwire.trace.ExceptionsHandler( 6191): URL: 
http://connectbot.the-b.org/trace/
D/ConnectBot.TerminalManager( 6191): Removed key 'Jim' to in-memory cache
D/ConnectBot.TerminalManager( 6191): Added key 'Jim' to in-memory cache
I/ConnectBot.TerminalManager( 6191): Someone bound to TerminalManager
D/ConnectBot.ConnectivityManager( 6191): onReceived() called; noConnectivity? 
false; isFailover? false
I/ActivityManager( 2623): Displayed activity org.connectbot/.WizardActivity: 
580 ms (total 980 ms)
I/ConnectBot.TerminalManager( 6191): Someone unbound from TerminalManager

V/WindowManager( 2623): Dsptch > Window{4a592460 
org.connectbot/org.connectbot.WizardActivity paused=false}
V/WindowManager( 2623): Dsptch > Window{4a592460 
org.connectbot/org.connectbot.WizardActivity paused=false}

V/WindowManager( 2623): Dsptch > Window{4a592460 
org.connectbot/org.connectbot.WizardActivity paused=false}
V/WindowManager( 2623): Dsptch > Window{4a592460 
org.connectbot/org.connectbot.WizardActivity paused=false}

V/WindowManager( 2623): Dsptch > Window{4a592460 
org.connectbot/org.connectbot.WizardActivity paused=false}
V/WindowManager( 2623): Dsptch > Window{4a592460 
org.connectbot/org.connectbot.WizardActivity paused=false}

V/WindowManager( 2623): Dsptch > Window{4a592460 
org.connectbot/org.connectbot.WizardActivity paused=false}
V/WindowManager( 2623): Dsptch > Window{4a592460 
org.connectbot/org.connectbot.WizardActivity paused=false}
E/ApplicationContext( 6191): Couldn't rename file 
/dbdata/databases/org.connectbot/shared_prefs/org.connectbot_preferences.xml to 
backup file 
/dbdata/databases/org.connectbot/shared_prefs/org.connectbot_preferences.xml.bak
I/ConnectBot.TerminalManager( 6191): Someone rebound to TerminalManager
I/ActivityManager( 2623): Displayed activity org.connectbot/.HostListActivity: 
10254 ms (total 10254 ms)

I/ConnectBot.TerminalManager( 6191): Someone unbound from TerminalManager

Original comment by washer...@gmail.com on 1 Nov 2011 at 6:04

GoogleCodeExporter commented 8 years ago
Ok, I found something interesting. connectbot is user_93 but the files and dir 
are set
to user_92... very odd. first test, just changed perms to 0777 and it seems 
everything is working. I'll play around with chown and see how that goes

Original comment by washer...@gmail.com on 1 Nov 2011 at 6:17

GoogleCodeExporter commented 8 years ago
Never got to the bottom of why user id mismatch occurred and why 
uninstall/reinstall
didn't address it.. but I'm guessing it is not a connectbot problem, so I'll 
try to close this issue.

Original comment by washer...@gmail.com on 21 Nov 2011 at 2:32

GoogleCodeExporter commented 8 years ago

Original comment by torne@wolfpuppy.org.uk on 29 Sep 2012 at 10:21