In the real world this is called Blame shifting. It is where you do not take acount of your own actions. and you put the blame on someone else.
If he knew who God was he would not have tried to Hide, because he would know he could not Hide from God.
The fact he even tried to Hide proves he forgot Who God was. Or what God could do
it may look like blame shifting but it's not.
Because when Adam told God the truth he was already in fallen state, at this stage and he had already died.
Eve had been taken from Adams rib, Adam was responsible for eve.
Scripture indicates that Adam was there with eve, as she was being tempted, so they where both tempted together, they both got sucked in by the serpent, who had probably also ate of the tree.
As they both got sucked in they both believed the serpent, and both became bewildered no doubt.
They both became believing of the serpent,
Eve ate first then Passed some to Adam.
They both ate the fruit in innocence.
Because they had corrected the serpent at first, and said no we can't as God said we can't eat it.
So when they where told, that was not true, they never ate it out of disobedience, they ate it out of innocence, believing it was good to eat and that it would make them live not die.
The evil that serpent had already ate now wanted more life dead, by telling Adam and eve, life can live in death and tricked them.
God would have been able to tell there intension of there sin, whether they ate in disobedience and denial or innocence.
They ate in innocence, as the snake was punished first.
Because they ate in on innocence, also makes all mankind worthy of saving.
When God asked Adam what he had done the first thing he remembered was was eve passing him some fruit.
Because God asked them have you ate from the tree first.
Adam never said to God I ate from the tree before he was asked.
God only knew they had ate from the tree because they where ashamed of there nakedness.
It wasn't until God asked them if they had ate from the tree that they told them.
At this stage the pair of them had died and neither one of them knew what was going on.