Just to add on,

I have tried writing a loadable kernel module, but then realised in
order to use, the phone must be rooted, modules loading is enabled in
config and the kernel version must be similar. Thus have to use a
developer phone. All this cannot be done in a phone bought from
telcos.

Using NDK is also not feasible as I searched and couldn't find any
reference on accessing the camera hardware using native code. I have
posted in the NDK section but no reply yet.

So I am guessing that it is only feasible through an application. But
how do make this application to lock hardware functions?

Thanks In Advance,
Perumal

On Aug 15, 11:09 pm, perumal316 <[email protected]> wrote:
> Hi Sachin,
>
> Sorry I couldn't understand. You mean there is already an inbuilt
> Android settings function that can do this? I have searched for such a
> setting but couldn't find any, can I know how to access it?
>
> It is possible to write an application that will allow user to select
> camera application for lock and it will make an entry into a database.
> But when for example the native camera is started how to make sure
> that it will check against the database before proceeding? Isn't both
> will be different applications, how to access the same database?
>
> Sorry for asking too many questions, I am an Android newbie :) Hope
> that you will clarify my doubts.
>
> Thanks and Regards,
> Perumal
>
> On Aug 13, 4:47 pm, <[email protected]> wrote:
>
>
>
> > I think this can be done.
>
> > In settings application, we need to add privacy lock features to lock
> > the defferent applications.
>
> > So suppose camera is selected for lock, then this entry has to be
> > maintained in DB.
>
> > From camera hardware side,
>
> > 1st function to open the camera is Camera.open(). This function should
> > check for DB entry 1st and then depending on the lock/unlock, return
> > camera handle and error to application who is calling this method.
>
> > -----Original Message-----
> > From: [email protected]
>
> > [mailto:[email protected]] On Behalf Of perumal316
> > Sent: Friday, August 13, 2010 1:55 PM
> > To: Android Developers
> > Subject: [android-developers] Application Lock
>
> > Hi All,
>
> > I came across an Application in Android Market which locks the use of
> > application. Meaning after locking an application can only unlock it
> > using password.
>
> > My question is, can this be done for hardware?
>
> > E.g. Password protect camera for example, so only can unlock it using
> > the same password. While locked, all applications using camera cannot
> > access the camera hardware.
>
> > Thanks In Advance,
> > Perumal
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to [email protected]
> > To unsubscribe from this group, send email to
> > [email protected]
> > For more options, visit this group 
> > athttp://groups.google.com/group/android-developers?hl=en- Hide quoted text 
> > -
>
> - Show quoted text -

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to