Error executing ". / Unyaffs system.img" someone can help me I can not extract system.img
I'm sorry my english
put unyaffs.exe in same dir as system.img than create shortcut from unyaffs.exe click on shortcut Propities and in first field (target) add space than system.img
it should looks: "DIR:\blablabla...\unyaffs.exe" system.img. Finally execute shortcut.
thanks! and linux ubuntu? How Do I?
Put in same folder than in Command line put adress for unyaffs than put one space than write system.img like in windows shortcut than execute
Thanks!
YES I DO, BUT APPEARS Unable to execute binary file!
Hi, I just read some tips about using script for enhancing performance.
It says that the script must be places in system/etc/init.d
But in stock rom P500 (GB 2.3.3 v20G) I can't find folder init.d
The questions:
1. Is the stock rom already support init.d script execution?
2. If yes, will it works just by creating folder init.d and place script there?
3. If not, how to enable support init.d for Optimus One, stock ROM rooted?
I search this forum and find some guide about init.d support in other phone models, will it works on Optimus One too, or perhaps it needs particular way to do it?
1. No
2. If you have init.d support in rom.
3. Only way to do it is cook a custom rom through kitchen to add init.d support
terratrix said:
1. No
2. If you have init.d support in rom.
3. Only way to do it is cook a custom rom through kitchen to add init.d support
Click to expand...
Click to collapse
3. answer is some wrong:
you doesnt need to cook a custom rom, you only need the adb (android debug bridge) to "speak" with your phone:
0.) on your phone download busybox from market
1.) install android sdk on your computer
2.) install LG usb drivers on your computer
3.) open a console (on windows use the "cmd" command)
4.) remount "root" to read/write (type following commands in the cmd)
Code:
adb shell
mount -o remount,rw /dev/block/mmcblk1 /
exit
5.) retrive the init.rc file from your device: (type the command in the cmd)
Code:
adb pull /init.rc C:\users\XXXXX\Desktop\init.rc
6.) open the init.rc file and add the busybox command to execute scripts in the /system/etc/init.d folder
after the lines that does mkdirs etc but BEFORE zygote starts (this stars the whole android)...
Code:
service userinit /system/xbin/busybox run-parts /system/etc/init.d
oneshot
7.) close and save the file, push it back to your device, than reboot:
Code:
adb push XXXX\XXXX\init.rc /init.rc
now you can use the init.d folder as in CyanogenMod / other custom roms.
andy572 said:
3. answer is some wrong:
you doesnt need to cook a custom rom, you only need the adb (android debug bridge) to "speak" with your phone:
0.) on your phone download busybox from market
1.) install android sdk on your computer
2.) install LG usb drivers on your computer
3.) open a console (on windows use the "cmd" command)
4.) remount "root" to read/write (type following commands in the cmd)
Code:
adb shell
mount -o remount,rw /dev/block/mmcblk1 /
exit
5.) retrive the init.rc file from your device: (type the command in the cmd)
Code:
adb pull /init.rc C:\users\XXXXX\Desktop\init.rc
6.) open the init.rc file and add the busybox command to execute scripts in the /system/etc/init.d folder
after the lines that does mkdirs etc but BEFORE zygote starts (this stars the whole android)...
Code:
service userinit /system/xbin/busybox run-parts /system/etc/init.d
oneshot
7.) close and save the file, push it back to your device:
Code:
adb push XXXX\XXXX\init.rc /init.rc
now you can use the init.d folder as in CyanogenMod / other custom roms.
Click to expand...
Click to collapse
Ah thanks for correcting my answer ^^
Dear Andy,
Thanks 4 the procrdure, however i wanted to ask you whether there is any tool to check that the scripts in the init.d folder r getting executed?
andy572 said:
.....guide...
Click to expand...
Click to collapse
That works? I mean init.rc is in ramdisk in boot partition, and gets unpacked on boot, so any changes in / are lost on reboot - at least that is what was told to me.
Kanad said:
Dear Andy,
Thanks 4 the procrdure, however i wanted to ask you whether there is any tool to check that the scripts in the init.d folder r getting executed?
Click to expand...
Click to collapse
Option 1 - run logcat during boot (Trough ADB, type logcat in adb shell, a little simpler if using Droid Explorer)
Option 2 - Run a script that changes something that was previously different. Try installing the supercharger (with different from normal minfree values), rebooting and running the script again to make sure the minfree values are modified. If so, init.d is working and vice versa.
andy572 said:
6.) open the init.rc file and add the busybox command to execute scripts in the /system/etc/init.d folder
after the lines that does mkdirs etc but BEFORE zygote starts (this stars the whole android)...
Code:
service userinit /system/xbin/busybox run-parts /system/etc/init.d
oneshot
Click to expand...
Click to collapse
I go directly to this step, using root explorer on phone (not using PC+ADB)
But after reboot, init.rc i've already edited before has been restored again to original value, as said by Tasssadar.
Maybe I should do it using PC+ADB instead of direct edit on phone?
optimuswhite said:
I go directly to this step, using root explorer on phone (not using PC+ADB)
But after reboot, init.rc i've already edited before has been restored again to original value, as said by Tasssadar.
Maybe I should do it using PC+ADB instead of direct edit on phone?
Click to expand...
Click to collapse
you are trying to modify a running system, sure - you have to do such things
in the boot.img file and have to re-flash it. there is no way to modify a running
system, sorry for misunderstanding.
andy572 said:
you are trying to modify a running system, sure - you have to do such things
in the boot.img file and have to re-flash it. there is no way to modify a running
system, sorry for misunderstanding.
Click to expand...
Click to collapse
I see.
so, is someone can guide me how to deal with boot.img on stock rom?
optimuswhite said:
I see.
so, is someone can guide me how to deal with boot.img on stock rom?
Click to expand...
Click to collapse
go to your recovery, make a backup of your current system and connect the
phone via usb to your computer and copy the rom from the phone to your computer.
then, use the htc kitchen to modify the created rom / or the boot.img
This is mainly for the users of my animations who were asking! - Have fun guys!
If you are rooted:
1. Download a root explorer app (ES File Explorer is suggested and free)
2. Enable root directory (in ES File Explorer hit menu, go to settings, and check "Up to Root", then go farther down and check "Root Explorer". Accept any Superuser requests.
3. Go back to your explorer and navigate to where you downloaded the "bootanimation.zip" file. Copy (or cut) it.
4. Navigate as far up as you can into your root directory, and then to /data/local/
5. Paste your "bootanimation.zip" file into /data/local/ (it MUST be named bootanimation.zip)
6. Reboot and enjoy!
Alternatively, you can put it in /system/media, HOWEVER, make sure you back up your stock bootanimation.zip (rename it to bootanimation.zip.bak or move it to your sdcard somewhere) in case something goes wrong.
If you are not rooted (or rooted, this method works with both)
**PC only! I'm not sure how to set the Max OSX terminal to accept "adb" commands by default!**
Setup:
1. Download the newest Android SDK
2. Click the start menu, right click "Computer", and click "Properties"
3. Click "Advanced System Settings" on the left (On Win7)
4. In the advanced tab, click "Environment Variables"
5. In the system variables window, find "Path", select it and click "edit"
6. At the end of the bottom line, paste:
For 64-bit users:
Code:
;C:\Program Files (x86)\Android\android-sdk\platform-tools
For 32-bit users:
Code:
;C:\Program Files\Android\android-sdk\platform-tools
7. Click OK.
Process:
1. Plug in your device using a USB cable and enable USB Debugging (in the settings menu under development on your device)
2. Click the start menu, and either search for "cmd" or click run, and type "cmd.exe"
3. Navigate to the folder that you downloaded the bootanimation.zip file to using the following commands:
Code:
dir - lists all files in the directory stated
cd - changes directory to the given path. If "cd ..", it will navigate one folder backwards.
4. Use the following commands (your file must be named bootanimation.zip)
Code:
adb pull /data/local/bootanimation.zip C:\
adb push bootanimation.zip /data/local
NOTE: Alternatively for part 2 you can type "adb push ", open windows explorer, and drag the file infront of the command which will give you the path without having to type it in or navigate to it.
5. Be patient, when it is done it will say something like "X kb/s (X bytes) in X seconds"
6. You can test to see if you did it correctly by rebooting manually or entering
Code:
adb reboot
7. If you no longer want a custom bootanimation, just enter
Code:
adb pull /data/local/bootanimation.zip C:\
Remember to look in your main HDD directory and delete the bootanimation.zip file if it in fact did show up there for some reason.
Note: if it STILL does not revert to the stock boot animation after doing this step, type
Code:
adb shell
cd /data/local
rm bootanimation.zip
**If you have adb problems or questions, I'm not the one to ask, Google is
Thank you for thanking me!
I was completely unaware you could change your boot animation unrooted, thanks
Sent from my Transformer Prime TF201 using Tapatalk 2 Beta-5
Thanks for this.
I thought it could not be done without a un-rooted Prime.
Thanks for this! Wasn't planning on rooting my Prime just yet and it's great that I can change the boot animation!
If you do copy a bootanimation.zip to the data/local directory do you have to do anything to the Original bootanimation.zip in the system/media Directory?
Sent from my Transformer Prime TF201 using Tapatalk
RonH54 said:
If you do copy a bootanimation.zip to the data/local directory do you have to do anything to the Original bootanimation.zip in the system/media Directory?
Sent from my Transformer Prime TF201 using Tapatalk
Click to expand...
Click to collapse
Nope! It stays there safe and sound and will start playing again as soon as you remove the one from /data/local!
Nolam20 said:
Nope! It stays there safe and sound and will start playing again as soon as you remove the one from /data/local!
Click to expand...
Click to collapse
Thanks. I had always just renamed my bootanimation.zip file and copied new one to the system/media directory but with these Bigger File size bootanimation.zip I was getting error that there not enough room to copy some of these bootanimation.zip files to the system/media directory.
Thanks
lovit
Awesome Workaround, but I have a little problem
I'm trying to get this working, but when I type in the commands in cmd, it says the adb is not recognized as a command. Help?
theManchur said:
I'm trying to get this working, but when I type in the commands in cmd, it says the adb is not recognized as a command. Help?
Click to expand...
Click to collapse
Make sure you've correctly done steps 3-7 of setup, otherwise cmd.exe will not know what to do with adb commands.
i always put my bootanimations in system/media and make sure your permissions are set like this
Uploaded with ImageShack.us
blaxican25 said:
i always put my bootanimations in system/media and make sure your permissions are set like this
Uploaded with ImageShack.us
Click to expand...
Click to collapse
His problem appears to be something different.
Can't get past the CMD command section. more detail help for us no bodies
Nolam20 said:
This is mainly for the users of my animations who were asking! - Have fun guys!
If you are rooted:
1. Download a root explorer app (ES File Explorer is suggested and free)
2. Enable root directory (in ES File Explorer hit menu, go to settings, and check "Up to Root", then go farther down and check "Root Explorer". Accept any Superuser requests.
3. Go back to your explorer and navigate to where you downloaded the "bootanimation.zip" file. Copy (or cut) it.
4. Navigate as far up as you can into your root directory, and then to /data/local/
5. Paste your "bootanimation.zip" file into /data/local/ (it MUST be named bootanimation.zip)
6. Reboot and enjoy!
Alternatively, you can put it in /system/media, HOWEVER, make sure you back up your stock bootanimation.zip (rename it to bootanimation.zip.bak or move it to your sdcard somewhere) in case something goes wrong.
If you are not rooted (or rooted, this method works with both)
**PC only! I'm not sure how to set the Max OSX terminal to accept "adb" commands by default!**
Setup:
1. Download the newest Android SDK
2. Click the start menu, right click "Computer", and click "Properties"
3. Click "Advanced System Settings" on the left (On Win7)
4. In the advanced tab, click "Environment Variables"
5. In the system variables window, find "Path", select it and click "edit"
6. At the end of the bottom line, paste:
For 64-bit users:
Code:
;C:\Program Files (x86)\Android\android-sdk\platform-tools
For 32-bit users:
Code:
;C:\Program Files\Android\android-sdk\platform-tools
7. Click OK.
Process:
1. Plug in your device using a USB cable and enable USB Debugging (in the settings menu under development on your device)
2. Click the start menu, and either search for "cmd" or click run, and type "cmd.exe"
3. Navigate to the folder that you downloaded the bootanimation.zip file to using the following commands:
Code:
dir - lists all files in the directory stated
cd - changes directory to the given path. If "cd ..", it will navigate one folder backwards.
4. Use the following commands (your file must be named bootanimation.zip)
Code:
adb pull /data/local/bootanimation.zip C:\
adb push bootanimation.zip /data/local
NOTE: Alternatively for part 2 you can type "adb push ", open windows explorer, and drag the file infront of the command which will give you the path without having to type it in or navigate to it.
5. Be patient, when it is done it will say something like "X kb/s (X bytes) in X seconds"
6. You can test to see if you did it correctly by rebooting manually or entering
Code:
adb reboot
7. If you no longer want a custom bootanimation, just enter
Code:
adb pull /data/local/bootanimation.zip C:\
Remember to look in your main HDD directory and delete the bootanimation.zip file if it in fact did show up there for some reason.
Note: if it STILL does not revert to the stock boot animation after doing this step, type
Code:
adb shell
cd /data/local
rm bootanimation.zip
**If you have adb problems or questions, I'm not the one to ask, Google is
Thank you for thanking me!
Click to expand...
Click to collapse
riorancho said:
Can't get past the CMD command section. more detail help for us no bodies
Click to expand...
Click to collapse
What specifically are you having trouble with?
Section 7 and down. I am not that dos smart to understand what you substitute in the cmd screen and I don't even know if my zip file is correct. I had it on my desktop then in c: adk\tool folder but I can't get any further than completing line 6 set up. Compressed with no compression using winzip.
And I really don't know if my txt file is correct?? My image size is 960 x 540
Using a Razr Maxx. site won't let me download the win zip file
Nolam20 said:
What specifically are you having trouble with?
Click to expand...
Click to collapse
riorancho said:
Section 7 and down. I am not that dos smart to understand what you substitute in the cmd screen and I don't even know if my zip file is correct. I had it on my desktop then in c: adk\tool folder but I can't get any further than completing line 6 set up. Compressed with no compression using winzip.
And I really don't know if my txt file is correct?? My image size is 960 x 540
Using a Razr Maxx. site won't let me download the win zip file
Click to expand...
Click to collapse
I'm not really sure how exactly I can help you, I'd go over the guide a few more times and google your problem.
I need specific problems like errors or what you don't understand.
Also, I don't know the size for a Droid Razr, but you can probably find it via a quick search.
I get lost here
Process:
1. Plug in your device using a USB cable and enable USB Debugging (in the settings menu under development on your device) OK
2. Click the start menu, and either search for "cmd" or click run, and type "cmd.exe" OK
3. Navigate to the folder that you downloaded the bootanimation.zip file to using the following commands:
Code: LOST RIGHT HERE WITH THE PROPER COMMAND
dir - lists all files in the directory stated
cd - changes directory to the given path. If "cd ..", it will navigate one folder backwards.
what command do I put in in cmd at this point?
dir - lists all files in the directory stated
cd - changes directory to the given path. If "cd ..", it will navigate one folder backwards.
and then:
Use the following commands (your file must be named bootanimation.zip)
Code:
adb pull /data/local/bootanimation.zip C:\
adb push bootanimation.zip /data/local
what is this command above??
Where do I save my boot zip file to??
Nolam20 said:
I'm not really sure how exactly I can help you, I'd go over the guide a few more times and google your problem.
I need specific problems like errors or what you don't understand.
Also, I don't know the size for a Droid Razr, but you can probably find it via a quick search.
Click to expand...
Click to collapse
riorancho said:
I get lost here
Process:
1. Plug in your device using a USB cable and enable USB Debugging (in the settings menu under development on your device) OK
2. Click the start menu, and either search for "cmd" or click run, and type "cmd.exe" OK
3. Navigate to the folder that you downloaded the bootanimation.zip file to using the following commands:
Code: LOST RIGHT HERE WITH THE PROPER COMMAND
dir - lists all files in the directory stated
cd - changes directory to the given path. If "cd ..", it will navigate one folder backwards.
what command do I put in in cmd at this point?
dir - lists all files in the directory stated
cd - changes directory to the given path. If "cd ..", it will navigate one folder backwards.
and then:
Use the following commands (your file must be named bootanimation.zip)
Code:
adb pull /data/local/bootanimation.zip C:\
adb push bootanimation.zip /data/local
what is this command above??
Where do I save my boot zip file to??
Click to expand...
Click to collapse
Ok, so, for example, if your file is in user/Fred/Documents and named bootanimation.zip, then you need to type:
Code:
cd users
then
Code:
cd Fred
then
Code:
documents
then type
Code:
adb pull /data/local/bootanimation.zip
Then
Code:
adb push bootanimation.zip /data/local
part of the problem may be that I have a mac and use windows under parellas so the files are not the same
in c: Users\DT\Documents DOCUMENTS IS WHERE ZIP FILE IS LOCATED
get error message: "adb" is not reconized as an internal or external command operabtle program or batch file
Nolam20 said:
Ok, so, for example, if your file is in user/Fred/Documents and named bootanimation.zip, then you need to type:
Code:
cd users
then
Code:
cd Fred
then
Code:
documents
then type
Code:
adb pull /data/local/bootanimation.zip
Then
Code:
adb push bootanimation.zip /data/local
Click to expand...
Click to collapse
riorancho said:
part of the problem may be that I have a mac and use windows under parellas so the files are not the same
in c: Users\DT\Documents DOCUMENTS IS WHERE ZIP FILE IS LOCATED
get error message: "adb" is not reconized as an internal or external command operabtle program or batch file
Click to expand...
Click to collapse
Then you didn't follow steps 2-7 correctly.
2. Click the start menu, right click "Computer", and click "Properties"
3. Click "Advanced System Settings" on the left (On Win7)
4. In the advanced tab, click "Environment Variables"
5. In the system variables window, find "Path", select it and click "edit"
6. At the end of the bottom line, paste:
For 64-bit users:
Code:
;C:\Program Files (x86)\Android\android-sdk\platform-tools
For 32-bit users:
Code:
;C:\Program Files\Android\android-sdk\platform-tools
7. Click OK.
This guide is for windows, if you're having problems getting it to work on Mac or a virtual Windows machine, I'm sorry but I can't help you.
Hi Everyone!
I want to make a .sh file which I am going to flash by CWM. I need your help in that.
1) In updater-script, when I extract it to /tmp, what permissions should I give to .sh file by set_perm?
2) I want it to execute "tar" command ("su" command that is root is not required) to operate on file from sdcard (/sdcard).
Can anyone tell me what should be the contents of .sh file.
I don't know much but I created this, and gave (0,0,0777) permissions but I am not getting required result. Please correct my script.
Code:
#!/sbin/sh
#Script to Odinize boot.img by [email protected] 2014
cd sdcard
tar -cf boot-sgy.tar boot.img
Above command works when I type it from terminal emulator, but does not work when flashed.
Please help me, I don't know anything about .sh but I have good knowledge of terminal commands & edify commands.
I followed this tutorial to merge many system_№.img file, to one, but I get a system.raw file. If I rename it to system.img, how can I verify if it can be flashed via fastboot?
The file can be explored with ext2explore
I followed the tutorial on Windows, but I can also switch to Ubuntu.
alessio89g said:
I followed this tutorial to merge many system_№.img file, to one, but I get a system.raw file. If I rename it to system.img, how can I verify if it can be flashed via fastboot?
The file can be explored with ext2explore
I followed the tutorial on Windows, but I can also switch to Ubuntu.
Click to expand...
Click to collapse
On Ubuntu I used the command
Code:
file system.raw
and the output was that the file is in ext4 format.
Executing the same command on a system.img file, extracted from a Google Factory Image, the output was that the file is an Android Sparse Image, so my hope wrote in OP has been annihilated.
After some searches, luckily I found a way to convert an ext4 image in an Android Sparse Image:
Type in Terminal
Code:
img2simg system.raw system.img
(if img2simg isn't installed, the Terminal should prompt to install it)
and executing this time the file command on the output file, the result is Android Sparse Image!
I followed the entire process also for userdata and cache partitions.
But unfortunately, the first part of the process for generating the .raw file works only on Windows for me. I've posted the issue on the related thread (linked in OP), but I don't received any answer yet, so for the moment for merging many .img files in an only one, you need to split the job in Windows and Ubuntu…