Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,730,261 Members 51,207 Now Online
XDA Developers Android and Mobile Development Forum

Workaround for Fixing 'Unsupported Sources'

Tip us?
 
fluffyarmada
Old
(Last edited by fluffyarmada; 30th June 2010 at 10:47 AM.)
#1  
fluffyarmada's Avatar
Member - OP
Thanks Meter 0
Posts: 33
Join Date: Jun 2010
Location: St. Louis, MO
Default Workaround for Fixing 'Unsupported Sources'

http://forum.xda-developers.com/arch.../t-644769.html << I got my idea from there.

If you update the
Code:
/data/data/com.android.providers.settings/databases/settings.db
file so that "install_non_market_apps" = 1 instead of 0, you will be able to install non-market apps off of your sdcard or wherever.

This works for me at least, but you'll have to root first.

I ended up editing the file with the SQLite Manager firefox add-on.

But, since that took me a really long time, I'll just upload the edited settings.db for you. (don't forget to make the extention .db instead of .db.txt)

Now, as far as I know, this won't mess anything up... BUT, I'd feel a lot better if someone who knows more about Android would provide some feedback before anyone else tries this. [It works for me, but I'm not sure if any other user-specific settings are kept in that file that I don't know about!]

But, at least for me, I no longer need to use adb to install apks that aren't from the Android Market.

I hope this is useful to someone...

EDIT::

You will lose your settings if you use the attached settings.db.txt file. Your best bet is to pull the file off your phone, edit it with something that understands sqlite3's database format, and then push it back. It's just better that way.

Further EDIT:: As someone pointed out later in this thread, this file unbeknownst to me when I shared it, actually has a unique ID by which phones can be identified on the android market, etc. While this isn't a huge deal, it can lead to some rather strange behavior... my phone for example has started attempting to download apps from the android market all by itself.

So--- if you want to side-load apps, change the variable in the database like I explained above.
 
cropythy
Old
#2  
Senior Member
Thanks Meter 7
Posts: 268
Join Date: Dec 2009
Sorry, completely new to android but where would you put this file so it would allow side-loading?
 
fluffyarmada
Old
#3  
fluffyarmada's Avatar
Member - OP
Thanks Meter 0
Posts: 33
Join Date: Jun 2010
Location: St. Louis, MO
You'd have to replace
Code:
/data/data/com.android.providers.settings/databases/settings.db
with it. You'll have to have your phone rooted first though. Then you'll have to transfer the file to your phone with adb, and you'll then copy it over the existing settings.db file.


Honestly, it might not even be worth the trouble now that attn1 is just doing the whole ROMs.

But make sure you take off the .txt.
 
attn1
Old
#4  
attn1's Avatar
Recognized Developer
Thanks Meter 1795
Posts: 2,543
Join Date: Mar 2010
This works. Thanks.
Join the #burstroot IRC channel
 
justince
Old
#5  
Junior Member
Thanks Meter 0
Posts: 19
Join Date: May 2009
For some reason, i'm getting a permissons error regardless that i successfuly rooted my phone...o_o
 
attn1
Old
#6  
attn1's Avatar
Recognized Developer
Thanks Meter 1795
Posts: 2,543
Join Date: Mar 2010
Quote:
Originally Posted by justince View Post
For some reason, i'm getting a permissons error regardless that i successfuly rooted my phone...o_o
did you boot the phone and do adb remount with debugging enabled?
Join the #burstroot IRC channel
 
justince
Old
(Last edited by justince; 24th June 2010 at 03:28 PM.)
#7  
Junior Member
Thanks Meter 0
Posts: 19
Join Date: May 2009
USB debugging? Yeah.
What i did was i used the other method to sideload root explorer, took the settings.db.txt, deleted the .txt part and replaced it via root explorer, and now i can sideload whenever...however, when i try to delete any of the att bloatware, its read only o_o fawking att
Can anyone confirm any other way to remove bloatware without flashing the rom?
 
attn1
Old
#8  
attn1's Avatar
Recognized Developer
Thanks Meter 1795
Posts: 2,543
Join Date: Mar 2010
Quote:
Originally Posted by justince View Post
USB debugging? Yeah.
What i did was i used the other method to sideload root explorer, took the settings.db.txt, deleted the .txt part and replaced it via root explorer, and now i can sideload whenever...however, when i try to delete any of the att bloatware, its read only o_o fawking att
Can anyone confirm any other way to remove bloatware without flashing the rom?
That's why made the ROM without all that -er- stuff.
Join the #burstroot IRC channel
 
panda703
Old
#9  
Senior Member
Thanks Meter 8
Posts: 171
Join Date: Jun 2010
Quote:
Originally Posted by attn1 View Post
That's why made the ROM without all that -er- stuff.
Attn's Rom is ****ing great. many thanks btw
 
judicious
Old
#10  
judicious's Avatar
Senior Member
Thanks Meter 4
Posts: 436
Join Date: Nov 2008
Location: Bay Area, CA
Default a little help please

a bit confused..

how do i type in this code "/data/data/com.android.providers.settings/databases/settings.db"?

adb /data/data/com.android.providers.settings/databases/settings.db

or something else because that doesnt work.
AT&T Samsung Galaxy SIV
Status: Rooted, Unlocked

Rom: Stock

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


XDA PORTAL POSTS

Implement Split View in Your LG G2 KitKat Rom with Automated Installer

Some of you may have remembered a story on the Portal a few weeks back … more

Cast Your Device Screen the Way it Was Meant to be with Second Screen

Not too long ago here on the XDA Portal, we covered how Google had made … more

Samsung Gear Live Unboxed the XDA Way – XDA Developer TV

XDA Developer TV Producer AdamOutleris known for his XDA Unboxingseries where … more

Make Your Own DIY Capacitive Stylus

The XDA Portal is a place where we like to talkabout things that are interesting, fun, and sometimes … more