Application /software needed - General Questions and Answers

Okk im looking for a software for pc or Android anyone would work
What i need to do is edit around 150 xml files
In all of them i have to do the same changes of copy and replace
For ex in all of them i have to vhange somc:colorizable with colorizable
Such changes i have to do.plzz suggest some apps or software
Sent from my C2305 using Tapatalk

A bash script using something like "sed" would do the trick.

Dark3n said:
A bash script using something like "sed" would do the trick.
Click to expand...
Click to collapse
Sir if i tell u what i want to search and replace in each file thwn can u write a script for me
Actually there are only 2 things that havr to be done in all files plzz sir
Sent from my C2305 using Tapatalk

abhishekr700 said:
Okk im looking for a software for pc or Android anyone would work
What i need to do is edit around 150 xml files
In all of them i have to do the same changes of copy and replace
For ex in all of them i have to change somc:colorizable with colorizable
Such changes i have to do.plzz suggest some apps or software
Click to expand...
Click to collapse
Try this:
Place all the files to be edited in a directory, say 'temp'
Open terminal in your Linux OS and change current directory to this created directory using cd command.
Now for example, to replace somc:colorizable with colorizable in all files, use this command in terminal:
Code:
sed -i 's/somc:colorizable/colorizable/g' *.xml

GokulNC said:
Try this:
Place all the files to be edited in a directory, say 'temp'
Open terminal in your Linux OS and change current directory to this created directory using cd command.
Now for example, to replace somc:colorizable with colorizable in all files, use this command in terminal:
Code:
sed 's/somc:colorizable/colorizable/g' *.xml
Click to expand...
Click to collapse
Thabks but i got a way of doing it via notepad ++
Sent from my C2305 using Tapatalk

Related

Root Question

I'm currently trying to browse through the files on the G1 and I go into astro and go into the data folder and there should be a hidden folder called app-private right under that folder but I cant see it, is there a special command I should be putting into a terminal emulator or something to see the hidden folders?
Any help is greatly appreciated.
Edit: Forgot to mention that I should have the root access, I did follow all steps in rooting the g1 so that I'd be able to put themes on it.
I dont thing you can see the content of data/app and data/app-private using astro, you can see it once you back it up to your sd
I don't think Astro can do it. You can browse normally via the terminal as root using ls.
derfolo said:
I don't think Astro can do it. You can browse normally via the terminal as root using ls.
Click to expand...
Click to collapse
I'm not familiar with any of the commands so would you be able to tell me which commands to use to browse through folders and copy documents or point me in the dirrection of where to look for those commands?
mappydamouse said:
I'm not familiar with any of the commands so would you be able to tell me which commands to use to browse through folders and copy documents or point me in the dirrection of where to look for those commands?
Click to expand...
Click to collapse
search for linux commands:
ls -l /data
is a good place to start .. but if you're not familiar with the commands i would recommend becoming familiar with file structures first .. you can "ls -l" anything you want
ls -l /data/app
ls -l /data/app-private
just for starters .. other commands are there .. most of what works on linux will work on the G1 .. JF has provided busybox commands as well which further simplify the Terminal
Ok thank you for the help I was using cd and ls to move through and look at files but as I'm more familiar with windows commands and not at all with linux anymore I couldn't figure out the copy and paste commands.
mappydamouse said:
Ok thank you for the help I was using cd and ls to move through and look at files but as I'm more familiar with windows commands and not at all with linux anymore I couldn't figure out the copy and paste commands.
Click to expand...
Click to collapse
in that case .. if you ARE familiar with the file structure and C:\> then try this:
http://www.yolinux.com/TUTORIALS/unix_for_dos_users.html
LucidREM said:
in that case .. if you ARE familiar with the file structure and C:\> then try this:
http://www.yolinux.com/TUTORIALS/unix_for_dos_users.html
Click to expand...
Click to collapse
Sweetness, this helps out a hell of alot, thank you very much.

[Q] Where do you put apks you want to push to your phone?

