What is in a backup.ab file?
.ab backups only apps data and their apks as well as system settings.

What is contained:


apks and their data
user vocabulary
wallpaper
launcher settings


What is not contained:


contacts
sms
ringtones and custom sounds
activated input layouts


More detailed is here.