yashsingh1/xdaforums huggingface dataset:
[Gen8 Android Development] fisha21:
Have also just experienced this problem for the first time. It occurred when I put the 101 into standby (ie short press power button). Only way to clear it was forced reboot. This is on a clean install on 16gb external microSD.
[Gen8 Android Development] $aur0n:
"Android property" are you sure you are talking about right thing? Android properties are only actualized when you run service_status.sh
[Gen8 Android Development] solune:
Hum, there is something I must have not understand...

What I do :

On service page, on load or when doing menu-refresh, I launch service_status.sh and parse answer. Let's say I have ntfs service off, I read it in service_status.sh output, and UrukConfig write "down" on ntfs service.

Now I go on config ntfs page (on new version of UrukDroid, not in the 1.0.0), and I have a button to start ntfs service. I push it, ntfs service start. If I do ntfs force UIstatus, I see it is running.

I go back to Services page, and then the page refresh itself, launch service_status.sh, and read output. There, it is write ntfs : off :confused:

Is it normal ? What I have to do to have service_status.sh telling me the service is on after I've started it ?
[Gen8 Android Development] $aur0n:
service_status.sh should return always proper, current services status. I was just curious why you said "android property". Anyway - you will get the same status with "./ntfs UIstatus force" and "service_status.sh" because service_status IS using UIstatus flag on every service - it does it simply quicker then running every service from UrukConfig.

So if there are different values from "./ntfs UIstatus force" and "service_status.sh" - I would bet on wrong parsing, I'll of course check it in a minute - but unless service status changed before this two calls, you probably parse it wrong somehow.
[Gen8 Android Development] solune:
Ok thanks for your explainations.

I've found the problem, there is a bug in <service> stop force : for ntfs or iptables I always have the message that it is in use and that it can't be stop (even if I use the command in shell).

Can you tell me if you see same problem ?

Thanks
[Gen8 Android Development] $aur0n:
Yes - it's almost the same like in cifs. I'll rewrite services to use "modprobe -r" instead "rmmod" (that is current way) - this may help on some dependencies (so it will try remove depending modules - then main modules). Anyway - I wouldn't worry about this because it's not very common to unload kernel modules (this functionality can be even removed from kernel) and it often fails. Those three services (iptables,ntfs,cifs) just load some modules - so I'll try to fix them (to unload modules more likely) but it's not a big deal if they fail.
[Gen8 Android Development] solune:
Just another thing : When doing <service> stop/start force, in the shell, the return is first Starting... and then Done in the same line, because of "echo -n Starting...".

In fact when there is a problem, I can't see it because everything between the start and the done is not catch.

Can you send a chr(13) -paragraph jump- after the start ?

And if there is return to the command, can the script don't give the "Done" at the end ?

Edit : I've look at the script, and I see how to change it. I will try and ask you to change only if that work better for UrukConfig -and if you're ok with that of course :)
[Gen8 Android Development] yepayepa:
I don't know your code, but checking exit code should be cleaner and much more easy.

Cheers.
[Gen8 Android Development] solune:
It's possible, but I dunno how to do that :confused:

I'm just learning code, so if you know how to do it, let me know thanks :)
[Gen8 Android Development] solune:
Woot I've found the way to access android.os.SystemProperties ! And it is really faster than other ways !

That's not a documented function but well, it works !

Will be an update for UrukConfig in fews days, with faster UI :)
[Gen8 Android Development] Lenn:
Wow,cool thanks!:)

Will you release the .apk (stand-alone) or just in future Urukdroid Version (1.1) ?

Because i've installed 1.0 and want the update:)
[Gen8 Android Development] solune:
I will release the apk in this thread (and $auron will put it in next version too), then you'll be able to install it in the urukdroid v1.0 :)
[Gen8 Android Development] solune:
Ok I've played with the android properties. It works well and fast.

Sorry to ask you so much things, but $auron is it possible for you to add in /etc/uruk.d/<service> start/stop force the update of system property, as script service_status.sh does ?

If not I'll have to launch the setprop command in shell each time I start or stop a service in UrukConfig, so it will take more time to do.

Thanks !
[Gen8 Android Development] MGUS:
request

Hi,

to everyone.. a little request from my side.

it would be so awesome if someone could add an FTDI driver so i can use an USB Serial Converter under UD.
[Gen8 Android Development] $aur0n:
You are talking about this?
[Gen8 Android Development] eagleofdeath13:
Some requests here:

(things that are on Cyanogen)

-some controls on the notification bar (wifi ON/OFF, GPS ON/OFF, Media Play, Media Next ...)

