搜索
热搜: 活动 交友 discuz
查看: 12148|回复: 6

[解包打包] cdex转dex处理方法和工具下载

  [复制链接]

27

主题

27

帖子

155

积分

超级版主

Rank: 8Rank: 8

积分
155
发表于 2019-3-15 11:04:59 | 显示全部楼层 |阅读模式
本帖最后由 ironMan.K 于 2019-3-15 11:15 编辑

本文重点如何查看一个patch是否进了google system image
问题初探
测试命令:
  1. run cts-on-gsi -m CtsOsTestCases -t android.os.cts.ParcelTest#testMaliciousMapWrite
  2. fail: junit.framework.AssertionFailedError: Should have thrown a BadParcelableExceptionat junit.framework.Assert.fail(Assert.java:50)at android.os.cts.ParcelTest.testMaliciousMapWrite(ParcelTest.java:3269)at java.lang.reflect.Method.invoke(Native Method)at junit.framework.TestCase.runTest(TestCase.java:168)at junit.framework.TestCase.runBare(TestCase.java:134)at junit.framework.TestResult$1.protect(TestResult.java:115)at
复制代码

android.support.test.internal.runner.junit3.AndroidTestResult.runProtected(AndroidTestResult.java:73)像这种问题很明显就是google的安全补丁的问题,又因为我们刷了google system image,且CTS这条没过,因此我们就可以怀疑google的patch没进gsi

问题分析
首先找到相关的安全补丁如下:
https://android.googlesource.com/platform/frameworks/base/+/6a947f048a76a5936fd2b693e01f849aef22c907%5E%21/#F0

那么补丁是否进了呢?
我们可以按照如下步骤进行处理:

1.解压google提供的system.img(使用simg2img)
我们可以将其中的system/framework文件夹完整的拷出来

2.观察这条补丁应该在的问题,对于我们这条补丁而言,本来应该在framework.jar里面
但是jar包里是空的,因此我们需要另想办法

3.反编译boot-framework.vdex
在O以前,我们可以通过baksmali.jar等工具来将odex->smali->dex→jar,根据这个路径反编出大致的jar包
但是O之后不能这么做了,上面的步骤我们就不详细介绍了
推荐使用https://github.com/anestisb/vdexExtractor 工具,通过反编vdex来查看
那么
vdexExtractor -i boot-framework.vdex -o . --deps -f -v 4
这样,对于O的版本,这样就可以直接解压出dex文件了;但是对于Android P还要再增加一个步骤

4.将cdex转换为dex
通过aosp的patch https://gist.github.com/anestisb/30265097ad9a5ea2f0ddf7e36db3f07d
编译出compact_dex_converter工具
compact_dex_converter -w ./ ./boot-framework_classes2.cdex
会生成一个boot-framework_classes2.cdex.new文件,这个其实就是dex文件


  • d2j-dex2jar.sh+010Editor dex→jar
如果magic header不对,用010Editor改一下,然后通过d2j-dex2jar.sh得到相应的framework.jar
见boot-framework2.jar
查看其中的Parcel.class,发现patch果然没进
public final void writeMap(Map paramMap){  writeMapInternal(paramMap);} void writeMapInternal(Map<String, Object> paramMap){  if (paramMap == null)  {    writeInt(-1);    return;  }  paramMap = paramMap.entrySet();  writeInt(paramMap.size());  paramMap = paramMap.iterator();  while (paramMap.hasNext())  {    Map.Entry localEntry = (Map.Entry)paramMap.next();    writeValue(localEntry.getKey());    writeValue(localEntry.getValue());  }}则有充足的理由申请waive


问题总结
该问题引申出如何查看gsi乃至友商机型system.img的方法


问题延伸
组内老板的说法:
快捷点的话直接adb shell oatdump --oat-file=xxx.oat --export-dex-to=/tmp,不需要手动解析vdex/cdex/art/oat,应该是不分Android版本的;(找机会试下!)









上一篇:如果快速将手机网页转为微信小程序?
下一篇:odex 转 dex 简单方法介绍
回复

使用道具 举报

0

主题

1

帖子

62

积分

注册会员

Rank: 2

积分
62
发表于 2025-3-7 02:40:36 | 显示全部楼层
Bitcoin Mixers and Tumblers: Websites Overview


Bitcoin Mix

Bitcoin Mix is a trusted service for anonymous and secure BTC mixing. The platform offers a high level of privacy, low fees, and coins with verified history. Operating since 2017, Bitcoin Mix has established itself as a reliable tool for ensuring anonymity in blockchain transactions. The main goal of the service is to provide users with the ability to maintain confidentiality without compromise.

Advantages of Bitcoin Mix


