[Q]Download Command for Script - General Questions and Answers

I want a script I'm making to download an app and transfer... But wget wont work?
Android>iOS... Android FTW!

Bump?...
Android>iOS... Android FTW!

Have you tried apt-get
Sent from my Inspire 4G using xda premium

Gizmoe said:
Have you tried apt-get
Sent from my Inspire 4G using xda premium
Click to expand...
Click to collapse
So apt-get + url?
Android>iOS... Android FTW!

apt-get not found...
Android>iOS... Android FTW!

Josepho1997 said:
apt-get not found...
Android>iOS... Android FTW!
Click to expand...
Click to collapse
apt-get install -d URL will just download with the -d command. Works on Linux but not 100% sure about android.
Sent from my Inspire 4G using xda premium

Gizmoe said:
apt-get install -d URL will just download with the -d command. Works on Linux but not 100% sure about android.
Sent from my Inspire 4G using xda premium
Click to expand...
Click to collapse
I'll try it. I'll post the results later because study hall is about to end.
Android>iOS... Android FTW!

Still,apt-get not found
Android>iOS... Android FTW!

I'm also working on another script, but its not working. Here it is:
Code:
#!/system/bin/sh
busybox mount -o remount,rw /system
cd /system/framework
cp framework-res.apk /sdcard
rm /system/framework/framework-res.apk
cd /sdcard
mv framework-res.apk /system/framework
chmod 644 /system/framework/framework-res.apk
Android>iOS... Android FTW!

I get an error like cross-device link or something...
Android>iOS... Android FTW!

I got the framework-res.apk script to work. Now can somebody please help me with the download command.
Android>iOS... Android FTW!

Related

[APP] New Android Market 3.0.26

Here is the new Android Market. Version 3.0.26
Just installed and this thing looks sweet.
awesome too bad videos dont play on rooted devices
So how do I install it if I just have a rooted phone??
What the other 3 page thread about the same thing wasn't good enough for you?
Hey thanks alot man! The new market looks pretty tight.
Sent from my LG-P999 using XDA App
Playing movies on rooted Devices!
original post by : ogdobber
you can rent the movie with a rooted device...you just can't watch it (but you can with this trick)
open terminal on phone
Code:
su
mount -o rw,remount /system
mv /system/bin/su /system/bin/mu
close terminal and you will be able to watch rented movies on your rooted device
to revert open terminal
Code:
mu
mount -o rw,remount /system
mv /system/bin/mu /system/bin/su
google movie looks for su by name, easy work around because naming it to mu you still have suid, but rooted apps (as well as google movie) are looking for su "name" as well..with the terminal you can tell it suid is mu
gsript doesn't work on this because it too looks for su on the revert
you can copy the code to a notepad and paste it in terminal so you don't have to type every time
This is the only page on here.. where is the other link at for that?
and for everybody that dont know if you dont want to do the above mentioned code you can rent with market and then just watch it in your browser whether your rooted or not..
KingDavid63 said:
and for everybody that dont know if you dont want to do the above mentioned code you can rent with market and then just watch it in your browser whether your rooted or not..
Click to expand...
Click to collapse
Brilliant. Thank you.
I don't even have a movies tab lol, is it because it senses root? Like the new layout though..
Sent from my LG-P999 using XDA App
jland22 said:
I don't even have a movies tab lol, is it because it senses root? Like the new layout though..
Sent from my LG-P999 using XDA App
Click to expand...
Click to collapse
Yeah me neither I tried even installing it manually thru the help tab on the market but no go I guess some people got the movie tab and some dont.......
Sent from my LG-P999 using XDA App
speedy00002 said:
This is the only page on here.. where is the other link at for that?
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=1166247
Please continue discussion here: http://forum.xda-developers.com/showthread.php?p=15596000#post15596000

[Q] How to install Punjabi Fonts on MIUI ROM