-a power manging widget manageable (add/remove some things : flight mode, BT, ....)

That's all folks ;)

(and thanks for reading, and if i can help for all of these or anything else, juste ask me ;) )
[Gen8 Android Development] $aur0n:
The real exit code is returned on stderr (not stdout)

root@urukdroid:/etc/uruk.d# ./swap start
Uruk-Swap: Swap memory is already on
root@urukdroid:/etc/uruk.d# echo $?
1
root@urukdroid:/etc/uruk.d# ./swap stop
Uruk-Swap: Disabling swap memory...Done
root@urukdroid:/etc/uruk.d# echo $?
0
root@urukdroid:/etc/uruk.d# ./swap start
Uruk-Swap: Enabling swap memory on partition /dev/block/mmcblk1p4... Done.
root@urukdroid:/etc/uruk.d# echo $?
0
root@urukdroid:/etc/uruk.d# ./swap start
Uruk-Swap: Swap memory is already on
root@urukdroid:/etc/uruk.d# echo $?
1

But this is not everywhere done properly (my fault) - i'll fix it. And 1 is for error, 0 is for OK

ps. and I can't really change output of "done" on the end, since there are multiple lines "Start...done" sometimes in one service
[Gen8 Android Development] solune:
First I don't know how to take back stderr in my java program.

And if in the script you launch the command to stop a service, the script will return 0 even if the stop command fail to work (for cifs or ntfs for example). And what I want to know is does the stop is successful or not, not if the script successfully launch the command.

I will just try to test script without "echo -n" to see if that way I can parse the return of stop command in case there is one, and tell then that the script can't stop the service as required.

And $auron about setprop in start and stop service, is it possible for you ?

Thanks :)
[Gen8 Android Development] $aur0n:
Surely you can do it - you just don't know it yet ;)

Like I said - services did not return back proper values all the time. I've fixed it (i've also fixed unloading modules - but this requires update - so soon in 1.1RC1).

su
cd /etc/uruk.d
wget http://dl.dropbox.com/u/1017593/ArchosGEN8/UrukDroid-1.1/services.tar.gz
tar -zxf services.tar.gz
rm services.tar.gz

This updated services should return correctly 1 when something fails (so if it won't manage to run a service or stop it) or 0 when everything went fine.

Yes it is - but i did not want to do it since it won't return proper values all the time. Good example is openvpn, when you start it - it could set urukservice_openvpn=1, but during wifi changes it often fails to reconnect and dies. In this case openvpn property will be set to "1" (running) - but this is not true. That's why I prefer to do "service_status.sh" - it's always up to date information.
[Gen8 Android Development] MGUS:
That's exactly what I'm talking about.
[Gen8 Android Development] mafcov:
@solune: if you exec an command/and parse the result) you can get both the outputstream and errorstream..see link : http://www.devdaily.com/java/edu/pj/pj010016/
[Gen8 Android Development] $aur0n:
Archos OS 2.3.26

Ok - added.

I'm looking at 2.3.26 archos OS and I see some interesting differences...

Do you know what is A70S2 (and A70H2)? There is new init script for this "device" it has different screen density and usb charging enabled...

What happend with smb mount in 2.3.26 - it's not done by fusesmb - it's cifs now?
[Gen8 Android Development] Lenn:
I know what the A70H2 is, its the Archos 7 Home Tablet Version 2

