Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
gdanko
Old
(Last edited by gdanko; 25th February 2011 at 11:21 PM.)
#1  
Senior Member - OP
Thanks Meter 39
Posts: 363
Join Date: Oct 2010
Default [How To] Manually enable sideloading

First of all, Linux and OS X come with sqlite3 by default. Windows users will need to download the executable. With that said, here is how you can enable sideloading the old-fashioned way.

Code:
[gdanko@dolemite ~]$ adb shell

$ su
# busybox cp /data/data/com.android.providers.settings/databases/settings.db /data/data/com.android.providers.settings/databases/settings.db.bak
# chown system.system /data/data/com.android.providers.settings/databases/settings.db
# ls -l /data/data/com.android.providers.settings/databases/settings.db*
# busybox cp /data/data/com.android.providers.settings/databases/settings.db /sdcard
# exit
$ exit

[gdanko@dolemite ~]$ adb pull /sdcard/settings.db
sqlite3 settings.db
sqlite> SELECT * FROM secure WHERE name="install_non_market_apps";
3|install_non_market_apps|0

sqlite> UPDATE secure SET value=1 WHERE name="install_non_market_apps";
sqlite> SELECT * FROM secure WHERE name="install_non_market_apps";
3|install_non_market_apps|1

sqlite> .quit

[gdanko@dolemite ~]$ adb push settings.db /sdcard/
[gdanko@dolemite ~]$ adb shell

$ su
# busybox cp /sdcard/settings.db /data/data/com.android.providers.settings/databases/settings.db
# chown system.system /data/data/com.android.providers.settings/databases/settings.db
# ls -l /data/data/com.android.providers.settings/databases/settings.db*
# exit
$ exit

[gdanko@dolemite ~]$ adb reboot
You should be all set.
The Following 7 Users Say Thank You to gdanko For This Useful Post: [ Click to Expand ]
 
lsxrx7
Old
#2  
Senior Member
Thanks Meter 42
Posts: 695
Join Date: Feb 2010
thank god for super one click
 
jug6ernaut
Old
#3  
jug6ernaut's Avatar
Retired Moderator / Recognized Developer
Thanks Meter 392
Posts: 2,365
Join Date: Jun 2006
Location: San Antonio, Tx
Script?

Sent from my MB860 using XDA Premium App

-Active-
- Galaxy Note 2 -
- Nexus 7 -

-Retired-
- Samsung Note - Motorola Wingray - Samsung Maguro - Motorola Olympus - HTC Passion - LG Monaco - HTC Raphael - HTC Kaiser - HTC Wizard -
- HP Touchpad - Motorola Xoom -

"You can lead a fool to knowledge, but you can not make them think."
 
gdanko
Old
#4  
Senior Member - OP
Thanks Meter 39
Posts: 363
Join Date: Oct 2010
Quote:
Originally Posted by lsxrx7 View Post
thank god for super one click
1) Great if you use Wind'oh!s which I refuse to do.
2) I like to know how things work.
 
aksma
Old
#5  
Member
Thanks Meter 0
Posts: 43
Join Date: Sep 2008
I think this work on only rooted devices. If that case we have one already which will root it and also side load apps.
 
darkamikaze
Old
#6  
darkamikaze's Avatar
Senior Member
Thanks Meter 156
Posts: 1,411
Join Date: Aug 2010
Location: Candyland
You got the phone gdanko?! Cool
I'll do it this way for kicks when I get my phone lol
"I once stuck my hand down my pants and I made lemonade out of it."
I think that's how that quote goes.
 
norcal einstein
Old
#7  
norcal einstein's Avatar
Senior Member
Thanks Meter 35
Posts: 297
Join Date: Jan 2009
Location: Bay Area
Quote:
Originally Posted by gdanko View Post
1) Great if you use Wind'oh!s which I refuse to do.
2) I like to know how things work.
Yes, it's always great to know how things work.

But it looks like SuperOneClick is not just confined to Windows.

It is compatible with:
Windows Vista
Windows 7
Ubuntu Hardy (8.04 LTS)
Ubuntu Jaunty (9.04)
Ubuntu Karmic (9.10)
Ubuntu Lucid (10.04 LTS)
Ubuntu Maverick (10.10)
Debian Lenny (5.0)
Debian Squeeze (testing)
Debian Sid (unstable)
Debian Experimental
Are you a developer? Or possibly related to phone development?
No?...then you don't need to make a thread letting the world know you are switching phones. We really don't care.

-----------
The Following User Says Thank You to norcal einstein For This Useful Post: [ Click to Expand ]
 
agentdr8
Old
#8  
agentdr8's Avatar
Senior Member
Thanks Meter 136
Posts: 724
Join Date: Mar 2007
Location: Cowtown, CA
SuperOneClick uses Mono on Linux platforms, so most any of the modern ones should work. I used it on my openSUSE box and it worked just fine for allowing non-market installs.
AT&T HTC One
ARHD'd

Asus Transformer Prime
AndroWook'd

"We want monies. You have monies. Give us monies.” -- Phandroid (poking fun at Gemalto lawsuit)
 
phro321
Old
#9  
phro321's Avatar
Senior Member
Thanks Meter 4
Posts: 104
Join Date: Apr 2007
Can anyone do this a little more nood friendly? And/or does this require root?
 
norcal einstein
Old
#10  
norcal einstein's Avatar
Senior Member
Thanks Meter 35
Posts: 297
Join Date: Jan 2009
Location: Bay Area
Quote:
Originally Posted by phro321 View Post
Can anyone do this a little more nood friendly? And/or does this require root?
Yeah, you basically want to get out of this thread and head here:
http://forum.xda-developers.com/showthread.php?t=960336

Follow briefmobile's tutorial. And yes, it requires root.
Are you a developer? Or possibly related to phone development?
No?...then you don't need to make a thread letting the world know you are switching phones. We really don't care.

-----------

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

report this ad
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...