[Q]Can't use "cd" command on Terminal Emulator - Atrix 4G Q&A, Help & Troubleshooting

Well, that. I get an error everytime i try to cd to anyplace in my sdcard. Look at the screenie:
Sent from my MB860 using XDA

djluis48 said:
Well, that. I get an error everytime i try to cd to anyplace in my sdcard. Look at the screenie:
Sent from my MB860 using XDA
Click to expand...
Click to collapse
try cd /sdcard

Works fine for me using Terminal Emulator through Rom Toolbox on Nottachtrix4G v1.2.9b.

Related

[SOLVED] Renamed PortalApp with Root Explorer

In trying to enable the webtop app I renamed the PortalApp.apk to PortalApp.apk.bak. Now I get an error message:
"The application com.android.portal (com.android.portal) has stopped unexpectedly.Please try again."
I know, I shouldn't have renamed that apk when in the thread it didn't say to but I figured I needed to replace that too. I've learned my lesson.
How can I go about fixing this?
Connect your mobile to computer .
I hope you have adb checked already!
Open cmd.
And write:
adb shell
su
(and TRY TO ALLOW on the phone)
mv system/app/PortalApp.apk.bak system/app/PortalApp.apk
If you can't allow SU request, respond here. To give a try with same commands on early usb enumeration!
If I helped, hit thanks button
Sent from my MB860 using XDA App
Do you mean PortalApp.apk instead of Portal.apk?
Bagel Bear said:
Do you mean PortalApp.apk instead of Portal.apk?
Click to expand...
Click to collapse
Yes. I Am on the atrix. And I couldnt see or remember your apk, so I posted and later edit.
Sent from my MB860 using XDA App
I do have the sdk installed and I've used it before but I've forgotten how to get to it. Just typing "adb shell" on the first line of cmd won't do much help if I'm not in the right directory.
With windows explorer!
Find your sdk folder. Enter it.
Copy everything.
Go to Windows folder, and paste everything!
Now you have "adb" command directly in your cmd prompt!
Sent from my MB860 using XDA App
Can I give you one million thanks?
Everything worked out alright!
Yes.
Go to xda settings, click the autothanks button, put "Paschalis" and then allow SU Request on your atrix!
Heheheh!!
Your are welcome!!
Sent from my MB860 using XDA App
Can you also replace:
Need help in your topic title, with:
[SOLVED] tag?
So somebody else with same problem, find answer easily!
Sent from my MB860 using XDA App

Few questions

