[Q] Source script from Icon? - Nexus S Q&A, Help & Troubleshooting

I wrote a simple script to shutdown the phone with reboot -p. How can I create an icon that will source this script?

You could write an app that just executes the script
Sent from my Nexus S using XDA App

found one called gscript for anyone that wants to know...well...kinda.

Related

Exploid Droid 2

Trying to use the exploid.c program compiled for arm, but unable to find a directory I can place the binary and execute it from. No sqlite_stmt_journals folder, and data/local has no permissions set that allow me to push it into it. Anyone have any suggestions?
Sent from my DROID2 using XDA App
Try using /tmp.

[Resolved] SDK ,avd help please.

Can't push apps to avd it states read only file system. I tried mounting as r/w to no evail.
Sent from my FroyoEris using XDA App

how to install an apk that has "com.appname" as file name?

I've tried to install a few apps like the google app that is named "com.googlemusicbeta.apk" and I've noticed that everytime I try and load an app that starts with com.name, I can't install it; I get an error.
Is there something I don't know about this?
They need to be installed as system apps. The do this using either adb or terminal emulator and push the files to system/app.
Sent from my LT15i using XDA Premium App

[Q] How to enable boot audio with CM

Sorry if this doesn't belong here, I can change audio easily with stock based roms but nothing I've found is working for CM based roms, preferably CM9 if possible. I don't know anything about this, looked up multiple threads none worked I tried the changes they said, editing lines in build.prop, init.local.rc and a way that says to run a script in Android terminal, everything is added/modified I get no audio still
Sent from my LG-P999 using Tapatalk
I believe it now works on the latest
Set of nightlies
Sent from my LG-P999 using XDA
There are no nightlies for CM9
Tried a few more things can someone help or is it not possible? Don't think I've ever had a cm based rom have on/off audio
Sent from my LG-P999 using Tapatalk
xBkKx said:
Tried a few more things can someone help or is it not possible? Don't think I've ever had a cm based rom have on/off audio
Sent from my LG-P999 using Tapatalk
Click to expand...
Click to collapse
There's an app called BAC lite, it shows an option to install boot audio binary and tells to use android_audio.mp3 in /system/media/ I haven't tried it with an MP3 or even a properly named ogg but I'd say to give it a shot for a possible quick, easy fix.
Did it work?
Sent from my LG-P999 using xda app-developers app
jefdumais said:
Did it work?
Sent from my LG-P999 using xda app-developers app
Click to expand...
Click to collapse
I couldn't get it to work, app changed boot animation fine but when I tried audio it said it installed the file but still heard nothing during boot
Can't remember where I found this procedure but it does work for me using CM7. I would guess it would work for CM9 and above as well.
_______________
Another user asked for this, and I helped him through it, so I decided to post it here so everyone can have access to it. I didn't create the file, just came across it one day being bored..I digress.
Credit to barnacles10 and lithid-cm
*NOTE: Anything in brackets is either description of what is happening or an action you need to perform; don't type in anything in brackets*
What you need to do to get a boot sound on CM7/AOSP is the following.
1. http://dl.dropbox.com/u/19699565/bootsnd.sh Apparently some people had issues with the first link, so I uploaded it again. Download that file, place on your sdcard.
2. Take whatever sound you want and rename it to: android_audio.mp3 [needs to be mp3 format] and save it to the system/media folder using a file manager that lets you access system directories. I use Root Browser Lite (you can get from Play Store).
3. On your phone, open terminal emulator, and type in the following:
su [enter]
cd /sdcard [enter] *you can store the bootsnd.sh file to any folder on your SD card, so use this command to navigate to it*
ls [to list all files, you should see bootsnd.sh]
sh bootsnd.sh [enter]
You won't see a confirmation, or message, it just runs, and returns you to a # sign.
Reboot, and enjoy your boot sound.
*NOTE*
If you flash / change roms, you'll have to re-run the process to enable the boot sound again. If you get tired of it / don't want it, you can use root explorer and delete the file.
If your having trouble getting sounds to play this should fix the problem.
Quote:
Here is how to fix it.
Make sure you are mounting in R/W mode on each of these steps.
Quote:
Originally Posted by deaver_92 on XDA
To start go to
/system/etc/init.local.rc
and open it in the text editor. Delete everything from
###Bootsound - Safe to Delete: Start###
to
###Bootsound - Safe to Delete: Stop###
Delete any instances of it.
Using a app like root explorer, goto /system/bin and delete the file bootsound.
Back out to /system now open build.prop in text editor mode, look for this text.
Code:
ro.config.play.bootsound=1
Delete it from the build.prop and save and exit.
This is optional but recommened.
Reboot phone.
Verify no sound is playing.
Now run the script again and reboot.
You should have a boot sound again.

How to Flash zipped file without custom recovery?

Hi there!
I have U30GT tablet which unfortunely till now didn't have any custom recovery. Some time I want to flash files to the ROM but due to this limitation I need to copy the files manually (easy job) and set the permission (hard job when there's a lot of files).
So is there any other ways that I can automated the task of copying the files and setting the correct permission without using custom recovery?
Many thanks!
Have you tried using a script or bat file to copy and set permissions through adb from your desktop?
Sent from my VS910 4G using xda app-developers app
I.M.famous XMAN said:
Have you tried using a script or bat file to copy and set permissions through adb from your desktop?
Sent from my VS910 4G using xda app-developers app
Click to expand...
Click to collapse
Thanks. But I don't know how to do a script or bat file to be used with adb. Can you write up some guide for it?
I'll see what I can do. No garruntees. But another option is to push the files through adb then use v6 supercharger to fix emissions. Idk. Let me see if I can Whip something up for you.
Sent from my VS910 4G using xda app-developers app
package can be flashed through stock recovery but they are needed to be signed properly with the manufacturer's key
dheeraj (dhlalit11) said:
package can be flashed through stock recovery but they are needed to be signed properly with the manufacturer's key
Click to expand...
Click to collapse
Thanks but I wanna copy files for some tweaks only.
Well I found 1 solution, that is to manually copy the files than use ROM Manager app to fix permission. Also found thread here in XDA about using .bat file to automated the push and set permission but as I very lacking in knowledge in using command, I'll stick to Root Explorer + ROM Manager combo.
you can root device,cat stock recovery.img,and then compile cwm recovery.
Check this website someone is working on getting CLOCKWORK recovery on U30GT
http://www.freaktab.com/showthread.php?1396-Cube-U30GT-H-JB-Finless-1-4-ClockWork-BETA1
Sent from my EVO

Categories

Resources