It has been shown that the bosonic symmetry-protected-trivial (SPT) phases with pure gauge anomalous boundary can all be realized via nonlinear σ models (NLσ Ms) of the symmetry group G with various topological terms. Those SPT phases (called the pure SPT phases) can be classified by group cohomology H d (G,R/Z). But there are also SPT phases with mixed gauge-gravity anomalous boundary (which will be called the mixed SPT phases). Some of the mixed SPT states were also referred as the beyond-group-cohomology SPT states. In this paper, we show that those beyond-group-cohomology SPT states are actually within another type of group cohomology classification. More precisely, we show that both the pure and the mixed SPT phases can be realized by G × SO(∞) NLσ Ms with various topological terms. Through the group cohomology, we find that the set of our constructed SPT phases in d-dimensional space-time are described by (charge conservation and time-reversal symmetry), we find that the mixed SPT phases beyond,R/Z] are described by Z 2 in 3 + 1D, Z in 4 + 1D, 3Z 2 in 5 + 1D, and 4Z 2 in 6 + 1D. Our construction also gives us the topological invariants that fully characterize the corresponding SPT and iTO phases. Through several examples, we show how the universal physical properties of SPT phases can be obtained from those topological invariants.