摘要: import osfrom lxml import etree''' 将不规范的xml文件 规范化'''path = r"~/path"for dirs, root, filenames in os.walk(path): for filename in filenames: path_file = 阅读全文
posted @ 2023-09-02 12:43 Lyxin_c 阅读(244) 评论(0) 推荐(0) 编辑
摘要: import os from ctypes import windll import win32gui import win32ui from PIL import Image import const import logs import utils hwnd_title = dict() # h 阅读全文
posted @ 2023-08-02 15:11 Lyxin_c 阅读(95) 评论(0) 推荐(0) 编辑
摘要: path ="" dirs_img = os.listdir(os.path.join(path, "JPEGImages")) dirs_annotations = os.listdir(os.path.join(path, "annotations")) for item_img in dirs 阅读全文
posted @ 2023-08-02 15:09 Lyxin_c 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-11-30 10:13 Lyxin_c 阅读(58) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2018-12-02 10:23 Lyxin_c 阅读(214) 评论(0) 推荐(0) 编辑
摘要: Java工程实现调用dll加密: 一、idea中 生成一个Java文件,加载库dll,声明native函数; static { System.loadLibrary("Test_SimpleEncryForJava"); } public native static void SimpleEncry 阅读全文
posted @ 2018-12-02 10:22 Lyxin_c 阅读(1660) 评论(0) 推荐(0) 编辑
摘要: 使用加壳的顺序: //1-3生成壳dex 1.反编译壳:apktool d -f app-debug.apk -o shellApk ; 其中app-debug是壳app 2.删除代码,只剩app和反射类 3.apktool b shellApk //这里build我是失败了的,报错可以不管它,以后 阅读全文
posted @ 2018-12-02 10:21 Lyxin_c 阅读(243) 评论(0) 推荐(0) 编辑
摘要: 1.创建工程生成c++,包名为com.cc.test_socreator,内容: ​ 此时可以在MainActivity中使用代码调用stringFromJNI: ​ 可以在jniTest中调用getString: ​ 2.生成so文件 Build-make project在没有报错,工程建立以后会 阅读全文
posted @ 2018-12-02 10:16 Lyxin_c 阅读(663) 评论(0) 推荐(0) 编辑
摘要: 调用第三方so文件,无需包名与so文件中的呼应java方法相同,就是创建一个jar,使它的包名和so中的包名相同。 1.新建一个测试工程,创建好c++代码,cmake照旧写入。 ​ 图1.1、测试工程目录 2.建立library 新建一个Android library的module,建立两个测试类, 阅读全文
posted @ 2018-12-02 10:15 Lyxin_c 阅读(423) 评论(0) 推荐(0) 编辑
摘要: 使用反射实现替换classLoader1.获取"android.app.ActivityThread"中的"mPackages" ; 定义为arraymap<String,weakReference<LoadedApk>> mPackages c = Class.forName("android.a 阅读全文
posted @ 2018-12-02 10:14 Lyxin_c 阅读(163) 评论(0) 推荐(0) 编辑