INSTALL_NON_MARKET_APPS

by nknize » Wed, 08 Oct 2008 11:18:27 GMT


Sponsored Links
 Understanding that the 1.0r1 has a bug on the system settings panel,
can we programmatically modify the INSTALL_NON_MARKET_APPS row in the
settings.system database to allow the emulator to install third party
apps?

I'm thinking along the lines of the following:

Uri settingsUri = android.provider.Settings.System.CONTENT_URI;

ContentValues vals = new ContentValues(2);
        vals.put(android.provider.Settings.System.NAME,
                        
android.provider.Settings.System.INSTALL_NON_MARKET_APPS);
        vals.put(android.provider.Settings.System.VALUE, 1);

getContentResolver().update(sysSettingsUri, vals, null, null);

The above completely hoses the settings database a sdk reinstall.

while using:

getContentResolver().update(
        sysSettingsUri, vals, "name = " +
        android.provider.Settings.System.INSTALL_NON_MARKET_APPS,
        null);

Throws a "No such column install_non_market_apps" exception.

It looks like manually changing this row in SQLite3 is also out of the
question and no longer supported.

Any insight?

Thx,

Nick



--~--~---------~--~----~------------~-------~--~----~



INSTALL_NON_MARKET_APPS

by Al Sutton » Wed, 08 Oct 2008 14:59:47 GMT


 I've only seen it mentioned as a settings option. I get the feeling that 
it's something that should only be modified by the user and not 
something that apps can change programatically because it could have 
significant implications for security (i.e. the user could "suddenly" 
discover they're not getting the expected warnings when installing 
non-marketplace apps).

Al.
--
 http://andappstore.com/ 





-- 
Al Sutton

W: www.alsutton.com
B: alsutton.wordpress.com
T: twitter.com/alsutton


--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


INSTALL_NON_MARKET_APPS

by nknize » Wed, 08 Oct 2008 20:23:24 GMT


 That's true.  Except the app must first be granted the WRITE_SETTINGS
permission during user install.  So the user is aware (as they
accepted it) that the app has permission to alter the Settings.System
table.

Nick




--~--~---------~--~----~------------~-------~--~----~



INSTALL_NON_MARKET_APPS

by Al Sutton » Wed, 08 Oct 2008 20:31:34 GMT


 I get the feeling that there's an extra level of protection for the more 
sensitive options.

Why not prompt the user to change the setting if you detect it's 
incorrectly set?

Al.







-- 
Al Sutton

W: www.alsutton.com
B: alsutton.wordpress.com
T: twitter.com/alsutton


--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Multipart Messages - Is there an example how to get them work now. (Uploading to a web API)

On Mon, Aug 18, 2008 at 1:06 PM, code_android_festival_way <




That's surprising. It's common knowledge that multi part mime is necessary
in mobile, due to the performance gains and user experience in getting
complete pages of info. Guess you will need to parse the boundaries
yourself.

Shane

--~--~---------~--~----~------------~-------~--~----~

2. Is it possible to set different heights for every listitems in a listview?

I wanna to have a list view in which height of list items is not same.
Is there a way to do it?
I created a list view, wanna to get every list items and change their
heights, but can't list items from list view. not mention to change
their heights.
Is there anybody could help on this?

--~--~---------~--~----~------------~-------~--~----~

3. is there any one using XML to Java binding in Android?

4. Uploading a file to Google Groups...

5. Is there a way to find out a list of activities that are installed on android

6. Themes for Android?

7. to play audio when a button is clicked