@gaglax
"su" asks for a password before executing a command (or shell) as another user. If "root" doesn't have a password, I believe it prints the "Permissions denied" error you're getting.
To run commands as root with "adb", you should rather start with running:
This will restart the ADB client process in the background (sort of bridge between the "adb" command and the phone) with root privileges. For that, your phone must be running a build with root access, like a development build (build type full_maguro-userdebug).
Then, to run commands more conveniently than invoking "adb" every time:
@sitajony
OK, thanks for the clarifications.
I haven't tried the chopped up + reassembled
nv_data.bin yet. I'm all new to Android and even newer to the SDK. Really good stuff, high quality documentation, but I'm going step by step before attempting anything I don't understand fully.
I've tried loading a factory image, thinking that since it replaces the radio flash partition, it would load a clean version of whatever it is the carrier tampered with. Didn't work, still asks for a network unlock code after entering the PIN code.
Next, I'll try your
nv_data.bin manipulation, but first I'm building a -userdebug to gain root access.