Nah I think they were mostly just curious. Lone white girl repairing spotlight wiring on 690 Enduro at 2.30am on a dock in Larantuka... seat off, tools out. The police chief showed up with his homies, toting semi automatic weapons, asked some fierce questions.... and then asked for a selfie. Still, when you're female and on your own in the middle of the night, you don't want too much attention from 5 armed men who are used to getting their own way. So I said thanks and legged it.
My experience of tipping in Indonesia seems to have been a little different. In nearly a year in Indonesia, I never paid a "tip" or a bribe to any police officer or official, and none ever insinuated that I should. The sole exception were the port police (I'm not sure if they're actually real police even, they have a different uniform etc). Two of them asked me if I had "permission" for my bike and I just smiled and said yes of course I do, all my paper's legit. ? And off I went. But in general, Indonesian police have turned out to be friends and generous hosts - people who bought me lunch, went dirtbiking with me, invited me for karaoke, offered me free accommodation. They'd have been offended if I'd tried to give them money, as I think would the kepala desa of the various villages where I spent time. To be honest, I think people mostly felt sorry for me because I was alone and didn't have a husband to look after me. Of course it's different in the more touristy areas - especially Bali, where everyone's out for a commission - but I stayed away from those areas as much as possible.