TILK Posted February 5, 2011 Share Posted February 5, 2011 Bonjour, Je ne comprends pas la procédure à suivre pour pouvoir mettre sa licence sur son application pour éviter un maximum qu'elle se fasse pirater. J'ai bien installé l'addon pour licence dans le SDK mais après je suis perdu... Voilà ce que google explique : http://developer.android.com/guide/publishing/licensing.html Si vous avez un tutoriel en FR et assez clair pour un "débutant". Je vous en remercie d'avance! Link to comment Share on other sites More sharing options...
eephyne Posted February 5, 2011 Share Posted February 5, 2011 le lien google est assez clair (enfin si on est pas anglophobe). A quel endroit tu bloques exactement? Link to comment Share on other sites More sharing options...
TILK Posted February 5, 2011 Author Share Posted February 5, 2011 En fait après cette étape, c'est bon ou pas, je comprends pas la marche à suivre à la suite de cette modification de le fichier manifest. Adding the licensing permission to your AndroidManifest.xml To use the Android Market application for sending a license check to the server, your application must request the proper permission, com.android.vending.CHECK_LICENSE. If your application does not declare the licensing permission but attempts to initiate a license check, the LVL throws a security exception. To request the licensing permission in your application, declare a <uses-permission> element as a child of <manifest>, as follows: <uses-permission android:name="com.android.vending.CHECK_LICENSE"> For example, here's how the LVL sample application declares the permission: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" ..."> <!-- Devices >= 3 have version of Android Market that supports licensing. --> <uses-sdk android:minSdkVersion="3" /> <!-- Required permission to check licensing. --> <uses-permission android:name="com.android.vending.CHECK_LICENSE" /> ... </manifest> Note: Currently, you cannot declare the CHECK_LICENSE permission in the LVL library project's manifest, because the SDK Tools will not merge it into the manifests of dependent applications. Instead, you must declare the permission in each dependent application's manifest. Implementin EDIT : on fait je n'arrive pas à savoir comment inclure la vérification "ServerManagedPolicy" dans mon apk. Link to comment Share on other sites More sharing options...
TILK Posted February 6, 2011 Author Share Posted February 6, 2011 Dites moi s'il y a une erreur, pour sécuriser mon application, il suffit que je rajoute cela dans mon manifest? ---------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------- <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" ..."> <!-- Devices >= 3 have version of Android Market that supports licensing. --> <uses-sdk android:minSdkVersion="3" /> <!-- Required permission to check licensing. --> <uses-permission android:name="com.android.vending.CHECK_LICENSE" /> ... public class MainActivity extends Activity { ... private LicenseCheckerCallback mLicenseCheckerCallback; private LicenseChecker mChecker; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); ... // Construct the LicenseCheckerCallback. The library calls this when done. mLicenseCheckerCallback = new MyLicenseCheckerCallback(); // Construct the LicenseChecker with a Policy. mChecker = new LicenseChecker( this, new ServerManagedPolicy(this, new AESObfuscator(SALT, getPackageName(), deviceId)), BASE64_PUBLIC_KEY // Your public licensing key. ); ... } } @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); ... // Call a wrapper method that initiates the license check doCheck(); ... } ... private void doCheck() { mCheckLicenseButton.setEnabled(false); setProgressBarIndeterminateVisibility(true); mStatusText.setText(R.string.checking_license); mChecker.checkAccess(mLicenseCheckerCallback); } </manifest> ---------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------- Link to comment Share on other sites More sharing options...
TILK Posted February 7, 2011 Author Share Posted February 7, 2011 Si quelqu'un se sent d'attaque pour m'expliquer ce qu'il faut exactement mettre dans le manifest... :mad: Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.