I am new to using ADB and need a little help. Im trying to figure out the pushing and pulling of files. I connect my device and and turn on usb debugging and then reboot to recovery. I do the adb devices command and it shows my phones serial number connected. So just to practice I attempted to pull and then push my framework-res.apk file from my phone and back to my phone. Thought I was doing everything right but doesnt seem that way. After I pushed the file back I rebooted the phone and when the phone comes back up I get a crazy amount of errors/force closes for a ton of things. I restored my back up and was hoping maybe someone can let me know where I went wrong. I appreciate any help. Thank you.
First off I rebooted to recovery
C:\androidsdk\tools>adb reboot recovery <--- This command worked
Then once in recovery I tried the remount command
C:\androidsdk\tools>adb remount <--- This did not work I got the below error
remount failed: Unknown error: 0
I then found another way to mount the phone and ran it it seemed to work ok.
C:\androidsdk\tools>adb shell mount /system
C:\androidsdk\tools>adb shell ls /system
app build.prop fonts lib media usr
bin etc framework lost+found tts xbin
C:\androidsdk\tools>adb shell ls /system/framework
C:\androidsdk\tools>adb pull /system/framework/framework-res.apk
567 KB/s (0 bytes in 5224198.008s)
C:\androidsdk\tools>adb push framework-res.apk /system/framework/framework-res.apk
354 KB/s (0 bytes in 5224198.014s)
Im seeing 0 bytes in how ever many seconds so im sure im doing something wrong. But when I did the pull I saw the framework-res.apk file show up in my tools folder on my pc. I was able to open it and everything. I didnt make any changes to it though cause I was just trying this to see how it worked. So after i opened it I just closed it out and then proceeded to do the push. Then since I was in recovery I just selected reboot phone now. Phone came back up with a ton of errors and force closes. If anyone has had this problem or sees anything Im doing wrong. I would really appreciate you pointing me in the right direction as I really like the idea of adb and being able to pull edit and push files. Thank you in advance for all your help.