Complete Privacy: All data is deleted immediately after the transaction is completed. The platform follows a strict no-log policy, retaining no user information.
Instant Transactions: Thanks to internal reserves, the service ensures immediate transaction execution, eliminating the wait for transaction pool confirmation.
Support for Modern Addresses: Compatibility with SegWit and bech32 speeds up transaction processing.
Flexible Transaction Delays: Users can set a delay of up to 7 days to enhance anonymity.
Dynamic Fees: Option to set fees within a range of 0.5–2.5%.


How Does Bitcoin Mix Work?


Enter the wallet address(es) where you want to receive "clean" coins. The minimum transfer amount is 0.005 BTC.
Set your preferences: choose delay and fee levels.
Leave the mixing code field blank if this is your first time using the service.
Receive the deposit address and send your coins within 24 hours.
Download the guarantee letter confirming your payment.


The process is fully automated. There is no need to keep your browser open—the service ensures security and ease of use.

Why Choose Bitcoin Mix?


Years of Experience: Since 2017, the platform has been helping users maintain confidentiality.
Modern Technology: Support for new address formats and instant transactions.
Ease of Use: An intuitive interface and automated process.


Useful Links:


Official Website
TOR Mirror


Bitcoin Mix is your best choice for safe and anonymous BTC mixing.


Bitcoin Mixers and Tumblers: Understanding the Basics

Introduction to Bitcoin Tumblers

Bitcoin tumblers, also known as mixers, are essential tools for cryptocurrency users seeking enhanced privacy. They work by obscuring the origin of funds, making it difficult to trace transactions on the blockchain. As the use of cryptocurrencies grows, so does the need for tools like Bitcoin Mix to ensure secure and confidential transactions.

Features of a Reliable Bitcoin Mixer


Privacy Guarantee: A trustworthy mixer must employ robust no-log policies.
Fast and Efficient: Transactions should be processed without unnecessary delays.
Flexible Options: Users should have control over fees and delays to suit their needs.
Compatibility: Support for various wallet types, including SegWit and bech32.


Why Bitcoin Mix Stands Out

Bitcoin Mix combines cutting-edge technology with user-focused features. From instant transactions to customizable fees, it caters to a wide range of privacy needs. The platform’s long-standing reputation since 2017 further solidifies its position as a leading Bitcoin mixer.

Get Started with Bitcoin Mix

Using Bitcoin Mix is simple: specify your receiving wallet, set preferences, and let the service handle the rest. With guaranteed privacy and efficiency, Bitcoin Mix remains a top choice for secure cryptocurrency transactions.

Secure Your Cryptocurrency Transactions Today

Bitcoin Mix offers the ultimate solution for anonymous BTC mixing. Whether you’re a seasoned crypto user or new to the world of blockchain, this platform ensures your transactions remain private and secure. Choose Bitcoin Mix for unparalleled confidentiality in 2025.
回复

使用道具 举报

0

主题

10

帖子

110

积分

注册会员

Rank: 2

积分
110
发表于 2025-3-10 14:43:29 | 显示全部楼层
Мостбет - крупный букмекерский сайт, где можно делать ставки на спорт и казино, получать бонусы и участвовать в акциях, а также следить за актуальными результатами матчей и событий в мире спорта.
回复

使用道具 举报

0

主题

10

帖子

110

积分

注册会员

Rank: 2

积分
110
发表于 2025-3-13 13:19:05 | 显示全部楼层
На официальном сайте mostbet casino вы найдете увлекательные азартные игры, бонусы для игроков и многое другое, чтобы получить максимум удовольствия от игры в казино.
回复

使用道具 举报

0

主题

10

帖子

110

积分

注册会员

Rank: 2

积分
110
发表于 2025-3-16 04:14:19 | 显示全部楼层
Хотите скачать мостбет спорт на свое устройство и делать ставки на спортивные события в любое время? Узнайте, как это сделать и наслаждайтесь ставками в любом месте!
回复

使用道具 举报

0

主题

10

帖子

110

积分

注册会员

Rank: 2

积分
110
发表于 6 天前 | 显示全部楼层
https://mostbet-wdx3.top/ о доступных бонусах и акциях от букмекера Мостбет, которые помогут вам увеличить свои шансы на выигрыш и получить дополнительные выгоды при ставках.
回复

使用道具 举报

0

主题

10

帖子

110

积分

注册会员

Rank: 2

积分
110
发表于 5 天前 | 显示全部楼层
Погрузитесь в захватывающий мир азартных игр с мостбет слотами и испытайте удачу на пути к крупным выигрышам.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

抖音账号
关注抖音
加入粉丝群,抽取论坛金币


Archiver|手机版|小黑屋|IT趣-GEEK社区

GMT+8, 2025-3-29 02:25 , Processed in 0.244347 second(s), 23 queries .

Powered by Discuz! X3.4. 技术支持 by 巅峰设计

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表