Питаю створити копію програми TeamViewer. https://play.google.com/store/apps/details?id=com.teamviewer.teamviewer.market.mobile&hl=ru .
Декомпелирует, додаю в package Test Ось лог рекомпиляции:
Batch ApkTool : 3.0
SMALI : smali-2.0.5.jar
API level : 21
APKTOOL : apktool_2.0.0rc4.jar
Build in EXPERT mode : ON
Sign output APKs : ON
Task started : 08.04.2015 22:44:24
—————–
[*] Recompiling TeamViewer
I: Using Apktool 2.0.0-RC4_0322
W: Could not find sources
I: Checking whether resources has changed…
I: Building resources…
D:PredatorDesktopBatchApkToolbin.._INPUT_APKTeamViewerreslayout-hdpiactivity_client.xml:6: error: Error parsing XML: not well-formed (invalid token)
D:PredatorDesktopBatchApkToolbin.._INPUT_APKTeamViewerreslayoutfragment_buddylistdetailscomputer.xml:4: error: Error parsing XML: not well-formed (invalid token)
D:PredatorDesktopBatchApkToolbin.._INPUT_APKTeamViewerreslayoutfragment_buddylistdetailsinstantsupport.xml:4: error: Error parsing XML: not well-formed (invalid token)
D:PredatorDesktopBatchApkToolbin.._INPUT_APKTeamViewerreslayoutfragment_buddylistdetailspartner.xml:4: error: Error parsing XML: not well-formed (invalid token)
D:PredatorDesktopBatchApkToolbin.._INPUT_APKTeamViewerreslayout-hdpifragment_buddylistlogin.xml:4: error: Error parsing XML: not well-formed (invalid token)
D:PredatorDesktopBatchApkToolbin.._INPUT_APKTeamViewerreslayout-hdpifragment_connect.xml:4: error: Error parsing XML: not well-formed (invalid token)
D:PredatorDesktopBatchApkToolbin.._INPUT_APKTeamViewerreslayout-hdpifragment_filetransfer_login.xml:4: error: Error parsing XML: not well-formed (invalid token)
D:PredatorDesktopBatchApkToolbin.._INPUT_APKTeamViewerreslayout-hdpifragment_filetransfer_pl_login.xml:4: error: Error parsing XML: not well-formed (invalid token)
D:PredatorDesktopBatchApkToolbin.._INPUT_APKTeamViewerreslayoutfragment_help_mouse.xml:7: error: Error parsing XML: not well-formed (invalid token)
D:PredatorDesktopBatchApkToolbin.._INPUT_APKTeamViewerreslayout-landfragment_help_mouse.xml:7: error: Error parsing XML: not well-formed (invalid token)
D:PredatorDesktopBatchApkToolbin.._INPUT_APKTeamViewerreslayoutfragment_help_touch.xml:7: error: Error parsing XML: not well-formed (invalid token)
D:PredatorDesktopBatchApkToolbin.._INPUT_APKTeamViewerreslayout-landfragment_help_touch.xml:7: error: Error parsing XML: not well-formed (invalid token)
D:PredatorDesktopBatchApkToolbin.._INPUT_APKTeamViewerreslayoutfragment_help_touch2touch.xml:7: error: Error parsing XML: not well-formed (invalid token)
Exception in thread «main» brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [C:UsersPredatorAppDataLocalTempBAT_tempbrut_util_Jar_369695541633834680.tmp, p, —forced-package-id, 127, min-sdk-version, 10, —target-sdk-version, 19, —version-code, 2650, —version-name, 10.0.2650, -F, C:UsersPredatorAppDataLocalTempBAT_tempAPKTOOL1487116638181724639.tmp, -0, arsc, -I, .framework1.апк, -S, D:PredatorDesktopBatchApkToolbin.._INPUT_APKTeamViewerres-M, D:PredatorDesktopBatchApkToolbin.._INPUT_APKTeamViewerAndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:443)
at brut.androlib.Androlib.buildResources(Androlib.java:380)
at brut.androlib.Androlib.build(Androlib.java:283)
at brut.androlib.Androlib.build(Androlib.java:255)
at brut.apktool.Main.cmdBuild(Main.java:225)
at brut.apktool.Main.main(Main.java:84)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [C:UsersPredatorAppDataLocalTempBAT_tempbrut_util_Jar_369695541633834680.tmp, p, —forced-package-id, 127, min-sdk-version, 10, —target-sdk-version, 19, —version-code, 2650, —version-name, 10.0.2650, -F, C:UsersPredatorAppDataLocalTempBAT_tempAPKTOOL1487116638181724639.tmp, -0, arsc, -I, .framework1.апк, -S, D:PredatorDesktopBatchApkToolbin.._INPUT_APKTeamViewerres-M, D:PredatorDesktopBatchApkToolbin.._INPUT_APKTeamViewerAndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:511)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:429)
… 5 more
Caused by: brut.common.BrutException: could not exec command: [C:UsersPredatorAppDataLocalTempBAT_tempbrut_util_Jar_369695541633834680.tmp, p, —forced-package-id, 127, min-sdk-version, 10, —target-sdk-version, 19, —version-code, 2650, —version-name, 10.0.2650, -F, C:UsersPredatorAppDataLocalTempBAT_tempAPKTOOL1487116638181724639.tmp, -0, arsc, -I, .framework1.апк, -S, D:PredatorDesktopBatchApkToolbin.._INPUT_APKTeamViewerres-M, D:PredatorDesktopBatchApkToolbin.._INPUT_APKTeamViewerAndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:505)
… 6 more
[*] —> Error recompiling «TeamViewer»
DONE with 1 ERRORS.
Так само, якщо цікаво, зробив персонально для Вас коротеньке відео процесу : https://youtu.be/elsCCPMsNQM