sorry noob question, but when you have an apk on the computer, what folder do you put it in so that you can push it to your phone via ADB?
...and where do the files go when you 'pull' them from your phone? ie what directory?
thank you!
.apk you can install like any other app so u don't need to push it. As far as pulling I'm not sure I use root explorer to move files instead of adb
Sent from my Nexus S
FaithCry said:
sorry noob question, but when you have an apk on the computer, what folder do you put it in so that you can push it to your phone via ADB?
...and where do the files go when you 'pull' them from your phone? ie what directory?
thank you!
Click to expand...
Click to collapse
You can just put them wherever you want and specify the full path in your adb command, both ways...
For example, I recently pulled a file from my phone to push to another:
Code:
adb pull /data/app/com.neevo.mobiledefense-1.apk /Users/dave/Dropbox/Android\ Apps
If you're using windows command prompt you could just drag the file into the terminal I believe and it will autopopulate the directory. Correct me if I'm wrong.
Sent from my Nexus S using XDA App
peeturr said:
If you're using windows command prompt you could just drag the file into the terminal I believe and it will autopopulate the directory. Correct me if I'm wrong.
Sent from my Nexus S using XDA App
Click to expand...
Click to collapse
That should work on Windows, and on Macs as well. Probably would work in a Linux GUI environment as well.
easiest way is to install from Dropbox
FaithCry said:
sorry noob question, but when you have an apk on the computer, what folder do you put it in so that you can push it to your phone via ADB?
...and where do the files go when you 'pull' them from your phone? ie what directory?
thank you!
Click to expand...
Click to collapse
easiest way is to use DROP BOX
Then drag any APK you want to install into the Drop Box
and in your phone just install the app or game from you Drop Box
the best thing is you get a FREE 2GB, when you sign up

unrar 4.0.0 compiled for arm linux (android)

I can't believe theres an app in the market that makes you pay for an unrar library..
here is the arm binary freshly compiled so you may use it with android term.
tar xf unrar.tar -C /data/local/tmp/
chmod 777 /data/local/tmp/unrar
cd /data/local/tmp/unrar
<test it out> (aka ./unrar)
move to system/xbin or wherever.. just not sdcard.
perhaps this has been posted before.. but probably not version 4. woo post whore.
thanks, this is much faster than unrar pro on the market
btw, can you tell me how can I extract only ONE file from a rar with this utility?
thanks in advance
Adolf1994 said:
thanks, this is much faster than unrar pro on the market
btw, can you tell me how can I extract only ONE file from a rar with this utility?
thanks in advance
Click to expand...
Click to collapse
Pretty sure its unrar x file.rar -n file/youwant/to/extract/
Or unrar x file.rar [email protected]
its a lengthly --help output.. its all there!
Maybe U cud write a UI app too ( a rooted one ) ..that wud make it cooler
Blades said:
Pretty sure its unrar x file.rar -n file/youwant/to/extract/
Or unrar x file.rar [email protected]
its a lengthly --help output.. its all there!
Click to expand...
Click to collapse
nope, it doesn't work
I get this everytime
Code:
$ unrar x System\ 3.0.A.2.181.rar -n /system/app/textinput-tng.apk /sdcard/download/play
UNRAR 4.00 freeware Copyright (c) 1993-2011
Alexander Roshal
Extracting from System 3.0.A.2.181.rar
No files to extract
edit: oh god, wildcard that made it
-n *textinput-tng.apk worked well
sarfaraz1989 said:
Maybe U cud write a UI app too ( a rooted one ) ..that wud make it cooler
Click to expand...
Click to collapse
Oh ****. Serious?
i could probably work something up pretty easily..might look at it later.
Illegal Instruction
On x10 mini pro, getting 'illegal instruction' error...
hi there,
I tried this and it does work on my phone which is really cool. But it doesn't work on the emulator and someone reported it doesn't work on the x10? Hmm shouldn't this work on all devices if its compiled for the arm architecture? Also I tried to run the binaries that are posted by RarLabs found here and they do not run either
(Ok I cannot actually post the link but you should be able to find it)
Command line freeware ARMEL v4 Linux UnRAR.
Command line freeware ARM Linux UnRAR.
These are different architectures too? I was considering using this binary in my app but wonder how many devices it will be incompatible with
I extracted "unrar" to /system/xbin, and tried it there from my PC with adb shell and from phone with terminal emulator... it says "cannot execute - Permission denied".
I'm on a rooted verizon lte samsung galaxy nexus.
I tried "unrar x file.rar" at the command line...
edit: I executed "chmod 777 /system/xbin/unrar" b/c thats where I put the unrar command/shell file, and that fixed it... i guess that makes it executable.
Sweet! Thanks!!! +100
yep you can't run on sd card.
i tested this executable on many many devices, it works on about 50% of them only though
Any geniuses out there know how to compile it to make it 100% compatible?
Thank you, very helpful
govindadas said:
I executed "chmod 777 /system/xbin/unrar" ...... and that fixed it... i guess that makes it executable.
Sweet! Thanks!!! +100
Click to expand...
Click to collapse
Hi
when I do chmod 777 on the file,
I get
"Operation not permitted"
That's because my phone is not rooted? :/
I there anyway to succeed in doing chmod when the phone is not rooted?
Thank you
unrar 5.1.6 file for android arm
Blades said:
I can't believe theres an app in the market that makes you pay for an unrar library..
here is the arm binary freshly compiled so you may use it with android term.
tar xf unrar.tar -C /data/local/tmp/
chmod 777 /data/local/tmp/unrar
cd /data/local/tmp/unrar
<test it out> (aka ./unrar)
move to system/xbin or wherever.. just not sdcard.
perhaps this has been posted before.. but probably not version 4. woo post whore.
Click to expand...
Click to collapse
hi there this works perfecty on my android system...
but i have a question would it bee possible to make another one for version 5.1.6? this would realy help me
EagleEyeX said:
hi there this works perfecty on my android system...
but i have a question would it bee possible to make another one for version 5.1.6? this would realy help me
Click to expand...
Click to collapse
Nobody?
EagleEyeX said:
hi there this works perfecty on my android system...
but i have a question would it bee possible to make another one for version 5.1.6? this would realy help me
Click to expand...
Click to collapse
Hi, I know this is an old post, but I need desperately an Unrar command line module for Android, using the latest version. Is there any possibility to generate it again?
Many thanks in advance!

