yashsingh1/xdaforums huggingface dataset:
[myTouch 3G Slide Android Development] RavenWulf:
straight from the command prompt : adb shell in command prompt

do we need to go into clockwork first? then use the commands Foolish Frost put in post #13
[myTouch 3G Slide Android Development] jadambpharm:
Yes, you do. The system has to be mounted and the only place you can do that from (at the moment) is clockwork. Get into there, mount, open up your command prompt and go from there :)

I'll update the original post w/ that info.
[myTouch 3G Slide Android Development] RavenWulf:
thanks man I was starting to feel real dumb their for a moment

edit: for those who have installed any of the bootloader animation .zips from the link provided in the Legend to Slide ROM thread, you will have to reflash back to "stock" SlideMEROOT2. the Matrix bootloader animation .zip I had loaded was over-riding this mod
[myTouch 3G Slide Android Development] ratchetrizzo:
did you try deleting the boot logo zip from /data/local and see if it reverted to stock?

i believe the zips from the link use /data/local/bootanimation.zip
[myTouch 3G Slide Android Development] Jerzeeloon:
how do i mount,I went to clockwork tried adb shell,said device offline,i unplugged and repluged usb,device showed up online,tried adb shell again,i got "-exec '/system/bin/sh' failed: no such file or directory <2> -" can anyone help?
[myTouch 3G Slide Android Development] jadambpharm:
Once you run the update.zip, it'll take you to clockwork. Within that, theres a menu called 'Partitions menu' and within that an option to 'mount system'

After you do this, you should be good to adb...
[myTouch 3G Slide Android Development] Jerzeeloon:
cool thanks
[myTouch 3G Slide Android Development] shinkinrui:
Does anyone know if there's a file size limit or anything for these animations? I didn't realize it was gonna be this big when I made it:

Yeah, I am willing to give up 6 megs of my space for this, lol
[myTouch 3G Slide Android Development] richielasalsa:
all i did was download boot animation from the market and it did it for me
[myTouch 3G Slide Android Development] RavenWulf:
that is pretty cool... would only be better if it didn't have TMO on it :D

am currently doing a search for a short clip like that of Powerpuff Girls the House Boss. already have the sound file for her just trying to find her a clip she likes
[myTouch 3G Slide Android Development] goodwinm:
If you want to just mount /system as read/write you can do so with adb remount, you can do that while the phone is booted up normally, you don't need to do that from within recovery.
[myTouch 3G Slide Android Development] dumfuq:
I have wanted to make this boot animation ever since as I saw this thread. Finally got around to it. Thanks.
[myTouch 3G Slide Android Development] elliotshoe:
Can this be done on SLIDEMEROOT5r1?

Because I tried and I got both files replaced but the startup didn't change? I did notice that when I flashed to eugenes MR1 rom earlier the bootscreen was replaced with the droid one. Now it always just shows the tmo/mytouch but doesn't play a sound. Also, I tried pushing the hosts file that blocks ads to the phone and it went onto the phone but it doesnt block ads. Not sure if that is related to any problems I'm having.
[myTouch 3G Slide Android Development] falken98:
Did you do it while in clockwork recovery? Sounds like you aren't really getting the files over to /system
[myTouch 3G Slide Android Development] elliotshoe:
Yeah I booted into recovery, applied update.zip to get into clockwork, mounted /system, and pushed the files via adb.
[myTouch 3G Slide Android Development] falken98:
Do: ls -l /system/customize/resource/

post the output.
[myTouch 3G Slide Android Development] bmfc187:
It won't work on 5r1 cus it runs a huge script at startup...there's like three different places it'll read bootanims from but it won't work from anywhere cus of the script...sorry...

-BMFC

