PDA

View Full Version : FAQ: Sideloading Apps on the Captivate



dandroid
07-19-2010, 12:41 AM
*** Standard Disclaimer: WE ARE 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 (http://developer.android.com/sdk/index.html))
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

(Credit goes to Maerlim from Android Forums for the How To)

HeavyTizzle
07-21-2010, 05:08 PM
Or you could use the Android Central Sideload Wonder Machine!

The Android Central Sideload Wonder Machine - Android Central Forums (http://forum.androidcentral.com/showthread.php?p=236589#post236589)

jmgib
07-21-2010, 05:09 PM
I believe the detailed instructions though allow one to install apps directly on the phone from the SD card without having to connect the phone to a PC and pushing the app to the phone using ADB.

HeavyTizzle
07-22-2010, 01:24 AM
I was just throwing the ACSWM out there for anyone that isn't as advanced with all this technology stuff like me. I could follow his instructions, but I'm lazy and like hitting as few buttons as possible.

skrewed_187
10-06-2010, 09:01 PM
I had a Captivate and was able to use this forum to enable side loading myself. I had the 2.1 platform at the time. I lost the phone, got a new one, and when trying to use the SDK it updated. I already have root access and am trying this again an get:

$
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
cp: not found

Why is it not found now and what the #$%& copy am I to use now? I am reverting back to 2.1 till I figure out whats going on.

Also, may I add I like the freedom of installing apps myself than having to rely on a 3rd party program to allow apps to be installed on an individual basis.

skrewed_187
10-06-2010, 09:19 PM
well then. Apparently the android doesn't come with a cp command and that's what busybox is for.

cp not found on Root Droid - Droid Forum - Verizon Droid & the Motorola Droid Forum (http://www.droidforums.net/forum/tech-issues-bug-reports-suggestions/15595-cp-not-found-root-droid.html)

I apologize for the aggravation.

jmgib
10-08-2010, 09:48 AM
You can probably use 'busybox cp' in place of 'cp' and it should work.

dandroid
10-17-2010, 07:35 AM
Skrewed: Were you able to get it going?

Damani311
01-26-2011, 09:34 PM
I need help! It seems that things have changed since this initial set of instuctions, the "adb" has been moved to platform-tools, and when i run it from platform tools it gives me an error when i use "su" as a command, says its not a recognizable command...........help!


also found this in readme, but have no clue how to do it:
Please also update your PATH environment variable to
include the platform-tools/ directory, so you can
execute adb from any location.

Dorian
01-26-2011, 11:29 PM
I need help! It seems that things have changed since this initial set of instuctions, the "adb" has been moved to platform-tools, and when i run it from platform tools it gives me an error when i use "su" as a command, says its not a recognizable command...........help!


also found this in readme, but have no clue how to do it:
Please also update your PATH environment variable to
include the platform-tools/ directory, so you can
execute adb from any location.

You may want to check this out. (http://forum.xda-developers.com/showthread.php?t=803682) :)

Damani311
01-27-2011, 01:31 AM
You may want to check this out. (http://forum.xda-developers.com/showthread.php?t=803682) :)

thanks, not sure I'm finding what I'm looking for there though. My phone is already rooted, i need to get the sideloading part working now........sorry if i'm completely missing it

Damani311
01-28-2011, 07:18 PM
bump, still need to wrap this up.......stuck at it telling me "su" isnt a real command