There are great app recommendations here. Perhaps not the habit tracking type, but I love FitoTrack for tracking my runs. No social, no BS, just pure local metrics. Not perfect but entirely usable and serves its purpose.
https://f-droid.org/packages/de.tadris.fitness
Edit: what I love most about all these apps is that they are so lightweight. I have so many apps today which are well above 100MB, sometimes around 500MB and I'm not talking games.
This is so outrageous to me. All of these open source apps by comparison are 10MB or less. Absolutely beautiful.