Has there been anything on rooting directly from the phone?
And has anyone made an update.zip with unlockd boot?
Sent from my MB855 using XDA Premium App
Yes, you can root directly from your phone by using terminal emulator but you have to put photon-torpedo.tar to /data/tmp first. I rooted my photon on the phone itself.
GraphicDemon said:
Has there been anything on rooting directly from the phone?
And has anyone made an update.zip with unlockd boot?
Sent from my MB855 using XDA Premium App
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=1216143
A little bit of reading goes a long, long way. This thread will tell you the current state of the art.
urcboss07 said:
Yes, you can root directly from your phone by using terminal emulator but you have to put photon-torpedo.tar to /data/tmp first. I rooted my photon on the phone itself.
Click to expand...
Click to collapse
Ok can you please tell me how you got terminal to process your commands. I get permission denied every time I use terminal to try and do anything with /data. I obviously need root to complete the commands using terminal to write to anything besides the sd. I would appreciate any help. Thanks in advance.
Sent from my MB855 using XDA Premium App
Ok I tried using it from phone but how u push it to data without using comp
Sent from my MB855 using XDA Premium App
Did you install superuser from market? You also need to install Superuser and push photon-torpedo.tar to /data/tmp
then type the following in terminal emulator:
cd /data/tmp
/bin/tar xf /data/tmp/photon-torpedo.tar
/data/tmp/photon-torpedo.sh
/data/tmp/install-su.sh
Just say "THANKS" to Edgan for great work and job well done.
urcboss07 said:
Did you install superuser from market? You also need to install Superuser and push photon-torpedo.tar to /data/tmp
then type the following in terminal emulator:
cd /data/tmp
/bin/tar xf /data/tmp/photon-torpedo.tar
/data/tmp/photon-torpedo.sh
/data/tmp/install-su.sh
Just say "THANKS" to Edgan for great work and job well done.
Click to expand...
Click to collapse
Not sure if you were responding to me or the other guy but my MacBook and my Linux laptop both recognize my phone but they both say its offline when I try and use a adb. Some people say they have done this root without the computer and just using the terminal on the phone but I get permission denied messages since it needs root. I have super user installed but that does me no good without root. I want to know how they got past the permission denied using the terminal on the phone?
Sent from my MB855 using XDA Premium App
smoothone said:
Not sure if you were responding to me or the other guy but my MacBook and my Linux laptop both recognize my phone but they both say its offline when I try and use a adb. Some people say they have done this root without the computer and just using the terminal on the phone but I get permission denied messages since it needs root. I have super user installed but that does me no good without root. I want to know how they got past the permission denied using the terminal on the phone?
Sent from my MB855 using XDA Premium App
Click to expand...
Click to collapse
Exactly I'm having same problem. I m not understanding how I can push it to that part of the phone without root.
Sent from my MB855 using XDA Premium App
GraphicDemon said:
Exactly I'm having same problem. I m not understanding how I can push it to that part of the phone without root.
Sent from my MB855 using XDA Premium App
Click to expand...
Click to collapse
Make sure you have USB debugging checked. Menu > settings > applications > development. This was my problem when I first tried to adb the file to the /data/tmp folder on the phone.
Also, I was getting an error at "Run /data/tmp/photon-torpedo.sh," but I just ignored it and kept going. It worked. You can use root checker from the market to verify that you have root.
my2cents said:
Make sure you have USB debugging checked. Menu > settings > applications > development. This was my problem when I first tried to adb the file to the /data/tmp folder on the phone.
Also, I was getting an error at "Run /data/tmp/photon-torpedo.sh," but I just ignored it and kept going. It worked. You can use root checker from the market to verify that you have root.
Click to expand...
Click to collapse
Thanks for the advice but the both of us are not using adb. I always have debugging enabled. We are both trying to do this from or phones with terminal. An update zip would be amazing :~)
Sent from my MB855 using XDA Premium App
smoothone said:
Thanks for the advice but the both of us are not using adb. I always have debugging enabled. We are both trying to do this from or phones with terminal. An update zip would be amazing :~)
Sent from my MB855 using XDA Premium App
Click to expand...
Click to collapse
Ok. I thought one of you was trying to use a Mac or something to push the file then use terminal. And an update.zip would be awesome!
my2cents said:
Ok. I thought one of you was trying to use a Mac or something to push the file then use terminal. And an update.zip would be awesome!
Click to expand...
Click to collapse
I was trying to use adb with my Mac and my Linux laptop but both give me "device offline" when I use adb. I'm going to try a different USB cable as I have seen this happen before and a different cable works but I find it hard to believe that i'm the only one that used stock cable and does not work
Sent from my MB855 using XDA Premium App
What happened to that person said they did everything from phone?
Sent from my MB855 using XDA Premium App
GraphicDemon said:
What happened to that person said they did everything from phone?
Sent from my MB855 using XDA Premium App
Click to expand...
Click to collapse
Lol, I guess they all vanished! Funny thing is that I am not new to Linux and those are busybox commands which
1: busybox does not come installed on the factory ROM and
2: even if you install it from the market it still needs root access.
Sent from my MB855 using XDA Premium App
So what are we developing in this thread again?
Sent from my MB855 using XDA App
Custodian said:
So what are we developing in this thread again?
Sent from my MB855 using XDA App
Click to expand...
Click to collapse
If you cannot help then just save your useless comment! Your bringing back bad memories from the EVO forum. That forum was full of bashers and flamers.
smoothone said:
Lol, I guess they all vanished! Funny thing is that I am not new to Linux and those are busybox commands which
1: busybox does not come installed on the factory ROM and
2: even if you install it from the market it still needs root access.
Sent from my MB855 using XDA Premium App
Click to expand...
Click to collapse
Yeah tell me about it, wish they would just make a damn step sheet it's getting ridiculous.
Sent from my MB855 using XDA Premium App
http://forum.xda-developers.com/showthread.php?p=16904179
Sent from my MB855 using Tapatalk

SD Card?

I'm trying to install Ubuntu on my atrix following the guide on the app " Ubuntu Installer" it tell me to extract 2 files i downloaded to, SDCard>Ubuntu. then to go into treminal app and type in
su
cd/sdcard/ubuntu
but after the last line it always returns
sh: cd/sdcard/ubuntu: Not Found
any ideas?! this is KILLING ME! iv trying making a ubuntu folder in both my external and internal storage, it just makes NO sense to me, i even tried doing it through ADB shell
It should be cd /mnt/sdcard/ubuntu (space between cd and /mnt
Sent from my MB860 using Tapatalk
If you get it working tell me. I too am working on this ))))
Sent from my MB860 using Tapatalk

Recovery

Important away from a computer for a few days and was wondering if there's a way to flash CWM recovery without a pc or any previous versions of CWM installed. I had the CWM at some point and now when i boot into recovery i have the stock Samsung recovery and can't flash anything......
Sent from my SAMSUNG-SGH-I717 using XDA
I believe you can flash the img from terminal
Yes.
Assuming you're rooted, you should be able to move it to the right partition with a terminal emulator on your phone.
studacris said:
Yes.
Assuming you're rooted, you should be able to move it to the right partition with a terminal emulator on your phone.
Click to expand...
Click to collapse
Sorry but im not familiar with using terminal.....could you post the steps i need to take? Thx in advance
Sent from my SAMSUNG-SGH-I717 using XDA
typically it would go like this
assuming you have the recovery image in the root directory of the sdcard
open the terminal app
$
type 'su'
you should get the # prompt
then
# cd sdcard
# flash_image recovery recovery_image_name
give that a try
jyazzie110 said:
Sorry but im not familiar with using terminal.....could you post the steps i need to take? Thx in advance
Sent from my SAMSUNG-SGH-I717 using XDA
Click to expand...
Click to collapse
animatechnica said:
typically it would go like this
assuming you have the recovery image in the root directory of the sdcard
open the terminal app
$
type 'su'
you should get the # prompt
then
# cd sdcard
# flash_image recovery recovery_image_name
give that a try
Click to expand...
Click to collapse
Thank you!!! I will try that and post results
Sent from my SAMSUNG-SGH-I727 using XDA
animatechnica said:
typically it would go like this
assuming you have the recovery image in the root directory of the sdcard
open the terminal app
$
type 'su'
you should get the # prompt
then
# cd sdcard
# flash_image recovery recovery_image_name
give that a try
Click to expand...
Click to collapse
Still a no go...
Sent from my SAMSUNG-SGH-I727 using XDA
animatechnica said:
typically it would go like this
assuming you have the recovery image in the root directory of the sdcard
open the terminal app
$
type 'su'
you should get the # prompt
then
# cd sdcard
# flash_image recovery recovery_image_name
give that a try
Click to expand...
Click to collapse
I keep getting "error scanning partitions: No such file or ditectory" i have the recovery.img file on the root of my sd card as well
Sent from my SAMSUNG-SGH-I727 using XDA
If you are rooted you can use the goo manager app in the play store to flash TWRP to your phone

Please help I need a solution!!!

Hi so I just got an HTC one x+ and unlocked and it and rooted it. I flashbooted a boot.img from a custom and realized I forgot to put the custom ROM itself on the phone. My phone now can't use WiFi or show up on the computer unless in fastboot. I really need help please let me know what to do. Thanks!!!
Sent from my SGH-T999 using xda app-developers app
brianisawesome1 said:
Hi so I just got an HTC one x+ and unlocked and it and rooted it. I flashbooted a boot.img from a custom and realized I forgot to put the custom ROM itself on the phone. My phone now can't use WiFi or show up on the computer unless in fastboot. I really need help please let me know what to do. Thanks!!!
Sent from my SGH-T999 using xda app-developers app
Click to expand...
Click to collapse
Within a custom recovery, ex. TWRP. Go into advance and select adb sideload. Use adb to sideload the Rom using the command adb sideload Rom.zip to your phone
Sent from my HTC One X+ using Tapatalk
nheolon thous
I have a similar problem here.
I wanted to try this"adb sideload" but I can get ti to work because when I use "adb devices". I get nothing listed.
can I get an extra help please?
Thank you
XAlexander_AlexanderX said:
Within a custom recovery, ex. TWRP. Go into advance and select adb sideload. Use adb to sideload the Rom using the command adb sideload Rom.zip to your phone
Sent from my HTC One X+ using Tapatalk
Click to expand...
Click to collapse
I got cannot read ROM.zip anything more specific I didn't do
Sent from my SGH-T999 using xda app-developers app
brianisawesome1 said:
I got cannot read ROM.zip anything more specific I didn't do
Sent from my SGH-T999 using xda app-developers app
Click to expand...
Click to collapse
Use the name of the Rom. For example. If the Rom name is cm10. You type adb sideload cm10.zip
Sent from my HTC One X+ using Tapatalk
XAlexander_AlexanderX said:
Use the name of the Rom. For example. If the Rom name is cm10. You type adb sideload cm10.zip
Sent from my HTC One X+ using Tapatalk
Click to expand...
Click to collapse
Ya I did that and still sane problem
Sent from my SGH-T999 using xda app-developers app
brianisawesome1 said:
Ya I did that and still sane problem
Sent from my SGH-T999 using xda app-developers app
Click to expand...
Click to collapse
Is the Rom in the same folder as adb (if your using windows )?
Sent from my HTC One X+ using Tapatalk
XAlexander_AlexanderX said:
Is the Rom in the same folder as adb (if your using windows )?
Sent from my HTC One X+ using Tapatalk
Click to expand...
Click to collapse
Ill tell u step by step what I do:
1. Recovery to adb sideload on phone
2. Move ROM to c:\android where fastboot and adb are located
3. Run cmd
4. cd c:\android
5. Adb sideload "ROM name"
6. I get the error
Sent from my SGH-T999 using xda app-developers app
brianisawesome1 said:
Ill tell u step by step what I do:
1. Recovery to adb sideload on phone
2. Move ROM to c:\android where fastboot and adb are located
3. Run cmd
4. cd c:\android
5. Adb sideload "ROM name"
6. I get the error
Sent from my SGH-T999 using xda app-developers app
Click to expand...
Click to collapse
Adb is located in platform tools. Put Rom there and CD cmd there and run the command.
Sent from my HTC One X+ using Tapatalk
brianisawesome1 said:
Ill tell u step by step what I do:
1. Recovery to adb sideload on phone
2. Move ROM to c:\android where fastboot and adb are located
3. Run cmd
4. cd c:\android
5. Adb sideload "ROM name"
6. I get the error
Sent from my SGH-T999 using xda app-developers app
Click to expand...
Click to collapse
open platform-tools(or the folder where adb is found) shift + right click on any empty space, you will find "open command prompt here" press on it, then type ADB devices, if it is read, simply type " adb sideload " then drag and drop the rom zip into the command prompt. it will automatically write its location and prevent the spelling mistakes.
IF: ADB devices can't read your device try the following:
1-Try another usb port, if you tried 2.0 then try 3.0 and vice versa.
2- If you are on windows vista or above, open start menu and search for cmd, right click on it and run as administrator, however you will have to cd to the platform tools location, " cd C:\Android\sdk\platform-tools " then you type in adb devices should read your device fine now. however running cmd as admin prevents the drag and drop technique (atleast here on windows 8.1 it does) so you have to type in the location of your rom and rom name correctly, and dont forget the .zip
Ghand0ur said:
open platform-tools(or the folder where adb is found) shift + right click on any empty space, you will find "open command prompt here" press on it, then type ADB devices, if it is read, simply type " adb sideload " then drag and drop the rom zip into the command prompt. it will automatically write its location and prevent the spelling mistakes.
IF: ADB devices can't read your device try the following:
1-Try another usb port, if you tried 2.0 then try 3.0 and vice versa.
2- If you are on windows vista or above, open start menu and search for cmd, right click on it and run as administrator, however you will have to cd to the platform tools location, " cd C:\Android\sdk\platform-tools " then you type in adb devices should read your device fine now. however running cmd as admin prevents the drag and drop technique (atleast here on windows 8.1 it does) so you have to type in the location of your rom and rom name correctly, and dont forget the .zip
Click to expand...
Click to collapse
Ok great thanks it worked! Question: can u flash a custom kernel that's not in the same and ROM? I got viper ROM and everything is slow and I'm trying to make it fast
Sent from my SGH-T999 using xda app-developers app
brianisawesome1 said:
Ok great thanks it worked! Question: can u flash a custom kernel that's not in the same and ROM? I got viper ROM and everything is slow and I'm trying to make it fast
Sent from my SGH-T999 using xda app-developers app
Click to expand...
Click to collapse
Since we have the stupid s-on, your choice of custom kernels is very limited and they make almost no difference, if you are on viper rom which is sense based, you can use the stock kernel (I THINK<<< Not sure) or insertcoin kernel's , but no they don't make any difference as far as i know. Try and see

Categories

Resources