I have gone through SampleSyncAdapter sample project provided by Android doc, but as I understand, there we need to add an account of custom Account se
You are not allowed to do this for security reasons.
Imagine accounts being configured with settings that are unknown to the users - the users might not even know the accounts are being created at all! This would be a prime target point for malware, spam etc since no captcha, user permission or any other authentication is involved.
So this is a security measure....and a good one at that.