Dear Friends ! Please help me installing Punjabi fonts on MIUI ROM. I tried with the help of Terminal emulator but it didn't helped. This was the command i gave $ su (then wait for the superuser screen and press yes)
# mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
# chmod 4755 /system/fonts/DroidSansFallback.ttf
# dd if=/sdcard/DroidSansFallback.ttf of=/system/fonts/DroidSansFallback.ttf
# reboot Please help me as punjabi alphabets appear as blocks in Facebook application and Stock and Opera Mobile Browser. Thanks
Any kind fellow willing to help?
Sent from my GT-I9003 using XDA
lubob2011 said:
Dear Friends ! Please help me installing Punjabi fonts on MIUI ROM. I tried with the help of Terminal emulator but it didn't helped. This was the command i gave $ su (then wait for the superuser screen and press yes)
# mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
# chmod 4755 /system/fonts/DroidSansFallback.ttf
# dd if=/sdcard/DroidSansFallback.ttf of=/system/fonts/DroidSansFallback.ttf
# reboot Please help me as punjabi alphabets appear as blocks in Facebook application and Stock and Opera Mobile Browser. Thanks
Click to expand...
Click to collapse
You can rather use Rootexplorer,right?
That is prertty simple.
I tried with root explorer but was of no help.
Sent from my GT-I9003 using XDA
lubob2011 said:
I tried with root explorer but was of no help.
Sent from my GT-I9003 using XDA
Click to expand...
Click to collapse
You tried the Gurmukhi thing which I posted in the MIUI Q&A thread?
Try that.
Because, THat worked for me in stock.
bangalorerohan said:
You tried the Gurmukhi thing which I posted in the MIUI Q&A thread?
Try that.
Because, THat worked for me in stock.
Click to expand...
Click to collapse
Yes Rohan ! I tried Gurmikhi font from the link given by you, but still script is rendered as blocks. I had read online that there's some compatibility issue with ROMS other than stock with regional fonts. Should I try on stock ROM ?
Sent from my GT-I9003 using XDA
Eventally another font of a theme is used. Try to make a your own theme that only has your font files in it.
Sent from my GT-I9003 using XDA
Please help kind developers as this is a very minor issue for you guys. Please support me with a solution. I will be grateful to you. Regards.
Sent from my GT-I9003 using XDA
lubob2011 said:
Please help kind developers as this is a very minor issue for you guys. Please support me with a solution. I will be grateful to you. Regards.
Sent from my GT-I9003 using XDA
Click to expand...
Click to collapse
Try it on Stock ROM
On Stock ROM, it works..
Try the Gurmukhi thing TWICE>
Try this, download the Arial Unicode font from this link and replace it as DroidSansFallback.ttf,
http://elfadwaps.com/arial-unicode-...ts-most-of-the-asian-and-indic-languages.html
I think it should support punjabi font also. If it does not work replace original file.
Sent from my GT-I9003 using Tapatalk
This method works: http://forum.xda-developers.com/showthread.php?t=2309286

[GUIDE]Compile AOKP JB for Pico

