yashsingh1/xdaforums huggingface dataset:
[MDA III, XDA III, PDA2k, 9090 ROM Development] + Que PPC:
hey homan...

Im playing with the UI and see this thing on this build... seems that the notification window bar is small than the entire white window...
[MDA III, XDA III, PDA2k, 9090 ROM Development] homam_france:
yes

:Dhi friend

nice work,you r right ,also i notice that incorrect thing(this is because the dimension is not correct)so try to correct,i will try,and also u:D

i fix it, now it is so good
[MDA III, XDA III, PDA2k, 9090 ROM Development] + Que PPC:
may I grabe it? on my work I havent psd...
[MDA III, XDA III, PDA2k, 9090 ROM Development] engineer002:
push email?

HI All

Im very impressed with all the effort and development thats gone into this ROM, i have only one small query when i set up my push email from my sbs 2003 server the first time i set up the server source in active sync on the BA its syncs perfectly pulling over the mail, calendar,contacts and tasks after that it will not sync again unless i delete the server source and reinstate it...any ides?
[MDA III, XDA III, PDA2k, 9090 ROM Development] Mnemonique:
Oh my, 21189 is out...
[MDA III, XDA III, PDA2k, 9090 ROM Development] motisu:
Push mail works perfectly for me with this ROM. I know that my company is on Exchange Server 2007 so maybe you have to upgrade your version of SBS from 2003.
[MDA III, XDA III, PDA2k, 9090 ROM Development] homam_france:
hi

i didnot understand what sun_dreams say,the build 21189 needs radio more than 1.65(supported radio)

may be the bad translation of google.

our Blue Angel is 1.15 radio.

I dont know what he means,

this is the original letter translated by google:

HTC BlueAngel CHS / WWE, Himalayan CHS / WWE, Universal CHS may also release!

以下是HTC Touch Dual21189不包含Radio，需要1.65以上Radio支持！ The following is a HTC Touch Dual21189 does not include Radio, required more than 1.65 Supported Radio!

感谢来自筷子的qvga资源！ Appreciation of QVGA resources from chopsticks!

XPLODE what do think?
[MDA III, XDA III, PDA2k, 9090 ROM Development] homam_france:
thnx

thnx we hope that:D
[MDA III, XDA III, PDA2k, 9090 ROM Development] egzthunder1:
@homam,

I think mimahitna is right on the money. At least that is what I understood from the extract in your post.
[MDA III, XDA III, PDA2k, 9090 ROM Development] homam_france:
:D:confused::cool::D

the radio is the problem.

:D:confused::cool::D
[MDA III, XDA III, PDA2k, 9090 ROM Development] xplode:
People take a look again in sun_dream's blog :)

Build 21189 is now online - and is awesome - chome is usable now
[MDA III, XDA III, PDA2k, 9090 ROM Development] imatrix:
aye karumba!
[MDA III, XDA III, PDA2k, 9090 ROM Development] jprosen1:
anyone tried out if navigation is working?

garmin, iGO8 ??

I've read entire thread and didn't see any tests made around this..

thank you
[MDA III, XDA III, PDA2k, 9090 ROM Development] bskalli:
Navigon 7 work
[MDA III, XDA III, PDA2k, 9090 ROM Development] motisu:
Igo8 8.3 works fine with this version and also with 21189 ROM
[MDA III, XDA III, PDA2k, 9090 ROM Development] jprosen1:
thanx guys.

where can I find this 21189 ROM version? I read it's on sun's blog, but link on the first page doesn't work for me ?
[MDA III, XDA III, PDA2k, 9090 ROM Development] red_hanks:
Here man, the thread for 21189

http://xdaforums.com/showthread.php?t=493228
[MDA III, XDA III, PDA2k, 9090 ROM Development] bubujp:
Today Background

English:

A precision on the option of the basic image of the today:

Is it Possible in to have centered it? On a photograph of face, the fringe return under the neck ( it is not feel good…)

Thank you to say to me how to make.

Français:

