If you want to transfer into Berkeley – or any other UC or CSU – then your best bet is to do well at a California Community College. The California public higher education system is specifically designed to provide CCC alumni with a path to a 4-year degree at a UC or CSU campus. So if you go to a CCC, you effectively get a second chance at UC admissions.
For Fall 2016, Berkeley accepted 3,867 transfer students. Of those, 3,582, or 92.6%, came from CCCs.
Of course, transfer admission to Berkeley is still very competitive. Those 3,582 CCC transfer admits were selected from a CCC transfer applicant pool of 15,641, so the CCC transfer acceptance rate was only 23%. UCLA is also quite competitive, with a CCC transfer acceptance rate of only 29%. But all of the other UC campuses accepted CCC transfers at rates above 50%.
https://www.universityofcalifornia.edu/infocenter/transfer-admissions-summary