There are 2 ways to get step count on iPhone. The first is from actual walking, then iPhone detects the steps. The second one is that a user manually add step data.
Is it possible to find out on HealthKit that the steps come from iPhone but not from a user input?