Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fb41575b authored by Chris Soyars's avatar Chris Soyars Committed by Steve Kondik
Browse files

Add preference to enable Apps2SD.

parent d65b269b
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -2008,6 +2008,11 @@ public final class Settings {
         */
        public static final String INSTALL_NON_MARKET_APPS = "install_non_market_apps";

        /**
         * @hide
         */
        public static final String APPS2SD = "apps2sd";

        /**
         * Comma-separated list of location providers that activities may access.
         */
+1 −0
Original line number Diff line number Diff line
@@ -32,6 +32,7 @@
    
    <bool name="def_bluetooth_on">false</bool>
    <bool name="def_install_non_market_apps">false</bool>
    <bool name="def_apps2sd">false</bool>
    <!-- Comma-separated list of location providers. 
         Network location is off by default because it requires
         user opt-in via Setup Wizard or Settings.  
+4 −0
Original line number Diff line number Diff line
@@ -246,6 +246,7 @@ class DatabaseHelper extends SQLiteOpenHelper {
                    Settings.Secure.DEVICE_PROVISIONED,
                    Settings.Secure.HTTP_PROXY,
                    Settings.Secure.INSTALL_NON_MARKET_APPS,
                    Settings.Secure.APPS2SD,
                    Settings.Secure.LOCATION_PROVIDERS_ALLOWED,
                    Settings.Secure.LOGGING_ID,
                    Settings.Secure.NETWORK_PREFERENCE,
@@ -682,6 +683,9 @@ class DatabaseHelper extends SQLiteOpenHelper {
        loadBooleanSetting(stmt, Settings.Secure.INSTALL_NON_MARKET_APPS,
                R.bool.def_install_non_market_apps);

        loadBooleanSetting(stmt, Settings.Secure.APPS2SD,
                R.bool.def_apps2sd);

        loadStringSetting(stmt, Settings.Secure.LOCATION_PROVIDERS_ALLOWED,
                R.string.def_location_providers_allowed);