Hecke algebra isomorphisms and adelic points on algebraic groups