Go Back   Android Forums > Android Phones > Samsung Captivate > Captivate - Tips and Tricks

test: Reply
 
LinkBack Thread Tools
Old July 19th, 2010, 01:31 PM   #51 (permalink)
Member
Thread Author (OP)
 
Join Date: Mar 2010
Location: Missouri
Posts: 490
 
Device(s): Samsung Captivate
Carrier: Not Provided

Thanks: 24
Thanked 121 Times in 47 Posts
Default

It almost seems like you have your phone set up for USB Mass Storage, which locks the SD cards for use only by the computer. You need to make sure you haven't mounted the SD cards to your computer and that USB Debugging is turned on.

Advertisements
maerlim is offline  
Reply With Quote
The Following User Says Thank You to maerlim For This Useful Post:
rnj79 (July 29th, 2010)
sponsored links
Old July 19th, 2010, 01:40 PM   #52 (permalink)
Junior Member
 
Join Date: Jul 2010
Location: Texas
Posts: 40
 
Device(s): Samsung Captivate
Carrier: Not Provided

Thanks: 1
Thanked 4 Times in 3 Posts
Default

This is probably a stupid question, but when I type in adb shell and hit enter, it says device offline, how do I make it "online"?
Pinetree09 is offline  
Reply With Quote
Old July 19th, 2010, 01:45 PM   #53 (permalink)
Member
Thread Author (OP)
 
Join Date: Mar 2010
Location: Missouri
Posts: 490
 
Device(s): Samsung Captivate
Carrier: Not Provided

Thanks: 24
Thanked 121 Times in 47 Posts
Default

Quote:
Originally Posted by Pinetree09 View Post
This is probably a stupid question, but when I type in adb shell and hit enter, it says device offline, how do I make it "online"?
Make sure you have the USB drivers installed for your PC, and turn on USB Debugging on the phone.
maerlim is offline  
Reply With Quote
Old July 19th, 2010, 01:45 PM   #54 (permalink)
Junior Member
 
Join Date: Jul 2010
Location: Texas
Posts: 40
 
Device(s): Samsung Captivate
Carrier: Not Provided

Thanks: 1
Thanked 4 Times in 3 Posts
Default

Quote:
Originally Posted by maerlim View Post
Make sure you have the USB drivers installed for your PC, and turn on USB Debugging on the phone.
I've done both of those, but I still get "device offline"
Pinetree09 is offline  
Last edited by Pinetree09; July 19th, 2010 at 01:48 PM. Reason: .
Reply With Quote
Old July 19th, 2010, 02:01 PM   #55 (permalink)
Member
 
Join Date: Jul 2010
Posts: 114
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 22 Times in 8 Posts
Default

I think hes doing it on a Mac. Does that change anything? You don't have PC or Bootcamp?
YellowGT0 is offline  
Reply With Quote
Old July 19th, 2010, 02:35 PM   #56 (permalink)
Junior Member
 
Join Date: Jul 2010
Location: Texas
Posts: 40
 
Device(s): Samsung Captivate
Carrier: Not Provided

Thanks: 1
Thanked 4 Times in 3 Posts
Default

Quote:
Originally Posted by YellowGT0 View Post
I think hes doing it on a Mac. Does that change anything? You don't have PC or Bootcamp?
Are you implying I own a Mac? That offends me

Anyways, nah, I'm using a PC, win7, etc.
Pinetree09 is offline  
Reply With Quote
Old July 19th, 2010, 02:35 PM   #57 (permalink)
Junior Member
 
Join Date: Jul 2010
Posts: 60
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 2 Times in 2 Posts
Default Samsung Support has a topic for this issue

Here is how Samsung support site tells to do this:

1. Download and install the latest Android SDK from the Android Developer or click here. (For easy of access, it is recommend to extract to local host root (C)
2. Download and install the Java Developer Kit (JDK) from Sun or click here.
3. Download and install the latest Android Developer Bridge (ADB) driver located click here.
4. Enable USB Debugging under Settings>Applications>Development
5. The installation file should have an extension of .APK, if properly compiled. Place the application in the tools directory, i.e. (C:\android\tools)
6. Using the command prompt, go to the tools the folder (i.e cd\android\tools)
7. Type in ADB Install .APK
8. The ADB tool should now report the application to be installed. To verify, tap on Applications on the device and locate the name of the application.

URL: How Do I Side Load Applications On My SGH-i897 (Captivate) Phone Using The Android Debugging Bridge (ADB)?
lilo is offline  
Reply With Quote
Old July 19th, 2010, 02:53 PM   #58 (permalink)
Member
 
Join Date: Jul 2010
Posts: 114
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 22 Times in 8 Posts
Default

Quote:
Originally Posted by Pinetree09 View Post
Are you implying I own a Mac? That offends me

Anyways, nah, I'm using a PC, win7, etc.
Hahaha sorry, I thought you were the same guy I was talking to before. I would be Offended also.
YellowGT0 is offline  
Reply With Quote
Old July 19th, 2010, 04:28 PM   #59 (permalink)
Member
 
Join Date: Jun 2010
Location: Indiana
Posts: 134
 
Device(s): Skyrocket
Carrier: Not Provided

Thanks: 4
Thanked 7 Times in 5 Posts
Default

Nevermind, getting it.
__________________
Samsung Galaxy S2 Skyrocket
Darkeligos is offline  
Last edited by Darkeligos; July 19th, 2010 at 06:08 PM.
Reply With Quote
Old July 19th, 2010, 09:18 PM   #60 (permalink)
Member
 
Join Date: Mar 2009
Location: Michigan
Posts: 378
 
Device(s): Atrix, Inspire, Incredible, Evo, Evo Shift, Fascinate, Nexus S, BB Torch, BB Style, Galaxy Tab & iPh
Carrier: Not Provided

Thanks: 5
Thanked 14 Times in 12 Posts
Default

Quote:
Originally Posted by agent007ppk View Post
Macbook-2:tools Alee$ ./adb shell
$ su
# cp /dbdata/databases/com.android.providers.settings/settings.db /sdcard/settings.db
cp: can't create '/sdcard/settings.db': Read-only file system

I get this error. Anyone have any thoughts? My phone is rooted, and has Busybox installed.
Make sure SD card is mounted to phone, not computer. In notification bar make sure you dismount SD card from comp before trying this.
dsjr2006 is offline  
Reply With Quote
sponsored links
Old July 19th, 2010, 09:28 PM   #61 (permalink)
Junior Member
 
Join Date: Jul 2010
Posts: 26
 
Device(s):
Carrier: Not Provided

Thanks: 1
Thanked 3 Times in 2 Posts
Default

Quote:
Originally Posted by mjgunn View Post
Stuck at "cp: not found". Downloaded busy box from the marketplace, opened it. It said "Status: Waiting...", so I hit install. Now it says "Status: Done!" Below that it says "Your phone is rooted. Busybox was found here: /system/xbin". Seems like it's installed? But still getting "cp: not found"
Anyone?

Edit: Got it working
mjgunn is offline  
Last edited by mjgunn; July 19th, 2010 at 11:55 PM.
Reply With Quote
Old July 19th, 2010, 09:45 PM   #62 (permalink)
Junior Member
 
Join Date: Jul 2010
Location: Texas
Posts: 40
 
Device(s): Samsung Captivate
Carrier: Not Provided

Thanks: 1
Thanked 4 Times in 3 Posts
Default

hmm, now I get "error: more than one device and emulator" when i type in adb shell and hit enter

edit: did adb devices and it shows the phone twice, both offline :/
Pinetree09 is offline  
Reply With Quote
Old July 19th, 2010, 10:48 PM   #63 (permalink)
Member
 
Join Date: Jul 2010
Posts: 114
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 22 Times in 8 Posts
Default

Are you going down to the windows tray and right click and disconnecting your Galaxy S before you unplug it?
YellowGT0 is offline  
Reply With Quote
Old July 19th, 2010, 10:58 PM   #64 (permalink)
Junior Member
 
Join Date: Jul 2010
Location: Texas
Posts: 40
 
Device(s): Samsung Captivate
Carrier: Not Provided

Thanks: 1
Thanked 4 Times in 3 Posts
Default

Nah, but now it's just saying device offline...again
Pinetree09 is offline  
Last edited by Pinetree09; July 19th, 2010 at 11:01 PM.
Reply With Quote
Old July 19th, 2010, 11:17 PM   #65 (permalink)
Junior Member
 
Join Date: May 2010
Posts: 25
 
Device(s): Captivate
Carrier: Not Provided

Thanks: 0
Thanked 1 Time in 1 Post
Default

Noob and Mac user.....do I just follow the directions entering everything into Terminal? Nothing seems to happen when I do that, is there some special script I need or some step I'm missing?
Thanks for the help.
Drazzamatazz is offline  
Reply With Quote
Old July 19th, 2010, 11:29 PM   #66 (permalink)
Junior Member
 
Join Date: May 2010
Posts: 25
 
Device(s): Captivate
Carrier: Not Provided

Thanks: 0
Thanked 1 Time in 1 Post
Default

Logging on to a PC, upon entering "cd to SDK install directory" I get "The system cannot find the path specificed."
I know I have SDK as its open....but did I somehow install it wrong?
Drazzamatazz is offline  
Reply With Quote
Old July 20th, 2010, 12:48 AM   #67 (permalink)
Member
 
Join Date: Jun 2010
Location: Indiana
Posts: 134
 
Device(s): Skyrocket
Carrier: Not Provided

Thanks: 4
Thanked 7 Times in 5 Posts
Default

For anyone having trouble with devices being offline or not working, try running this first and then retry your command.

Code:
adb kill-server

Quote:
Originally Posted by Drazzamatazz View Post
Logging on to a PC, upon entering "cd to SDK install directory" I get "The system cannot find the path specificed."
I know I have SDK as its open....but did I somehow install it wrong?
You have to learn how to use the cd command if you are typing that out word for word. Supposed my tools folder is in C:\users\Darkeligos\SDK\tools -- I could either do one of the two:

Code:
cd C:\users\Darkeligos\SDK\tools

or

cd \
cd users
cd Darkeligos
cd SDK
cd tools
Darkeligos is offline  
Reply With Quote
Old July 20th, 2010, 12:51 AM   #68 (permalink)
New Member
 
Join Date: Jul 2010
Posts: 1
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Duck Tales LOL View Post
And after I rebooted again, my phone is freezing on the Galaxy S bootup screen, and then shutting off. When I try to hold down the volume button down, and the power button to do a hard restore, it doesn't work..


Sucks to be me.
My phone is doing this too. I can get to the recovery console, but no matter the case it seems to stop loading at the point where the Galaxy S logo is displayed.

When I try the adb shell it now tells me I have no devices attached.

Any ideas on how to get it going again?
Bedub is offline  
Reply With Quote
Old July 20th, 2010, 09:23 AM   #69 (permalink)
Junior Member
 
Join Date: Jul 2010
Location: Alabama
Posts: 87
 
Device(s): HTC Thunderbolt
Carrier: Not Provided

Thanks: 11
Thanked 14 Times in 12 Posts
Default

I couldnt figure out how to get the stupid thing into USB debugging mode.

Here's a guide I found.. Step by Step.. Even us fast moving aquatic fowl can follow it...

Turn On USB Debugging Mode In Nexus One or Other Android Phone
sonicanatidae is offline  
Reply With Quote
Old July 20th, 2010, 12:47 PM   #70 (permalink)
New Member
 
Join Date: Jul 2010
Posts: 4
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

I've got to be missing something. I can't find:

"Scroll down to ID 6, "install_non_market_apps". Double-click."

I don't see anything called ID 6 under Tables/secure. I only see _id, name, and value. Am I in the wrong section?
kbarsi is offline  
Reply With Quote
sponsored links
Old July 20th, 2010, 12:48 PM   #71 (permalink)
New Member
 
Join Date: Jul 2010
Posts: 4
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by kbarsi View Post
I've got to be missing something. I can't find:

"Scroll down to ID 6, "install_non_market_apps". Double-click."

I don't see anything called ID 6 under Tables/secure. I only see _id, name, and value. Am I in the wrong section?
Never mind. I didn't see the tabs.
kbarsi is offline  
Reply With Quote
Old July 20th, 2010, 02:06 PM   #72 (permalink)
New Member
 
Join Date: Jul 2010
Posts: 1
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy

I have tried reinstalling BusyBox numerous times and I am still receiving "cp: not found". Does anyone have a fix or maybe an alternative?

Edit: My phone is in debug mode
Tadi is offline  
Last edited by Tadi; July 20th, 2010 at 02:23 PM.
Reply With Quote
Old July 20th, 2010, 02:40 PM   #73 (permalink)
Member
Thread Author (OP)
 
Join Date: Mar 2010
Location: Missouri
Posts: 490
 
Device(s): Samsung Captivate
Carrier: Not Provided

Thanks: 24
Thanked 121 Times in 47 Posts
Default

Quote:
Originally Posted by Tadi View Post
I have tried reinstalling BusyBox numerous times and I am still receiving "cp: not found". Does anyone have a fix or maybe an alternative?

Edit: My phone is in debug mode
Maybe if you copy-paste what you're doing into a post it'll help us help you. Start with where you cd into your android sdk tools directory and copy-paste everything in the cmd window.
maerlim is offline  
Reply With Quote
Old July 20th, 2010, 04:55 PM   #74 (permalink)
Member
 
Join Date: Jul 2010
Posts: 114
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 22 Times in 8 Posts
Default

Quote:
Originally Posted by Tadi View Post
I have tried reinstalling BusyBox numerous times and I am still receiving "cp: not found". Does anyone have a fix or maybe an alternative?

Edit: My phone is in debug mode
You have to install it on the phone not on the computer. That was the mistake I made.
YellowGT0 is offline  
Reply With Quote
Old July 20th, 2010, 05:13 PM   #75 (permalink)
New Member
 
Join Date: Jul 2010
Posts: 5
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ok.... got the phone rooted and db set to 1. No how do i install a app for example a game. I downloaded a zip file. Do I put in on the SD card and run a app to install? Which app???

Thanks for all who have contributed to these fourms!!!!!
coldkiller is offline  
Reply With Quote
Old July 20th, 2010, 05:35 PM   #76 (permalink)
Junior Member
 
Join Date: Jul 2010
Location: Bradley, Illinois
Posts: 37
 
Device(s): Samsung Captivate - AT&T
Carrier: Not Provided

Thanks: 1
Thanked 4 Times in 4 Posts
Default

Ok, I'll be the idiot, but otherwise I won't learn. I have the drivers for samsung installed, am rooted, installed busy box with restated I am rooted. I am linked as mounted mas storage device from phone to pc. I, on my pc, have my cmd open and pointed to the tools directory. I am in the c: command prompt by the way. I typed in adb shell and it came up with device not found. I entered su after this and it stated not a recognizable command. So, I'm stuck I don't understand the complete premise of what we are trying to change to get the third party software to load, so I am asking for help. I'm surprised I have gotten this far but want to finish. Thanks,
sdelliott31 is offline  
Reply With Quote
Old July 20th, 2010, 06:55 PM   #77 (permalink)
Junior Member
 
Join Date: Jul 2010
Posts: 17
 
Device(s):
Carrier: Not Provided

Thanks: 4
Thanked 2 Times in 1 Post
Default

This might make side loading easier if it works:

Sideload Android apps all you want with the Sideload Wonder Machine | Android Central

I don't have a Windows machine to try it and don't feel like making a Windows VM right now.
narcoden is offline  
Reply With Quote
The Following 2 Users Say Thank You to narcoden For This Useful Post:
beertha (July 21st, 2010), sdelliott31 (July 21st, 2010)
Old July 20th, 2010, 07:27 PM   #78 (permalink)
New Member
 
Join Date: Jul 2010
Posts: 2
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by narcoden View Post
This might make side loading easier if it works:

Sideload Android apps all you want with the Sideload Wonder Machine | Android Central

I don't have a Windows machine to try it and don't feel like making a Windows VM right now.
That is what I have been using. Works great and no problems to report!
gwaki is offline  
Reply With Quote
Old July 20th, 2010, 07:28 PM   #79 (permalink)
Junior Member
 
Join Date: Jul 2010
Location: Bradley, Illinois
Posts: 37
 
Device(s): Samsung Captivate - AT&T
Carrier: Not Provided

Thanks: 1
Thanked 4 Times in 4 Posts
Default

Ok, I used the Sideload wonder machine and picked my.apk file and this worked perfectly. Not the most convenient, but it installed and ran like a Flash. Thank You for this.
sdelliott31 is offline  
Reply With Quote
Old July 20th, 2010, 09:48 PM   #80 (permalink)
Member
 
Join Date: Jul 2010
Location: Atlanta, Georgia
Posts: 172
 
Device(s): Samsung Captivate
Carrier: Not Provided

Thanks: 2
Thanked 20 Times in 13 Posts
Default

I am on Windows XP SP3 32 bit, and this command:

adb pull /sdcard/settings.db %userprofile%\desktop

does nothing. All I get with that is the ADB help output. The settings.db file that was created never gets pulled to desktop.

So I also changed it to:
adb pull /sdcard/settings.db

and the file gets successfully pulled to the sdk tools directory. I think it's because on my OS:
%userprofile% = C:\Documents and Settings\<username>
and the command adb can't handle the spaces in the variable.

Therefore I also changed this:
adb push %userprofile%\desktop\settings.db /sdcard
to this:
adb push settings.db /sdcard

Everything is fine so far, except Firefox wont let go of the stupid settings.db file in the sdk tools directory for me to delete it.

P.S. - The SDK install asked me to append %path% with the sdk/tools location as part of the installation. If you followed that step, there is no need to do change directories to there first or to worry about %userprofile% containing spaces. It'd be better to change directories over to your preferred location to store settings.db and invoke adb from there.
rajendra82 is offline  
Last edited by rajendra82; July 21st, 2010 at 01:09 AM.
Reply With Quote
The Following User Says Thank You to rajendra82 For This Useful Post:
beertha (July 21st, 2010)
sponsored links
Old July 20th, 2010, 10:12 PM   #81 (permalink)
Junior Member
 
Join Date: Jul 2010
Location: Souther California
Posts: 32
 
Device(s): Samsung Captivate (Galaxy S)
Carrier: Not Provided

Thanks: 2
Thanked 1 Time in 1 Post
Send a message via AIM to sanduneboi Send a message via Yahoo to sanduneboi
Default

Does AT&T block certain apps in the Android Market?
sanduneboi is offline  
Reply With Quote
Old July 21st, 2010, 07:30 AM   #82 (permalink)
Junior Member
 
Join Date: Jul 2010
Posts: 38
 
Device(s):
Carrier: Not Provided

Thanks: 7
Thanked 6 Times in 5 Posts
Default

Quote:
Originally Posted by rajendra82 View Post
I am on Windows XP SP3 32 bit, and this command:

adb pull /sdcard/settings.db %userprofile%\desktop

does nothing. All I get with that is the ADB help output. The settings.db file that was created never gets pulled to desktop.

So I also changed it to:
adb pull /sdcard/settings.db

and the file gets successfully pulled to the sdk tools directory. I think it's because on my OS:
%userprofile% = C:\Documents and Settings\<username>
and the command adb can't handle the spaces in the variable.

Therefore I also changed this:
adb push %userprofile%\desktop\settings.db /sdcard
to this:
adb push settings.db /sdcard

Everything is fine so far, except Firefox wont let go of the stupid settings.db file in the sdk tools directory for me to delete it.

P.S. - The SDK install asked me to append %path% with the sdk/tools location as part of the installation. If you followed that step, there is no need to do change directories to there first or to worry about %userprofile% containing spaces. It'd be better to change directories over to your preferred location to store settings.db and invoke adb from there.
Thanks for your info because I had the same problem!
beertha is offline  
Reply With Quote
Old July 21st, 2010, 12:20 PM   #83 (permalink)
Junior Member
 
Join Date: Jul 2010
Location: Bradley, Illinois
Posts: 37
 
Device(s): Samsung Captivate - AT&T
Carrier: Not Provided

Thanks: 1
Thanked 4 Times in 4 Posts
Default

Hi, I have solved my problem for the most part. I was just curious, when you read the original instructions there is a part that says download sql lite and go to firefox tools and change settings. Is this on the PC, or through android and then tools on firefox Captivate. If it is this, I cannot find tools for firefox in the browser. I'm sure something else is wrong. Can someone help? Thanks,
sdelliott31 is offline  
Reply With Quote
Old July 21st, 2010, 01:14 PM   #84 (permalink)
Senior Member
 
t-readyroc's Avatar
 
Join Date: Feb 2010
Location: Saint Leonard, MD
Posts: 710
 
Device(s): Samsung Captivate
Carrier: Not Provided

Thanks: 72
Thanked 82 Times in 55 Posts
Send a message via AIM to t-readyroc Send a message via MSN to t-readyroc Send a message via Yahoo to t-readyroc Send a message via Skype™ to t-readyroc
Default

Or just use the sideload wonder machine.
t-readyroc is offline  
Reply With Quote
Old July 21st, 2010, 02:02 PM   #85 (permalink)
Junior Member
 
Join Date: Jul 2010
Location: Texas
Posts: 40
 
Device(s): Samsung Captivate
Carrier: Not Provided

Thanks: 1
Thanked 4 Times in 3 Posts
Default

Quote:
Originally Posted by t-readyroc View Post
Or just use the sideload wonder machine.
I tried using it but I still got "device offline"
Pinetree09 is offline  
Reply With Quote
Old July 21st, 2010, 02:32 PM   #86 (permalink)
New Member
 
Join Date: Jul 2010
Posts: 14
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

it worked for me!!!
acandia007 is offline  
Reply With Quote
Old July 21st, 2010, 08:31 PM   #87 (permalink)
Junior Member
 
Join Date: Jul 2010
Location: Texas
Posts: 40
 
Device(s): Samsung Captivate
Carrier: Not Provided

Thanks: 1
Thanked 4 Times in 3 Posts
Default

Edit: nevermind
Pinetree09 is offline  
Last edited by Pinetree09; July 21st, 2010 at 08:39 PM.
Reply With Quote
Old July 21st, 2010, 08:41 PM   #88 (permalink)
Member
 
Join Date: Jul 2010
Location: Atlanta, Georgia
Posts: 172
 
Device(s): Samsung Captivate
Carrier: Not Provided

Thanks: 2
Thanked 20 Times in 13 Posts
Default

When you load the phone with USB debugging on, a red triangle should show up in the notification bar, and if you installed the right drivers, the SDK tools should find the device when invoked. Other than the red triangle icon on the phone, nothing else typically happens unless you run a command on the computer.
rajendra82 is offline  
Reply With Quote
Old July 21st, 2010, 11:43 PM   #89 (permalink)
Junior Member
 
Join Date: Jul 2010
Location: Texas
Posts: 40
 
Device(s): Samsung Captivate
Carrier: Not Provided

Thanks: 1
Thanked 4 Times in 3 Posts
Default

Yay, I finally got it to work...on another computer, lol


I guess I didn't install something right on my computer, oh well, I'll figure it out eventually
Pinetree09 is offline  
Last edited by Pinetree09; July 21st, 2010 at 11:52 PM.
Reply With Quote
Old July 22nd, 2010, 10:50 PM   #90 (permalink)
New Member
 
Join Date: Jul 2010
Posts: 4
 
Device(s):
Carrier: Not Provided

Thanks: 1
Thanked 0 Times in 0 Posts
Default

Nevermind. I'm not as stupid as I thought I was.
aperture is offline  
Reply With Quote
sponsored links
Old July 23rd, 2010, 04:11 AM   #91 (permalink)
Junior Member
 
Join Date: Jul 2010
Posts: 20
 
Device(s): Samsung Galaxy SII Epic 4G Touch
Carrier: Not Provided

Thanks: 11
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by maerlim View Post
*** Standard Disclaimer: I AM NOT RESPONSIBLE FOR ANY DAMAGE TO YOUR PHONE IF SOMETHING GOES WRONG WITH THIS PROCEDURE.

THE PROBLEM WITH USB DEBUGGING HAS BEEN FIXED. THIS PROCEDURE SEEMS PRETTY SAFE NOW. ONLY FURTHER TESTING WILL TELL FOR SURE.

IF YOU PERFORMED THIS PROCEDURE PREVIOUSLY AND YOU HAVE USB DEBUGGING STUCK ON, SKIP TO WHERE YOU SEE *** USB DEBUGGING FIX ***. ***

You'll need the Android SDK (guide to download and install is here)
You'll need the USB drivers (Stickied post in this forum)
You'll need root access (look for the Captivate Root thread by chaoscentral)
You'll need Busybox (available on the market after you root the phone)

Connect USB to phone with USB Debugging ON
Command prompt
cd to SDK install directory
cd tools
adb shell
su
cp /dbdata/databases/com.android.providers.settings/settings.db /sdcard/settings.db
cp /dbdata/databases/com.android.providers.settings/settings.db /sdcard/settings.db.backup
exit
exit
(This should bring you back to your windows command prompt.)
adb pull /sdcard/settings.db %userprofile%\desktop
(This should copy the settings.db to your desktop in Windows. Keep your cmd window open, you'll need it again.)

Install SQLite Manager Plugin for Firefox
Open SQLite Manager Plugin within Firefox (Tools->SQLite Manager)
Click Database
Click Connect Database
Find settings.db
Expand Tables
Click secure
Scroll down to ID 6, "install_non_market_apps". Double-click.
Change value ( TEXT ) from 0 to 1
Close SQLite Manager

(Back to that cmd window)
adb push %userprofile%\desktop\settings.db /sdcard

adb shell
su
cp /sdcard/settings.db /dbdata/databases/com.android.providers.settings
chmod 777 /dbdata/databases/com.android.providers.settings/settings.db
reboot

Disconnect USB from phone. Your phone should be rebooting.

Done! I tested this and was able to install siriusxm.apk from siriusxm.com/android.


*** USB DEBUGGING FIX ***
adb shell
su
chmod 777 /dbdata/databases/com.android.providers.settings/settings.db
reboot
Thank you Maerlin for taking the time to figure this out. I am now free to download as I please, and the first program was kind of a cool text while seeing what's in front of you program called RoadSMS the first of many to come thanks again maerlin. I just wanted to add that after you have your phone rooted, you can do all of this from your phone. I purchased two very good apps, Root Explorer and SQLite Editor (Edit, make sure to give them both superuser permission). I used Root explorer and followed your directions above and copied the file to my sd card(just paste to main card directory). Now I had a few issues with not seeing anything on my card at first but I went through everything a couple times and then it showed up. Then I opened up SQLite on my phone and click your settings on your phone and it gives you the option to browse SD card, I scrolled all the way to the bottom and found the settings.db file (which I renamed the original and placed on my SD card as setting-back.db), select the file you are going to edit. Then select "Secure" and and press and hold line 6 (install_non_market_apps) and choose "Edit Record" simple replace the value "0" with "1" and hit save. Now go back to your Root Explorer program on your phone and go into the original directory and if you haven't renamed the original file you may want to, then move it to your SD card or wherever you choose. Now move the newly edited file from your SD card to that same directory you just moved the original from. Reboot (shut off and turn back on phone) and viola You should have what you want. Thanks again for posting the original instructions and I hope I didn't dumb it up too much for you technical guys, I know I am new to the Android and I just wanted to make it as simple as possible for others. Hope this helped anyone needing another simple way to do this.
tman42 is offline  
Last edited by tman42; July 23rd, 2010 at 11:09 AM.
Reply With Quote
Old July 23rd, 2010, 09:04 AM   #92 (permalink)
Junior Member
 
Join Date: Jul 2010
Location: Alabama
Posts: 87
 
Device(s): HTC Thunderbolt
Carrier: Not Provided

Thanks: 11
Thanked 14 Times in 12 Posts
Default Another Method

From: Workaround for Fixing 'Unsupported Sources' - Page 2 - xda-developers

Quote:
NOTE: You MUST have root access in order for this to work

sqlite3 is included in the Android SDK tools, so this would be the best way:

  • COMMON
  • Enable USB debugging (settings > applications > development > USB Debugging)
  • adb remount
  • adb pull /data/data/com.android.providers.settings/databases/settings.db settings.db

    Linux/OS X
  • echo "update secure set value = 1 where name = 'install_non_market_apps';"|./sqlite3 settings.db

    WINDOWS
  • echo update secure set value = 1 where name = 'install_non_market_apps';|sqlite3 settings.db

    COMMON
  • adb push settings.db /data/data/com.android.providers.settings/databases/settings.db
  • Reboot phone and sideloading works. (thanks fluffyarmada)

Additional Information and why you shouldnt download and install someone else's settings.db.




Quote:
You will lose your settings if you use the attached settings.db file. Your best bet is to pull the file off your phone, edit it with something that understands sqlite3's database format, and then push it back. It's just better that way.

Further EDIT:: As someone pointed out later in this thread, this file unbeknownst to me when I shared it, actually has a unique ID by which phones can be identified on the android market, etc. While this isn't a huge deal, it can lead to some rather strange behavior... my phone for example has started attempting to download apps from the android market all by itself.

So--- if you want to side-load apps, change the variable in the database like I explained above.
sonicanatidae is offline  
Reply With Quote
Old July 23rd, 2010, 11:03 AM   #93 (permalink)
Junior Member
 
Join Date: Jul 2010
Location: Alabama
Posts: 87
 
Device(s): HTC Thunderbolt
Carrier: Not Provided

Thanks: 11
Thanked 14 Times in 12 Posts
Default

Question about the method 1st posted:

I get so far, then it tells me permission denied when I su, but
the phone is rooted.. I have superuser on it and 3 apps that require root.
Quote:
Originally Posted by maerlim
*** Standard Disclaimer: I AM NOT RESPONSIBLE FOR ANY DAMAGE TO YOUR PHONE IF SOMETHING GOES WRONG WITH THIS PROCEDURE.

THE PROBLEM WITH USB DEBUGGING HAS BEEN FIXED. THIS PROCEDURE SEEMS PRETTY SAFE NOW. ONLY FURTHER TESTING WILL TELL FOR SURE.

IF YOU PERFORMED THIS PROCEDURE PREVIOUSLY AND YOU HAVE USB DEBUGGING STUCK ON, SKIP TO WHERE YOU SEE *** USB DEBUGGING FIX ***. ***

You'll need the Android SDK (guide to download and install is here)
You'll need the USB drivers (Stickied post in this forum)
You'll need root access (look for the Captivate Root thread by chaoscentral)
You'll need Busybox (available on the market after you root the phone)

Connect USB to phone with USB Debugging ON
Command prompt
cd to SDK install directory
cd tools
adb shell
su
After I type su.. I wait about 10 secs and it returns:

Permission Denied


What did I miss?

Root method was using the update.zip file..
sonicanatidae is offline  
Reply With Quote
Old July 23rd, 2010, 11:10 AM   #94 (permalink)
Junior Member
 
Join Date: Jul 2010
Location: Texas
Posts: 40
 
Device(s): Samsung Captivate
Carrier: Not Provided

Thanks: 1
Thanked 4 Times in 3 Posts
Default

Quote:
Originally Posted by sonicanatidae View Post
Question about the method 1st posted:

I get so far, then it tells me permission denied when I su, but
the phone is rooted.. I have superuser on it and 3 apps that require root.


After I type su.. I wait about 10 secs and it returns:

Permission Denied


What did I miss?

Root method was using the update.zip file..
There will be a Superuser permissions popup on your phone, you'll need to hit allow
Pinetree09 is offline  
Reply With Quote
Old July 23rd, 2010, 11:20 AM   #95 (permalink)
Junior Member
 
Join Date: Jul 2010
Location: Alabama
Posts: 87
 
Device(s): HTC Thunderbolt
Carrier: Not Provided

Thanks: 11
Thanked 14 Times in 12 Posts
Default

Quote:
Originally Posted by Pinetree09 View Post
There will be a Superuser permissions popup on your phone, you'll need to hit allow
Yup.. that was it..

Another +1 for this method working..
sonicanatidae is offline  
Reply With Quote
Old July 23rd, 2010, 11:31 AM   #96 (permalink)
Member
 
Join Date: Jul 2010
Posts: 114
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 22 Times in 8 Posts
Default

Ok I read over on XDA that

chown system.sdcard_rw /sdcard/settings.db /dbdata/databases/com.andorid.providers.settings

Is better then CHmod because it leaves settings.db a little more secure I have not tried it but if anyone is worried about settings.db being any less secure you can try it.
YellowGT0 is offline  
Reply With Quote
Old July 23rd, 2010, 02:48 PM   #97 (permalink)
Member
 
Join Date: Nov 2009
Location: Upstate NY
Posts: 166
 
Device(s): iPhone 4, Samsung Captivate
Carrier: Not Provided

Thanks: 4
Thanked 7 Times in 3 Posts
Default

Quote:
Originally Posted by dsjr2006 View Post
In notification bar make sure you dismount SD card from comp before trying this.
This may seem obvious, but this is my first android experience and I did not realize that I had to cancel usb storage in the notification area, and not sure I could have figured it out without this post. It might be a good idea to add this to the main guide at the beginning of the thread. Thanks a lot for the hard work on this.
Aerimus is offline  
Reply With Quote
Old July 23rd, 2010, 05:51 PM   #98 (permalink)
New Member
 
Join Date: Jul 2010
Posts: 7
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 1 Time in 1 Post
Laugh Alternative Sideloading method

Quote:
Originally Posted by maerlim View Post
*** Standard Disclaimer: I AM NOT RESPONSIBLE FOR ANY DAMAGE TO YOUR PHONE IF SOMETHING GOES WRONG WITH THIS PROCEDURE.

THE PROBLEM WITH USB DEBUGGING HAS BEEN FIXED. THIS PROCEDURE SEEMS PRETTY SAFE NOW. ONLY FURTHER TESTING WILL TELL FOR SURE.

IF YOU PERFORMED THIS PROCEDURE PREVIOUSLY AND YOU HAVE USB DEBUGGING STUCK ON, SKIP TO WHERE YOU SEE *** USB DEBUGGING FIX ***. ***

You'll need the Android SDK (guide to download and install is here)
You'll need the USB drivers (Stickied post in this forum)
You'll need root access (look for the Captivate Root thread by chaoscentral)
You'll need Busybox (available on the market after you root the phone)

Connect USB to phone with USB Debugging ON
Command prompt
cd to SDK install directory
cd tools
adb shell
su
cp /dbdata/databases/com.android.providers.settings/settings.db /sdcard/settings.db
cp /dbdata/databases/com.android.providers.settings/settings.db /sdcard/settings.db.backup
exit
exit
(This should bring you back to your windows command prompt.)
adb pull /sdcard/settings.db %userprofile%\desktop
(This should copy the settings.db to your desktop in Windows. Keep your cmd window open, you'll need it again.)

Install SQLite Manager Plugin for Firefox
Open SQLite Manager Plugin within Firefox (Tools->SQLite Manager)
Click Database
Click Connect Database
Find settings.db
Expand Tables
Click secure
Scroll down to ID 6, "install_non_market_apps". Double-click.
Change value ( TEXT ) from 0 to 1
Close SQLite Manager

(Back to that cmd window)
adb push %userprofile%\desktop\settings.db /sdcard

adb shell
su
cp /sdcard/settings.db /dbdata/databases/com.android.providers.settings
chmod 777 /dbdata/databases/com.android.providers.settings/settings.db
reboot

Disconnect USB from phone. Your phone should be rebooting.

Done! I tested this and was able to install siriusxm.apk from siriusxm.com/android.


*** USB DEBUGGING FIX ***
adb shell
su
chmod 777 /dbdata/databases/com.android.providers.settings/settings.db
reboot
I was having issues getting the USB driver to work so SDK was not recognizing the Device. However i was able to get this accomplished in a different way. Here's what I did to get rid of the gay message saying i could only install market apps:

First I rooted my device by downloading the captivate recovery file and renaming it to update.zip and coppied it to my removalble storage card and booted into the recovery and selected “Reinstall packages.” and rebooted the phone. I now had root access but still could not install apps not on the market due to ATT being ******s. next did some research that all that needed to be changed was a database value. ***** FOLLOWING STEPS DO AT YOUR OWN RISK I AM NOT RESPONSIBLE IF YOU BREAK YOUR PHONE******
I then downloaded a pay app called Root Explorer and SQLite Editor
In root explorer navigate to /dbdata/databases/com.android.providers.settings
then coppied the settings.db and pasted it in /sdcard/sd (MUST HAVE MICRO SD INSTALLED)
once coppied to that directory click on settings.db and it will open in the editor with a menu select the secure option and look for install_non_market_apps long tap on it and select 'edit record' when it comes up get rid of the 0 and make it a 1 click save go back to /sdcard/sd copy settings.db and paste it back in /dbdata/databases/com.android.providers.settings and it will copy over the current settings.db reboot the phone and you can install all non-market apps Hope this is useful for users who may have had a usb issue as i did .. It cost me $6 but it was a lot less head ache and i did it in 30mins of research at work instead of the 6hrs of almost ripping my hair out last night! LOL Enjoy!
martincarroll84 is offline  
Reply With Quote
Old July 23rd, 2010, 07:25 PM   #99 (permalink)
Junior Member
 
Join Date: Jul 2010
Posts: 20
 
Device(s): Samsung Galaxy SII Epic 4G Touch
Carrier: Not Provided

Thanks: 11
Thanked 0 Times in 0 Posts
Lightbulb

Quote:
Originally Posted by martincarroll84 View Post
I was having issues getting the USB driver to work so SDK was not recognizing the Device. However i was able to get this accomplished in a different way. Here's what I did to get rid of the gay message saying i could only install market apps:

First I rooted my device by downloading the captivate recovery file and renaming it to update.zip and coppied it to my removalble storage card and booted into the recovery and selected “Reinstall packages.” and rebooted the phone. I now had root access but still could not install apps not on the market due to ATT being ******s. next did some research that all that needed to be changed was a database value. ***** FOLLOWING STEPS DO AT YOUR OWN RISK I AM NOT RESPONSIBLE IF YOU BREAK YOUR PHONE******
I then downloaded a pay app called Root Explorer and SQLite Editor
In root explorer navigate to /dbdata/databases/com.android.providers.settings
then coppied the settings.db and pasted it in /sdcard/sd (MUST HAVE MICRO SD INSTALLED)
once coppied to that directory click on settings.db and it will open in the editor with a menu select the secure option and look for install_non_market_apps long tap on it and select 'edit record' when it comes up get rid of the 0 and make it a 1 click save go back to /sdcard/sd copy settings.db and paste it back in /dbdata/databases/com.android.providers.settings and it will copy over the current settings.db reboot the phone and you can install all non-market apps Hope this is useful for users who may have had a usb issue as i did .. It cost me $6 but it was a lot less head ache and i did it in 30mins of research at work instead of the 6hrs of almost ripping my hair out last night! LOL Enjoy!
That's exactly what I did, tried to explain it above but checked it today and saw that it was very late when I wrote it LOL. You just saved me from going back over it and making it easier to read. I was amazed at how easy this was to do and like you mentioned for the price of only $6 bucks.
tman42 is offline  
Last edited by tman42; July 23rd, 2010 at 07:36 PM.
Reply With Quote
Old July 24th, 2010, 04:36 PM   #100 (permalink)
Junior Member
 
Join Date: Jul 2010
Posts: 33
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 3 Times in 3 Posts
Default Help

I keep getting a error message saying FAILURE [INSTALL_FAILED_ALREADY_EXISTS]

what am i doing wrong
kbrown17 is offline  
Reply With Quote
Reply


Go Back   Android Forums > Android Phones > Samsung Captivate > Captivate - Tips and Tricks
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 12:28 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.