Skip to content

Commit

Permalink
Remove connection encryption.
Browse files Browse the repository at this point in the history
  • Loading branch information
milesking committed Oct 22, 2019
1 parent dfde284 commit e9645a5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@
import android.os.Handler;
import android.os.Message;
import android.os.SystemClock;
import android.os.StrictMode;
import android.provider.Settings;
import android.text.TextUtils;
import android.util.Log;
Expand Down Expand Up @@ -170,6 +171,11 @@ protected void onCreate(Bundle savedInstanceState) {
getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
setContentView(R.layout.activity_main);
// disable android.os.NetworkOnMainThreadException
if (android.os.Build.VERSION.SDK_INT > 9) {
StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();
StrictMode.setThreadPolicy(policy);
}
mRootView = (ViewGroup) findViewById(R.id.main_root_view);
PreferenceUtil.getInstance().init(this);
mCarLifeFragmentManager = new CarLifeFragmentManager(this);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ private int readBdcf() {
propertyMap.put("CONNECT_TYPE_ANDROID", "1");
propertyMap.put("CONNECT_TYPE_IPHONE", "1");
propertyMap.put("AUDIO_TRANSMISSION_MODE", "0");
propertyMap.put("CONTENT_ENCRYPTION", "true");
propertyMap.put("CONTENT_ENCRYPTION", "false");
propertyMap.put("ENGINE_TYPE", "0");
} catch (Exception e) {
LogUtil.e(TAG, "[ERROR]read file exception");
Expand Down

0 comments on commit e9645a5

Please sign in to comment.