fourbrother / icodetools Goto Github PK
View Code? Open in Web Editor NEWAndroid中动态自动插入代码到apk中工具
Android中动态自动插入代码到apk中工具
主要毛病就是无法知道方法参数长度 不知道到底调用的是哪个。另外最大的毛病就是过滤问题了,我弄了一个文本写入分割改进,但是 我擦qq信息大量大量了 过滤了几十个类还是不断的打印,只要稍微滚动一下ui又是疯狂打印-addfilter mqq.app.AppRuntime,com.tencent.mobileqq.pb.MessageMicro,com.tencent.mobileqq.app.message.MsgProxyUtils,com.tencent.beacon.event.b$1,com.tencent.image.QQLiveImagecom.tencent.qphone.base.util.QLog,com.tencent.mobileqq.statistics.UnifiedMonitor,com.tencent.qphone.base.util.QLog$c,com.tencent.beacon.event.g.t,oicq.wlogin_sdk.tools.b.a,cooperation.qzone.LocalMultiProcConfig.a,com.tencent.qphone.base.util.QLog$c,zod.a,com.tencent.mobileqq.statistics.UnifiedMonitor,com.tencent.mobileqq.statistics.StatisticCollector,com.tencent.mobileqq.msf.sdk.MsfSdkUtils,com.tencent.commonsdk.pool.RecyclablePool$Recyclable,com.tencent.commonsdk.pool.RecyclablePool,com.tencent.open.base.MD5Utils_method_dFromcom.tencent.open.base.MD5Utils.com.tencent.open.base.MD5Utils.a,com.tencent.beacon.e.a,com.tencent.mobileqq.utils.SecurityUtile,com.tencent.qphone.base.util.QLog$b,com.tencent.qphone.base.util.h,com.qq.taf.jce.JceInputStream,com.tencent.beacon.d.a,com.tencent.open.base.MD5Utils,com.tencent.mobileqq.app.ThreadOptimizer,oicq.wlogin_sdk.tools.b_method_aFromoicq.wlogin_sdk.tools.b,oicq.wlogin_sdk.tools.b,com.tencent.mobileqq.app.proxy.ProxyManager,com.tencent.qphone.base.util.MsfSocketInputBuffer,com.tencent.mobileqq.msf.core.c.l,com.tencent.mobileqq.msf.core.q,com.tencent.qphone.base.util.AbsSessionInputBuffer,com.tencent.commonsdk.util.LargerInteger,com.tencent.mobileqq.msf.core.p,com.tencent.mobileqq.msf.service.a,com.tencent.mobileqq.msf.core.NetConnInfoCenterImpl$a,com.tencent.mobileqq.msf.core.NetConnInfoCenterImpl_method_checkWifiSignalStrengthsFromcom.tencent.mobileqq.msf.core.NetConnInfoCenterImpl$a,com.tencent.mobileqq.pb.PBUInt32Field,com.tencent.mobileqq.pb.PBPrimitiveField,com.tencent.mobileqq.pb.CodedOutputStreamMicro,com.tencent.mobileqq.pb.CodedOutputStreamMicro,com.tencent.mobileqq.msf.core.x,com.tencent.beacon.a.b,com.tencent.mobileqq.msf.service.h,com.tencent.beacon.event.g,com.tencent.mobileqq.app.MemoryManager,com.tencent.qphone.base.util.CodecWarpper,com.tencent.qphone.base.util.BaseApplication,com.tencent.qphone.base.remote.ToServiceMsg,com.tencent.mobileqq.msf.core.NetConnInfoCenterImpl,com.tencent.mobileqq.msf.core.o,oicq.wlogin_sdk.tools.util,com.tencent.beacon.event.h,com.tencent.mobileqq.app.MemoryConfigs,com.tencent.qphone.base.remote.FromServiceMsg,com.tencent.qqlive.mediaplayer.api.TVK_PlayerVideoInfo,com.tencent.mobileqq.widget.BubbleImageView,com.tencent.image.URLDrawable,com.tencent.util.VersionUtils,com.tencent.image.URLState,com.tencent.image.QQLiveImage,com.tencent.image.QQLiveDrawable,:com.tencent.image.QQLiveImage,com.tencent.image.QQLiveImage$EventHandler,com.tencent.widget.ListView,wlv,com.tencent.image.QQLiveImage$OnLogListener,com.tencent.mobileqq.activity.aio.AIOUtils,com.tencent.mobileqq.app.memory.MemoryReporter,com.tencent.widget.AdapterView,com.tencent.mqq.shared_file_accessor.SharedPreferencesProxyManager,com.tencent.beacon.event.o,com.tencent.image.QQLiveImage$3,friendlist.SimpleOnlineFriendInfo,com.tencent.mobileqq.pb.WireFormatMicro,com.tencent.mobileqq.pb.PBUInt64Field
@echo off
cd %~dp0
set aapt_path=aapt.exe
set PATH=F:\dev\jdk1.7.0_80_64\bin;%PATH%
java -version
echo 上面列出的是您的JAVA版本必须为7.0 不能大于等于8.0
pause
java -Xmx2048m -XX:-UseParallelGC -XX:MinHeapFreeRatio=15 -jar libs\icodetools_1.0.jar %~dp0 src.apk %aapt_path% jw cn.wjdiankong.jw.utils.JWUtils printStackTrace
adb install -r signed.apk
pause..
这个目录不是所有权限都能写入的的吧????我使用这个路径的实际时候出现问题,应该是权限不够的原因,我改到sdcard上就没有问题了
做了签名保护的程序app是不是就不行了?
下载icodetools,按照说明修改配置,运行失败,提示下面错误
java.io.FileNotFoundException: D:\icodetools\temp_jar\classes.jar (系统找不到指定的文件
。)
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.(Unknown Source)
at java.util.zip.ZipFile.(Unknown Source)
at java.util.zip.ZipFile.(Unknown Source)
at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:244)
at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:166)
at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:144)
at com.android.dx.command.dexer.Main.processOne(Main.java:672)
at com.android.dx.command.dexer.Main.processAllFiles(Main.java:574)
at com.android.dx.command.dexer.Main.runMonoDex(Main.java:311)
at com.android.dx.command.dexer.Main.run(Main.java:277)
at com.android.dx.command.dexer.Main.main(Main.java:245)
at com.android.dx.command.Main.main(Main.java:106)
at cn.wjdiankong.jw.DoWorkUtils.jar2Dex(DoWorkUtils.java:147)
at cn.wjdiankong.jw.JWMain.main(JWMain.java:89)
1 error; aborting
第四步==> 转化jar文件为dex文件(可能需要消耗点时间) 开始处理classes.jar compile cmd:javac -encoding UTF-8 -cp libs\android.jar JWUtils.java UNEXPECTED TOP-LEVEL EXCEPTION: java.lang.RuntimeException: Exception parsing classes at com.android.dx.command.dexer.Main.processClass(Main.java:752) at com.android.dx.command.dexer.Main.processFileBytes(Main.java:718) at com.android.dx.command.dexer.Main.access$1200(Main.java:85) at com.android.dx.command.dexer.Main$FileBytesConsumer.processFileBytes( Main.java:1645) at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpen er.java:284) at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.j ava:166) at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java :144) at com.android.dx.command.dexer.Main.processOne(Main.java:672) at com.android.dx.command.dexer.Main.processAllFiles(Main.java:574) at com.android.dx.command.dexer.Main.runMonoDex(Main.java:311) at com.android.dx.command.dexer.Main.run(Main.java:277) at com.android.dx.command.dexer.Main.main(Main.java:245) at com.android.dx.command.Main.main(Main.java:106) at cn.wjdiankong.jw.DoWorkUtils.jar2Dex(DoWorkUtils.java:147) at cn.wjdiankong.jw.JWMain.main(JWMain.java:89) Caused by: com.android.dx.cf.iface.ParseException: bad class file magic (cafebab e) or version (0034.0000) at com.android.dx.cf.direct.DirectClassFile.parse0(DirectClassFile.java: 472) at com.android.dx.cf.direct.DirectClassFile.parse(DirectClassFile.java:4 06) at com.android.dx.cf.direct.DirectClassFile.parseToInterfacesIfNecessary (DirectClassFile.java:388) at com.android.dx.cf.direct.DirectClassFile.getMagic(DirectClassFile.jav a:251) at com.android.dx.command.dexer.Main.parseClass(Main.java:764) at com.android.dx.command.dexer.Main.access$1500(Main.java:85) at com.android.dx.command.dexer.Main$ClassParserTask.call(Main.java:1684 ) at com.android.dx.command.dexer.Main.processClass(Main.java:749) ... 14 more 1 error; aborting H:\软件\安卓工具\icodetools-master>adb install -r signed.apk can't find 'signed.apk' to install H:\软件\安卓工具\icodetools-master>pause.. 请按任意键继续. . .
希望更新一下命令行中javac的编译参数,指定目标版本为jdk1.7即可,不用需要有1.7的环境,高于1.7的环境也可以执行
Hola! @Antine has created a ZenHub account for the fourbrother organization. ZenHub is the only project management tool integrated natively in GitHub – created specifically for fast-moving, software-driven teams.
To get set up with ZenHub, all you have to do is download the browser extension and log in with your GitHub account. Once you do, you’ll get access to ZenHub’s complete feature-set immediately.
ZenHub adds a series of enhancements directly inside the GitHub UI:
Still curious? See more ZenHub features or read user reviews. This issue was written by your friendly ZenHub bot, posted by request from @Antine.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.