This is unlikely to work well. Reverb time measurements are quite sensitive to dynamic range and noise floor.
A far better method is reverse integration of the impulse response. See https://www.ee.columbia.edu/~dpwe/papers/Schro65-reverb.pdf for Manfred Schroeder's original paper on how this works.
You need to make sure you have good signal to noise ratio, which is hard in normal rooms. Measuring the room impulse response with a log sweep or pseudo-random noise can greatly reduce noise through averaging and/or time gating. The reverse integration results in much smoother decay curve than any individual decay measurement.
E(t) = 20 log10(x(t)/Max(x(t))).
Don't normalize to $\max(x(t))$ That's typically dominated by the direct sound and/or early reflection and will tilt the decay curve. It's best to find a straight part in the decay curve that's sufficiently away from the direct sound and the noise floor.
using the microphone of my mobile.
Cell phone mics are NOT great for any serious measurement. At they very least you have to make sure that any type of OS based microphone preprocessing (like automatic gain control, beam forming, etc.) is disabled.
As part of my thesis
I don't know what your thesis is about, but it would be good to start with the requirements. How good and robust does this need to be to support your research goals and amount of error can you tolerate?