Git Product home page Git Product logo

mipay-extract's People

Contributors

linusyang92 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mipay-extract's Issues

Extract.sh fails when appvault is used on Android P image

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
image

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.
image
However this looks a separate issue, and I'm not sure if this is related to the 8.9.20 issue.

关于小米漫游支持

亲爱的开发者大大您好
我是小米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

能否一并提取主题商店呢?

对于我来说,实在能力有限去获取新的更新,能否也把主题商店也一起提取呢?国内的主题商店还是比较好用。信息助手确实有点问题,国际版的包名不一样之后,一些功能异常。谢谢你的工作给我们带来了那么大的便利性!

command not found

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

error when extracting apps from CEPHEUS v9.3.22 (mi9)

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)

Extracting archive: ../miui_CEPHEUS_9.3.22_c63654cc2f_9.0.zip

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 . . .

能否加入提取「全球上网」功能

在此感谢您的付出!
请问能否加入提取「全球上网」功能?或如何修改脚本加入?或修改输出档?
这样出国就可以购买流量,相当方便,谢谢。

Ubuntu Windows Subsystem compact_dex_converter_linux error

--> 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

Doesn't support P image

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.
image

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).
image

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.

关于小米公交

default
我也刷了你最新的补丁,为什么我的啥还是这样,我也清掉 Dalvik Cache,这个有什么解决方法吗?

Failed to install MiPay.zip

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

mi8 eu版 提取成功,但是小米公交提示“重试” 门卡闪退

1、使用脚本提取mi8 最新稳定 rom,提取成功
2、刷入小米 8
问题:1 打开小米公交的时候 提示 重试
问题:2 打开门卡的时候,程序崩溃

从另外一个帖子看到 他还提取了一个 MiuiSmartCardService ,在脚本里加了这个 app,提取刷入后还是不行。

Request support full system odex

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.

Cleaner-fix.sh doesn't support Android P image

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.

image

缺少/tmp/updater目录导致刷机包255错误,另外触碰支付里支付方式没有MiPay,无法启用公交卡

正在安装 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,无法启用公交卡

提供一个Mipay的Magisk卡刷包,Android 10可用

蓝奏云链接: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就可以导出需要的几个文件,然后对着替换到我分享的压缩包里就可以了,这个非常稳定,自用半年左右。
image

Unable to extract from miui_MI8SE_8.8.31

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?

"7z.exe l "have a bug

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

eufix-force-fbe-oreo not working since TWRP 3.3.1-1 for sagit

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!

Hope to support extract apps from system/priv-app

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.

Unable to extract from miui_MI6_8.8.2_5b44a92e16_8.0.zip

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!

System ERROR: Unknown error -2147024872, Can't find file: system/app/Mipay/oat/arm64/Mipay.odex/

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
请按任意键继续. . .

关于时钟提取的问题

我看这个源码可以直接写app然后提取出来
所以我就像提取时钟出来
虽然提取出来了但是 时钟没有工作日闹钟的那个选项
就有点难受....

Symbol not found: _mkostemp

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!

Cannot extract MI8_9.1.24

The rom version is miui_MI8_9.1.24_5d1a0531c8_9.0.zip

Tried both windows and debian, with the same error log:

qq 20190205102657

want a latest mix 2 release -MIUI10 Global 9.6.27

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.

Changes of 'Calendar' app in recent xiaomi.eu roms

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.

MIUI开发版现在不开放下载了,在手机上下载的开发版包无法在该软件使用

  • 问题

MIUI开发版现在不开放下载了,在手机上下载的开发版包无法在mipay-extract上使用,在解压步骤就出现问题了。

  • 目前尝试过可行的过度方案

把之前下载的MIUI开发版包重命名修改为与欧版相同的版本号,可以成功提取mipay。但是如果mipay相关服务更新的话,我们就无法提取到了。

希望能更新支持,谢谢。

刷入正常,但小米公交无法使用

Mi6 8.9.6 国际版,配合**版8.9.6提取,生成zip刷机包成功刷入,并清空了cache。
mipay是正常的有银行卡,但点击公交卡后提示联网获取信息,许久以后提示 系统出现错误,请稍后重试。点击重试始终提示如此。请问可有解决思路?谢谢!

安卓Q版本的可以用么

我现在用的是小米8屏幕指纹版 刷的是这个国际版 xiaomi.eu_multi_MI8Pro_9.10.24_v11-10.zip
提取的是V11.0.2.0.PECCNXM (MIUI11) 国内官网的这个版本的 mipay
然后点击小米钱包中的小米公交 不能用 显示重试...点了还是没有用,.,..

EU MIUI11的 Calendar 已经被混淆了

首先感谢大佬辛苦付出
今天处理K20Pro的 MIUI11 11.2 20.3.27,发现日历无法打补丁,打开目录发现都是混淆后的名字

--> decompiling Calendar...
----> Ignore patch: "LocalizationUtils.smali" not found

不知有何其它方式处理

谢谢

小米8的rom无法抽取

➜  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_MI6_8.3.22 报 mv: cannot stat 'deodex/system/data-app/Weather/Weather.apk': No such file or directory错误

用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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.