Source:
<code>protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); <START> System.out.println("VERSION: "+VersionUtils.get_software_version()); <END> setContentView(R.layout.activity_main); checkResources(); mTitle = getTitle(); mMenuItemsTitles = new String[]{getString(R.string.run_tests), getString(R.string.past_tests), getString(R.string.settings), getString(R.string.about)}; mDrawerLayout = (DrawerLayout) findViewById(R.id.drawer_layout); mDrawerList = (ListView) findViewById(R.id.left_drawer); mDrawerLayout.setDrawerShadow(R.drawable.drawer_shadow, GravityCompat.START); ArrayList<String> stringList = new ArrayList<String>(Arrays.asList(mMenuItemsTitles)); mleftMenuListAdapter = new LeftMenuListAdapter(this, R.layout.row_left_menu, stringList); mDrawerList.setAdapter(mleftMenuListAdapter); mDrawerList.setOnItemClickListener(new DrawerItemClickListener()); ImageView _imgView = new ImageView(this); _imgView.setEnabled(false); _imgView.setImageResource(R.drawable.ooni_logo); mDrawerList.addFooterView(_imgView); getSupportActionBar().setDisplayHomeAsUpEnabled(true); getSupportActionBar().setDisplayShowHomeEnabled(true); getSupportActionBar().setHomeButtonEnabled(true); updateActionBar(); mDrawerToggle = new ActionBarDrawerToggle( this, mDrawerLayout, R.string.drawer_open, R.string.drawer_close ) { public void onDrawerClosed(View view) { mleftMenuListAdapter.notifyDataSetChanged(); invalidateOptionsMenu(); } public void onDrawerOpened(View drawerView) { mleftMenuListAdapter.notifyDataSetChanged(); invalidateOptionsMenu(); } public void onDrawerStateChanged(int newState) { } }; mDrawerLayout.setDrawerListener(mDrawerToggle); if (savedInstanceState == null) { selectItem(0); } SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this); if (!preferences.getBoolean("cleanup_unused_files", false)) { TestStorage.removeUnusedFiles(this); PreferenceManager.getDefaultSharedPreferences(this).edit().putBoolean("cleanup_unused_files", true).apply(); } checkInformedConsent(); }</code><technical_language>I this is a debug line left in here</technical_language>

Target:
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); checkResources(); mTitle = getTitle(); mMenuItemsTitles = new String[]{getString(R.string.run_tests), getString(R.string.past_tests), getString(R.string.settings), getString(R.string.about)}; mDrawerLayout = (DrawerLayout) findViewById(R.id.drawer_layout); mDrawerList = (ListView) findViewById(R.id.left_drawer); mDrawerLayout.setDrawerShadow(R.drawable.drawer_shadow, GravityCompat.START); ArrayList<String> stringList = new ArrayList<String>(Arrays.asList(mMenuItemsTitles)); mleftMenuListAdapter = new LeftMenuListAdapter(this, R.layout.row_left_menu, stringList); mDrawerList.setAdapter(mleftMenuListAdapter); mDrawerList.setOnItemClickListener(new DrawerItemClickListener()); ImageView _imgView = new ImageView(this); _imgView.setEnabled(false); _imgView.setImageResource(R.drawable.ooni_logo); mDrawerList.addFooterView(_imgView); getSupportActionBar().setDisplayHomeAsUpEnabled(true); getSupportActionBar().setDisplayShowHomeEnabled(true); getSupportActionBar().setHomeButtonEnabled(true); updateActionBar(); mDrawerToggle = new ActionBarDrawerToggle( this, mDrawerLayout, R.string.drawer_open, R.string.drawer_close ) { public void onDrawerClosed(View view) { mleftMenuListAdapter.notifyDataSetChanged(); invalidateOptionsMenu(); } public void onDrawerOpened(View drawerView) { mleftMenuListAdapter.notifyDataSetChanged(); invalidateOptionsMenu(); } public void onDrawerStateChanged(int newState) { } }; mDrawerLayout.setDrawerListener(mDrawerToggle); if (savedInstanceState == null) { selectItem(0); } SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this); if (!preferences.getBoolean("cleanup_unused_files", false)) { TestStorage.removeUnusedFiles(this); PreferenceManager.getDefaultSharedPreferences(this).edit().putBoolean("cleanup_unused_files", true).apply(); } checkInformedConsent(); }