(http://www.amazon.com/Archos-V2-Home-Tablet-GB/dp/B0045XQI0E)

I suppose the A70S2 is maybe a test init script for future firmware changes that wasn't deleted by Archos before releasing 2.3.26...
[Gen8 Android Development] $aur0n:
H states from HD - not home. A70H was A70 HD. I've merged 2.6.32 changes to Uruk but I need to fix scripts now :/
[Gen8 Android Development] solune:
I've updated services in my Archos with v1.2 but still same problem :

# /etc/uruk.d/ntfs UIstatus force
/etc/uruk.d/ntfs UIstatus force
on
# /etc/uruk.d/ntfs stop force
/etc/uruk.d/ntfs stop force
Uruk-NTFS: Disabling NTFS rules...WARNING: Error removing ntfs (/lib/modules/2.6
.29-omap1/kernel/fs/ntfs/ntfs.ko): Device or resource busy
WARNING: Error removing nls_utf8 (/lib/modules/2.6.29-omap1/kernel/fs/nls/nls_ut
f8.ko): Device or resource busy
Done
# echo $?
echo $?
0

As you can see, script can't stop ntfs, but error code is 0.
[Gen8 Android Development] $aur0n:
You are right - but in this case it simply does not do it properly (ideal solution would be to check if operation succeed and if not - return failure). Like for me it's ok since (like I said ;) ) modules removing is not a crucial problem (and with new modules/kernel it should be done properly - wait a bit more ;) ).

In more important points it is checked if start/stop is ok and service return 1/0.
[Gen8 Android Development] solune:
If I remove the option "-n" in the echo in ntfs script in "Startup.." I catch the error message in UrukConfig (it's only what I want about errors in services :) ).

I understand that you don't mind service can't be stopped, but I don't like when UrukConfig write "Stopping.. Done" when there is an error and the service is not stopped ! Even if in future UrukDroid it should be stopped normaly :) If there is a problem I just want UrukConfig to show it, anyway what the problem is.

Are you ok to delete "-n" option in services scripts please ?
[Gen8 Android Development] $aur0n:
Please tell my once again why this -n is so bad for you? In "normal case" you would see (with -n)

without -n it would look like this

It's kind of normal way to present startup information in one line (for Linux systems)...

ok. Here is very fast update (UrukDroid 1.1beta1) to new modules, kernel and 2.3.26 archos update

First kernel: http://dl.dropbox.com/u/1017593/ArchosGEN8/UrukDroid-1.1/UrukDroid-1.1beta1-kernel.tbz2

Then update: http://dl.dropbox.com/u/1017593/ArchosGEN8/UrukDroid-1.1/UrukDroid-1.1beta1-update-rc.tbz2
[Gen8 Android Development] solune:
In Urukconfig, when I parse return text of start or stop command, if there is a message betwen Uruk-Service: Stopping service... and done, if the first part is with "-n" I can't catch this message. Without it I catch it. I dunno why but I can see it.

Maybe you can let the -n in normal mode, and do not use it if command is use with "force" ?
[Gen8 Android Development] jknut:
This update has been working well for me (browsing internet, watching a movie, playing Dungeon Hunter 2). The built-in media player is much better at skipping around within a movie (tapping fast-forward or rewind). Thanks!
[Gen8 Android Development] Mod57:
I agree :D
[Gen8 Android Development] yepayepa:
Excuse me solune, but why do you parse output text of those scripts ?

If it's to get exit code, about failure/success/whatever, this is not the way to go, trust me. Under *nix, you just have to take care of the exit value, nothing else.

So, as I saw, some scripts may have to be fixed to work properly, not a big deal.

Also, there is not only EXIT_SUCCESS/EXIT_FAILURE, since exit value is an int, scripts can return anything than 0/1, if you want to handle more than "it fail"/"it succeed".

I'm not a Java expert, but in C, using fork()/execve()/waitpid() work like a charm for this purpose.

Just my .02€.

Cheers.

---

PS: Quickly looking google, I found this (first in french, last in english):

http://ydisanto.developpez.com/tutoriels/j2se/runtime/

http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html
[Gen8 Android Development] solune:
I parse output text because in script there is no control of success of the operation.

The script check if service is already in the state running or stop (if it is, err = 1 and leave), else the command is launch and return is 0, whatever command success or fail.

If I only check return code, I will just know "yes I've launch the command" or "no I've not launch the command", but not if the result of the command is successful.

The only way I have then is to read output and see if there is something else than "starting.." and "Done". But if the "Starting" is launch with echo -n, I can't read the return of command, I just catch starting and done, so I'm in same situation than reading err output.

That's the same problem with reading system properties. The only script who fill system properties is service_startup. That means that I have to launch this script each time I want to know a service state. So I have search for hours to find a way to read them, to discover that anyway if I can do so, I have before to launch a shell command (service_startup), the thing I though I will not have to do anymore when reading android properties :(

Then there is no difference to read service_startup output than reading properties, because time take is the same, because I need to launch shell command.

It's not easy to explain all of this in a forum in english for me. It doesn't matter. I'll do with what I have, as far as I enjoy doing it.
[Gen8 Android Development] $aur0n:
Well that's not exactly true - in more vital parts of some services it return 1 when it fails on some level (like in dvb). I think you should relay on return values, and I simply should fix services to make them more reliable with this return values...
[Gen8 Android Development] Caste23:
thanks for this quick update :)

No AC3 audio codec needed with 2.3.26 archos update :) :) :)
[Gen8 Android Development] eagleofdeath13:
@$auron : could it be possible to do (or does it exist) a website (or someting like) where we could post our request for functionality? (avoid polution of this thread ^^)
[Gen8 Android Development] $aur0n:
Yes you can: http://code.google.com/p/urukdroid/issues/list

