• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Weird problem trying to enable sideloading....

techmik67

Newbie
riginally 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
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 did all that, with a few tweaks here and there, and


Quote:
Originally Posted by techmik67
Ok here it is........... In windows vista ikept getting either two identical non working devicea shown or none in the cmd window. No external sd card in and internal memory set to mounted like usual and debugging on. FINALLY got recognized in cmd by next clicking tray icon to safely remove hardware. Chose to remove the two representing phone and ignored the four representing removable drives. When it said stopped and safe to remove the two icons disappeared in the my computer window. In the cmd window i used adb kill-server and then adb devices and there it was!!! I still had to do it a few x cause adb kept sticking on (2 or more instances running in task manager and the last wont stop) but at last got it done. And after all that i hit reboot and then unplugged the phone. Downloaded a non market app and when i tried to install today it said no non market apps allowed to be installed. Now what?


So after all that i still cant get non market apps and yet when i check the settings.db file in /sdcard, it DOES show a 1 (allow non market). The prob seems to be my adb. It opens multiple times in task manager and freezes. when you unfreeze, it stops 1 instance and goes back to b4 you pressed adb ENTER. and shows device offline now. cant get back online and final instance of adb cannot even be forced closed in task manager. Must hard reboot to fix.

When i use Sideload Wonder Machine, it freezes, but when i force close all but last instance, it works with no errors. If I could just somehow get the settings.db file from /sdcard to /dbdata/databases/com.android.providers.com/ and then i could rn the chmod 777 part i'd be done. Any advice?

 
i'm assuming you are rooted... run a backup with titanium. Next using odin3 flash back to stock jh2 or jh3. Finally install super rooter
SuperRooterExtreme | (Root + OC 1.2GHz + LagFix + MobileAP + USB Tether + MORE) - xda-developers

all of you problems will be solved.

When I start getting a whole bunch of issues or something that is just completely weird that not many have encountered, I flash back to stock and start all over.

Do all backups have to be stored on the external card?

Will it save everything? Settings and contacts, etc...?
 
Do all backups have to be stored on the external card?

Will it save everything? Settings and contacts, etc...?
I don't have an external SD card, only the built in internal the phone came with. so i'm not sure what it will default to if you have an external sd card.

When you open up titanium backup:
1) hit settings
2) batch
3) chose the run operation you want to do.

I always do it as "Backup all user apps + system data"

When you reflash a new rom it doesn't wipe the card. I'm still super paranoid and I always copy the "TitaniumBackup" folder to my pc before I mess with my phone. This way I have a backup there if everything hits the fan.

I'm not sure if it backs up the contacts or not.. I use google to sync with google contacts so they are always there.

As for settings... it seems to remember most everything. I have done this two or three times.
It has remembered all the notes in my note apps
It has remembered login credentials for facebook, att mywireless, etc..
Bookmarks are all still there.
it has even remembered my stored passwords in the browser.

The one thing it's been hit and miss on is my wireless network settings. Once it remembered them, once it didn't. Though the time it didn't work I think I might have blocked it and not paid attention.

I will say that when you get everything flashed and you are ready to reinstall the backups with the run feature in the batch list, you have to manually "approve" every app install. It can take like 30 minutes to go through it all. Since I always restore everything (maps, gmail, etc..) it will sometimes say that that stuff is already installed on the phone, do you want to over write it? I always say yes just because that way I know for sure my old google maps settings are all stored in there etc.

There is a "create update.zip" feature i've noticed. Though I have never done it this way. I'm assuming it would allow you to do everything from the download/restore screen with update.zip and you don't have to manually approve every one. However, I haven't tried that because the batch restore method is good enough for me. I get nervous when I do all of these update.zips, plus I don't know if it is saving my old firmware or what not. And since I'm a big fan of super rooter and it is a custom rom I don't like to mess with update.zips if I don't have to. (i'm still a little timid, but i've made strides in just a month since having my first android device).

note: I also use launcerpro and it has remembered my paid subscription too. However, for some reason my widgets never work. It will show where they need to be but it says "not available." I have to go back through and manually create the widgets again.
 
Back
Top Bottom