Sent from my ROOTED myTouch3G Slide
[myTouch 3G Slide Android Development] elliotshoe:
Thanks for that info
[myTouch 3G Slide Android Development] migueltherocker:
There's a boot animation I want, but it's not a .gif, it's a .zip, with the desc.txt file and part0 and part1 folders. Can I just place it as bootanimation.zip and it will read it?
[myTouch 3G Slide Android Development] fermunky:
OK, trying to unroot using the stock nandroid backup someone hasd here, but need to flash factory splash... anyone have it?
[myTouch 3G Slide Android Development] dumfuq:
here ya go.
[myTouch 3G Slide Android Development] fermunky:
Your usefulness conflicts with how I interpret your username :)

Thanks!
[myTouch 3G Slide Android Development] MortICi:
Put it under /data/local

It will autoload it.
[myTouch 3G Slide Android Development] dirkyboy:
Would you mind sharing? :)
[Galaxy S I9000 Android Development] socket84:
Hi all,

as you can see in this video,

there are two backlighted bottons on our Galaxy S; once is the BACK botton, the second one is OPTIONS botton.

Now, probably we can remap the OPTIONS botton for use it like a NOTIFICATION LED!

I suppose that: if we have one message/email or one unaswered call, the light of the option botton could PULSE..!!!

I think that this is the best solution for our NON-LEDED-PHONE...

What do you think?? Probably we can work on!!

Let me know!!
[Galaxy S I9000 Android Development] raspdeep:
great idea.. definitely worth it..

one thing nice about i9000 is the home button wakes the phone :)
[Galaxy S I9000 Android Development] socket84:
Thanks mate, i've contacted OBrian, as soon as possible I start to try and work on it...

First of all i need the source but i don't know why i cant download it from samsung. Somebody can upload the source on another server?

Second, i'll try to find the files that map the bottons

In the end, if is possible (but i need the help of our cheefs) i can work on it...

Waitin'... :):)
[Galaxy S I9000 Android Development] Ramsey:
definitely worth it !!!!!! thank you in advance :D:D:D
[Galaxy S I9000 Android Development] socket84:
If somebody wants to help me, is appreciated!! ;) ;)

Fist of all we have to discover where the botton configuration files are..
[Galaxy S I9000 Android Development] MacaronyMax:
Great Idea i'll download the source and try for a look but im not too good :D:D
[Galaxy S I9000 Android Development] Jonas.M:
it will take a while, till the file ist uloaded but i'll edit my post and add the link

is netload ok ?
[Galaxy S I9000 Android Development] socket84:
Thanks man, never mind, i've downloaded it... I'm searching the files...
[Galaxy S I9000 Android Development] Jonas.M:
kk i'm searching too ;)
[Galaxy S I9000 Android Development] socket84:
Tried to search "key", there are alot of file in kernel folder, but they seems to be unusefull...

Probably we need a dump, not the source...

Searchin'....
[Galaxy S I9000 Android Development] Jonas.M:
does it light up while booting?
[Galaxy S I9000 Android Development] socket84:
I don't know... I'm waitin' two Galaxy S for early July, so we need to wait somebody that have the phone right now...

But i can search on youtube...
[Galaxy S I9000 Android Development] Jonas.M:
it seams, that they only light up if you use them

but i cant find any video that shows the booting properly
[Galaxy S I9000 Android Development] socket84:
Yes, but they light up, i think this is enough ;)

I saw a video of the boot on youtube but i don't find it... damn!
[Galaxy S I9000 Android Development] socket84:
Boot:

No lights up...but maybe the part of the video that we need is too short..
[Galaxy S I9000 Android Development] Elinsa:
They do not light up under the boot.

But you can trigger them/use them while booting.
[Galaxy S I9000 Android Development] socket84:
Probably, but we need to activate them any time we loose a call or we have a message/email...

I see that the bottons are capacitives, not phisicals...
[Galaxy S I9000 Android Development] Elinsa:
Yes, they are touchbuttons. If you need any help from me since I have the phone already let me know.
[Galaxy S I9000 Android Development] Jonas.M:
case ACPI_BUTTON_NOTIFY_STATUS:
input = button->input;
if (button->type == ACPI_BUTTON_TYPE_LID) {
acpi_lid_send_state(button);
} else {
int keycode = test_bit(KEY_SLEEP, input->keybit) ?
KEY_SLEEP : KEY_POWER;

input_report_key(input, keycode, 1);
input_sync(input);
input_report_key(input, keycode, 0);
input_sync(input);
}