Hey guys,I am here to show you how to compile AOKP JB for Pico.
Currently there is no AOKP JB device tree that will work.But this will help in future if someone is interested.
What you need:
Ubuntu 12.04 or 12.10 (64bit,will not work on 32bit)
Terminal
Decent hardware (at least 4GB RAM and dual-core CPU)
Required packages
Attention
Brain
Click to expand...
Click to collapse
Installing the packages
Just copy-paste this in terminal:
apt-get install git-core gnupg flex bison gperf build-essential \
zip curl libc6-dev zlib1g-dev libncurses5-dev x11proto-core-dev \
libx11-dev libreadline6-dev libgl1-mesa-dev tofrodos python-markdown \
libxml2-utils xsltproc pngcrush
Click to expand...
Click to collapse
Setup Java
In terminal,copy-paste this:
add-apt-repository ppa:webupd8team/java
apt-get update
apt-get install oracle-java6-installer
apt-get install oracle-java6-set-default
Click to expand...
Click to collapse
Download Google repo tool and sync the source
-Google repo tool
mkdir ~/bin
curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
chmod a+x ~/bin/repo
Click to expand...
Click to collapse
Now reboot your computer.
-Sync AOKP source
mkdir ~/aokp_jb
cd ~/aokp_jb
repo init -u git://github.com/AOKP/platform_manifest.git -b jb
repo sync
Click to expand...
Click to collapse
Now get a coffe,or two,or three...or go to sleep.Will take some time.
After repo sync:
-Setup the vendor tree
Download the vendor tree and extract proprietary folder in archive to /aokp_jb/android/system/vendor/htc/pico (create the folders manually)
Click to expand...
Click to collapse
-Setup the device tree
Here is the problem.Currently the device tree will just not compile.Devs could help.Isn't really hard,need to modify the CM10 device tree.
Click to expand...
Click to collapse
-Setup the kernel source
Download the kernel 3.0 source and extract files and folders in archive to /aokp_jb/android/system/kernel/htc/pico (create folders manually)
Click to expand...
Click to collapse
Download links in 2nd post
Now you are ready to build.
Copy-paste this in terminal
. build/envsetup.sh
brunch aokp_pico-userdebug -jX
replace x with your cpu cores number +1-2
Click to expand...
Click to collapse
Now go out with friends.If you succesfully got a build,locate the build in /aokp_jb/android/system/out
I make this guide for people who want to compile AOKP JB .I don't have this device anymore but I could help for device tree.
Vendor tree:
https://github.com/sakindia123/ics-vendor-pico/archive/master.zip
Kernel 3.0 source:
https://github.com/sakindia123/htc_pico_kernel_3.x/archive/master.zip
1. No need for each ROM new guide!
2. U copied half a tut from me (other half is just rewrite..)
Sent from a chocolate cake.
1. No need for each ROM new guide!<br />
2. U copied half a tut from me (other half is just rewrite..)<br />
<br />
Sent from a chocolate cake.
Click to expand...
Click to collapse
Oh,Really? -_-
Sent from my LG-F160K using xda app-developers app
oblikas said:
Oh,Really? -_-
Sent from my LG-F160K using xda app-developers app
Click to expand...
Click to collapse
Thanks for the guide but no offence ...seriously no need for tutorials on all the ROMs. Then this forum will become a guide thread. Any who.. thanks.
Sent from my HTC Explorer A310e using xda app-developers app
3gb ram would do
Sent from my HTC Explorer A310e using xda premium
subh98 said:
3gb ram would do
Sent from my HTC Explorer A310e using xda premium
Click to expand...
Click to collapse
use linux swap to increase the ram
russelldias said:
use linux swap to increase the ram
Click to expand...
Click to collapse
I have 3gb ram and a swap partition if 3gb on my hard drive..
Do I still need to make a swap on the use drive (more ram) ..
Sent from my HTC Explorer A310e using xda app-developers app
artistaditya said:
I have 3gb ram and a swap partition if 3gb on my hard drive..
Do I still need to make a swap on the use drive (more ram) ..
Sent from my HTC Explorer A310e using xda app-developers app
Click to expand...
Click to collapse
better safe than sorry
ngoralph said:
better safe than sorry
Click to expand...
Click to collapse
I mean isn't a 3gb swap on hard drive more than enough for a pc with 3gb ddr3 ram..??
Sent from my HTC Explorer A310e using xda app-developers app
artistaditya said:
I mean isn't a 3gb swap on hard drive more than enough for a pc with 3gb ddr3 ram..??
Sent from my HTC Explorer A310e using xda app-developers app
Click to expand...
Click to collapse
hmmm i have 3gb swap for 6gb ram

Linux, ubuntu,debian and backtrack 5 on android [mytouch 4g]

