This project has been discontinued. Please use other active forks:
linusyang92 / mipay-extract Goto Github PK
View Code? Open in Web Editor NEWExtract Mi Pay from MIUI China Rom
Extract Mi Pay from MIUI China Rom
This project has been discontinued. Please use other active forks:
自行创建最新版钱包或开机安装apk都无法正常安装钱包App
MIUI开发版现在不开放下载了,在手机上下载的开发版包无法在mipay-extract上使用,在解压步骤就出现问题了。
把之前下载的MIUI开发版包重命名修改为与欧版相同的版本号,可以成功提取mipay。但是如果mipay相关服务更新的话,我们就无法提取到了。
希望能更新支持,谢谢。
--> rom: MIMIX2S v8.10.11
--> image extracted: miui-MIMIX2S-8.10.11-system.img
--> copying apps
----> copying Mipay...
----> copying NextPay...
----> copying TSMClient...
----> copying UPTsmService...
--> framework arch: arm64
--> vdex detected
--> deodexing Mipay...
[INFO] Processing 1 file(s) from Mipay.vdex
[INFO] 1 out of 1 Vdex files have been processed
[INFO] 1 Dex files have been extracted in total
[INFO] Extracted Dex files are available in '.'
./extract.sh: line 166: /mipay-extract-master/tools/cdex/compact_dex_converter_linux: cannot execute binary file: Exec format error
10.25的包制作成功,但刷的时候会报255?是MIUI又改了什么吗
Hi linusyang92 and those who pay close attention to this repo, I found an error and found the solution (on Mac OS X). I tried to use this tool to extract mipay from the China stable version, but sadly, it failed.
The log is as followed.
...
'system/app/TSMClient/oat/arm64/classes.dex' as 'classes.dex'...
----> copy native library libuptsmaddon.so
--> already deodexed UPTsmService
----> extract native library...
--> packaging flashable zip
dyld: lazy symbol binding failed: Symbol not found: _mkostemp
Referenced from: /Users/Sean/Workspace/mipay-extract/tools/darwin/gsed (which was built for Mac OS X 10.13)
Expected in: /usr/lib/libSystem.B.dylib
...
After I delete the gsed in mipay-extract/tools/darwin/, all done!
Cheers!
对于我来说,实在能力有限去获取新的更新,能否也把主题商店也一起提取呢?国内的主题商店还是比较好用。信息助手确实有点问题,国际版的包名不一样之后,一些功能异常。谢谢你的工作给我们带来了那么大的便利性!
MIUI9.7.4 MI9SE 分别报错:无法复制文件 无法安装 privapp 和找不到 Build.prop
最近小米9升级了MIUI11,请问这个工具是否支持呢?
extract.bat --appvault: extract.bat --appvault
extract.sh: line 2: $'\r': command not found
extract.sh: line 3: cd: $'.\r': No such file or directory
extract.sh: line 4: $'\r': command not found
extract.sh: line 9: syntax error near unexpected token$'in\r'' 'xtract.sh: line 9:
case $key in
正在安装 Zip 刷机包 '/sdcard/rom/mipay-MI6-8.10.25.zip'
正在检测 Digest…
跳过 Digest 校验:未找到 Digest 文件
I:Update binary zip
Verifying package compatibility...
Package doesn't contain compatibility.zip entry
I:Zip does not contain SELinux file_contexts file in its root.
I:Legacy property environment not used in updater.
E:Can't execute '/tmp/updater': No such file or directory
Updater 过程结束,错误:255
I:Install took 0 second(s).
安装 Zip 刷机包 '/sdcard/rom/mipay-MI6-8.10.25.zip' 时出错
但实际发现该文件存在。
另外如果用拷贝apk的方式放入/system/app目录生效后触碰支付里支付方式没有MiPay,无法启用公交卡
7z.exe (win32-tools.exe \ win32 \ bin) using the l
command to list the img file will receive a report error.
E:\work\MIUI2EU\mipay-extract>%sevenzip% l %img% system/priv-app/Weather
7-Zip [32] 15.14 : Copyright (c) 1999-2015 Igor Pavlov : 2015-12-31
p7zip Version 15.14.1 (locale=C.UTF-8,Utf16=on,HugeFiles=on,32 bits,2 CPUs Penti
um(R) Dual-Core CPU E5800 @ 3.20GHz (1067A),ASM)
Scanning the drive for archives:
ERROR: No more files
E:\work\MIUI2EU\mipay-extract\miuieu-MI9-9.3.21\miuieu-MI9-9.3.21-system.img
System ERROR:
Unknown error -2147024872
If you try to replace it with the latest 7zip, the following problem will occur.
'classes.dex' as 'classes.dex'...
grep: system/app/NextPay/lib/arm64/libentryexpro.so: No such file or directory
cat: system/app/NextPay/lib/arm64/libentryexpro.so: No such file or directory
Command Line Error:
Empty file path
----> copy native library libentryexpro.so
Command Line Error:
Empty file path
the system/app/NextPay/lib/arm64/libentryexpro.so
is a symbolic link file
code:
echo "mkdir -p /system/app/$app/lib/$arch" >> $libmd
for f in $deoappdir/$app/lib/$arch/*.so; do
if ! grep -q ELF $f; then
fname=$(basename $f)
orig="$(cat $f)"
imgpath="${orig#*system/}"
imglist="$($sevenzip l "$system_img" "$imgpath")"
if [[ "$imglist" == *"$imgpath"* ]]; then
echo "----> copy native library $fname"
output_dir=$deoappdir/$app/lib/$arch/tmp
$sevenzip x -o"$output_dir" "$system_img" "$imgpath" >/dev/null || return 1
mv "$output_dir/$imgpath" $f
rm -Rf $output_dir
else
echo "ln -s $orig /system/app/$app/lib/$arch/$fname" >> $libln
rm -f "$f"
fi
fi
done
It'll be much cleaner that way. Thx.
Ignore patch: "MiuiFavoriteReceiver.smali" not found
Ignore patch: "LocalizationUtils.smali" not found
这两个没有了,农历没有显示。
蓝奏云链接:https://imzhifu.lanzous.com/i8s2ovi
默认的是mix2s可用的,其实我也不清楚不同机型安装包是否有区别,提供一个思路吧:
把相同版本的国内版的包,比如eu是20.4.30,那么国内版的也最好是20.4.30同版本,实在不一样也没事,旧版本也可以用,只是能找到相同版本包更好。把miui_MIMIX2S_20.4.30_2db521ba0e_10.0.zip
放在解压缩后的mipay-extract-master
目录下,双击extract.bat
就可以导出需要的几个文件,然后对着替换到我分享的压缩包里就可以了,这个非常稳定,自用半年左右。
any support for miui10 stable roms? tks
MIX 2S MIUI 10 8.9.7 (http://bigota.d.miui.com/8.9.7/miui_MIMIX2S_8.9.7_549955dacb_9.0.zip) is based on Android P, but this tool cannot support extracting wallet related files.
The system image has both vdex and odex files, and firstly it fails on deodex.
The vdex file cannot be deodexed. I had a research and found this is caused by out-of-date vdexextractor. The author claimed to support Android P in new version and I compiled a new version which indeed works.
vdexExtractor.zip
But later it fails on a "mv" command (extract.sh, line 136).
I don't know why this is happening and I checked, the folder originally has Mipay.odex and Mipay.vdex , and after vdexextractor a new Mipay_classes.cdex is created, but I have no idea of what is going to be fixed here. Thanks.
用miui_MI6_8.3.22 执行deploy脚本后,在Weather.apk上报错,但是可以正常生成两个zip包,但是用TWRP刷包后,miui系统直接没有掉了,启动直接进入TWRP,/data 显示没有format
错误日志
/tmp/mipay-extract(master*) # ./deploy.sh root@jupiter
--> Downloading miui_MI6_8.3.22_1636f1f01d_8.0.zip
03/26 17:13:17 [NOTICE] Downloading 1 item(s)
[#826207 1.3GiB/1.3GiB(99%) CN:1 DL:31MiB]
03/26 17:13:43 [NOTICE] Download complete: /tmp/mipay-extract/miui_MI6_8.3.22_1636f1f01d_8.0.zip
Download Results:
gid |stat|avg speed |path/URI
======+====+===========+=======================================================
826207|OK | 56MiB/s|/tmp/mipay-extract/miui_MI6_8.3.22_1636f1f01d_8.0.zip
Status Legend:
(OK):download completed.
--> rom: MI6 v8.3.22
7-Zip (a) [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,64 bits,1 CPU Intel(R) Xeon(R) CPU E3-1275 v5 @ 3.60GHz (506E3),ASM,AES-NI)
Scanning the drive for archives:
1 file, 1480679957 bytes (1413 MiB)
Extracting archive: ../miui_MI6_8.3.22_1636f1f01d_8.0.zip
--
Path = ../miui_MI6_8.3.22_1636f1f01d_8.0.zip
Type = zip
Physical Size = 1480679957
Comment = signed by SignApk
Everything is Ok
Files: 2
Size: 2877600182
Compressed: 1480679957
sdat2img binary - version: 1.0
Android Nougat 7.x / Oreo 8.x detected!
extracting |################################| 100%
Done! Output image: miui-MI6-8.3.22-system.img
--> image extracted: miui-MI6-8.3.22-system.img
--> copying apps
----> copying Mipay...
----> copying TSMClient...
----> copying UPTsmService...
--> framework arch: arm64
--> deodexing Mipay...
----> classes: /system/app/Mipay/Mipay.apk
'system/app/Mipay/oat/arm64/classes.dex' as 'classes.dex'...
--> deodexing TSMClient...
----> classes: /system/app/TSMClient/TSMClient.apk
'system/app/TSMClient/oat/arm64/classes.dex' as 'classes.dex'...
----> copy native library libuptsmaddon.so
--> already deodexed UPTsmService
----> extract native library...
--> packaging flashable zip
--> done
--> all done
--> Downloading xiaomi.eu_multi_MI6_8.3.22_v9-8.0.zip
03/26 17:15:23 [NOTICE] Downloading 1 item(s)
*** Download Progress Summary as of Mon Mar 26 17:16:24 2018 ***
===============================================================================================================================================================
[#a298b2 1.3GiB/1.3GiB(98%) CN:3 DL:16MiB]
FILE: /tmp/mipay-extract/xiaomi.eu_multi_MI6_8.3.22_v9-8.0.zip
---------------------------------------------------------------------------------------------------------------------------------------------------------------
[#a298b2 1.3GiB/1.3GiB(99%) CN:1 DL:9.9MiB]
03/26 17:16:28 [NOTICE] Download complete: /tmp/mipay-extract/xiaomi.eu_multi_MI6_8.3.22_v9-8.0.zip
Download Results:
gid |stat|avg speed |path/URI
======+====+===========+=======================================================
a298b2|OK | 21MiB/s|/tmp/mipay-extract/xiaomi.eu_multi_MI6_8.3.22_v9-8.0.zip
Status Legend:
(OK):download completed.
--> rom: MI6 v8.3.22
7-Zip (a) [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,64 bits,1 CPU Intel(R) Xeon(R) CPU E3-1275 v5 @ 3.60GHz (506E3),ASM,AES-NI)
Scanning the drive for archives:
1 file, 1419826980 bytes (1355 MiB)
Extracting archive: ../xiaomi.eu_multi_MI6_8.3.22_v9-8.0.zip
--
Path = ../xiaomi.eu_multi_MI6_8.3.22_v9-8.0.zip
Type = zip
Physical Size = 1419826980
Comment = signed by SignApk
Everything is Ok
Files: 2
Size: 2587977023
Compressed: 1419826980
sdat2img binary - version: 1.0
Android Nougat 7.x / Oreo 8.x detected!
extracting |################################| 100%
Done! Output image: miuieu-MI6-8.3.22-system.img
--> image extracted: miuieu-MI6-8.3.22-system.img
--> copying apps
----> copying CleanMaster...
----> copying Calendar...
----> copying SecurityCenter...
--> decompiling CleanMaster...
'system/priv-app/CleanMaster/classes.dex' as 'classes.dex'...
--> decompiling Calendar...
----> patched method: isGreaterChina => false
----> patched method: isMainlandChina => false
----> patched method: showsDayDiff => true
----> patched method: showsLunarDate => true
----> patched method: showsWidgetHoliday => true
----> patched method: showsWorkFreeDay => false
'system/priv-app/Calendar/classes.dex' as 'classes.dex'...
--> decompiling SecurityCenter...
----> patched smali: SettingsActivity.smali
'system/priv-app/SecurityCenter/classes.dex' as 'classes.dex'...
--> patching weather
cp: cannot stat 'deodex/system/data-app/Weather/Weather.apk': No such file or directory
ERROR: No more files
system/data-app
System ERROR:
No error information
mv: cannot stat 'deodex/system/data-app/Weather/Weather.apk': No such file or directory
--> packaging flashable zip
--> done
--> all done
------------------------------------------------------------
/tmp/mipay-extract(master*) #
修改版本号后的deploy.sh
#!/bin/bash
declare -a urls=(
# Rom URLs
'http://bigota.d.miui.com/8.3.22/miui_MI6_8.3.22_1636f1f01d_8.0.zip'
)
EU_VER=8.3.22
declare -a eu_urls=(
# EU Rom URLs
'https://jaist.dl.sourceforge.net/project/xiaomi-eu-multilang-miui-roms/xiaomi.eu/MIUI-WEEKLY-RELEASES/8.3.22/xiaomi.eu_multi_MI6_8.3.22_v9-8.0.zip'
)
command -v dirname >/dev/null 2>&1 && cd "$(dirname "$0")"
if [[ "$1" == "rom" ]]; then
base_dir=/sdcard/TWRP
[ -z "$2" ] && VER="$EU_VER" || VER=$2
[ -d "$base_dir" ] || base_dir=.
aria2c_opts="--check-certificate=false --file-allocation=trunc -s10 -x10 -j10 -c"
aria2c="aria2c $aria2c_opts -d $base_dir/$VER"
for i in "${eu_urls[@]}"
do
$aria2c ${i//$EU_VER/$VER}
done
base_url="https://github.com/linusyang92/mipay-extract/releases/download/$VER"
$aria2c $base_url/eufix-MiMix2-$VER.zip
$aria2c $base_url/mipay-MIMIX2-$VER.zip
$aria2c $base_url/weather-MiMix2-$VER-mod.apk
exit 0
fi
for i in "${urls[@]}"
do
bash extract.sh "$i" || exit 1
done
[[ "$1" == "keep" ]] || rm -rf miui-*/
for i in "${eu_urls[@]}"
do
bash cleaner-fix.sh "$i" || exit 1
done
exit 0
如果能恢复的话,这两个功能还是有一定用处的。
eu版的短信设置里是有“短信智能识别”这一选项的,不过即使打开这个选项验证码短信还是不会识别。
Hi,
I succeed to extract the MiPay.zip
But I failed to install the package.
Error message:
MIUI 9/10 Mipay Addons *
by @linusyang
version:CEPHEUS-9.6.5
Mounting filesystems....
Clean files......
Adding files.
Error: Failed copy apps
Aborting...
Failed to install mipay addons!
Updater process ended with ERROR:1
Error installing zip file'/sdcard/mipay-CEPHEUS-9.6.5.zip'
Updating partition details...
...done
My envirionment:
Mi 9
MIUI 10 EU , 9.6.13
Mipay extracted from miui-CEPHEUS-9.6.17
Thanks for your help in advanced. thanks
Hi, I've downloaded the latest developer ROM for Mi 6 and tried to execute extract.sh
in your repository. But it seems to quit with errors:
--> rom: MI6 v8.8.2
7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,64 bits,4 CPUs Intel(R) Core(TM) i5-7400 CPU @ 3.00GHz (906E9),ASM,AES-NI)
Scanning the drive for archives:
1 file, 713572352 bytes (681 MiB)
Extracting archive: ../miui_MI6_8.8.2_5b44a92e16_8.0.zip
ERRORS:
Unexpected end of archive
--
Path = ../miui_MI6_8.8.2_5b44a92e16_8.0.zip
Type = zip
ERRORS:
Unexpected end of archive
Physical Size = 713637888
Archives with Errors: 1
Open Errors: 1
--> abort
--> clean system.new.dat
Thanks for your hard work!
Can you release a latest mix 2 version? Since the global develop version is not updated anymore. I used to use a systemless modules but it doesn’t work in this latest MIUI10, I am wondering this would work or not, If somebody have already tested. Thank you very much.
Hello,
Is possible to use the ue-encription-enabler zip from Oreo on PIE based ROMs? Or is possible to you to generate a PIE compatible file and/or instructions?
Thanks in advance!
“eufix-appvault-MIMIX2-9.1.17” & “eufix-MIMix2-9.1.17” for MI8
And thanks for your mipay tool
Hi, I've downloaded the latest developer ROM for Mi 8 and tried to execute extract.sh in your repository. But it seems to quit with errors:
7-Zip` [32] 15.14 : Copyright (c) 1999-2015 Igor Pavlov : 2015-12-31
p7zip Version 15.14.1 (locale=C.UTF-8,Utf16=on,HugeFiles=on,32 bits,12 CPUs Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz (906EA),ASM,AES-NI)
Scanning the drive for archives:
1 file, 2178202777 bytes (2078 MiB)
Extracting archive: ../miui_MI8SE_8.8.31.zip
--
Path = ../miui_MI8SE_8.8.31.zip
Type = zip
Physical Size = 2178202777
Comment = signed by SignApk
Everything is Ok
Files: 2
Size: 1763508937
Compressed: 2178202777
extract.sh: line 260: -d: command not found
sdat2img binary - version: 1.0
Android Nougat 7.x / Oreo 8.x detected!
--> abort
--> clean miui-MI8SE-8.8.31.zip-system.img`
But I don't seem to find the reason it is not working, is that because it si miui10?
1、使用脚本提取mi8 最新稳定 rom,提取成功
2、刷入小米 8
问题:1 打开小米公交的时候 提示 重试
问题:2 打开门卡的时候,程序崩溃
从另外一个帖子看到 他还提取了一个 MiuiSmartCardService ,在脚本里加了这个 app,提取刷入后还是不行。
亲爱的开发者大大您好
我是小米Note顶配的用户,官方已停更,最新版本为MIUI9开发版7.11.21,Android 7.0 based
打算刷回MIUI养老😂于是使用您的脚本提取国内ROM功能
修改了您的脚本,增加小米漫游APP(/priv-app/VirtualSim/VirtualSim.apk)
并且使用Magisk 17000 template 刷入
但是发现刷入之后,小米漫游APP会自动冻结
使用系统设置启用以及钛备份解冻均无效果
搜遍网络上只有恢复小米支付,但无恢复小米漫游的教程
以下是我开机后第一时间用MatLog抓的log,希望作者能帮帮忙,谢谢!
2018-09-04-16-59-11.txt
device_info.txt
如题,运行cleaner_fix.bat失败,未输出eufix。程序直接就到最后一部结束了,没有任何输出,之前运行extract.bat正常。
我看这个源码可以直接写app然后提取出来
所以我就像提取时钟出来
虽然提取出来了但是 时钟没有工作日闹钟的那个选项
就有点难受....
BTW, is there any software can be used to manually extract apps from the .img files?
Thanks!
--> rom: CEPHEUS v9.3.22
Scanning the drive for archives:
1 file, 2678999087 bytes (2555 MiB)
Path = ../miui_CEPHEUS_9.3.22_c63654cc2f_9.0.zip
Type = zip
Physical Size = 2678999087
Comment = signed by SignApk
Everything is Ok
Files: 2
Size: 2024834027
Compressed: 2678999087
sdat2img binary - version: 1.0
Android Nougat 7.x / Oreo 8.x detected!
←[Kextracting |################################| 100%
←[?25hDone! Output image: miui-CEPHEUS-9.3.22-system.img
--> image extracted: miui-CEPHEUS-9.3.22-system.img
--> copying apps
----> copying Mipay...
----> copying NextPay...
----> copying TSMClient...
----> copying UPTsmService...
grep: system/build.prop: No such file or directory
ERROR: No more files
system/app
System ERROR:
Unknown error -2147024872
--> deodexing Mipay...
----> classes:
basename: missing operand
Try 'basename --help' for more information.
Can't find file: system/app/Mipay/oat/arm64/Mipay.odex/
--> abort
--> clean deodex
Press any key to continue . . .
在此感谢您的付出!
请问能否加入提取「全球上网」功能?或如何修改脚本加入?或修改输出档?
这样出国就可以购买流量,相当方便,谢谢。
For the recent xiaomi.eu roms, the Calendar app has changed its path from '/system/priv-app/Calendar' to '/system/app/Calendar'. So the present logic in the 'cleaner-fix.sh' would not extract nor patch the Calendar app.
I edited the script, removed 'Calendar' in mipay_apps and added 'app/Calendar' to private_apps. After that, the script runs normally and the Calendar app get patched. (Test on xiaomi.eu RedMi K20Pro 9.7.27) But I don't know whether the way I edited the script is correct or not. So it is the reason why I opened an issue, not a PR.
Hope this will get resolved soon.
Can you compile new static 32-bit compact_dex_converter with API_29 support?
anestisb released it yesterday anestisb/vdexExtractor#56
Thanks!
Hi, I am trying to extract mipay from miui-MI8-V10.3.6.0 (MIUI 10) to miui-MI8Global-V10.3.4.0 (MIUI 10), and here is what I get:
My system is Windows 10 Professional x64, ver. 10.0.18362.
--> rom: MI8 vV10.3.6.0.PEACNXM
7-Zip [32] 15.14 : Copyright (c) 1999-2015 Igor Pavlov : 2015-12-31
p7zip Version 15.14.1 (locale=zh_CN,Utf16=on,HugeFiles=on,32 bits,8 CPUs Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz (806EA),ASM,AES-NI)
Scanning the drive for archives:
1 file, 2173521542 bytes (2073 MiB)
Extracting archive: ../miui_MI8_V10.3.6.0.PEACNXM_e038f4ac7a_9.0.zip
--
Path = ../miui_MI8_V10.3.6.0.PEACNXM_e038f4ac7a_9.0.zip
Type = zip
Physical Size = 2173521542
Comment = signed by SignApk
Everything is Ok
Files: 2
Size: 1592357067
Compressed: 2173521542
sdat2img binary - version: 1.0
Android Nougat 7.x / Oreo 8.x detected!
�[Kextracting |################################| 100%
�[?25hDone! Output image: miui-MI8-V10.3.6.0.PEACNXM-system.img
--> image extracted: miui-MI8-V10.3.6.0.PEACNXM-system.img
--> copying apps
----> copying Mipay...
----> copying NextPay...
----> copying TSMClient...
----> copying UPTsmService...
--> framework arch: arm64
--> vdex detected
--> deodexing Mipay...
[INFO] Processing 1 file(s) from Mipay.vdex
[INFO] 1 out of 1 Vdex files have been processed
[INFO] 1 Dex files have been extracted in total
[INFO] Extracted Dex files are available in '.'
----> prepare ./flinux.exe
----> prepare compact_dex_converter_linux
----> Opened 'classes.cdex', DEX version '001'
compact_dex_converter_linux I 09-13 04:47:34 5688 2 compact_dex_converter_main.cc:172] StandardDex file successfull
y extracted to classes.cdex.new
----> classes: classes.dex
'classes.dex' as 'classes.dex'...
--> vdex detected
--> deodexing NextPay...
[INFO] Processing 1 file(s) from NextPay.vdex
[INFO] 1 out of 1 Vdex files have been processed
[INFO] 1 Dex files have been extracted in total
[INFO] Extracted Dex files are available in '.'
----> prepare ./flinux.exe
----> prepare compact_dex_converter_linux
----> Opened 'classes.cdex', DEX version '001'
compact_dex_converter_linux I 09-13 04:47:38 3524 2 compact_dex_converter_main.cc:172] StandardDex file successfull
y extracted to classes.cdex.new
----> classes: classes.dex
'classes.dex' as 'classes.dex'...
----> copy native library libentryexpro.so
----> copy native library libuptsmaddonmi.so
--> vdex detected
--> deodexing TSMClient...
[INFO] Processing 1 file(s) from TSMClient.vdex
[INFO] 1 out of 1 Vdex files have been processed
[INFO] 1 Dex files have been extracted in total
[INFO] Extracted Dex files are available in '.'
----> prepare ./flinux.exe
----> prepare compact_dex_converter_linux
----> Opened 'classes.cdex', DEX version '001'
compact_dex_converter_linux I 09-13 04:47:41 2472 2 compact_dex_converter_main.cc:172] StandardDex file successfull
y extracted to classes.cdex.new
----> classes: classes.dex
'classes.dex' as 'classes.dex'...
--> vdex detected
--> already deodexed UPTsmService
----> extract native library...
--> packaging flashable zip
--> done
--> rom: MI8Global vV10.3.4.0.PEAMIXM
7-Zip [32] 15.14 : Copyright (c) 1999-2015 Igor Pavlov : 2015-12-31
p7zip Version 15.14.1 (locale=zh_CN,Utf16=on,HugeFiles=on,32 bits,8 CPUs Intel(R) Core(TM) i7-8550U ),ASM,AES-NI) (806EA
Scanning the drive for archives:
1 file, 1901046491 bytes (1813 MiB)
Extracting archive: ../miui_MI8Global_V10.3.4.0.PEAMIXM_51a7ff309d_9.0.zip
--
Path = ../miui_MI8Global_V10.3.4.0.PEAMIXM_51a7ff309d_9.0.zip
Type = zip
Physical Size = 1901046491
Comment = signed by SignApk
Everything is Ok
Files: 2
Size: 1387561902
Compressed: 1901046491
sdat2img binary - version: 1.0
Android Nougat 7.x / Oreo 8.x detected!
�[Kextracting |################################| 100%
�[?25hDone! Output image: miui-MI8Global-V10.3.4.0.PEAMIXM-system.img
--> image extracted: miui-MI8Global-V10.3.4.0.PEAMIXM-system.img
--> copying apps
----> copying Mipay...
----> copying NextPay...
----> copying TSMClient...
----> copying UPTsmService...
--> framework arch: arm64
ERROR: No more files
system/app
System ERROR:
Unknown error -2147024872
--> deodexing Mipay...
----> classes:
basename: missing operand
Try 'basename --help' for more information.
Can't find file: system/app/Mipay/oat/arm64/Mipay.odex/
--> abort
--> clean deodex
请按任意键继续. . .
Without --appvault, everything is working perfectly, but it fails when --appvault is turned on.
For example, for this image (http://bigota.d.miui.com/8.9.20/miui_MIMIX2S_8.9.20_be2f1f2e26_9.0.zip), which is for MIX 2S / MIUI 10 8.9.20 / Android P, it throws an exception when decompiling PersonalAssistant
As far as I see, there's no such smali file. Under "system/priv-app/PersonalAssistant/smali/com/", ONLY "sina" folder, no "miui" folder.
In #14, I saw you mentioned 8.9.7 is fine. I also tried that - it turns out, bash (under WSL) is indeed working fine, but cmd fails, seems when assembling the patched smali files.
However this looks a separate issue, and I'm not sure if this is related to the 8.9.20 issue.
首先感谢大佬辛苦付出
今天处理K20Pro的 MIUI11 11.2 20.3.27,发现日历无法打补丁,打开目录发现都是混淆后的名字
--> decompiling Calendar...
----> Ignore patch: "LocalizationUtils.smali" not found
不知有何其它方式处理
谢谢
Hi brother,Your project is very powerful, I am excited,I am having a problem, I want to use full system odex android P.
Can you tell me where to modify full system odex android P.thank you very much.
Mi6 8.9.6 国际版,配合**版8.9.6提取,生成zip刷机包成功刷入,并清空了cache。
mipay是正常的有银行卡,但点击公交卡后提示联网获取信息,许久以后提示 系统出现错误,请稍后重试。点击重试始终提示如此。请问可有解决思路?谢谢!
如题,最近发现你自己维护了一个libev分支,不知如何编译成potatso所需的libshadowsocks-libev.a格式?
➜ mipay-extract-master ./extract.sh --appvault
--> Enabled app vault extract
--> rom: MI8SE vV10.2.2.0.PEBCNXM
7-Zip (a) [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=utf8,Utf16=on,HugeFiles=on,64 bits,8 CPUs Intel(R) Core(TM) i7-7820HQ CPU @ 2.90GHz (906E9),ASM,AES-NI)
Scanning the drive for archives:
1 file, 2179154580 bytes (2079 MiB)
Extracting archive: ../miui_MI8SE_V10.2.2.0.PEBCNXM_711395aa40_9.0.zip
--
Path = ../miui_MI8SE_V10.2.2.0.PEBCNXM_711395aa40_9.0.zip
Type = zip
Physical Size = 2179154580
Comment = signed by SignApk
Everything is Ok
Files: 2
Size: 1757532604
Compressed: 2179154580
sdat2img binary - version: 1.0
Android Nougat 7.x / Oreo 8.x detected!
extracting |################################| 100%
Done! Output image: miui-MI8SE-V10.2.2.0.PEBCNXM-system.img
--> image extracted: miui-MI8SE-V10.2.2.0.PEBCNXM-system.img
--> copying apps
----> copying Mipay...
----> copying NextPay...
----> copying TSMClient...
----> copying UPTsmService...
----> copying priv-app/PersonalAssistant...
----> copying app/MetokNLP...
--> framework arch: arm64
--> vdex detected
--> deodexing Mipay...
[INFO] Processing 1 file(s) from Mipay.vdex
[INFO] 1 out of 1 Vdex files have been processed
[INFO] 1 Dex files have been extracted in total
[INFO] Extracted Dex files are available in '.'
----> Opened 'classes.cdex', DEX version '001'
compact_dex_converter_mac I 02-14 22:31:05 25451 3486798 compact_dex_converter_main.cc:172] StandardDex file successfully extracted to classes.cdex.new
----> classes: classes.dex
'classes.dex' as 'classes.dex'...
ERROR: No more files
system/app/NextPay
System ERROR:
Unknown error: -2147024872
--> deodexing NextPay...
----> classes:
usage: basename string [suffix]
basename [-a] [-s suffix] string [...]
Can't find file: system/app/NextPay/oat/arm64/NextPay.odex/
--> abort
--> clean deodex
MIUI 版本: MIUI 9 Global 8.4.19
提取固件版本: MIUI 9 China 8.4.19 / 8.5.8
表现: 使用 TWRP 刷入成功之后重启,小米钱包及小米智能卡均无法运行,错误 log 如下:
小米智能卡: https://paste.ubuntu.com/p/gkFwrGDDvx/
小米钱包: https://paste.ubuntu.com/p/yZXMKzhJwW/
Hi, I notice you have added a new feature to extract EXTRA apps from ROMs. But I find the script only find apps from system/app (line 187 at extract.sh). I want to extract the virtualsim which is located at system/priv-app. However, current version code will clean the work_dir if failing to find any app. Please consider this request.
Thanks.
Cleaner-fix.sh looks not supporting the new br format of system image
For example, for this image (http://miui.dedyk.gq/8.9.20/xiaomi.eu_multi_MIMix2S_8.9.20_v10-9.zip), which is for MIX 2S / MIUI 10 / Android P, cleaner-fix.sh fails immediately after only extracting the zip file.
In the extracted folder, there's only one file, "system.transfer.list", and no other files.
I searched the file and found there's no call to brotli, like extract.sh, so I think this bash shell is not updated yet.
TWRP 3.3.1-1 and above (at least for sagit) provided a broken sed
executable, which fails to match \b
to a word boundary. This caused eufix-force-fbe-oreo
script entirely not to work.
Btw, TWRP 3.3.1-1 for sagit also fails to decrypt fbe-encrypted /data
partition. If you are using a sagit device, DO NOT USE TWRP 3.3.1-1 or above!
Hello linusyang92!
Thanks for precompiled 32-bit compact_dex_converter for usage with flinux!
Сould you compile this binary with a patch for old processors?
anestisb/vdexExtractor#29 (comment)
Thanks!
我现在用的是小米8屏幕指纹版 刷的是这个国际版 xiaomi.eu_multi_MI8Pro_9.10.24_v11-10.zip
提取的是V11.0.2.0.PECCNXM (MIUI11) 国内官网的这个版本的 mipay
然后点击小米钱包中的小米公交 不能用 显示重试...点了还是没有用,.,..
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.