[Q] need help with ADB shell - Atrix 4G General

So I've got an Atrix 4g. I was in root explorer and accidentally moved instead of copied PortalApp.apk from /system/app/ to the root of my internal storage.
I wish I could just use root explorer to copy it back but i have this constant error on the screen telling me that portalapp.apk has force closed. I'm really awful with ADB shell and need help with how to copy the portalapp.apk file BACK to system/app/ where it should be. Thanks!

Nevermind. Got it.

Related

[Q] i want swype back please!!!!

Just did everything to my g2 at once today, and lost one of my fav features; swype...i have cyanogenmod-6.1.0-RC3-vision... i went and downloaded the stock rom and pulled the apk file from it and when i installed it, it kept force closing. i even tried pushing it via abd but kept getting errors.. can someone please help
You need to grab libSwypeCore.so from /system/lib and push it to same directory on new ROM.
Sent from my T-Mobile G2 using XDA App
Just download the apk provided by oldsk00lz to recover swype from your clockwork backup. It worked for me.
http://forum.xda-developers.com/showthread.php?t=841603
what are the commands? i have a stock rom downloaded and have the swpe file s sitting on my desktop ready to go..i have the swype.apk and libswypecore.so...i tried transferring them to the app file on the root of my phone and system/lib via astro manager but it wont let me
what page is it on?
Tman0604 said:
what are the commands? i have a stock rom downloaded and have the swpe file s sitting on my desktop ready to go..i have the swype.apk and libswypecore.so...i tried transferring them to the app file on the root of my phone and system/lib via astro manager but it wont let me
Click to expand...
Click to collapse
the first line of code changes your system to READ/WRITE I use root explorer to change it back to READ-ONLY or just reboot.
Code:
adb shell mount -o remount,rw /dev/block/mmcblk0p25 /system
adb push libSwypeCore.so /system/lib
adb install Swype.apk
for the code I wrote to work for you the files need to be in the same folder that the adb.exe runs out of. this is usually located in the tools folder in the android SDK otherwise you have to type the full path ie
this is on windows 7 on my computer so file path will be different for you
Code:
adb push C:\users\etnie\downloads\G2\libSwypeCore.so /system/lib
hope that helps

ADB vs. Root Explorer vs. Terminal on device

With certain files, SteelH describes using Root Explorer as "like trying to swap the engine of a car while it's running"
I experienced this as I tried to copy back a modified services.jar file with Root Explorer. I ended up using ADB and it worked fine.
Question 1: I did this while the phone was running/OS loaded, but ADB copy method worked while Root Explorer didn't. Why? Does ADB have higher authority in some way?
Question 2: How about using a terminal window on the phone to copy/replace files (if a computer is not handy)? Does it yield the same function/result as Root Explorer or ADB?
Question 3: If I simply want to back up the file, say services.jar or framework.apk, to be copied to SD, can I use Root Explorer for that?
Thanks.
snovvman said:
With certain files, SteelH describes using Root Explorer as "like trying to swap the engine of a car while it's running"
I experienced this as I tried to copy back a modified services.jar file with Root Explorer. I ended up using ADB and it worked fine.
Question 1: I did this while the phone was running/OS loaded, but ADB copy method worked while Root Explorer didn't. Why? Does ADB have higher authority in some way?
Question 2: How about using a terminal window on the phone to copy/replace files (if a computer is not handy)? Does it yield the same function/result as Root Explorer or ADB?
Question 3: If I simply want to back up the file, say services.jar or framework.apk, to be copied to SD, can I use Root Explorer for that?
Thanks.
Click to expand...
Click to collapse
i can't answer all of these authoritatively, but i will say
-i find adb to be the easiest way to do ANY modifications, as long as you know just a handful of commands and remember to remount. also remember to pull anything you are getting ready to mess with, just in case you bork it up. takes a lot less time to push an unmodified file than it does to do a complete restore. especially if you forgot to backup, lol
-if you have a terminal app mounted with rw privileges, you can move whatever you want wherever you want. however, referring back to my last point, adb is easier. i find that trying to type type type things out on a dinky little keyboard is a bigger pain in my butt than using my full size one, especially when i can use cut/paste from the intertubes.
-i think rooted explorere shouldn't have a problem copying a file from /system/ or /data/ to some folder on your sdcard
Thank you for the information. I just copied a file with terminal (on phone) and Root Explorer. Interesting thing: using the CP command, the file that was copied onto the SD showed the current date. The file that was copied using RE has the original date.

[Q] Cant find data/local

i tried the search and google but find nothing on this. Im not new to rooting, i rooted my OG droid, but now im trying to root my Mt4g and having trouble. I have the .86 boot loader and im trying to do the gfree method of rooting. Only problem is when i go to transfer my gfree files to data/local, i cant find data local. Im using astro file manager and i hit the up button to get as far as i can go. Once i do that i select the data folder, and it just says empty directory. so i can find /data, but not /data local. Thanks for taking the time to read my question.
Astro file manager will not show the /data/local folder. If you don't have root you have to push gfree using adb.
i'm on a 4g slide with this same problem, i need to move a file to the /data/local, and my file managers cannot find 'local', and do not let me create one.
i am already rooted.
leoilios said:
i'm on a 4g slide with this same problem, i need to move a file to the /data/local, and my file managers cannot find 'local', and do not let me create one.
i am already rooted.
Click to expand...
Click to collapse
you need to use a root explorer.
or use the line command
Code:
adb push <file_name> /data/local
Another thing you could do is download visionary, temp root, use a root required file manager to move the file to data/local. Then un temp your phone an run gfree
From my fist to your face, enjoy.

[Q] NS4G Rooted still can't access any files in /root/

First off, I have a Nexus S 4g from Sprint (d720) rooted using the method as posted in the thread titled "[GUIDE] Nexus S 4G Simple Root/Unroot" by kpkimmel back a few weeks ago when that was the ONLY method available.
I am trying to edit an XML file located in my /root/data/data/ directory but I can't access it from adb shell nor the app "Root Explorer", I can however see and 'cd' to the directory but it shows up empty on both "Root Explorer" and through adb . As it seems, I don't have the proper permissions to be able to view/edit the files/folders in the root folder.
SuperUser permissions have been granted for both adb shell and Root Explorer as well so I know that part is in order. I guess I could just be missing an obvious step in accessing the /root/data folder but any help would be greatly appreciated.
Should I just unroot my device and re-root using a different method? Anybody with adb and permissions issues experiences please help. I'm more than frustrated at this point.
Thanks in advance.
try mounting it as rw
Would you be able to list the steps please?
Top right of the page, hit read write
Sent from my Nexus S 4G using Tapatalk
My /root contains nothing either. What is it exactly you want to edit?
its a empty folder.

Unable to replace system files

I am trying to flash a touchwiz launcher and it succeeds in flashing in recovery but the files are not getting put into priv-app folder.
also, trying a copy paste using root explorer but it fails.
some files get copied but for some reason touchwiz launcher does not, any idea why?
Does Root Explorer have any option to remount /system with write permission? Nearly all File Managers with root access do it that way.
It looks like your /system is still mounted read-only. What exactly is being copied over?
Also, you can "adb shell" to the phone while on recovery, that way you have full access on the phone.

Categories

Resources