img. files - XPERIA X8 Q&A, Help & Troubleshooting

Hi, how to open .img files on my x8? There is some app?
Sent from my X8 using XDA App

Terminal emulator can extract it......just cd to the directory where the file is and then type unyaffs (filename).img

Aaam , can you plz can give me a comand what i need to write in terminal emulator?
My .img file is in - sdcard/xrecovery/backup/sense0.4
Sent from my X8 using XDA App

At Terminal Emu write "cd sdcard/xrecovery/backup"
and then just write "unyaffs sense0.4.img" (without ")

Related

[Q] What is terminal emulator?

Is this so i can push files through my phone, without having to do it on the computer? How does this work. Anyone have a link? I did a search and came up with nothing. Just wondering, thanks!
It's the same as a Terminal on a unix/linux box or for that matter, command line on a windows box.
Terminal emulator app will give you command line access to your (rooted) phone. You can then go into SU mode, as well.
Yes, you are correct, it will allow you to do things that an ADB shell would allow, from a computer.
You can download it from the market.
im sure that you might have known this already, but when you are using a terminal emulator, and you get root access (su), you really should follow the directions to the letter. if you make a mistake in the typing, it is possible that you could do some damage.
it is also recommended to not enter in terminal commands unless someone with more experience than you (based off their post number) reports success in completing the wanted task. so essentially, use the terminal at your own risk.
(all this is pulled from my previous post which you can find in my signature - "Terminal/adb shell commands")
Adb commands are completely different than terminal commands.
First enter "su" to get substitute user (the # sign)
Then enter "mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system" to make the root r/w
to copy files use "cp" command
to move files use "mv" command
to remove files use "rm" command
to change file/dir permissions use "chmod"
to change directories use "cd" - "cd .." will bring you back one directory - "cd //" brings you back to root
to list files in the dir use "ls"
to read/mod/combine a file use "cat"
to edit a value use "echo"
to see running processes use "top"
to kill a process use "kill -9 PID#HERE"
ex) cp /sdcard/download/myapplication.apk /data/app/myapplication.apk
If you know any linux commands then you should know your way around terminal emulator. If you want i can give you more examples just let me know. Hope this helped
What does "cat" mean?
Oh my bad i didn't see it in there, all the times i lookedO sorry.
where could i get this app?
i couldnt find it on market using keyword "terminal", "terminal emulator" or even "adb terminal emulator"
bla.k.offee said:
where could i get this app?
i couldnt find it on market using keyword "terminal", "terminal emulator" or even "adb terminal emulator"
Click to expand...
Click to collapse
https://market.android.com/details?id=jackpal.androidterm&feature=search_result
Terminal Emulator Hell!!!!
I have wiped and restored more times tonight than I can count....HELP!!!! I have a very lean rom. So lean it that it has no file explorer and I don't want to install gapps. All I want to do is install Titanium Backup (the .apk file is on the root of my SD card) with the terminal emulator and I'll be all set. I have had all different error messages, and I'm more confused now then when I started this adventur, 6+ hours ago. Any help would be great.
hockeyfamily737 said:
I have wiped and restored more times tonight than I can count....HELP!!!! I have a very lean rom. So lean it that it has no file explorer and I don't want to install gapps. All I want to do is install Titanium Backup (the .apk file is on the root of my SD card) with the terminal emulator and I'll be all set. I have had all different error messages, and I'm more confused now then when I started this adventur, 6+ hours ago. Any help would be great.
Click to expand...
Click to collapse
I keep TB on the root of my sdcard named TB.apk. Then I go into terminal emulator (it is in most roms already).
su
cp /sdcard/TB.apk /data/app/TB.apk
Then I back out of TE and TB is installed. Any commands you type in TE are case sensitive. All file names are case sensitive and spaces do not work well. So if your TB apk is "Titanium Backup-1.3.3.apk", I would rename it to something without the spaces like Titanium_Backup-1.3.3.apk.
I rename it TB.apk because who wants to type all of that?
kyouko said:
(all this is pulled from my previous post which you can find in my signature - "Terminal/adb shell commands")
Adb commands are completely different than terminal commands.
First enter "su" to get substitute user (the # sign)
Then enter "mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system" to make the root r/w
to copy files use "cp" command
to move files use "mv" command
to remove files use "rm" command
to change file/dir permissions use "chmod"
to change directories use "cd" - "cd .." will bring you back one directory - "cd //" brings you back to root
to list files in the dir use "ls"
to read/mod/combine a file use "cat"
to edit a value use "echo"
to see running processes use "top"
to kill a process use "kill -9 PID#HERE"
ex) cp /sdcard/download/myapplication.apk /data/app/myapplication.apk
If you know any linux commands then you should know your way around terminal emulator. If you want i can give you more examples just let me know. Hope this helped
Click to expand...
Click to collapse
Sent you a pm
#Root/Hack_Mod-Always®

Renaming a sys file in ADB

can you rename a system file in adb..I know how to do it with root file explorer but them apps are not working for me at the moment so if I can can someone give me the commands to do this..
Just type"adb", and it will list all the available commands...
Sent from my Nexus One using XDA App
They're linux commands. You 'move' the file from the old name to the new one. The command you use is
Code:
$mv filename.old filename.new
If it's a system file, you'll need superuser permission and you'll have to make the file system read-write.
http://www.tuxfiles.org/linuxhelp/fileman.html
make sure your phone has enabled USB debugging, connect it to your computer, on your computer type:
adb shell
then you're in your phone's shell, use the command mentioned in 3rd post to rename a file.

[Q] Is there a way to access root from PC?

Hi,
I was wondering if there is a way to access root in a sgs connected to a pc by a cable?
Just type "su" in adb prompt...
Need rooted sgs.
Sent from my GT-I9000 using Tapatalk
Thanks for quick anwser,
That's obvious but how do i explore the root directory? What are the commands? Is there an equivalent of linux "cd", "ls" and such?
Both CD and ls will work. Remember, android is based on Linux.
Sent from my GT-I9000 using XDA App
Now I can see but the command I was looking for was "adb shell"

[REQ]clockworkmod touch

Clockworkmod just released touch recovery 6.0.1.5. I know you can download it from their site but I can't find a way to do so(when I click download I just see a page with lots of characters). Can anyone zip it so that we can get this awesome recovery love for p990?
Thx in advance
Sent from my LG-P990 using xda premium
If you use another browser you can download the recovery image but I don't know how to flash it
Via ROM manager
Sent from my LG-P999
emanuele95 said:
but I don't know how to flash it
Click to expand...
Click to collapse
As already mentioned, you can do it using ROM Manager. Otherwise, flash IMG file via cmd line, either from a PC:
Code:
adb push XXX.img /data/local/
adb shell "su -c 'dd if=/data/local/XXX.img of=/dev/block/mmcblk0p7'"
adb shell rm /data/local/XXX.img
...or in terminal on the phone itself under su, once you copy the file somewhere on an SD card:
Code:
dd if=/path_to_file/XXX.img of=/dev/block/mmcblk0p7
Just replace "path_to_file" and "XXX" with the actual path and filename.
How to flash the .IMG through ROM manager?
Sent from my LG-P990 using xda premium
kt-Froggy said:
As already mentioned, you can do it using ROM Manager. Otherwise, flash IMG file via cmd line, either from a PC:
Code:
adb push XXX.img /data/local/
adb shell "su -c 'dd if=/data/local/XXX.img of=/dev/block/mmcblk0p7'"
adb shell rm /data/local/XXX.img
...or in terminal on the phone itself under su, once you copy the file somewhere on an SD card:
Code:
dd if=/path_to_file/XXX.img of=/dev/block/mmcblk0p7
Just replace "path_to_file" and "XXX" with the actual path and filename.
Click to expand...
Click to collapse
Thanks..installed with terminal emulator
So the O2X has official CWM Touch?
Uh... the o2x was the 2nd phone to get it. It was one of the models it was worked on.
What would it take to port it to g2x?
Sent from my LG-P999 using xda app-developers app
Thanks armcee you are the best! Also I have flashed the recovery through terminal emulator and it is the best recov!
Sent from my LG-P990 using xda premium
aremcee said:
Uh... the o2x was the 2nd phone to get it. It was one of the models it was worked on.
Click to expand...
Click to collapse
I thought it didn't purely because of this http://forum.xda-developers.com/showthread.php?t=1825510
Andy HOT said:
How to flash the .IMG through ROM manager?
Sent from my LG-P990 using xda premium
Click to expand...
Click to collapse
Not possible.
Install rom manager from gplay, open it buy rom manager primium it will then give u option for installing cwm touch
Sent from my Galaxy Nexus using xda premium

Install a recovery without a pc?

Hi everyone, I searched but didn't found but if any thread out there about installing a recovery without a pc(rooted with towelroot and installed super su and busybox and recovery-less). I know it's irrelevant but if there is a way to do it, it'll be super-awesome!!
As far as I know a PC is needed. This because we cant flash anything without a PC or a recovery..
Perhaps a developer can create a script that can be used with a script thing on the phone?
~~ Regards
This might be a revolutionary idea, @MrSteve555 introduced flash tool on the go and if this also happens, we might not need pc every time.
pranavthombare said:
This might be a revolutionary idea, @MrSteve555 introduced flash tool on the go and if this also happens, we might not need pc every time.
Click to expand...
Click to collapse
It's easy .
Download the latest recovery-flashable recovery package from dssmex.
Extract /data/local/tmp from the zip to same path on your phone.
Then run these commands from terminal:
Code:
chmod 755 data/local/tmp/step1.sh
sh /data/local/tmp/step1.sh
This way you can do pretty much everything without PC
You are awesome buddy. Thanks
Help
MrSteve555 said:
It's easy .
Download the latest recovery-flashable recovery package from dssmex.
Extract /data/local/tmp from the zip to same path on your phone.
Then run these commands from terminal:
Code:
chmod 755 data/local/tmp/step1.sh
sh /data/local/tmp/step1.sh
This way you can do pretty much everything without PC
Click to expand...
Click to collapse
Can you plz elaborate extraction step..
i m confused,which file to be extracted to the phone at which path!
You can use terminal emulator. .or mobile uncle tool to install recovery without pc
Press thanks
pradip.108 said:
You can use terminal emulator. .or mobile uncle tool to install recovery without pc
Press thanks
Click to expand...
Click to collapse
Actually the recovery partition is missing (I think so.).
How to use terminal emulator for installation ??
Then, download a terminal emulator onto your
and fire it up.
Once in the terminal emulator, type the following
commands one line at a time, waiting after each
line for the appropriate prompt:
$ su
# dd if=/sdcard/recovery.img of=/dev/block/
mmcblk0p18
# reboot recovery
Your device should then boot into the custom
recovery, which serves as immediate confirmation
that you did things correctly.
Sent from my GT-I8262 using XDA Free mobile app
No need to type commands just use root browser and just click on step1.sh and execute script as root and its done.
Hit " Thanks " if helpful.. :good:
Ok done?
Sent from my GT-I8262 using XDA Free mobile app
MrSteve555 said:
It's easy .
Download the latest recovery-flashable recovery package from dssmex.
Extract /data/local/tmp from the zip to same path on your phone.
Then run these commands from terminal:
Code:
chmod 755 data/local/tmp/step1.sh
sh /data/local/tmp/step1.sh
This way you can do pretty much everything without PC
Click to expand...
Click to collapse
After executing the script in the logs i have :
installation : OK
Model Number : C5303
Version : Unknow --> (ERROR: NOT COMPATIBLE)

Categories

Resources