Running zip files from terminal emulator - Fascinate Q&A, Help & Troubleshooting

I've seen many posts saying you can run zip files designed for CWM from terminal emulator. I've tried this but I must not be doing it right. Can someone give me a sample command line sequence of what you type to run it? Do you use the full file name with the .zip extension included?
Sent from my SCH-I500 using XDA App

Related

Terminal Emulator

Is there any way to install an apk file via the terminal emulator? If so, what parameters are used?
Sent from my ERIS using XDA App

[Q] Scripts / Mods

How do you know if you have to flash in cwm or terminal emulator? or both?
You cannot flash anything in terminal emulator. TE can be used to run scripts that are already present on your system. CWM is for actually flashing the files onto your phone, not directly running any of them.
Sent from my SCH-I500 using XDA App

[Q] Flash rom using nandroid-mobile.sh/adb

Can we flash rom using PC ?? Its not that big a deal but sounds cool to me.. i cudnt find any such option in nandroid-mobile.sh.. I mean after i reboot into recovery i dont want to press any buttons on my phone..Juts hook up the phone to pc and flash the new rom using say adb
It should be possible. When flashing zips, the recovery checks the update-script file found in the META-INF folder. Mimicking the steps there and inputting the correct adb commands and copying the files on the appropriate folders and partitions on your phone should yield the same results.
But as you may have guessed, this isn't practical.
so u mean to say that i unzip the contents of the zip archive and just execute the script from terminal ???That shud be it??? I know its impractical but wat the hell i love doing things from my debian terminal
Update: that script is just a set of messages to be shown during actual update process..it isnt the script ..
instead the script apparently "update-binary" is a binary executable and not a shell script..DO you think that unzip and calling this binary might work??
I'm not entirely sure. I think adb has it's limitations. Check other's replies xD

Creating .zip files in Android command line

Hi guys,
Couldn't find the answer to this anywhere but I noticed in the newer releases of busybox there's no 'zip' command anymore. I'm running busybox 1.19 on my Incredible.
I have been using this command to create different bootanimation.zip files from my phone but am wondering if there is an alternative command I can use from within Android. I've tried tar -cvzf but I believe tar archives/compresses the files differently and renaming the extensions to .zip does not work.
Any ideas besides using an actual PC to do what I want to do?
Thanks,
Zebdor
Sent from my Incredible using XDA App
There are apps out there such as AndroZip, that essentially creates zip files.
If you are doing this for an app, there are built in zip classes in Java.
java.util.zip.*;
Edit: Just realized you asked for it to be command line. I will keep looking!
Yeah, I used to use 'zip -0r ...' to zip up a folder but for some reason the busyboxes I've tried downloading don't come with the zip command anymore...
I'm looking through the BusyBox source...
Does it have to be .zip? I mean there are plenty of others to choose from such as tar, gz, bz.
I can't find anything on the website why it is left out.
Best of luck
travmanx said:
I'm looking through the BusyBox source...
Does it have to be .zip? I mean there are plenty of others to choose from such as tar, gz, bz.
I can't find anything on the website why it is left out.
Best of luck
Click to expand...
Click to collapse
I was thinking of using tar and gz but every tutorial I've read says Android requires the bootanimation to be in .zip format uncompressed. I even tried tarballing it as bootanimation.tar but it didn't work...
did anyone ever find an answer to this?
im currently trying to find a portable binary for just zip (or something like busybox that includes zip) because im trying to automate creation of a cwm zip ON an android device during the installation of another cwm zip
iXNyNe said:
did anyone ever find an answer to this?
im currently trying to find a portable binary for just zip (or something like busybox that includes zip) because im trying to automate creation of a cwm zip ON an android device during the installation of another cwm zip
Click to expand...
Click to collapse
This seems to work fine: https://code.google.com/p/zip-for-android/people/[email protected]
I thought I was crazy...
I have surely been missing the zip command too... I just got done downloading and about to reboot into recovery to install...
Zarchiver is a free app in the market that i use to.make boot animation zips and any other kind of zip on my Android device.

free not found in terminal?

GT-I9300 with siyah kernel 1.5. Trying to enable swap partition by using hardswap mod:http://forum.xda-developers.com/showthread.php?t=1814311. But after I installed terminal emulator, there's no free command. The terminal displays "/system/bin/sh: free: not found ".
Another question is that when I was installing the zip in cwm, one line of the output was "script successfully installed to init.d", but I can't find that folder at all. Where is it?
Try installing busybox. Download an app that does this by searching for "busybox" on the market.
Stericson's (don't know if I spelt that right) or JRummy's busybox installers should be fine.
Sent from my GT-I9300 using xda app-developers app
zhshr said:
Another question is that when I was installing the zip in cwm, one line of the output was "script successfully installed to init.d", but I can't find that folder at all. Where is it?
Click to expand...
Click to collapse
Look in: /system/etc :highfive:

Categories

Resources