Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
How to avoid Starting an activity from adb shell using am start command
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
banu  
View profile  
 More options Feb 17, 1:47 am
From: banu <banuchan...@gmail.com>
Date: Thu, 16 Feb 2012 22:47:37 -0800 (PST)
Local: Fri, Feb 17 2012 1:47 am
Subject: How to avoid Starting an activity from adb shell using am start command
Hi,
    Here my scenario is something like i developed am android
application which requires login authentication from user before
performing any further operations,but i found that for
instrumaentation testing they use commands like

am start <packagename> <activity name>

to start a particular activity,which makes my application insecure so
i needs a solution to avoid this,because i saw in instrumentation
testing they will have different testcases for different activities
where this above command comes into picture to do undergo testing on
that particular activity.

i am running on this quite for a long time.so your ideas wiull be
appreciated

banu


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kristopher Micinski  
View profile  
 More options Feb 17, 1:49 am
From: Kristopher Micinski <krismicin...@gmail.com>
Date: Fri, 17 Feb 2012 01:49:50 -0500
Local: Fri, Feb 17 2012 1:49 am
Subject: Re: [android-developers] How to avoid Starting an activity from adb shell using am start command
That's right, you can't just gate your main activity, you have to
ensure that all activities check for authentication.  Perhaps in
onResume() of each activity.

kris


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
fei ji  
View profile  
 More options Feb 17, 10:37 am
From: fei ji <ufo22940...@gmail.com>
Date: Fri, 17 Feb 2012 23:37:43 +0800
Local: Fri, Feb 17 2012 10:37 am
Subject: Re: [android-developers] How to avoid Starting an activity from adb shell using am start command

Maybe you can change the group of the am binery to root. Then the user can
use this tool when they have not get root permission. I haven't test it yet.
在 2012-2-17 下午2:47,"banu" <banuchan...@gmail.com>写道:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »