How to Enable Sideloading of Apps on Captivate


  1. maerlim

    maerlim Well-Known Member

    *** 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
    busybox chown 1000 /dbdata/databases/com.android.providers.settings/settings.db
    busybox chgrp 1000 /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
    busybox chown 1000 /dbdata/databases/com.android.providers.settings/settings.db
    busybox chgrp 1000 /dbdata/databases/com.android.providers.settings/settings.db
    reboot

    Advertisement
  2. Vtec

    Vtec Well-Known Member

    Awesome! I cant wait to get mine!
  3. maerlim

    maerlim Well-Known Member

    Please do let me know if this works for everyone. :)
  4. nmoline

    nmoline Well-Known Member

    I tried it and got "cp:not found" Any suggestions?
  5. ajerman

    ajerman Active Member

    This DOES require root, as can be seen with the "su" function. But after you root it, this should work just fine.
  6. maerlim

    maerlim Well-Known Member

    Did you do "adb shell" first?
  7. contentryder

    contentryder Member

    quick question...would rooting a phone enable you to install any app without having to sideload?
  8. randy_c

    randy_c Well-Known Member

    You'll need the Android SDK (guide to download and install is here)

    Can you upload the link?

    Thanks
  9. maerlim

    maerlim Well-Known Member

    Sorry didn't notice the link didn't make it into the post. The SDK is at http://developer.android.com
  10. YellowGT0

    YellowGT0 Well-Known Member

    How do you get to the command prompt? And how do you turn debugging on?
  11. naxir

    naxir Well-Known Member

    can't help you with debugging as I don't have my captivate yet... command prompt is as easy as start >> run >> cmd >> enter, or the faster method I prefer: windows key + r >> cmd >> enter.
    beertha likes this.
  12. radi0chik

    radi0chik Well-Known Member

    I get cp not found also. and yes i did adb shell first.
    You might want to add that when you type SU, it prompted me on my phone to grant unknown app super user access. But I can't get past the cp unknown
  13. radi0chik

    radi0chik Well-Known Member

    settings>applications>development>usb debugging. Make sure your usb cable is unplugged before you turn it on. Then plug the cable in.
  14. YellowGT0

    YellowGT0 Well-Known Member

    OHHH CMD on windows... I thought it was like console on the phone or something DUH lol
    This is what I get when I try to install the SDK
    Failed to fetch URL https://dl-ssl.google.com/android/repository/repository.xml, reason: HTTPS SSL error. You might want to force download through HTTP in the settings

    If you get the same error go to settings and select force HTTP :)
  15. ranova

    ranova Well-Known Member

    cp: not found for me
  16. YellowGT0

    YellowGT0 Well-Known Member

    1st it says Permission denied then when I hit it again it says cp: not found and it is rooted
  17. Jreitnauer7

    Jreitnauer7 Well-Known Member

    Was anyone able to test this to see if it works without rooting?
  18. YellowGT0

    YellowGT0 Well-Known Member

    Under Superuser permissions it says

    Unknown
    /system/bin/sh as root (uid: 0)

    Don't know if that matters.
  19. YellowGT0

    YellowGT0 Well-Known Member

    I think its because Busybox is not installed. But I can't get it to install correctly. from what I have read the cp command is not built into adb shell.
  20. maerlim

    maerlim Well-Known Member

    Ahh, that's it. You do need busybox installed. It's available on the market after you root the phone. I've updated the original post to reflect this.
  21. YellowGT0

    YellowGT0 Well-Known Member

    Ohh you need it on the phone? Not on the PC?
  22. YellowGT0

    YellowGT0 Well-Known Member

    Aight man cool. Glad I helped with something lol. Damn Android is so alien to me. worked perfect thanks alot.
  23. YellowGT0

    YellowGT0 Well-Known Member

    Just FYI I dunno if I messed something else up but no matter what I do I can't get out of USB Debugging mode. I unselect the box hit home key go back in and its reselected.
  24. Balthazar B

    Balthazar B Member

    mokettypu and Loremonger like this.
  25. maerlim

    maerlim Well-Known Member

    I've updated the original post. It looks like that USB Debugging problem is a byproduct of this procedure. A factory reset will repair the problem. (Settings->Privacy->Factory data reset) I hope to have a fixed procedure up sometime tonight.

Share This Page