Bluestacks的最新更新是每2秒从端口10505发送一次网络广播。
信标-V1 | pcName |的WindowsPC OpenSensor-v2 | 54321
至IP 255.255.255.255
这与以前的版本没有发生过。这是一些等待与另一台设备通话的自动同步通知吗?我不希望蓝图与其他联网设备通信,除非我告诉它这样做。我没有检查或同意任何说它需要像这样的网络广播。
即使只有53个字节,它对我来说仍然是网络污染。我怎么能把它关掉,直到我真的想要它?感谢
package com.example.test5;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.SQLException;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
public class DBAdapter {
private static final String TAG = "DBAdapter";
private static final String DATABASE_NAME = "TestDB"; //Database Name 'TestDB'
private static final int DATABASE_VERSION =1; //Change Version to upgrade db
private final Context context;
private DatabaseHelper DBHelper;
private SQLiteDatabase db;
public DBAdapter(Context ctx)
{
this.context = ctx;
DBHelper = new DatabaseHelper(context);
}
private static class DatabaseHelper extends SQLiteOpenHelper
{
DatabaseHelper(Context context)
{
super(context, DATABASE_NAME, null, DATABASE_VERSION);
}
@Override
public void onCreate(SQLiteDatabase db)
{
db.execSQL("create table USER(Id INTEGER NOT NULL PRIMARY KEY,USER_ID TEXT NOT NULL,USER_NAME TEXT NOT NULL,PASSWORD TEXT NOT NULL, ACTIVE_YN TEXT NOT NULL default 'Y')");
}
@Override
public void onUpgrade(SQLiteDatabase db, int oldVersion,
int newVersion)
{
db.execSQL("DROP TABLE IF EXISTS USER");
onCreate(db);
}
}
//---opens the database---
public DBAdapter open() throws SQLException
{
db = DBHelper.getWritableDatabase();
return this;
}
//---closes the database---
public void close()
{
DBHelper.close();
}
//---insert a User into the database---
public void insertUser(String USER_ID,String USER_NAME,String PASSWORD)
{
ContentValues initialValues = new ContentValues();
initialValues.put("USER_ID", USER_ID);
initialValues.put("USER_NAME", USER_NAME);
initialValues.put("PASSWORD", PASSWORD);
db.insert("USER", null, initialValues);
}
//---updates
public boolean updateUserStatusById(String USER_NAME,String USER_ID )
{
ContentValues args = new ContentValues();
args.put("USER_NAME", USER_NAME);
return db.update("USER", args,
"USER_ID='" + USER_ID+"'", null) > 0;
}
//executing query and it returns fields which are specified in the query ..........
public Cursor getQueryResult(String MY_QUERY) throws SQLException
{
return db.rawQuery(MY_QUERY, null);
}
}
Nandakishore P
答案 0 :(得分:1)
我发现这也是一个烦恼,并希望将其关闭。到目前为止,我发现有问题的可执行文件是:
C:\ program files(x86)\ bluestacks \ hd-frontend.exe
在C:\ ProgramData \ BlueStacks \ Logs \ BlueStacksUsers.log中有以下条目:
2015-12-10 08:46:56.378000 HD-Frontend(2632:4588):1 INFO OpenSensor:Beacon端口10505,间隔2000,主机名MYHOSTNAME
在我的防火墙上每两秒进行一次阻止输入是不可接受的!