acpi_bus_generate_proc_event(button->device, event,
++button->pushed);
break;

is the KEY_SLEEP the back key ?
[Galaxy S I9000 Android Development] socket84:
No, this is the sleep/power phisical button...
[Galaxy S I9000 Android Development] exadeci:
Only for eclair:

http://xdaforums.com/showthread.php?t=772672
[Galaxy S I9000 Android Development] xan:
Btw, about button controller firmware: there is an option in Touchscreen Firmwareversion (*#*#2663#*#*)
[Galaxy S I9000 Android Development] socket84:
Perfect, try with a file manager (download it from market) to go in:

Look if there is a folder and if there are files...
[Galaxy S I9000 Android Development] socket84:
Oh yess!!!

Look at this:

Somebody can download that file and upload here??
[Galaxy S I9000 Android Development] Elinsa:
Only files. Not sure how to take a screendump since I don't have root nor a camera. But:

AVRCP

melfas-touchkey (This one does sound what we are looking for)

qwerty

s3c-keypad

sec_jack
[Galaxy S I9000 Android Development] socket84:
Perfect, thanks mate, probably this is only a beginning...

Copy all of files in a folder on your sd, zip and post it here...
[Galaxy S I9000 Android Development] raspdeep:
melfas-touchkey:

key 158 MENU WAKE_DROPPED

key 139 HOME WAKE_DROPPED

key 28 BACK WAKE_DROPPED

key 107 SEARCH WAKE_DROPPED
[Galaxy S I9000 Android Development] raspdeep:
something to note tho.. long press on menu key will pop search
[Galaxy S I9000 Android Development] Jonas.M:
here comes also the melfas-touchkey up

static int touchkey_led_status = 0;

struct i2c_driver touchkey_i2c_driver =
{
.driver = {
.name = "melfas_touchkey_driver",
},
.attach_adapter	= &i2c_touchkey_attach_adapter,
.detach_client	= &i2c_touchkey_detach_client,
};
[Galaxy S I9000 Android Development] socket84:
We are in...

So, now we know that the key that we need to remap is "key 158". Nothin more in that file?

Also, we need to search in the kernel root couse, as we know, mosts of modded kernel change also the sensibility of the capacitives keys...
[Galaxy S I9000 Android Development] raspdeep:
give me a min, i will dump those files before i head to bed.. lol
[Galaxy S I9000 Android Development] socket84:
And attributes saying if it should wake the phone at button push to complete the action, or if it should just complete the action without waking the screen.

Code:

WAKE #Completes the action without waking the screen

WAKE_DROPPED #Wakes the phone to complete the action

So, if we change the attributes from WAKE to WAKE_DROPPED we could wake up the sceen with any capacitive botton... I think...
[Galaxy S I9000 Android Development] raspdeep:
here ya go
[Galaxy S I9000 Android Development] socket84:
Thanks man!!
[Galaxy S I9000 Android Development] raspdeep:
i think u may hv it inverted.. WAKE should be waking the phone.. look at qwerty.k1
[Galaxy S I9000 Android Development] socket84:
Wrong way...

With those files we can only change function of the the button, es. invert, new fuction ecc...

WAKE #Completes the action without waking the screen

WAKE_DROPPED #Wakes the phone to complete the action

So they are sets correctly... We need to find something else...
[Galaxy S I9000 Android Development] MacaronyMax:
When Is it that the lights are turned on ??? Is it when it's below a certian level of light ???

Oh and can't look through kernal yet as the source is still downloading grr...
[Galaxy S I9000 Android Development] Elinsa:
They seem to always turn on, despite the light.
[Galaxy S I9000 Android Development] MacaronyMax:
Oh Okay Thnks :D :D

EDIT: Wow my 100th post even tho ive been a memba since 08 lol :D
[Galaxy S I9000 Android Development] raspdeep:
ya, i would imagine to find the code that light up the backlight of the buttons and add conditions there to check for notifications?

then set a flag and loop the backlight function every 1min or so until notification goes off..
[Galaxy S I9000 Android Development] MacaronyMax:
Inside s3c-keypad.kl

What Does it mean by dpad i thought there were no directional buttons on this phone :confused: :D:D:D
[Galaxy S I9000 Android Development] socket84:
Exactly... The capaciteve buttons are related to the brightness sensor;

But look at this:

This is the script used to lit up the capacitive buttons when your screen is on

and turn off capacitive buttons when your screen is off.

This is for the NEXUS ONE.

Now we need to say to android that it has to turn on the "capacitive light" on notificationsm, also...
[Galaxy S I9000 Android Development] socket84:
Are you sure??
[Galaxy S I9000 Android Development] MacaronyMax:
Nice Work :D now all we've got to do is link to notifications :D:D i think :D

oh and also

Media Buttons???

Oh nvrmnd relized thse were softkeys , tempted to mix them up aswell as the in keyboard ones then put in a rom :D lol jk :D
[Galaxy S I9000 Android Development] socket84:
Yes, right, media buttons! ;)
[Galaxy S I9000 Android Development] raspdeep:
i think these are the virtual keyboards.. on DX ROM, there are 3 keyboards, swype, samsung keypad (qwerty, 3x4keypad,handwriting box1, handwriting box2) and DioPen Chinese IME (qwerty, 3x4keypad,handwriting box)
[Galaxy S I9000 Android Development] MacaronyMax:
:d sorry relized they were softkeys i think :D
[Galaxy S I9000 Android Development] MacaronyMax:
Oh Okay Thnks :D:D

