Hello guys. Its my first tutorial. Sorry for my English, I m Russian :D
On this lesson I teach you how to protect your mod/application without HWID (Hardware ID)
You must do 3 steps
1. Make your mod/application
2. Add my code to main class
3. Make the base of the indexers
Add import to main class:
[quote][code]import android.provider.Settings.Secure;
[/code][/quote]
[code] and to function onCreate() add:
[/code]
[quote]String id = Secure.getString(getContentResolver(), Secure.ANDROID_ID);[/quote]
And in id was value type:f8bd7485e17dXXX
This is HWID. Each phones has different HWID codes.
And now we do little base
[quote]String[] base = ["Hwid1", "hwid2", "hwid3"];[/quote]
After we must check whether the database has the same value
[quote]if(Arrays.asList(base). contains (id)){
//true
} else {
finish();
}
[/quote]
Thats all. If HWID does not exist in base, app wild close.
I can tell about how make base on your site, but it is the next lesson (maybe)
Again, sorry, for, my, ENGLISH :D
[img]https://imgur.com/a/msQBd[/img][url=https://imgur.com/a/msQBd][img]https://i.imgur.com/DVIKeqA.png[/img][/url]
Hello guys. Its my first tutorial. Sorry for my English, I m Russian :D
On this lesson I teach you how to protect your mod/application without HWID (Hardware ID)
You must do 3 steps
1. Make your mod/application
2. Add my code to main class
3. Make the base of the indexers
Add import to main class:
import android.provider.Settings.Secure;
and to function onCreate() add:
String id = Secure.getString(getContentResolver(), Secure.ANDROID_ID);
And in id was value type:f8bd7485e17dXXX
This is HWID. Each phones has different HWID codes.
And now we do little base
String[] base = ["Hwid1", "hwid2", "hwid3"];
After we must check whether the database has the same value
if(Arrays.asList(base). contains (id)){
//true
} else {
finish();
}
Thats all. If HWID does not exist in base, app wild close.
I can tell about how make base on your site, but it is the next lesson (maybe)
Again, sorry, for, my, ENGLISH :D