Une précision sur l'option de l'image de fond du today :

Est il possible de l'avoir en centrée?

Sur une photo de visage, la frange reviens sous le cou ( c'est pas top...)

Merci de me dire comment faire.
[MDA III, XDA III, PDA2k, 9090 ROM Development] homam_france:
try to make it by any picture programs(like paint)dimentions = 240*320 pixels, it will centered automtically.
[MDA III, XDA III, PDA2k, 9090 ROM Development] markanthonypr:
If you have an image that don't center, like homam_france said, use any image editing program to resize. But if you don't want to loose the original aspect ratio of the picture, you first need to crop image to an aspect ratio of .75 to 1. Then you can resize to 240x320 which isn't really needed as it will already center(which is what you want), however, if its a large sized image, then resizing will make it a smaller file size.
[General Questions and Answers] crompy70:
hi all...got a htc touch diamond on orange uk......

i just cannot do the basic things on it......i wont connect to activesync no matter how hard i try...also its the same now as the day i got it..no games or apps to do anything on it ..for a start i dont know where to get games or wat type ov games i need so they will run on it and when i do find some games i dont know were to put them on the phone i downloaded a few games on my pc but when i put them in phone they wont work....i have read some of the threads on here but its just to complicated ...so basically i just need some nooby help with my htc plz....
[General Questions and Answers] orb3000:
Welcome to the forum

Read the Wiki here: http://wiki.xda-developers.com/index.php?pagename=HTC_Diamond

And after enter to Diamond forum

Good luck,
[General Questions and Answers] crompy70:
thankyou orb
[Touch HD General] jo12jt1:
ok folks some help please. I have installed dutty's xtreme rom and after about 2 days or before, i get a message on my screen saying thankyou for trying out the beta version, come back to where you got the software and try some other, what am i doing wrong, is there a test version and a right version
[Touch HD General] d.cortez:
go to the Blackstone ROM forum and you'll find your answer... short answer is you need to change to 1.9B ROM to remove the time limitation.
[G1 Android Development] rogro82:
As some of you might have seen or even used, I have created an application that allows executing of shell scripts from within Android and it will even allow you to create a direct shortcut on your homescreen to a script ( for example to start Debian or reboot your phone ).

I know a lot of developers ( I also didnt at first ) don't look in the "applications and games" section, but i thought it was the best place to post the actual application.

I will keep updating that post with the actual application process/updates, but ive created this thread to see if people ( I think most of the actual linux experienced people are in this section ) would like to share their linux knowledge to other peoples uploading useful .sh files ( for backing up stuff etc etc ), so that less experienced can just load them in to my application, without risking all typos.

So if you have a nice script that is useful please upload it so we can all benefit from it.

The actual application can be found here:

http://xdaforums.com/showthread.php?t=486486

Please dont ask question or place suggestions about the application in this thread, but use the one Ive created for the actual development and keep this thread for scripts only.

Regards,

Rob
[G1 Android Development] the.snks:
I was thinking about starting a thread just like this one-- for everyone to post up their scripts. Don't know why I didn't. Anyway, I asked the question awhile back how to create a script for remounting the file system as read/write, which led to my discovery of GScript. In any case, here's what I was told to use:

Be advised that I have no idea if this actually works or not. Perhaps someone could test and post the results?
[G1 Android Development] Gary13579:
su
echo "boot-recovery
--update_package=/sdcard/update.zip" > /cache/recovery/command
reboot recovery

Untested, you might have to play around with the /sdcard/update.zip to get it to load properly, I'm not sure exactly how you put the path in there. This will, for sure, reboot it into recovery mode, and tries to automatically apply an update.zip.

Edit:

--update_package=sdcard:update.zip

Should do it. I hope.
[G1 Android Development] benmyers2941:
Here's a script I built to make a rom into the "lite" version needed by many of the themes. It's not much but it's my first one.

mount -o rw,remount -t yaffs2, /dev/block/mtdblock /system
rm -r /system/media/audio/ringtones
rm -r /system/media/audio/notifications
reboot
[G1 Android Development] benmyers2941:
You don't need the "su" at the beginning. Gscript has a checkbox to indicate if SU is needed and will add it on it's own. Putting it in causes the script to hang.
[G1 Android Development] KyleK29:
Anyway to make it close the script window when the script completes? Right now I have it doing an app backup and echoing DONE. But I'd like to automate the process if possible.

Exit doesn't seem to work.
[G1 Android Development] wpbcubsfan:
It does reboot into recovery mode but I get the error "Can't mount /sdcard/Update.zip Installation aborted."

I'm able to just apply the update by pressing Alt+S but would be nice if it was all automated.
[G1 Android Development] beagz:
Same result for me.
[G1 Android Development] beagz:
Got it!!!

ok!

used this as script to change theme

cp /sdcard/themes/aero/update.zip /sdcard/

echo "boot-recovery

--update_package=SDCARD:update.zip" > /cache/recovery/command

reboot recovery

Needed to use caps for SDCARD!!!

found it poking around the recovery.c file

better still no need to copy over update.zip in root Just in case of emergency.

echo "boot-recovery
--update_package=SDCARD:themes/aero/update.zip" > /cache/recovery/command
reboot recovery
[G1 Android Development] wpbcubsfan:
Dude, you rock! Thanks!
[G1 Android Development] indiekid97:
Clear Caches

I use this script to clear almost all of the app caches

#Deletes all caches in one fell swoop :]
#Locations of the caches were taken from various sites, including xda and androidcommunity.com
#written by indiekid97

#Deletes browser cache
rm -R /data/data/com.android.browser/cache/webviewCache

#Deletes Maps cache
rm -R /data/data/com.google.android.apps.maps/files

#Deletes StreetView
rm -R /data/data/com.google.android.street/cache

#Deletes Market cache
rm -R /data/data/com.android.vending/cache

#Deletes Tunewiki cache
rm -R /data/data/com.tunewiki.lyricplayer.android/cache/webviewCache

#Deletes Myspace cache
rm -R /data/data/com.myspace.android/files

#Deletes GMail cache
rm -R /data/data/com.google.android.gm/cache/webviewCache
[G1 Android Development] a1t:
Copy from /system/app

I get get the phone to copy from data app and private however, when I try to copy apps from /system/app it does nothing.

Mod_edit

any ideas?

I also tried to cd in the script to navigate to the data and still it only runs the first two copy commands.
[G1 Android Development] Mikey:
removed copyright procedureYou can not display procedures concerning the two app folders being transferred to Fat32 portion of card.
[G1 Android Development] a1t:
Woops

Sorry dudes. If we can still talk about any possibilities, I'm down. if not, oh well. now on eggshells

looking for script to move a specific directory on /system to a location on my sdcard

if anyone is interested PM me.
[G1 Android Development] Proxin:
What would the script be to disable USB mounting to the computer? It's a hassle for me to have to un-plug the USB cable when I want to unmount, it would be very beneficial to have a quick press of an icon on the Home screen to do this :D

*Edit: after tinkering around with it for a bit, I see that this cannot be done- I tried mounting the SD card to computer and then running a script, *any* script will not load because GScript requires /sdcard/gscript_tmp.sh to be accessable in order to run a script.

Mounting to computer and then running a script from GScript simply shows an error:

Error:

/sdcard/gscript_tmp.sh

SO, in order for it to work, GScript would probably have to be configured to search for the script elsewhere to load while the SD card is mounted.
[G1 Android Development] Proxin:
Here is a small script to back up current system sounds to the SD card, probably most useful if you do this prior to using the Make Lite script:

cp -r /system/media/audio /sdcard/audio

If there are any errors please let me know.

Once they're backed up, you can merge the folder into /sdcard/media for proper use with Ringdroid. :)

I'm not sure whether to use cp -r or cp -a, so I will stick with -r for now and see if anyone has any other suggestion.
[G1 Android Development] Mikey:
quick question....

where can i find out what the "flags" mean.

-a

-t

and so on.
[G1 Android Development] Proxin:
I found this link useful to your question, might want to scroll down a bit to see the most direct answer to what you were wondering:

http://www.freeos.com/articles/4414/

Hope that helps :)
[G1 Android Development] a1t:
a start

