View Single Post
Old July 23rd, 2010, 04:11 AM   #91 (permalink)
tman42
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