Finaly After am hour/two the source has finished ! :D
[Galaxy S I9000 Android Development] raspdeep:
ok, tmr i will look more into it and see if anything resembles nexus.. nite guys
[Galaxy S I9000 Android Development] MacaronyMax:
Seeyya :D lol
[Galaxy S I9000 Android Development] socket84:
I've have founded to files, an .so and an .dex...
[Galaxy S I9000 Android Development] socket84:
Look at this guys:

http://code.google.com/p/samsung-moment-notifications/
[Galaxy S I9000 Android Development] Jonas.M:
can someone, who has already resieved the galaxy s, try this app?
[Galaxy S I9000 Android Development] Elinsa:
It needs SU. So we will have to wait until we got root to try that one out.
[Galaxy S I9000 Android Development] Jonas.M:
well ok then i hope paul will gain root soon :D
[Galaxy S I9000 Android Development] lgkahn:
can

try what app.. no app posted.
[Galaxy S I9000 Android Development] raspdeep:
i've look at the file structure alittle and its quite different from nexus. i used astro file manager and many folders kept repeating itself so im guessing those where symbolic links.. anyway, when i get a chance i will continue to find the file.. i was closed to finding a brightness file that value changes so i thought that was it but after testing it a few times, it may just be the screen.. will keep you posted if i find anything new.
[Galaxy S I9000 Android Development] MacaronyMax:
btw you can root now :D
[Galaxy S I9000 Android Development] woeds:
Has anyone made any progress on this, seeing we have root now.
[Galaxy S I9000 Android Development] Ramsey:
Would love to know also =D
[Galaxy S I9000 Android Development] darksnarfer:
I think I've made some interesting findings.