but I can't promise anything ... :D
[Gen8 Android Development] eagleofdeath13:
I understand, but you can read it easier than here ;)
[Gen8 Android Development] mafcov:
installed it a few hours ago; working okay..camera and youtube working(have had problems with there prior to 1.0)
[Gen8 Android Development] snickle:
1.1b1

Working well.

Two items:

The wifi seems less stable than 0.7, I play around with the variuos firmwares tonight.

The first boot screen is off center by about an inch to the left. It was that way in 0.6 I believe, then corrected in 0.7. Back in 1.0 and 1.1.

Good Job. Anything specific you would like me to test?
[Gen8 Android Development] $aur0n:
I believe this is an issue since 0.6. You have A101 right? Could you do a dump of this image: http://adrian.siemieniak.net/UrukDroid/UrukDroid_1.0+_A70.png

Download it to Archos, disable soft buttons, view the image (it should fill entire screen - without any buttons etc.) and over ssh do dump

su
cd /sdcard/
cat /dev/graphics/fb0 >dump.raw
gzip dump.raw

Then please exit image viewer (for example to main screen) and do on ssh (assuming you have still old session active)

zcat dump.raw.gz > /dev/graphics/fb0

You should see uruk boot screen back on display - if it's ok. Please send it to me.
[Gen8 Android Development] $aur0n:
@Solune: I have a question - could you do something in UrukConfig so I could communicate with user from system level?

This is how I see it should be possible (I may be wrong - since don't use java at all).

If you could create a class/method that will show notification and put a text from argument of variable (i'm not sure if it's method and/or variable) I could call it with am. This should work since I can call something like this

am start -a com.googlecode.android_scripting.action.LAUNCH_FOREGROUND_SCRIPT -n com.googlecode.android_scripting/.activity.ScriptingLayerServiceLauncher -e com.googlecode.android_scripting.extra.SCRIPT_PATH /sdcard/sl4a/scripts/test.py

Above script (from system) launches android scripting apk and runs python script (I think I could communicate with user this way - but it's harsh). Python script name is here a key value (I think I could put like this message).

Here is a description of am

So I think I could call something like this:

am start -a urukConfig.nc.action.notification -e urukConfig.nc.notification.message "Update kernel in progress"

Perhaps I could call existing notification server directly - but I don't know how :( (I don't know java classes hierarchy etc) - could you help somehow?
[Gen8 Android Development] solune:
I don't know but I will look at it. I know you can call intent, if I create an intent you should be able to access it and fill his textbox and other I guess.
[Gen8 Android Development] fly_us:
$auron: after upgrade to 1.1b1, i got low storage space message, setting shows only 16.72MB left. Have no problem with 1.0 with 1GB storage space.
[Gen8 Android Development] fzelle:
And i can't connect to smb anymore, i get the password dialog which wasn't there before.

And no it is not a windows 7 server it is a Linux Samba server ( Buffalo Linkstation Mini ) and it was working perfect before.
[Gen8 Android Development] $aur0n:
enable cifs service - it's required since 2.3.26 does not use fusesmb any more.
[Gen8 Android Development] fzelle:
nope, doesn'change anything
[Gen8 Android Development] $aur0n:
I'm almost sure it does - I've checked it yesterday because of changes in init.rc.
[Gen8 Android Development] $aur0n:
UrukDroid 1.1beta2

Ello ;)

New beta 1.1beta2 (requires kernel 1.1beta1)

- recompiled/changed wpa_supplicant to support both adhoc and standard wifi managers (and signal strength icon ;) )

- some small mediascanner fixes

- A43 camera fix

- service change to return more reliable status (for solune ;)) - changed so far cifs, ntfs, iptables

http://dl.dropbox.com/u/1017593/ArchosGEN8/UrukDroid-1.1/UrukDroid-1.1beta2-update-rc.tbz2

(applicable on 1.0+)
[Gen8 Android Development] fisha21:
Ok, so have done the above on an A101 running Uruk 1.0 (via ADB rather than SSH). After following your steps, I see the Uruk boot screen again. It only shows up for about a second so difficult to say, but it does seem to fill the screen.
[Gen8 Android Development] todobarato:
After apply update to 1.1beta...

Hello,

I have only one issue after apply the update and is with the buttons for Home, return and menu. They are present but doesn't works:mad: ( when I press it, show it, but nothing happens). I found out that if I open the Button Mode using the power button then it woks, but is very ugly and I lose a lot of space.

