elgg.import("AlGui") import "irene.window.algui.AlGuiData" import "irene.window.algui.AlGuiDialogBox" import "irene.window.algui.AlGuiSoundEffect" import "irene.window.algui.AlGuiWindowView" import "android.view.Gravity" import "android.graphics.Typeface" Lock.Ui(function() if AlGui.algui then AlGui.algui.clearBall() AlGui.algui.clearMenu() AlGuiWindowView.clearAllViews(context) gui = AlGui.newGUI(context) else gui = AlGui.GUI(context) end if AlGuiBubbleNotification.bn then Inform = AlGuiBubbleNotification.newInform(context) else Inform = AlGuiBubbleNotification.Inform(context) end local function playClickSound() AlGuiSoundEffect.getAudio(context).playSoundEffect(AlGuiSoundEffect.INFORM_SUCCESS) end local themeList = { {name = "默认", rootBackColor=0xE6081430, strokeColor=0xFF3060C0, topLineColor=0xFF2070FF, titleColor=0xFF4090FF, subTitleColor=0xFF6088CC, scrollBackColor=0xFF0A2060}, {name = "黑色", rootBackColor=0xE6121212, strokeColor=0xFF606060, topLineColor=0xFFAA0000, titleColor=0xFFAA0000, subTitleColor=0xFF606060, scrollBackColor=0x90101010}, {name = "绿色", rootBackColor=0xE6082010, strokeColor=0xFF30C060, topLineColor=0xFF20FF70, titleColor=0xFF40FF90, subTitleColor=0xFF60CC88, scrollBackColor=0xFF0A6020}, {name = "粉色", rootBackColor=0xE6200818, strokeColor=0xFFC03080, topLineColor=0xFFFF2090, titleColor=0xFFFF40B0, subTitleColor=0xFFCC60AA, scrollBackColor=0xFF600A40}, {name = "亮色", rootBackColor=0xE6E8E8E8, strokeColor=0xFF444444, topLineColor=0xFF222222, titleColor=0xFF111111, subTitleColor=0xFF555555, scrollBackColor=0xFFF0F0F0}, } gui.getMenuMainTitle().setText("唯有她辅助") gui.getMenuSubTitle().setText("v1.0") gui.getMenuExplanation().setText("") gui.getMenuBottomLeftButton().setText("隐藏/长按退出") gui.getMenuBottomRightButton().setText("最小化") gui.getMenuBottomLeftButton().setOnLongClickListener(luajava.createProxy( "android.view.View$OnLongClickListener", { onLongClick = function(edit) AlGuiBubbleNotification.Inform(context).clearW(); gui.clearMenu(); gui.clearBall(); AlGuiWindowView.clearAllViews(context); luajava.exit() end } )) gui.setBallImage(null, 50, 50) gui.setAllViewMargins(6, 6, 6, 6) AlGuiData.menuScrollWidth = 820 AlGuiData.menuScrollHeight = 140 AlGuiData.rootLayoutFilletRadius = 2 AlGuiData.rootLayoutStrokeWidth = 1.5 AlGuiData.menuTopLineFilletRadius = 1 AlGuiData.menuTransparency = 0.97 AlGuiData.rootLayoutBackColor = 0xE6081430 AlGuiData.rootLayoutStrokeColor = 0xFF3060C0 AlGuiData.menuTopLineColor = 0xFF2070FF AlGuiData.menuMainTitleTextColor = 0xFF4090FF AlGuiData.menuSubTitleTextColor = 0xFF6088CC AlGuiData.menuExplanationBackColor = 0x30081430 AlGuiData.menuExplanationTextColor = 0xFF80A8DD AlGuiData.menuScrollBackColor = 0xFF0A2060 AlGuiData.menuBottLeftButtonTextColor = 0xFF4090FF AlGuiData.menuBottRightButtonTextColor = 0xFF6088CC AlGuiData.menuBottRightTriangleColor = 0xFF6088CC gui.updateMenuAppearance() gui.updateMenu() local detectModule = gui.addCollapse( gui.getMenuScrollingListLayout(), "过检测", 12, 0xFF4090FF, Typeface.create(Typeface.DEFAULT, Typeface.BOLD), 4, 0x40081430, 1, 0xFF3060C0, false ) gui.addButton( detectModule, "选择进程", 11, 0xFF90BBFF, null, 2, 0xFF183870, 1, 0xFF3060C0, LinearLayout.LayoutParams.MATCH_PARENT, LinearLayout.LayoutParams.WRAP_CONTENT, AlGui.T_ButtonOnChangeListener({ onClick = function(button, back, buttonText, isChecked) playClickSound() gg.showProcessList() end }) ) gui.addSwitch( detectModule, "logo过检", 11, 0xFF90BBFF, null, "libtersafe2.so logo绕过", 8, 0xFF6088CC, null, 0xFF2070FF, 0xFF1040AA, 0xFF182850, 0xFF081430, AlGui.T_SwitchOnChangeListener({ onClick = function(aSwitch, desc, isChecked) playClickSound() if isChecked then if gg.getRangesList("libtersafe2.so")[1] then local t = {} t[1] = gg.getRangesList("libtersafe2.so")[1]["start"] + 0x2932C8; gg.setValues({ [1] = { address = t[1], flags = 4, value = 335544320, }, }) Inform.showCustomizeNotification( 0xFF081430,null,0, "logo过检",0xFF4090FF, "logo过检已开启",0xFF80A8DD,2000 ) else Inform.showCustomizeNotification( 0xFF081430,null,0, "logo过检",0xFFFF4444, "已开启",0xFFDD8888,2000 ) end end end }) ) gui.addButton( detectModule, "大厅过检", 11, 0xFF90BBFF, null, 2, 0xFF183870, 1, 0xFF3060C0, LinearLayout.LayoutParams.MATCH_PARENT, LinearLayout.LayoutParams.WRAP_CONTENT, AlGui.T_ButtonOnChangeListener({ onClick = function(button, back, buttonText, isChecked) playClickSound() if gg.getRangesList("libtersafe2.so")[1] then local t = {} t[1] = gg.getRangesList("libtersafe2.so")[1]["start"] + 0x1C5EBC; t[2] = gg.getRangesList("libtersafe2.so")[1]["start"] + 0x1C7424; t[3] = gg.getRangesList("libtersafe2.so")[1]["start"] + 0x1C9538; t[4] = gg.getRangesList("libtersafe2.so")[1]["start"] + 0x1DDFB0; t[5] = gg.getRangesList("libtersafe2.so")[1]["start"] + 0x1DDFC4; t[6] = gg.getRangesList("libtersafe2.so")[1]["start"] + 0x1DDFD8; t[7] = gg.getRangesList("libtersafe2.so")[1]["start"] + 0x1DDFEC; t[8] = gg.getRangesList("libtersafe2.so")[1]["start"] + 0x1DE000; t[9] = gg.getRangesList("libtersafe2.so")[1]["start"] + 0x1DE014; t[10] = gg.getRangesList("libtersafe2.so")[1]["start"] + 0x1E1300; t[11] = gg.getRangesList("libtersafe2.so")[1]["start"] + 0x1EE684; t[12] = gg.getRangesList("libtersafe2.so")[1]["start"] + 0x1F0154; t[13] = gg.getRangesList("libtersafe2.so")[1]["start"] + 0x1F0164; t[14] = gg.getRangesList("libtersafe2.so")[1]["start"] + 0x1F0C3C; t[15] = gg.getRangesList("libtersafe2.so")[1]["start"] + 0x1F4780; t[16] = gg.getRangesList("libtersafe2.so")[1]["start"] + 0x1FD844; t[17] = gg.getRangesList("libtersafe2.so")[1]["start"] + 0x200D1C; t[18] = gg.getRangesList("libtersafe2.so")[1]["start"] + 0x202010; t[19] = gg.getRangesList("libtersafe2.so")[1]["start"] + 0x2077C8; t[20] = gg.getRangesList("libtersafe2.so")[1]["start"] + 0x208384; local setData = {} for i=1,#t do setData[i] = {address = t[i], flags=4, value=335544320} end gg.setValues(setData) Inform.showCustomizeNotification( 0xFF081430,null,0, "大厅过检",0xFF4090FF, "大厅过检开启成功",0xFF80A8DD,2000 ) else Inform.showCustomizeNotification( 0xFF081430,null,0, "大厅过检",0xFFFF4444, "已开启",0xFFDD8888,2000 ) end end }) ) local themeModule = gui.addCollapse( gui.getMenuScrollingListLayout(), "主题", 12, 0xFF4090FF, Typeface.create(Typeface.DEFAULT, Typeface.BOLD), 4, 0x40081430, 1, 0xFF3060C0, false ) for idx,th in ipairs(themeList) do gui.addButton( themeModule, th.name, 11, 0xFFBBCCFF, null, 2, 0xFF183870, 1, 0xFF3060C0, LinearLayout.LayoutParams.MATCH_PARENT, LinearLayout.LayoutParams.WRAP_CONTENT, AlGui.T_ButtonOnChangeListener({ onClick = function(button, back, buttonText, isChecked) playClickSound() AlGuiData.rootLayoutBackColor = th.rootBackColor AlGuiData.rootLayoutStrokeColor = th.strokeColor AlGuiData.menuTopLineColor = th.topLineColor AlGuiData.menuMainTitleTextColor = th.titleColor AlGuiData.menuSubTitleTextColor = th.subTitleColor AlGuiData.menuScrollBackColor = th.scrollBackColor gui.updateMenuAppearance() gui.updateMenu() Inform.showCustomizeNotification( th.rootBackColor,null,0, "主题切换",th.titleColor, "已切换至:"..th.name,th.subTitleColor,1500 ) end }) ) end gui.showBall() Inform.showCustomizeNotification( 0xFF081430, null, 0, "欢迎使用", 0xFF4090FF, "唯有她辅助已加载完成", 0xFF80A8DD, 4000 ) AlGuiSoundEffect.getAudio(context).playSoundEffect(AlGuiSoundEffect.INFORM_WARNING) end, nil, function(err) AlGuiWindowView.clearAllViews(context) print("系统崩溃: " .. err) luajava.exit() end)