APKTool (PC) | Программа для "вскрытия" *.apk - файлов



Реп: (22)
APKTool
версия: 2.9.3

Последнее обновление программы в шапке: 20.01.2024

Прикрепленное изображение

Краткое описание:
Программа для "вскрытия" *.apk - файлов.

Описание:
Программа будет полезна разработчикам и переводчикам программ для платформы Android.
Может быть использована для локализации ПО, добавления функций и т.д.

На данный момент программа работает под управлением ОС Linux, Windows, MacOS. При помощи данной утилиты не может быть вскрыто приложение framework-res.apk, поскольку в нем используются некие собственные секретные разработки Google, но обещают, что в дальнейшем это будет исправлено.

Для использования программы требуются базовые знания по SDK, aapt, PATH, smali.

Changelog
1.4.3:
updated builtin framework to SDK API14
fixed some "Multiple substitutions (...)" errors ( Issue 254 )

1.4.2:
added support for API14 (Android 4.0) resources
updated smali to v1.3.0
added --quiet option
fixed decoding error when string ends with '%' ( Issue 169 )
fixed decoding error when <plurals> contains a reference ( Issue 234 )
fixed a broken res when decoding <array> with positional substitutions ( Issue 222 )

1.4.1:
1.4.1
fixed builtin framework. See changelog and migration instructions of v1.4.0 below.

1.4.0
Major changes:
added Honeycomb support (3.1, API 12). See migration instructions below.
support for mipmaps and xlarge, xhdpi resource qualifiers
updated builtin framework to 3.1 (API 12) broken
completely rewritten mechanism of enclosing/escaping strings in XML files:
fixed legendary Issue 100
fixed a lot of other bugs discovered when writting integration tests
string format is simpler and more compact now: '" "' instead of '\u0020 ', '\"' instead of '\"', etc.
fixed incompatibilities between newer aapt and apks built by older one. New aapt is more restrictive, some apps can't be built using it, even if you would have sources. Apktool tries to convert/fix these incompatibilities: it adds formatted="false" for <string /> tags and enumerates substitutions for plurals.
updated smali to v1.2.6
added automatic integration tests for resource decoding and building
first official release of apktool built using Maven from open source

Minor changes:
sort framework ids before storing them in apktool.yml. aapt command requires you to include frameworks in order.
zero-padding of MCC resource qualifier
prefer to use raw values when decoding XML attrs. This could make decoded XMLs a little more similar to original ones.
close apktool.yml file handler after generating it
added error message about missing input file when decoding
added more info messages during decoding.
do not decode res-references as <item />. Now they're decoded as e.g. <string name="test">@android:string/ok</string> instead of <item type="string" name="test">@android:string/ok</item>.
changed encoding of generated XML files from UTF-8 to utf-8 - it's more consistent with Android SDK.
add new line at the end of generated XML files.

