Did you restart the app (force stop) after lua changes? The hooks are only loaded at app start. If you see inconsistent behavior like the one you are describing, that may be a sign that Xposed is not working as it should.Thank you.
I did it but it does not make any changes. I also read original "PackageManager.getInstalledApplication.lua" . but there is no "getinstalledApplications" value there and works perfect .
it is strange for me how this method get hooked. after importing my custom script , if I delete "PackageManager.getinstalledApplicaitons" part from Manage hook definitions menu and I mean restore it to default version it is worked !!!