how to add the audio in the boot animation in stock ROM???

how to add the audio in the boot animation in the stock ROM???
i did a search , there are somebody asked the sama question in other models , but non of them are answered
i saw one of them said use SGS tools , but i only find one of Galaxy S ...
so , is there anyway to add audio in the boot animation?
- -
someone, plz
Try asking brainmaster. He got bootsound on his rom he might be able to guide u on how to do it.
Sent from my Nexus S 4G using xda premium
I saw CM7 and MIUI has boot sound
I also check his ROM , in his bootanmimation file doesn't have any sound party
just this:
"480 854 29
p 1 0 part0
p 5000 0 part1
"
but it does have bootaudio file in /System/Media
so I wonder it's other file that controls sound which I can not locate...
Have you tried this tutorial? I just iterated all the steps and it looks really promising:
http://forum.xda-developers.com/showthread.php?t=1096068
Originally Posted by hockeyfamily737
0. It's recommended to do a nandroid backup first!
1. Download the "bootsnd.sh" file and put it on the root of your sd card.
2. Download the "android_audio.mp3" file and using root explorer copy it to /system/media
3. Open Terminal Emulator and type the following commands using the stock keyboard. Press enter after each line:
su
cd /sdcard
sh bootsnd.sh
reboot
4. As the device boots up you will be greeted by the "Dolby THX" test sound heard before movies. You are now free to replace the android_audio.mp3 file in /system/media with any .mp3 file you like as long as you rename it to "android_audio.mp3"
5. DO NOT ATTEMPT TO OUTSMART THESE DIRECTIONS OR YOU WILL BE RESTORING YOUR NANDROID BACKUP!
6. Enjoy
http://dl.dropbox.com/u/30200380/bootsnd.sh
http://dl.dropbox.com/u/30200380/android_audio.mp3
Click to expand...
Click to collapse
Greetz
I don't think its possible to add audio to the boot animation on a stock rom. I believe you need root access to add sounds to the /system/media/audio directory
Sent from my Nexus S using xda premium
Try boot animation changer,there u find under tools custom sound
U can get the app from android market
Sent from my Google Nexus S using xda premium
frutelaken said:
Have you tried this tutorial? I just iterated all the steps and it looks really promising:
http://forum.xda-developers.com/showthread.php?t=1096068
Greetz
Click to expand...
Click to collapse
- - i tried twice , but didn't work out
MerwinG said:
Try boot animation changer,there u find under tools custom sound
U can get the app from android market
Sent from my Google Nexus S using xda premium
Click to expand...
Click to collapse
downloaded it and installed it ...
import MP3 file and reboot...
still no good T-T
qtwrk said:
- - i tried twice , but didn't work out
Click to expand...
Click to collapse
Try again.
I just tried it and it worked, I have a custom MP3 playing during the boot animation as we speak. I'm not on the stock ROM but I'm sure that doesn't matter one bit.
What I did was follow the instructions:
Copy bootsnd.sh to the root
Copy android_audio to /system/media
Run bootsnd.sh in Terminal Emulator. Note, you need to change the permissions of this file using the following command and run it as such:
Code:
# su
# chmod 775 bootsnd.sh
# ./bootsnd.sh
Reboot and it worked. Of course you have to be root for all of these actions but I'm sure you are that.
So, try again.
Greetz
frutelaken said:
Try again.
I just tried it and it worked, I have a custom MP3 playing during the boot animation as we speak. I'm not on the stock ROM but I'm sure that doesn't matter one bit.
What I did was follow the instructions:
Copy bootsnd.sh to the root
Copy android_audio to /system/media
Run bootsnd.sh in Terminal Emulator. Note, you need to change the permissions of this file using the following command and run it as such:
Code:
# su
# chmod 775 bootsnd.sh
# ./bootsnd.sh
Reboot and it worked. Of course you have to be root for all of these actions but I'm sure you are that.
So, try again.
Greetz
Click to expand...
Click to collapse
Gosh ... still no good
i did set permission to all files , includs audio file , zip file and this sh file ,all file that may related i set permission to 777
but , don't konw why , still no audio when i reboot
And you're sure that you executed the bootsnd.sh file correctly? Ie; Terminal Emulator won't output anything but just show a new empty line after doing ./bootsnd.sh.
777 is not necessary btw, 775 is enough Not sure which zip file you mean, but it should only matter for bootsnd.sh because that has to be executed.
And you're doing all of this in the root directory of your phone yes? Just to make sure that you're not making these folders etc on your SDCard because that won't work.
Greetz
frutelaken said:
And you're sure that you executed the bootsnd.sh file correctly? Ie; Terminal Emulator won't output anything but just show a new empty line after doing ./bootsnd.sh.
777 is not necessary btw, 775 is enough Not sure which zip file you mean, but it should only matter for bootsnd.sh because that has to be executed.
And you're doing all of this in the root directory of your phone yes? Just to make sure that you're not making these folders etc on your SDCard because that won't work.
Greetz
Click to expand...
Click to collapse
i konw , but i wasn't sure which root directory you were meaning , so i put this .sh file into /system folder ,and , yes , and set 777 permission.
zip i mean bootanimation.zip , i do konw one problem that if replaced this file and NOT set permission will cause unstoppable continually reboot...
what exactly should i type?
enter terminal and
su
cd /system
sh bootsnd.sh
reboot
Click to expand...
Click to collapse
this was what i did ,something wrong?
and i also check that i DID put audio file into /system/media
man , this is making me crazy , i'm kinda losing my mind right now
If the "sh bootsnd.sh" returned no errors in the terminal, you did everything as it should.
You're sure that your audio file is called "android_audio.mp3" and nothing else?
If yes to all of those, I'm not really sure what's preventing it from working.
Greetz
U Need To click install sound binary under custom sound in the tools
Sent from my Google Nexus S using xda premium
You need to install the sound binary before you import the mp3
U see this option under custom sound just above of the import mp3
Try this link
http://forum.xda-developers.com/showthread.php?t=1285201 [HOW TO] How to make a boot up Sound for your Android device
Sent from my Google Nexus S using xda premium
frutelaken said:
If the "sh bootsnd.sh" returned no errors in the terminal, you did everything as it should.
You're sure that your audio file is called "android_audio.mp3" and nothing else?
If yes to all of those, I'm not really sure what's preventing it from working.
Greetz
Click to expand...
Click to collapse
yes it is this name , i triple check
maybe its mp3 problem?
could you provide me your working audio file amd i try with that
qtwrk said:
yes it is this name , i triple check
maybe its mp3 problem?
could you provide me your working audio file amd i try with that
Click to expand...
Click to collapse
I just used a song from my music library, nothing special about it...
Can you tell me if you get output in the terminal if you type the following command:
Code:
cat /system/etc/init.local.rc
Greetz
MerwinG said:
You need to install the sound binary before you import the mp3
U see this option under custom sound just above of the import mp3
Try this link
http://forum.xda-developers.com/showthread.php?t=1285201 [HOW TO] How to make a boot up Sound for your Android device
Sent from my Google Nexus S using xda premium
Click to expand...
Click to collapse
brother , i've done with this , it shows i have installed sound binary , although i don't even know what is it or how/when i install it ...
frutelaken said:
I just used a song from my music library, nothing special about it...
Can you tell me if you get output in the terminal if you type the following command:
Code:
cat /system/etc/init.local.rc
Greetz
Click to expand...
Click to collapse
yes, comes out lots text , about 2 screens or so ...

[Resolved] [SOLVED] How to delete some line on files ?

Guys do you know some script to delete line on some files ?
For example dalvik.vm.heapstartsize=5m, value 5m on some roms is not same if I use this script :
HTML:
busybox sed -i '/dalvik.vm.heapstartsize/d' /system/build.prop
The line is not deleted :/
Please Help me guys
Just open the build.prop manually and search for the line. Then delete it. Make sure you are using a root file browser.
I suggest - Es File Browser.
Sent from my Nexus 5 using Tapatalk
TheArc said:
Just open the build.prop manually and search for the line. Then delete it. Make sure you are using a root file browser.
I suggest - Es File Browser.
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
I want delete line via recovery

Categories

Resources