Based on the Samsung Moment Notifications app that someone already posted here (http://code.google.com/p/samsung-moment-notifications) I found the file that actually sets the backlight for the Samsung moment.

You can find the source here, the interesting line is #72: http://code.google.com/p/samsung-mo...iusdog/monotlights/NotificationLights.java#72

So I fired up adb with my Galaxy S and started looking similar folders under /sys directory. After a bit of work I found something interesting, under the folder /sys/devices/virtual/misc/melfas_touchkey there are 2 nice files: brightness and enable_disable.

It seems that if we can read/modify the values inside these files we could do a little app to change these when a SMS/call/... notification is present. Unfortunately, if I try to read these files with cat or hexdump, an Input/Output error occurs so I'm stuck.

If someone has some idea why I can't seem to read these files please share your knowledge!

PS: I already rooted my phone, so it doesn't seems like a permissions error.

$ su
su
# cd /sys/devices/virtual/misc/melfas_touchkey
cd /sys/devices/virtual/misc/melfas_touchkey
# ls -l
ls -l
-rw-r--r-- root root 4096 2010-06-27 04:41 uevent
-r--r--r-- root root 4096 2010-06-27 04:41 dev
lrwxrwxrwx root root 2010-06-27 04:41 subsystem -> ../../../../class/misc
drwxr-xr-x root root 2010-06-27 04:41 power
-rw-r--rwx root root 4096 2010-06-27 04:41 touch_version
-rw-r--rwx root root 4096 2010-06-27 04:41 touch_update
-rw-r--rwx root root 4096 2010-06-27 04:11 brightness
-rw-r--rwx root root 4096 2010-06-27 04:41 enable_disable
# cat brightness
cat brightness
brightness: invalid length
# cat enable_disable
cat enable_disable
enable_disable: invalid length
# hexdump brightness
hexdump brightness
hexdump: brightness: Input/output error
# hexdump enable_disable
hexdump enable_disable
hexdump: enable_disable: Input/output error
#
[Galaxy S I9000 Android Development] woeds:
The source to this program might be useful. It's used to control the status led on xdandroid builds. It already has all the notification detection code working. If we figure out how to turn on the backlight of the buttons, we could add that code to this program and that should do it :)

http://pjottrr.no-ip.org:81/redmine/boards/1/topics/show/136
[Galaxy S I9000 Android Development] darksnarfer:
Yeah I looked at the source and it wouldn't be too hard to port.

Only if I could find why these files can't be read...
[Galaxy S I9000 Android Development] magicdroid:
some more info to get you guys going:

http://pdk.android.com/online-pdk/guide/lights.html
[Galaxy S I9000 Android Development] darksnarfer:
Unfortunately, this is for compiling all the android OS from source, so only rom cookers can take advantage of this.

I will keep investigating.
[Galaxy S I9000 Android Development] HazzBazz:
Not even rom cookers, proper coders like cyanogen and team could implement that potentially. It depends upon how samsung have hooked things up too!

Sent from my Samsung Galaxy S using the XDA App.
[Galaxy S I9000 Android Development] lgkahn:
i tried to post something into one of the nexus one thread by the author of trackball alert pro, telling him if he did this he could sell lots of copies.. but he just said buy me a galaxy.
[Galaxy S I9000 Android Development] mykenyc:
lolol wowwwww
[Galaxy S I9000 Android Development] Cutefox:
have you tried using the app called Flash Notify? it does that for my Milestone but the app was not built for Milestone..
[Galaxy S I9000 Android Development] LordK:
Just sent a mail to Samsung with the suggestion to make the back or menu button flashing on missed call/sms/event, and show upcoming appointments on lockscreen, so maybe if a lot of people doing this, they will see the importance of this function and implement it on the next software update.

So feel free to contact Samsung to suggest this improvement.
[Galaxy S I9000 Android Development] hihihehe:
i tried it and it does work..my screen keep flashing for every 30seconds(can be configured) when i have a miss call..
[Galaxy S I9000 Android Development] mickeko:
What did you expect him to say? "OFCOURSE!!" and then jump with joy and do a jig? The Galaxy S is far from being the most sold phone in the world, if it sold better than let's say the HTC Desire, we'd know it by now. There's no way he could sell "lots of copies". How many copies is that to you? Hundreds? Thousands? That's not very many for something most people won't pay more than perhaps $3 for.

It's a truckload of work to do, and it might not even be possible. Just because he's an android developer doesn't mean he can afford to buy every single phone that comes out. He might have been hard pressed to get the Nexus he codes for right now. So his reply makes perfect sense to me. If you want it, why should he rather than you put up the money for the phone? He's not likely to be able to go to Samsung and ask for a free sample..
[Galaxy S I9000 Android Development] pelo1986:
Go guys!

I like too much this topic! ;)
[Galaxy S I9000 Android Development] lilHermit:
I've been looking at this thread and basically you two things, one a library driver written in c and maybe some services/framework java mods. I think this is very achievable especially as you now have root.

