1

是否有标准方法来限制 .apk 允许的安装数量

如果我理解正确 Timestamp 限制了 .apk 对安装有效的时间,是否有类似的东西限制安装计数。

我计划在安装应用程序后使用 DeviceID 和 UserID 来填充一个数据库,该数据库检查日志中使用的用户 ID/设备 ID 组合以允许或不允许访问。

事情是我试图阻止安装超过 x 次的应用程序。

我在想类似的事情:

package com.tchip.kw;
public class mysoft {
static {
  try{
    System.loadLibrary("tchipmysoft");
  }
  catch(Exception e)
  {}
}
public native int getmachinestatus1();
public native int getmachinestatus2();
}
 
///this will read/call 2 solutions from mysoft when the end users try to run app. If the return value is 0, then it will say’ Quit’. For example:
 
mysoft kw = new mysoft();
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        //this.findViewById(id)
        if (kw.getmachinestatus1() && kw.getmachinestatus2() )
        setContentView(R.layout.main);
/////Star splash activity
else
{
You do not have proper license to use this software and it will quit
}
}

我考虑过为 app.apk 编写一个安装 .APK,以检查远程持有的一组密钥,然后授予访问权限。

如果有一个标准化的方法,或者我错过了一些非常简单的东西,我会全神贯注。

4

0 回答 0