I have build configuration called playstore, that has a conditional symbol GOOGLE_PLAYSTORE.
This is in my manifest:
B4X:
#if Not(GOOGLE_PLAYSTORE) then
AddPermission(android.permission.PROCESS_OUTGOING_CALLS)
AddPermission(android.permission.READ_SMS)
AddPermission(android.permission.RECEIVE_SMS)
#end if