Hello all,

I wrote two simple applications, appA and appB, as follows:

- in appA's manifest file, I declared a new permission,
"domain.my.aNewPerm"
  with the protection level of "signature"

- in appB's manifest file, I declared the appB would use the
permission,
"domain.my.aNewPerm"

Both of the applications are signed with same certificate.
I installed the appA first, and then did appB next (naturally), and
the
installations were successful.

What will happen if the appA is uninstalled? (since I wrote simple
examples,
I didn't figure it out by myself and am asking here instead. Sorry for
my
laziness). I expect that the SecurityException will be thrown when
appB tries
to actually use the the permission. Is it correct?

Another small question.
When I install appB, the system asked me if I would grant "Phone
calls" and
"Storage" permission. I assumed that it is because I didn't install
those
applications though the Market. If I test the application via Market
and if
appB would not use any other permission except the "aNewPerm", will it
be
installed silently? (I mean without any "OK" button-based user
interaction?)

Thank you in advance.

Reply via email to