http://www.computerhope.com/unix/ucp.htm
[G1 Android Development] Mikey:
Thank you to both of you :)
[G1 Android Development] internalkernel:
Thanks for a great app... I thought I'd share a bit, hopefully this helps someone else.

I was having trouble setting up the OpenVPN connection through the settings interface, so I wrote a script to turn it on and off...

#!/system/bin/sh
VPN=$(ps | grep openvpn | wc -l)
if [ $VPN = 0 ]
then
openvpn --config /system/sd/vpn/droid.conf
else
killall openvpn
echo "VPN disconnected"
fi
exit
[G1 Android Development] jacklc000:
Audio Files

I'm trying to make a script to copy the AudioFilter.csv, AudioPara4.csv and AudioPreProcess.csv files from the sd card to the system/etc folder....

I like the louder volume hack and not all roms have it.

I have tried adapting several from this thread with no luck.

Any help is greatly appreciated!!
[G1 Android Development] internalkernel:
assuming a static location on your SD card:

#!/system/bin/sh

if [ ! -e /location/of/audio.csv ]
then
echo "copying..."
cp /sdcard/audio.csv /location/of/audio.csv
fi
exit

I don't use the audio filters hack, so you'll have to adjust the file names above... but the concepts are there - the first portion if [ ! -e ] says only proceed if that file _does_not_ exist.
[G1 Android Development] Proxin:
You're accessing /system to do this, so you must first mount /system as read/write.

Try this, it should accomplish the same thing as yours.

mount -o remount,rw /system
cp /sdcard/AudioHackFilesLocation/AudioFilter.csv /system/etc/AudioFilter.csv
cp /sdcard/AudioHackFilesLocation/AudioPara4.csv /system/etc/AudioPara4.csv
cp /sdcard/AudioHackFilesLocation/AudioPreProcess.csv /system/etc/AudioPreProcess.csv
[G1 Android Development] nickonasty:
please help!

Hi guys,

Please forgive my ignorance here but i'm trying to find a way to send scripted ADB logging commands straight from the SD card to the device. For example I currently use command prompt via USB to initiate logging to the internal memory. Commands such as -

"adb shell

logcat -f /data/local/filename.txt &"

Do you know how I can use GScript to do this without needing the PC?

Thanks,

All help is very much appreciated... :)
[G1 Android Development] skrki:
Haven't checked this thread in a long time, but here it goes, I hope you or someone else will benefit from this.

This is one of my essential scripts :D

if [ -e /sdcard/quicklog.txt ];
then
rm /sdcard/quicklog.txt;
touch /sdcard/quicklog.txt
fi
logcat -df /sdcard/quicklog.txt;
echo Im done;

Not very sophisticated, but it works.

To do ideas:

Find a way to exclude GScript log lines from being logged.

This will DUMP the log to a file (-d option). If you want it to run continuously, then you should find a way to stop it somehow.. Maybe implement one of the button intents?
[G1 Android Development] skrki:
Running the CM Eclair, here's the thing: I often have that Market problem where it starts downloading, and just gets stuck right there.

It appears to me that I'm not alone here.. am I?

I can always fix it by restarting Talk, together with gtalkservice, only manually, and looking to accomplish this through a script..

I have no problem killing/starting Talk, or starting gtalkservice (in shell), but I can't figure out the command that does this:

Application management -> Manage running services -> Tap to stop Gtalk service

D/GTalkService( 343): [GTalkService.1] logoutAllSessions

What shell command would run that intent? If that's at all possible...

I thought I could use am, similar to when I start it:

#am startservice -n com.google.android.apps.gtalkservice/com.google.android.gtalkservice.service.GTalkService

