Revert "Emulator allows google apps to have access to locations by default"
The SdkSetup apk is included by AOSP images and it should not refers to google apks. We need to figure out different way to fix the original GTS failure. BUG: 62292257 This reverts commit fb743d8db6e755e98251e6509a09aed6d51f76d4. (cherry picked from commit 03f4e91d52fbd994e0c11ddf537ad767e8c14bde) Change-Id: I87c4dcefc6b51890d4edcd2749eee2fbdb7fc8a0
This commit is contained in:
@@ -10,7 +10,4 @@ LOCAL_CERTIFICATE := platform
|
||||
|
||||
LOCAL_PROGUARD_ENABLED := disabled
|
||||
|
||||
LOCAL_STATIC_JAVA_LIBRARIES := \
|
||||
gsf-client
|
||||
|
||||
include $(BUILD_PACKAGE)
|
||||
|
||||
@@ -18,7 +18,6 @@
|
||||
package="com.android.sdksetup">
|
||||
|
||||
<!-- For miscellaneous settings -->
|
||||
<uses-permission android:name="com.google.android.providers.settings.permission.WRITE_GSETTINGS" />
|
||||
<uses-permission android:name="android.permission.WRITE_SETTINGS" />
|
||||
<uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS" />
|
||||
|
||||
|
||||
@@ -25,9 +25,7 @@ import android.location.LocationManager;
|
||||
import android.os.Bundle;
|
||||
import android.os.RemoteException;
|
||||
import android.os.ServiceManager;
|
||||
import android.os.SystemProperties;
|
||||
import android.provider.Settings;
|
||||
import com.google.android.gsf.UseLocationForServices;
|
||||
|
||||
/**
|
||||
* Entry point for SDK SetupWizard.
|
||||
@@ -48,10 +46,6 @@ public class DefaultActivity extends Activity {
|
||||
// Not needed since this SDK will contain the Settings app.
|
||||
Settings.Secure.putString(getContentResolver(), Settings.Secure.LOCATION_PROVIDERS_ALLOWED,
|
||||
LocationManager.GPS_PROVIDER);
|
||||
// Allow google apps to have access to (emulated) location services in emulator
|
||||
if (SystemProperties.getBoolean("ro.kernel.qemu", false)) {
|
||||
UseLocationForServices.forceSetUseLocationForServices(this, true);
|
||||
}
|
||||
|
||||
// enable install from non market
|
||||
Settings.Global.putInt(getContentResolver(), Settings.Global.INSTALL_NON_MARKET_APPS, 1);
|
||||
|
||||
Reference in New Issue
Block a user