Context. The study of young Sun-like stars is of fundamental importance to understand the magnetic activity and rotational evolution of the Sun. Space-borne photometry by the Kepler telescope provides unprecedented datasets to investigate these phenomena in Sun-like stars. Aims. We present a new analysis of the entire Kepler photometric time series of the moderately young Sun-like star Kepler-17 that is accompanied by a transiting hot Jupiter. Methods. We applied a maximum-entropy spot model to the long-cadence out-of-transit photometry of the target to derive maps of the starspot filling factor versus the longitude and the time. These maps are compared to the spots occulted during transits to validate our reconstruction and derive information on the latitudes of the starspots. Results. We find two main active longitudes on the photosphere of Kepler-17, one of which has a lifetime of at least ∼ 1400 days although with a varying level of activity. The latitudinal differential rotation is of solar type, that is, with the equator rotating faster than the poles. We estimate a minimum relative amplitude ∆Ω/Ω between ∼ 0.08 ± 0.05 and 0.14 ± 0.05, our determination being affected by the finite lifetime of individual starspots and depending on the adopted spot model parameters. We find marginal evidence of a short-term intermittent activity cycle of ∼ 48 days and an indication of a longer cycle of 400 − 600 days characterized by an equatorward migration of the mean latitude of the spots as in the Sun. The rotation of Kepler-17 is likely to be significantly affected by the tides raised by its massive close-by planet. Conclusions. We confirm the reliability of maximum-entropy spot models to map starspots in young active stars and characterize the activity and differential rotation of this young Sun-like planetary host.A&A proofs: manuscript no. ms33894 2.47 ± 0.10 Jupiter masses, a radius of 1.33 ± 0.04 Jupiter radii, and an orbital period P orb = 1.48571 days .Bonomo & Lanza (2012) analysed ∼ 500 days of public Kepler data available at that time; now the availability of the latest Kepler data release with a high-precision photometric time series extending for ∼ 1500 days calls for a new modelling of this star to study its activity and rotation using starspots as tracers. Moreover, we compare the longitudes of the spots mapped from the out-of-transit photometry with those of the spots occulted during transits, providing an independent confirmation of our results and giving constraints on the spot latitudes that cannot be obtained with alternative methods in the case of Kepler-17. In such a way, we investigate the differential rotation of our target, the phenomenology of its active longitudes, and its activity cycles.The presence of a close-by giant planet affects the properties of Kepler-17, notably its rotation that is used to estimate its age by applying the gyrochronology technique (Barnes 2007(Barnes , 2010. We look for features associated with star-planet interaction in the photometric time series and investigate the...