[android-kernel] Re: Will deleting files in /data/ somehow restore settings?

2010-12-02 Thread archieval
I manually deleted the content of /data/ folder, it seems to work like a reset factory settings. =) -- unsubscribe: android-kernel+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-kernel

[android-kernel] Will deleting files in /data/ somehow restore settings?

2010-12-02 Thread archieval
Hello everyone, I am working on an android-based device odroid, and it has no implementation of reset factory settings. here's the code on my android: package com.android.settings; import com.android.internal.widget.LockPatternUtils; import android.app.Activity; import android.app.AlertDialog;

[android-kernel] Re: How do you un-mount a busy partition?

2010-09-26 Thread archieval
Thanks for these information, but are you guys referring to latest Android OS 2.2 source codes? I do not have a copy of that yet, I am working on 2.1 source codes instead. On Sep 25, 9:50 am, Joshua Hruday wrote: > hi, > void Process::killProcessesWithOpenFiles(const char *path, int action) > in

[android-kernel] Re: what is the meaning of the word "DPRINTK"?

2010-09-26 Thread archieval
Usually the DPRINTK macro is just a printk usually with KERN_DEBUG or KERN_ERR, and will be invoked only when DEBUG is defined. This is used instead of directly calling printk to easily turn ON or OFF the debugging messages in your driver. example: #ifdef DEBUG #define DPRINTK(format,args...) pri

[android-kernel] Re: How do you un-mount a busy partition?

2010-09-23 Thread archieval
elp anyone. =) On Sep 23, 10:06 am, archieval wrote: > Hello everyone, > > Unmounting a busy partition has been quite a problem for me, my > busybox package v1.16.0 have no lsof, and fuser does not really help > in determining if a file in the mount point is being used, or opened. > D

[android-kernel] How do you un-mount a busy partition?

2010-09-22 Thread archieval
the system but everytime I execute it, it returns error that it is not found. Is there a proc file or something like that wherein I can find whether the mount point is opened and what process is using it? Regards, archieval -- unsubscribe: android-kernel+unsubscr...@googlegroups.com website: http

[android-kernel] Re: What is meant by "init: untracked pid 2194 exited"? init.rc does not work?

2010-09-22 Thread archieval
s between > Android and Linux). > > The reason you don't normally want to use "oneshot" is because Android > can kill processes when memory is low.  Any long-lived service needs > to be restarted if it gets killed. > > On Sep 22, 12:53 am, archieval wrote: >

[android-kernel] Re: What is meant by "init: untracked pid 2194 exited"? init.rc does not work?

2010-09-21 Thread archieval
The problem is in the init.rc, the app runs with no problem when manually executed/called in the shell. The init.rc inside the device cannot be edited because the original file stays in rom and will replace itself in the directory everytime the device reboots. And Yes Sir for all the method above,

[android-kernel] What is meant by "init: untracked pid 2194 exited"? init.rc does not work?

2010-09-20 Thread archieval
I have a C program: #include #include #include #include #include #include #include #include #include #include #include int main(void) { if (fork() == 0) { int i, sret, ret = -1; unsigned char usb_dev[10]; struct stat st;

[android-kernel] Re: Linux commands not found in init.rc scripts

2010-09-20 Thread archieval
Hi Chris, Where do you place exec? on boot trigger? Because it hasn't worked for me. On Sep 20, 9:02 pm, Chris Stratton wrote: > Try using symlink command instead of ln, there may already be examples > in your init.rc > > If /system is mounted by the time you want to do it you could also try > a