Ideas?

TIA
[G1 Android Development] hahn1:
Simple Script

This is well below anything you guys have posted, but I thought since the site help me create it and GScript let me run it, I would post it. I use Script Scheduler found on this site to have it run once a day in the background.

busybox renice 5 `pidof com.google.process.gapps`
busybox renice -18 `pidof com.android.phone`
busybox renice -18 `pidof mediaserver`
busybox renice -18 `pidof mediaserver`
busybox renice -16 `pidof com.android.launcher`
busybox renice -15 `pidof com.htc.music`
busybox renice -15 `pidof com.android.music`
{

mv /sdcard/com.tokasiki.android.voicerecorder/*.3gp /sdcard/"Computer Data"/"Voice Recorder"/ ;

mv /sdcard/DCIM/Camera/*.jpg /sdcard/"Computer Data"/Pictures/ ;

mv /sdcard/DCIM/Camera/*.3gp /sdcard/"Computer Data"/Video/ ;

cp /sdcard/download/* /sdcard/"Computer Data"/Downloads/ ;

mv /sdcard/FxCamera/* /sdcard/"Computer Data"/Pictures/ ;

mv /sdcard/iMusic/*.mp3 /sdcard/"Computer Data"/Music/ ;

mv /sdcard/mp3/* /sdcard/"Computer Data"/Music/ ;

mv /sdcard/"Music Junk"/* /sdcard/"Computer Data"/Music/ ;

mv /sdcard/TubeDownloader/* /sdcard/"Computer Data"/Video/ ;

mv /sdcard/Video/* /sdcard/"Computer Data"/Video/ ;
}

Its a simple thing, but it saves me a ton of digging when I want to copy all important media to my computer from the Droid.

Don't really know what the busybox portion does but it was a part of the script.txt file for the scheduler and doesn't seem to hurt any to have it.

Thanks!
[G1 Android Development] mmorselli:
Rsync

Included with Pays on my Desire I've found rsync, so I want to schedule an incremental online backup of my SD-Card. But when I execute this line on Gscripts

rsync -av --del --temp-dir=/sdcard/tmp --port=55555 --rsync-path=/usr/bin/rsync /sdcard/images/ root@x.x.x.x:/home/usb/android/sdcard/images/

I get:

stderr: ssh: exited: Unknown own user

Any chance to get rsync works ?
[G1 Android Development] fubaya:
I'm on a Nexus One and rooted, so I don't know if this will work for you, but I have had a lot of problems with GScript and SSH, including the "Unknown own user" error. I use the app "Better Terminal Emulator Pro" which comes with it's own ssh binary and found that deleting the system ssh and linking it to the one from BTEP makes all my sshing work flawlessly. I've been doing this through several rom updates over the past few months.

rm /system/xbin/ssh (you might want to "mv /system/xbin/ssh /sdcard" to back it up instead)

ln -s /data/data/com.magicandroidapps.bettertermpro/bin/ssh /system/xbin/ssh

If you need help finding where your ssh is, I have a little script that imitates the whereis command here.
[G1 Android Development] mmorselli:
thanks for replay, tried first with native BTEP, and I give step up, but is not enough...

sending incremental file list
av-114.gif
cute-nature.jpg
cutep.jpg
rsync: mkstemp "/sdcard/tmp/.av-114.gif.qepbI9" failed: No such file or directory (2)
rsync: mkstemp "/sdcard/tmp/.cute-nature.jpg.h8QWze" failed: No such file or directory (2)
rsync: mkstemp "/sdcard/tmp/.cutep.jpg.ksHFQr" failed: No such file or directory (2)

sent 166551 bytes received 69 bytes 9521.14 bytes/sec
total size is 166312 speedup is 1.00
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1039) [sender=3.0.6]

No file was sent... /sdcard/tmp exist and is chmodded 777, I run rsync as su

maybe some fat32 related problem ?

EDIT: removing

--temp-dir=/sdcard/tmp

it works !

But What happens if I have to transfer some big files ? Where temps goes ?

EDIT 2: Well, no problem at all even with a big 250Mb (navigator map) file... On Debian I had a problem transfering file bigger than /tmp free space, that's why I have used --temp-dir parameters
[G1 Android Development] tampiss:
sms message

hello,

is there any chance to create predefined SMS text and send it to predefined phone number? I mean is it possible by creating sh script?

thank you guys,

tampiss
[G1 Android Development] mmorselli:
You can do it more easily with ASE, using Python, Perl, PHP, JRuby, Lua, JavaScript, etc...

code.google.com/p/android-scripting

smsSend(
String destinationAddress: typically a phone number,
String text)
[G1 Android Development] tampiss:
oh thanks. it looks impressive :-)

by the way, what language is the code example, so that I know what to download as the addition?

thank you
[G1 Android Development] mmorselli:
All you want... This is a generic API of ASE that all supported script implements.

For example, in PHP :

<?php

require_once("Android.php");

$droid = new Android();
$result = $droid->smsSend("555555","Sorry, I'm Late!");

?>

in python:

import android

droid = android.Android()
result = droid.smsSend("555555","Sorry, I'm Late!");

Note that at the time of writing PHP requires a special version of ASE, available here : http://www.phpforandroid.net/
[G1 Android Development] tampiss:
thank you very much for your explanation. it did seriously helped.
[G1 Android Development] synaptyc:
[REQUEST] Bootanimation Script

I created a GScript called "bootscreen" (because I am using a bootscreen with sound and not a "bootanimation.zip"

I checked 'Needs SU?' because I now have root

Then I added the line:

bootanimation

All goes well, and I can see/hear my bootscreen BUT I can't end it.

It continually loops like it is supposed to.

Can anyone tell me how to kill the bootanimation once it has been called via GScript Lite?

Things I have tried:

hitting the BACK, HOME, MENU, END/OFF buttons. really every button on the phone.

tapping the place on the screen where I have a "QuitIt" widget that will kill all running apps

The phone will accept screen input because I can tap where certain apps are and tell that they are launching. IE: phone, music player, etc.

I was even able to reboot the phone using Quick Boot just because I knew where the on-screen buttons were to make it reboot.

There seems to be no way to kill the bootanimation except to pull the battery.

Maybe I could create a GScrpit that will kill it, then just know where it is on the screen behind the animation?

Any tips?

EDIT: I created a script like this but it still didn't kill the bootanimation (it did run correctly with the sleep thing though)

bootanimation
sleep 10
pkill bootanimation
pkill boot1.gif
pkill boot2.gif
[G1 Android Development] :
Is it possible to change keyboards with a script?

I have swype beta installed, but after rebooting you have to switch to another keyboard then back to swype for it to work.
[G1 Android Development] jneilliii:
[REQ] Enable PPTP VPN Connection

Does anyone have a script to enable/disable the built in PPTP VPN Connections in Android 2.2?
[G1 Android Development] Sleeepy2:
OK tried looking through this but I am clueless.

How do I write a script to enable the USB Tether?

I want a script to enable usb tether then run my working script that can revers tether to the pc.

Then I need a script to disable the usb tether, activate airplane mode, then deactivate airplane mode.

Can some one point me in the right direction?

Thanks
[G1 Android Development] shaunbu:
To change the lcd density (resolution of phone, lower numbers mean higher resolution) temporarily. Performs a hot reboot into new resolution, I use 200 (makes my X10 look much better) normally but need to change to 240 in order for some apps to work correctly. (Edit ro.sf.lcd_density=240 in /system/build.prop for permanent change.) Needs su true needs to be checked.

Feature Req: Please could you add widgets that execute scripts on click.

setprop qemu.sf.lcd_density XXX (XXX chosen density)
busybox killall system_server

eg for default (on my X10) resolution

setprop qemu.sf.lcd_density 240
busybox killall system_server

eg for resolution I normaly use

setprop qemu.sf.lcd_density 200
busybox killall system_server