This is the schematic of a Vietnamese (fake?) Samsung phone charger, reverse engineered. In the simulations, the mains 220 V ac source and the rectifier stage (here disconnected) are replaced by a dc voltage source to circumvent limitations of the simulator (it cannot find solution otherwise). The transistors are C945 and 13001. The combination of the diode, the controlled current source and a bipolar transistor models an optоcoupler (NEC 2561A).