Best Regards,

Ferenc.
[Gen8 Android Development] $aur0n:
Ok - thx and try now this kernel and tell me how boot screen looks like

http://dl.dropbox.com/u/1017593/ArchosGEN8/UrukDroid-1.1/UrukDroid-1.1beta2-kernel.tbz2
[Gen8 Android Development] denwaotoko:
I have the exact same problem, running 1.1beta2 on a Archos43IT here.
[Gen8 Android Development] $aur0n:
With what previous version it was working correctly?
[Gen8 Android Development] denwaotoko:
Only on 1.0 Final, after installing 1.1beta1, it started to have this problem.

EDIT : But I must say, performance in general has gotten even better with 1.1
[Gen8 Android Development] woti23:
disable cifs/smb in uruk-config, install free cifsmanager.apk vom market, it works as expected, loads the modules automatically, lets you choose you're mountpoint/s, lets you store your passwords/mountpoints for different servers, lets you connect to more than one server simultanously ....
[Gen8 Android Development] todobarato:
The last working was the 1.0, after upgrade start the issue. Same in beta 1 or 2.

Best regard,

Ferenc.
[Gen8 Android Development] $aur0n:
What is your device? How Archos OS act (what version)?
[Gen8 Android Development] fisha21:
Nice work -boot screen now fully centred on A101 screen. Thanks for finally cracking it..
[Gen8 Android Development] Lenn:
Can i use this kernel also in Urukdroid 1.0?

I want the Boot Screen in center:D
[Gen8 Android Development] todobarato:
Archos 43, urukdroid 1.0, after update to beta 1.1 or 1.1beta2, start the issue with the buttons. The stock archos works ok, with the last firmware.
[Gen8 Android Development] Lenn:
@$auron:

You asked me at the Google Code page if i can do a dump from Boot Up Screen on my friend's A43.

And i didnt understand how to do it.

but now i read a little in the net and here at xda and got it!:D

i'll do it maybe tomorrow or next week when i see him at school:)

I really want to help the Developement of Urukdroid:)
[Gen8 Android Development] solune:
Hello,

Here is v1.1 of UrukConfig !

The changes :

- use of service_status.sh to set androidproperty for services

- read service state with androidproperty (not parsing service_status text)

- reduce threads at launch (4 now, about 20 before)

- wpa service retired

- read stdout and stderr and result of each script launched ! And try to state what happen depending returns

- each service page have now buttons to launch at startup and start/stop

- each service page have a link to his Wiki web page if there is one

I must say I have not tested this version with urukdroid 1.1 (because lack of time), try it at your own risk ;) but don't hesitate to tell if your archos explode, become an ipad or anything like this terribles things :D

If people have courage and want to help, you can (with adb or sshd) try each option of urukconfig and check with adb or sshd if what say urukconfig is true or not.

Thanks !
[Gen8 Android Development] woti23:
strange, stupid thing by archos, but maybe knowledge thereof prevents someone from going crazy, while searching for a reason:

removing LiveWallpaper.apk and/or(?) LiveWallpaperPicker.apk prevents switching display output from LCD to HDMI
[Gen8 Android Development] snickle:
$aur0n,

While testing UrukConfig 1.1, I noticed I can't get swap to enable with 1.1b2. I did not try on the earlier beta.

I checked the services file and it is properly configured.

Nothing in dmesg except some lines:

<3>init: untracked pid 2031 exited.

They come in groups of 4. I see the on boot right after compucache is started.

I also see them when I try to start swap via urukconfig. Uruk config pops up a brief screen that mentions something about an unknown operand and shows the cmd line options for swap. Disappears to quick to get the details. Not sure what urukconfig is doing. If it just calling an init script I will look into those.

Archos 101 UrukDroid 1.1b2 with working boot screen.

Update: I ran swap start manually with stdout and stderr redirect to file. That is attached. I will keep looking.

It errors early but, then still tries to do a swapon with an invalid parameter. I never see the echo of it trying to create the swap file, so it is erroring in there somewhere. Iwll take some time later today to put in some debug code.
[Gen8 Android Development] todobarato:
Hello,

I have the same, urukconfig don't enable the swap. You need to check the /etc/uruk.conf/swap

It is for use one partition not one file as before, change it and after works.

Best regards,

Ferenc.
[Gen8 Android Development] Lenn:
First Thanks a lot for your app;):)

i want to help!:D

Do you mean start the options of urukconfig at the archos or by sshd?

How do i test what urukconfig returns? (0/1 or false/true)