View Single Post
Old July 23rd, 2010, 05:51 PM   #98 (permalink)
martincarroll84
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