How do I get the files under the Meta-inf directory of the package after Android installs the app?

Source: Internet
Author: User

============ Problem Description ============


After Android installs the app, can you get the files in the Meta-inf directory of the package?

After installing the app on the phone and then opening the app, does the SDK in the app have access to the Meta-inf file in the app package?

Why do you do this?

Because the same app package, you need to play a different channel ID inside. And then keep the signatures consistent.

This time you need to write files to Meta-inf, because this will not affect the signature.

But the problem comes, if one or two channels are OK, you can manually put channel ID into the SDK can, but once the channel too much, too many applications, it is impossible to manually hit into the

So this time will be through the SDK dynamic to fetch channel ID, but how to dynamically hit the channel ID into the package? Only through Meta-inf.

But the channel ID hit the Meta-inf, do not know how to use the SDK to fetch this ID ah ...


So ask the great God to help solve the problem of younger brother .... Thank you

============ Solution 1============


Didn't your signature file be made by yourself? Is it an auto-generated debug.keystore?
I put the channel ID in the normal XML, and then package, and there will be no inconsistent signature situation AH

How do I get the files under the Meta-inf directory of the package after Android installs the app?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.