Your procedure gives:
$$ a_{xz} = \sqrt{a_x^2 + a_z^2} $$
then:
$$ a_{total} = \sqrt{a_y^2 + a_{xz}^2} $$
but if you substitute for $a_{xz}$ in the second equation you get:
$$ a_{total} = \sqrt{a_y^2 + (\sqrt{a_x^2 + a_z^2})^2} = \sqrt{a_y^2 + a_x^2 + a_z^2}$$
so you don't need to split the calculation into two steps.
Your accelerometer may already exclude the acceleration due to gravity. If it doesn't then yes you need to use the inclination to work out the three components of gravity then subtract them from $a_x$, $a_y$ and $a_z$. It's hard to say exactly how to do this without knowing how your phone reports it's inclination.
response to comment:
Suppose you have your device held flat so $a_z$ = -1. Now move the device downwards at and angle of $\theta$ as shown below:

Assuming it's moving in the $xz$ plane the value of $a_z$ will be decreased a bit and the value of $a_x$ will increase from zero. Suppose you're applying an acceleration to the phone of $2g\space cos(\theta)$ - you'll see why i've chosen this value in a moment. Now the values of $a_x$ and $a_z$ are:
$$ a_x = 2g\space cos\theta \space sin\theta $$
$$ a_z = g - 2g \space cos^2 \theta $$
You now calculate $a_{total}$ by just squaring and adding as we discussed above to get:
$$a_{total}^2 = 4g^2 \space sin^2\theta \space cos^2\theta + g^2 + 4g^2 \space cos^4\theta - 4g^2 \space cos^2\theta $$
and a bit of rearrangement gives:
$$a_{total}^2 = g^2 + 4g^2 \space cos^2\theta \left( sin^2\theta + cos^2\theta - 1\right) $$
and because $sin^2\theta + cos^2\theta = 1$ the quantity in the brackets is zero so you end up with:
$$a_{total}^2 = g^2 $$
that is:
$$a_{total} = g $$
which is the same as when the phone is stationary. So it's possible to be accelerating the phone and still have the total acceleration come out as $g$ ($g$ = -1 in the phone's units). That's why just subtracting one isn't a reliable way to tell if the phone is accelerating.