SO, I WAS READING ( as i always do) AND CAME ACROSS A GROUP OF DEVELOPERS WHO HAVE MANAGED TO GET UBUNTU,LINUX,BACKTRACK 5 AND OTHER OS's TO RUN ON ANDROID.
THE GOOD NEWS IS THAT U DONT HAVE TO FLASH IT AS A ROM OR ANYTHING. AND IT ALSO DOESNT MESS UP YOUR ANDROID SYSTEM. ITS WORKS LIKE A VIRTUAL MACHINE, TO BREAK IT DOWN IT RUNS ON TOP OF YOUR ANDROID OS JUST LIKE ANY APPLICATION WOULD DO. BUT IT NEEDS A KERNEL THAT SUPPORTS LOOP DEVICES.(Dont really know what that is)
I PERNSONALLY TRIED IT ON THE MYTOUCH 4G AND IT WORKS VERY WELL, ONLY FOR A LITTLE BIT OF SLOWNESS (that happens when u have lots of apps running in the background.) SO I SUGGEST YOU RUN IT AFTER A REBOOT.
I TESTED IT ON THESE ROMS AND KERNELS
ROM KERNEL
***DARK UNICORN RESURECTED**** ****COMB_KERNEL_WOB****** (dont know about the rest of thier kernels).
***PACman_GLACIER v22.0.1********* ************3.0.66_CODERZS_KERNEL_2************
*****CYANOGENMOD 7.2*************** ************ COMB_KERNEL_WOB*****
THERE MIGHT BE OTHER ROMS AND KERNELS THAT MIGHT WORK. SO YOU HAVE TO TEST THEM AND FIND OUT.
NOW HERE IS A LINK TO THE WEBSITE
[[ http://linuxonandroid.org/ ]]
FOR IT TO WORK YOU WOULD HAVE TO DOWNLOAD THE LUNCH APP (Its an APK file). THEN YOU DOWNLOAD THE IMAGE OF YOUR CHOICE BEING IT UBUNTU, LINUX,DEBIAN,BACKTRACK5 ETC....
FOR DOWNLOADS, YOU CAN VISIT THESE SITES:
FOR THE APK OR THE LUNCH APP VISIT
HERE: [[ http://sourceforge.net/projects/lin...omplete_Linux_Installer_08012013.apk/download ]]
OR
[[ https://play.google.com/store/apps/details?id=com.zpwebsites.linuxonandroid ]]
FOR THE IMAGES YOU CAN VISIT
HERE: [[ http://linuxonandroid.org/downloads/ ]]
OR FOR SPECIFIC IMAGES, YOU CAN VIST THESE SITES
NOTE: SOME OF THE OS's HAVE CORE,SMALL AND FULL IMAGES. THE CORE IMAGES, WELL CONTAIN THE CORE FILES WITH JUST A COUPLE OF APPS INSTALLED.(I wont post the link for the core images but if you want it visit the link posted above). THE SMALL IMAGE HAS LIMITED SOFTWARES PRE-INSTALLED WHILES THE FULL HAS MANY OR A WIDE RANGE OF SOFTWARES PRE-INSTALLED.
**********UBUNTU*******************
FULL IMAGE
LINK: [[ http://sourceforge.net/projects/lin...tu/12.04/full/ubuntu1204-v4-full.zip/download ]]
SMALL IMAGE
LINK: [[ http://sourceforge.net/projects/lin.../12.04/small/ubuntu1204-v4-small.zip/download ]]
**********BACKTRACK*************
IMAGE
LINK: [[ http://sourceforge.net/projects/lin...ktrack/Image/backtrack-v10-image.zip/download ]]
**********FEDORA****************
FULL IMAGE
LINK: [[ http://sourceforge.net/projects/lin...ktrack/Image/backtrack-v10-image.zip/download ]]
SMALL IMAGE
LINK: [[ http://sourceforge.net/projects/linuxonandroid/files/Fedora/Small/fedora-BETA-small.zip/download ]]
********OPENSUSE*******
CORE IMAGE (its the only image available at the moment)
LINK: [[ http://sourceforge.net/projects/lin...nSUSE/Core/opensuse-ALPHA-core.zip/download]]
*********DEBIAN**********
SMALL IMAGE
LINK: [[ http://sourceforge.net/projects/linuxonandroid/files/Debian/Image/Small/debian-v4-small.zip/download ]]
FULL IMAGE
LINK: [[ http://sourceforge.net/projects/linuxonandroid/files/Debian/Image/Large/debian-v4-large.zip/download ]]
*******ARCHLINUX*********
SMALL IMAGE
LINK: [[ http://sourceforge.net/projects/lin...Linux/Small/archlinux-BETA-small.zip/download ]]
FULL IMAGE
LINK: [[ http://sourceforge.net/projects/lin...Linux/Large/archlinux-BETA-large.zip/download ]]
THATS ABOUT IT FOR THE IMAGES FOR NOW.
NOTE: FOR THIS TO WORK ROOT IS NEED AND A FULL INSTALLATION OF BUSYBOX AND TERMINAL EMULATOR AND ANDROID VNC VIEWER. AND ALSO, I TAKE NO CREDIT FOR THIS, I AM JUST HELPING OUT SO THAT PEOPLE CAN KNOW ABOUT IT.
HELP IS GIVEN IN THE APK. SO HOW HARD CAN IT BE
SO I THINK THATS ALL FOR NOW GUYS.
IF I HAVE HELP YOU, PLEASE USE THE THANKS BUTTON.
Why are you yelling?
THEindian said:
Why are you yelling?
Click to expand...
Click to collapse
you mean the CAPS?? Sorry Lol.
Lol. Yeah you don't need all capitals calm down xD.
Sent from my MyTouch 4G using xda app-developers app
Nice find
Sent from my HTC Sensation 4G using xda app-developers app
I'm gonna install Ubuntu and see how it is.
Sent from my MyTouch 4G using xda app-developers app
N_otori0us_ said:
I'm gonna install Ubuntu and see how it is.
Sent from my MyTouch 4G using xda app-developers app
Click to expand...
Click to collapse
Sure. Go ahead and try. its nice. And after messing around with it you would like it.
And most of its commands work on android in the terminal emulator.
Haha I actually like it. But how do I find wifi in Ubuntu small image.
Sent from my MyTouch 4G using xda app-developers app
http://maddox.xmission.com/keyboard4.jpg
You have to open the terminal in Ubuntu. Then u type
"sudo -s" (it would ask for your password, enter it.)
Then type
"iwlist scan"
It would give you a whole number of interfaces. But WiFi should be on "p2p0".
Or u can type
"sudo -s"
"iwlist p2p0 scanning"
Sent from my myTouch 4g using xda app-developers app
estallings15 said:
http://maddox.xmission.com/keyboard4.jpg
Click to expand...
Click to collapse
Ahahah
Sent from my HTC Merge using xda app-developers app
coderzs said:
Ahahah
Sent from my HTC Merge using xda app-developers app
Click to expand...
Click to collapse
Very Funny
I try backtrack working fine.
Tip: due to small screen size you can install vnc viewer on desktop and connect your android Linux.
Sent from my myTouch 4g using xda app-developers app
loading issues
I followed all the instructions but this is what i get
sh-3.2$
sh-3.2$ cd /sdcard/external_sd/backtrack
sh-3.2$ su
<inuxonandroid/files/bootscript.sh /sdcard/external_sd/backtrack/backtrack.img
Checking loop device... FOUND
mount: mounting /dev/block/loop255 on /data/local/mnt failed: No such device
Error: Unable to mount the loop device!
sh-3.2#
Sorry if the solution is obvious im new to this
HÆÐÉS said:
I followed all the instructions but this is what i get
sh-3.2$
sh-3.2$ cd /sdcard/external_sd/backtrack
sh-3.2$ su
<inuxonandroid/files/bootscript.sh /sdcard/external_sd/backtrack/backtrack.img
Checking loop device... FOUND
mount: mounting /dev/block/loop255 on /data/local/mnt failed: No such device
Error: Unable to mount the loop device!
sh-3.2#
Sorry if the solution is obvious im new to this
Click to expand...
Click to collapse
What did you try to run.
Sent from my myTouch 4g using xda app-developers app
HÆÐÉS said:
I followed all the instructions but this is what i get
sh-3.2$
sh-3.2$ cd /sdcard/external_sd/backtrack
sh-3.2$ su
<inuxonandroid/files/bootscript.sh /sdcard/external_sd/backtrack/backtrack.img
Checking loop device... FOUND
mount: mounting /dev/block/loop255 on /data/local/mnt failed: No such device
Error: Unable to mount the loop device!
sh-3.2#
Sorry if the solution is obvious im new to this
Click to expand...
Click to collapse
Its because your current kernel doesn't support loop device. You have to flash a new kernel. If you are using a mytouch 4g, and you using a non sense ROM, you can flash coderz 3.66 kernel or try other kernels.
Sent from my myTouch 4g using xda app-developers app
N_otori0us_ said:
What did you try to run.
Sent from my myTouch 4g using xda app-developers app
Click to expand...
Click to collapse
I tried to run backtrack
---------- Post added at 09:14 AM ---------- Previous post was at 09:03 AM ----------
mickeyasamoah said:
Its because your current kernel doesn't support loop device. You have to flash a new kernel. If you are using a mytouch 4g, and you using a non sense ROM, you can flash coderz 3.66 kernel or try other kernels.
Sent from my myTouch 4g using xda app-developers app
Click to expand...
Click to collapse
Doesnt this mean im supposed to be able to support loop devices
sh-3.2$ fgrep loop /proc/devices
7 loop
sh-3.2$
HÆÐÉS said:
I tried to run backtrack
---------- Post added at 09:14 AM ---------- Previous post was at 09:03 AM ----------
Doesnt this mean im supposed to be able to support loop devices
sh-3.2$ fgrep loop /proc/devices
7 loop
sh-3.2$
Click to expand...
Click to collapse
I guess its the scripts that comes with the app,these same scripts are the ones which launches the backtrack distro. I personally faced some problems with the new scripts but i have the old version which works fine on my device. I would try uploading it or you could search for an old version of the apk.
Edit
Do you have busybox installed??
Pls install it if u don't have it.
Sent from my myTouch 4g using xda app-developers app
After messing around with it i've got a new problem
sh-3.2$
sh-3.2$ cd /sdcard/external_sd/backtrack
sh-3.2$ su
sh-3.2# sh /data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh /sdcard/external_sd/backtrack/bt5.img
sh: applet not found
sh-3.2#
What applet is it
HÆÐÉS said:
After messing around with it i've got a new problem
sh-3.2$
sh-3.2$ cd /sdcard/external_sd/backtrack
sh-3.2$ su
sh-3.2# sh /data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh /sdcard/external_sd/backtrack/bt5.img
sh: applet not found
sh-3.2#
What applet is it
Click to expand...
Click to collapse
I Dont really know but i guess it has something to do with busy box.
What ROM are u running and do u have busy box installed?
Sent from my myTouch 4g using xda app-developers app

How obb works

I tried modding GTA 3 by extackting obb as zip then modding the files I want then recompresseds it to zip then renamed it back to obb but the application rejected it help please.
Sent from my SAMSUNG-SGH-I747 using Tapatalk
aron2hip said:
I tried modding GTA 3 by extackting obb as zip then modding the files I want then recompresseds it to zip then renamed it back to obb but the application rejected it help please.
Sent from my SAMSUNG-SGH-I747 using Tapatalk
Click to expand...
Click to collapse
You need the key which the obb is packed with in order to repack it.
from stackoverflow.com/questions/4524981/what-is-obbopaque-binary-blob-in-android-develop-site :
$ mkobb.sh -d /data/myfiles -k my_secret_key -o /data/data.obb
$ obbtool a -n com.example.myapp -v 1 -s seed_from_mkobb /data/data.obb
Click to expand...
Click to collapse
BTW how did you repack it?
Sent from my Nexus 7 using xda app-developers app

Categories

Resources