I didn't actually say "buy me a galaxy" what I said/meant was send me a galaxy to dev with. As you can appreciate it would be very difficult for me to dev this without the actual device. So if anyone has a unit they want to ship to me on loan or some similar deal, then I'm confident I can do it.

~
[Galaxy S I9000 Android Development] Lenunited:
Umm, Lilhermit... you live in england?

that could be a problem :S

Umm mabye we could get a bunch of donations happening to get you one :O

im sure everyone who owns a galaxys would want this!
[Galaxy S I9000 Android Development] gazabi:
If you watch the log while pressing one of the touch keys you can see that two debug messages with "touch_led_control: 1" and "touch_led_control: 2" are sent.

If you search for those strings in the kernel source that Samsung provided for the i9000 you find them in the files melfas-touchkey.c and cypress-touchkey.c.

Both of them have a similar, but not identical, function that seems to control

the LED light for the touch keys. I'm not sure which one is used on the i9000. The following snippet is from the melfas version.

static ssize_t touch_led_control(struct device *dev, struct device_attribute *attr, const char *buf, size_t size)
{
unsigned char data;
if(sscanf(buf, "%d\n", &data) == 1) {
printk("touch_led_control: %d \n", data);
i2c_touchkey_write(&data, 1);
}
else
printk("touch_led_control Error\n");

return size;
}

And here is the i2c_touchkey_write function:

static int i2c_touchkey_write(u8 *val, unsigned int len)
{
int err;
struct i2c_msg msg[1];
unsigned char data[2];
int retry = 1;

if((touchkey_driver == NULL) || !(touchkey_enable==1))
{
return -ENODEV;
}

while(retry--)
{
data[0] = *val;
msg->addr = touchkey_driver->client->addr;
msg->flags = I2C_M_WR;
msg->len = len;
msg->buf = data;
err = i2c_transfer(touchkey_driver->client->adapter, msg, 1);
if (err >= 0) return 0;
printk("%s %d i2c transfer error\n", __func__, __LINE__);
mdelay(10);
}
return err;
}

So it seems they can be controlled by simply sending 1 and 2 to the correct address on the i2c bus. Maybe someone can write a small program that does just that?

Any thoughts? Please correct me if I'm completely wrong! :)
[Galaxy S I9000 Android Development] accinfo:
Good luck guys!

I'm really liking this thread.
[Galaxy S I9000 Android Development] woeds:
Has anyone managed to make any progress on this?
[Galaxy S I9000 Android Development] datagrid:
france is waiting for this feature

hello i am the webmaster of this french android site "android-pour-les-nuls.fr"

I own a galaxy S, i published a full test of this samsung "android-pour-les-nuls.fr/constructeurs/samsung/405-test-du-samsung-galaxy-s"

the notification led is the major bad thing for this telephone. There are some people waiting for this feature for buying the samsung.

thank you for all your job,

i read thos thread seveal times a day to see if the app is ready :)

enjoying this forum
[Galaxy S I9000 Android Development] pelo1986:
I'm one of this people...
[Galaxy S I9000 Android Development] Kkozi:
Im fully decided to try android for the first time after using a blackberry.

I'm your fan guys, I loved the diod on the blackberry bold. So, hope it will be solved somehow. Galaxy S is my candidate...
[Galaxy S I9000 Android Development] socket84:
For now is difficult... Everybody (i'm speacking about xda-genius) going to buy the Nexus One couse is easly to mod...

At this time nobody have Galaxy S also us... So we have to wait the "somebody" buy this phone and put his mind on it...