1.3.2 (2010.09.03):
updated smali to v1.2.4
added support for API Level 8 resource qualifiers: night, car, etc. ( Issue 65 )
added support for broken file-resources ( Issue 91 )
don't generate sdkVersion ("-v") resource qualifiers if they're "natural" ( Issue 85 )
always compress resources.arsc file (Issue 67)
throw warnings instead of exceptions on unknown files inside smali dir ( Issue 77 )
added support for resources using invalid/unknown config flags, e.g. from future APIs or added by manufacturer ( Issue 65 )
added an option to keep broken resources to fix them manually ( Issue 65 )
fixed case-sensitivity problems (Issue 86)
fixed an issue when *.9.png doesn't have 9patch chunk in it ( Issue 59 )
fixed NPE when there is a file without extension in drawable dir ( Issue 62 )
fixed escaping of chars in XML style tags ( Issue 64 )
fixed an error, when there are missing resources in a type, which does not have default config (http://forum.xda-developers.com/showthread.php?p=7949440#post7949440)
try to use original value of XML attribute - instead of parsed one. Fixes an issue when apktool was decoding e.g. "01" as "1" ( Issue 76 )
added more debugging info when omitting unknown config flags ("Config size > 32" message)

install-windows-2.2_r01-3 (2010.09.03):
fixed an issue when path to apktool.bat contains spaces ( Issue 81 )

1.3.1 (2010.06.14):
added decoding of XML tags in res strings (Issue 15)
fixed some issues (Issue 45), (Issue 46), (Issue 48), (Issue 56)

1.3.0 (2010.06.12):
added 9patch images (*.9.png) decoding (Issue 2)
fixed support for apks lacking res dir or resources.arsc file (Issue 44, Issue 50)
changed default name of built file from out.apk to <original_name.apk>
added possibility to choose location of output apk when building

(2010.06.04):
updated install packages to 2.2r01-1 version. Apktool 1.2.0 requires newer aapt tool, so you must update to use it.

1.2.0 (2010.06.03):
added feature for installing and using custom framework files - pulled from a device. See FrameworkFiles (Issue 27)
Froyo support (Issue 37)
updated Android framework to 2.2r1
removed HTC framework
no need to use -s/-r switch, when apk doesn't contain sources/resources
added protection against accidental remove of important files when decoding (Issue 36)
made outdir argument optional when decoding
fix: adding dummy resources if some of them are missing (Issue 40)
fix: better recognition of AXML files (Issue 41)

1.1.1 (2010.04.29):
much better recognition of register types when debugging (Issue 24)
fixed SIGSEGV error, which usually occured after several steps when debugging (Issue 26)

Домашняя страница: https://apktool.org/

Полезное
Инструкция для Windows: APKTool (PC) (Пост #4469313)
Инструкция для linux: APKTool (PC) (Пост ГИКОВЧАНИН #65687316)
При появлении ошибки Error: Unable to access jarfile C:\Windows\System32\\apktool.jar делаем так: APKTool (PC) (Пост Expot #39088588)
Если при компиляции ругается на TransparentDark


Скачать:
Версия: 2.9.3 от 20/01/2024 (iMiKED)
Версия: 2.9.2 от 05/01/2024 (iMiKED)
Версия: 2.9.1 от 06/12/2023 (iMiKED)
Версия: 2.9.0 от 09.10.2023 (a666)
Версия: 2.8.1 от 23.07.2023 (a666)

Прошлые версии:
Версия: 2.8.0 от 17/06/2023 (iMiKED)
Версия: 2.7.0 Apktool Final (betmen2)
Версия: 2.6.1 Apktool Final (betmen2)
Версия: 2.5.0 Apktool Final (betmen2)
Версия: 2.4.1 Актуальная версия сабжа (OsitKP)
Версия: 2.4.0 Сообщение №2118, автор OsitKP
Версия: 3.0.0 mod APKTool (PC) (Пост Alexey arsenev #54976559)
Версия: 2.1 mod Сообщение №1922, автор Cobra111111
Дополнительные пакеты:
Версия: r05-ibot APKTool (PC) (Пост Google 61 #49985992)

Версия: 2.3.4 Сообщение №2065, автор hussein209
Версия: 2.3.3 Сообщение №2015, автор siegheilx
Версия: 2.3.2 APKTool (PC) (Пост georgearn #72155798)
Версия: 2.3.1 APKTool (PC) (Пост OsitKP #68533937)
Версия: 2.3.0 APKTool (PC) (Пост Shamil_92 #65377659)
Версия: 2.2.4 APKTool (PC) (Пост OsitKP #63737776)
Версия: 2.2.2 APKTool (PC) (Пост OsitKP #57713692)
Версия: 2.2.1 APKTool (PC) (Пост GrAlNik #54271368)
Версия: 2.2.0 APKTool (PC) (Пост Kocmuq #52477482)
Версия: 2.1.1 APKTool (PC) (Пост xxxsadistxxx #49460498)
https://4pda.to/forum/dl/post/968583/apktool_install_linux_r04_brut1.zip - пакет зависимостей и скриптов для Linux
https://4pda.to/forum/dl/post/968585/apktool_install_macosx_r04_brut1.zip - пакет зависимостей и скриптов для MacOS X
https://4pda.to/forum/dl/post/968582/apktool_install_windows_r04_brut1.zip - пакет зависимостей и скриптов для Windows
Версия: 2.1.0 APKTool (PC) (Пост OsitKP #48439847)
версия: 2.0.3 fix APKTool (PC) (Пост Enyby #46807838)
версия: 2.0.3 APKTool (PC) (Пост OsitKP #45863914)
версия: 2.0.2 APKTool (PC) (Пост OsitKP #43651919)
версия: 2.0.1 https://4pda.to/forum/d…8654/apktool_2.0.1.jar
версия: 2.0.0 APKTool (PC) (Пост Dimon55584 #39621157)
версия: 2.0.0 RC4 https://4pda.to/forum/d…5/apktool_2.0.0rc4.jar
версия: 2.0.0 RC3 https://4pda.to/forum/dl/post/5426930/apktool.jar
версия: 2.0.0 RC2 https://4pda.to/forum/d…7/apktool_2.0.0rc2.jar
версия: 2.0.0 beta 9 Прикрепленный файлapktool_2.0.0b9.jar ( 7.85 МБ )
версия: v2 RC1 APKTool (PC) (Пост #34425590)
версия: 2.0.0 beta 8 APKTool (PC) (Пост #28248823)
версия: 2.0.0 beta 7 Прикрепленный файлapktool_2.0.0b7.jar ( 7.42 МБ )

версия: 1.5.2 apktool.jar
версия: 1.4.3 https://4pda.to/forum/dl/post/1317479/apktool_1.4.3.zip
версия: 1.4.2 https://4pda.to/forum/dl/post/1311452/apktool_1.4.2.zip
версия 1.4.1:
https://4pda.to/forum/dl/post/968581/apktool_1.4.1.zip - сам apktool
https://4pda.to/forum/dl/post/968583/apktool_install_linux_r04_brut1.zip - пакет зависимостей и скриптов для Linux
https://4pda.to/forum/dl/post/968585/apktool_install_macosx_r04_brut1.zip - пакет зависимостей и скриптов для MacOS X
https://4pda.to/forum/dl/post/968582/apktool_install_windows_r04_brut1.zip - пакет зависимостей и скриптов для Windows

версия 1.3.2:
http://android-apktool.googlecode.com/file...ol1.3.2.tar.bz2 - сам apktool
http://android-apktool.googlecode.com/file...1_r01-1.tar.bz2 - пакет зависимостей и скриптов для Linux
http://android-apktool.googlecode.com/file...1_r01-1.tar.bz2 - пакет зависимостей и скриптов для MacOS X
http://android-apktool.googlecode.com/file...2_r01-3.tar.bz2 - пакет зависимостей и скриптов для Windows


Модификации
Версия: 2.6.2-87223d-SNAPSHOT-mod Apktool (CaM/7oCe6e)


Сообщение отредактировал iMiKED - 20.01.24, 15:29
Причина редактирования: Обновление: новая версия 2.9.3 от 20/01/2024



Реп: (10637)
Alexey arsenev @ 02.11.2016, 19:37 *
Могли бы и поделится 2.2.2-2a3d40-SNAPSHOT

Если кому-то нужно, только что слил с сайта и собрал.
Прикрепленный файлapktool-2.2.2-dirty-small.jar ( 6.68 МБ )

Alexey arsenev @ 11.11.2016, 06:51 *
Вот его последнее творение. может кому пригодится...

Конечно, пригодится!
Спасибо!
До этого шаку видел только в апктул для ведра, там он особого впечатления не произвёл.
А тут разобрал и собрал китайские аппы с do и if в названиях, я уже молчу о том, что, чтобы их собрать, приходилось удалять кучу атрибутов, которые Апктул не находил. Теперь никакой возни!!! :D
Жалко, не работает с utf-8 именами файлов внутри апк.

Сообщение отредактировал OsitKP - 11.11.16, 18:06



Реп: (1714)
* OsitKP, Да как бы уже разобрались с этим. Сами теперь с усами. :)



Реп: (142)
Друзья знающие, скажите в чём проблема: редактирую прошивку Android 6.0, разбираю и собираю приложение Settings.apk через apktools без проблем, но вот после сборки оно работать не хочет в прошивке. Остальные приложения редактируются и после сборки в apktools работают в системе как надо.



Реп: (1714)
* matveiidv, каким образом не работает? Просто нет иконки, или вылетает при нажатии,?



Реп: (142)
* Alexey arsenev,
Alexey arsenev @ 14.11.2016, 01:35 *
нет иконки, или вылетает при нажатии,?

Нет иконки в лаунчере, как будто приложения нет в системе вообще



Реп: (1714)
* matveiidv,
если не отключена подпись, и при сборке не сохранилась оригинальная подпись то иконки не будет...
Попадалась мне прошивка в которой по каким то причинам нельзя было редактировать апк настройки и ни чего нельзя было сделать до сих пор...



Реп: (142)
* Alexey arsenev,
вот здесь я выложил лог, если кто разбирается в логах, может посморит кто и подскажет что делать

Добавлено 14.11.2016, 14:02:

Alexey arsenev @ 14.11.2016, 13:44 *
если не отключена подпись, и при сборке не сохранилась оригинальная подпись то иконки не будет...

кстати, при попытке зайти в настройки через шторку ничего не происходит совсем



Реп: (210)
подскажите пожалуйста, кидаю все файлы от мяу 8 на apktool-if.cmd по очереди, всё проходит норм, кроме файла miui.apk. :
Exception in thread "main" brut.androlib.AndrolibException: Multiple resources: spec=0x1002024d drawable/btn_inline_detail_normal_light, config=-xhdpi
at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:63)
at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:56)
at brut.androlib.res.decoder.ARSCDecoder.readEntry(ARSCDecoder.java:186)
at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:157)
at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:125)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:100)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:78)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:47)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:39)
at brut.androlib.res.AndrolibResources.installFramework(AndrolibResources.java:657)
at brut.androlib.Androlib.installFramework(Androlib.java:649)
at brut.apktool.Main.cmdInstallFramework(Main.java:256)
at brut.apktool.Main.main(Main.java:92)

!!!Aborted!!!

Что это может быть и как исправить?



Реп: (265)
* Saha101082,
Попробуй jdk обновить, у меня все нормально...



Реп: (195)
Всем привет у меня такая проблема при сборке системного приложения (без изменений) выбивает ошибку C:\apktool>apktool d SystemUI.apk
C:\apktool>apktool b SystemUI
I: Using Apktool 2.2.0
I: Checking whether sources has changed...
I: Smaling smali folder into classes.dex...
I: Checking whether resources has changed...
I: Building resources...
W: C:\apktool\SystemUI\res\values\styles.xml:35: error: Error retrieving parent
for item: No resource found that matches the given name '@android:style/Animatio
n.RecentApplications'.
W:
W: C:\apktool\SystemUI\res\values\styles.xml:36: error: Error retrieving parent
for item: No resource found that matches the given name '@android:style/Animatio
n.RecentApplications'.
W:
W: C:\apktool\SystemUI\res\values\styles.xml:41: error: Error retrieving parent
for item: No resource found that matches the given name '@android:style/Animatio
n.RecentApplications'.
W:
W: C:\apktool\SystemUI\res\values\styles.xml:51: error: Error retrieving parent
for item: No resource found that matches the given name '@android:style/Animatio
n.RecentApplications'.
W:
W: C:\apktool\SystemUI\res\values\styles.xml:147: error: Error retrieving parent
for item: No resource found that matches the given name '@android:style/Animati
on.PopupWindow'.
W:
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec (exit code = 1): [C:\User
s\4B4C~1\AppData\Local\Temp\brut_util_Jar_2585524518687953220.tmp, p, --forced-p
ackage-id, 127, --min-sdk-version, 22, --target-sdk-version, 22, --version-code,
22, --version-name, 5.1-115, -F, C:\Users\4B4C~1\AppData\Local\Temp\APKTOOL3596
693567123850301.tmp, -0, arsc, -0, arsc, -I, C:\Users\Мишко\AppData\Local\apktoo
l\framework\1.apk, -S, C:\apktool\SystemUI\res, -M, C:\apktool\SystemUI\AndroidM
anifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:473)
at brut.androlib.Androlib.buildResources(Androlib.java:407)
at brut.androlib.Androlib.build(Androlib.java:306)
at brut.androlib.Androlib.build(Androlib.java:263)
at brut.apktool.Main.cmdBuild(Main.java:224)
at brut.apktool.Main.main(Main.java:84)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec (exit code = 1): [C:\Users\4B4C~1\AppData\Local\Temp\brut_util_Jar_2585524
518687953220.tmp, p, --forced-package-id, 127, --min-sdk-version, 22, --target-s
dk-version, 22, --version-code, 22, --version-name, 5.1-115, -F, C:\Users\4B4C~1
\AppData\Local\Temp\APKTOOL3596693567123850301.tmp, -0, arsc, -0, arsc, -I, C:\U
sers\Мишко\AppData\Local\apktool\framework\1.apk, -S, C:\apktool\SystemUI\res, -
M, C:\apktool\SystemUI\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:439)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:459)
... 5 more
Caused by: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\
4B4C~1\AppData\Local\Temp\brut_util_Jar_2585524518687953220.tmp, p, --forced-pac
kage-id, 127, --min-sdk-version, 22, --target-sdk-version, 22, --version-code, 2
2, --version-name, 5.1-115, -F, C:\Users\4B4C~1\AppData\Local\Temp\APKTOOL359669
3567123850301.tmp, -0, arsc, -0, arsc, -I, C:\Users\Мишко\AppData\Local\apktool\
framework\1.apk, -S, C:\apktool\SystemUI\res, -M, C:\apktool\SystemUI\AndroidMan
ifest.xml]
at brut.util.OS.exec(OS.java:95)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:433)
... 6 more

Процессор spreadtrum sc7731
android 5.1

Сообщение отредактировал olegek20030303 - 21.11.16, 21:45



Реп: (1714)
olegek20030303 @ 22.11.2016, 04:43 *
No resource found that matches the given name '@android:

Такое ощущение что не все фреймы установлены.
Делали C:\apktool>apktool if фрамеворк.рес ?



Реп: (195)
* Alexey arsenev,
Не делал сейчас буду пробовать



Реп: (195)
* Alexey arsenev,
Спасибо у меня заработал вы мне очень помогли :good:



Реп: (2)
Добрый день, я новенький, не бейте, решил Dialer.apk (из flymeos если что) скормить и вот что из этого выходит:
Прикрепленное изображение


Java 8
Apktool 2.2.1
Win10 32bit

Видел подобную проблему в теме но решения не нашел.

Сообщение отредактировал AnonimKernel - 27.11.16, 11:36



Реп: (1714)
* AnonimKernel,
Кидайте фреймы и диалер, будем посмотреть...



Реп: (265)
* AnonimKernel,
Фреймов не хватает... mediatek-res.apk еще в фрейм закинь

Сообщение отредактировал hawkrover - 29.11.16, 13:04



Реп: (0)
вроде как все успешно распаковало только все файлы с непонятным расширением FiveFragment.smali

а когда открываю их в Notepad++ какие-то строки непонятные для меня, но на код java не похоже напр:

notations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/dis/arsalprice/FiveFragment$NewThread;
}
.end annotation


# static fields
.field static adapter:Lcom/dis/arsalprice/BoxAdapter;


# instance fields
.field public content:Lorg/jsoup/select/Elements;

.field inputSearch:Landroid/widget/EditText;

.field private lv:Landroid/widget/ListView;

.field public price:Lorg/jsoup/select/Elements;

.field products:Ljava/util/ArrayList;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/ArrayList",


что это??? а как увидеть содержимое этого класса для редактирования?

Сообщение отредактировал disx - 04.12.16, 15:26



Реп: (7)
где мне скачать apktool.jar для виндовс????

Сообщение отредактировал son2213 - 04.12.16, 18:17



Реп: (1)
Скиньте кто-нибудь framework из Android 7.X, пожалуйста.
Заранее благодарю.



Реп: (1)
* tilks, спасибо


Полная версия   Текстовая версия

Помощь   Правила

Сейчас: 29.03.24, 04:20