The problem is that you need permission not only for the file, but also for its parent directories.
(This permission should not be 777!)
Instead of trying to change the resolution, what you probably want to do is get adb to work as root if it is supported (that is, if you have an engineering assembly and not the after-sales rooting of a secure device) or use your root access (or the application itself or the stock launch command, if you have debug apk) to copy the file of interest somewhere accessible, and then adb pull out a copy.
Chris stratton
source share