error: No resource identifier found for attribute 'foregroundServiceType' in package 'android'
See original GitHub issueInformation
- Apktool Version (
apktool -version
) - 2.4.0 - Operating System (Mac, Linux, Windows) - Windows 10
- APK From? (Playstore, ROM, Other) - Playstore
Stacktrace/Logcat
>apktool b com.google.android.apps.photos.4846842
I: Using Apktool 2.4.0
I: Checking whether sources has changed...
I: Smaling smali folder into classes.dex...
I: Checking whether sources has changed...
I: Smaling smali_classes2 folder into classes2.dex...
I: Checking whether sources has changed...
I: Smaling smali_classes3 folder into classes3.dex...
I: Checking whether sources has changed...
I: Smaling smali_classes4 folder into classes4.dex...
I: Checking whether resources has changed...
I: Building resources...
W: D:\Downloads\!Browser\Google+Photos+4.19.0.254093387+(arm64,400-480dpi)\com.google.android.apps.photos.4846842\AndroidManifest.xml:50: error: No resource identifier found for attribute 'requestLegacyExternalStorage' in package 'android'
W:
W: D:\Downloads\!Browser\Google+Photos+4.19.0.254093387+(arm64,400-480dpi)\com.google.android.apps.photos.4846842\AndroidManifest.xml:137: error: No resource identifier found for attribute 'foregroundServiceType' in package 'android'
W:
W: D:\Downloads\!Browser\Google+Photos+4.19.0.254093387+(arm64,400-480dpi)\com.google.android.apps.photos.4846842\AndroidManifest.xml:541: error: No resource identifier found for attribute 'foregroundServiceType' in package 'android'
W:
brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\MEGAPR~1\AppData\Local\Temp\brut_util_Jar_1032669979368851639.tmp, p, --forced-package-id, 127, --min-sdk-version, 21, --target-sdk-version, 29, --version-code, 4846842, --version-name, 4.19.0.254093387, --no-version-vectors, -F, C:\Users\MEGAPR~1\AppData\Local\Temp\APKTOOL856590454118624535.tmp, -0, arsc, -0, META-INF/services/com.fasterxml.jackson.core.JsonFactory, -0, META-INF/services/com.google.protobuf.GeneratedExtensionRegistryLoader, -0, bin, -0, assets/buildtype, -0, tflite, -0, png, -0, webp, -0, res/drawable-mdpi-v4/abc_ab_share_pack_mtrl_alpha.9.png, -0, res/drawable-mdpi-v4/abc_btn_switch_to_on_mtrl_00001.9.png, -0, res/drawable-mdpi-v4/abc_btn_switch_to_on_mtrl_00012.9.png, -0, res/drawable-mdpi-v4/abc_list_divider_mtrl_alpha.9.png, -0, res/drawable-mdpi-v4/abc_list_focused_holo.9.png, -0, res/drawable-mdpi-v4/abc_list_longpressed_holo.9.png, -0, res/drawable-mdpi-v4/abc_list_pressed_holo_dark.9.png, -0, res/drawable-mdpi-v4/abc_list_pressed_holo_light.9.png, -0, res/drawable-mdpi-v4/abc_list_selector_disabled_holo_dark.9.png, -0, res/drawable-mdpi-v4/abc_list_selector_disabled_holo_light.9.png, -0, res/drawable-mdpi-v4/abc_menu_hardkey_panel_mtrl_mult.9.png, -0, res/drawable-mdpi-v4/abc_switch_track_mtrl_alpha.9.png, -0, res/drawable-mdpi-v4/abc_textfield_activated_mtrl_alpha.9.png, -0, res/drawable-mdpi-v4/abc_textfield_default_mtrl_alpha.9.png, -0, res/drawable-mdpi-v4/abc_textfield_search_activated_mtrl_alpha.9.png, -0, res/drawable-mdpi-v4/abc_textfield_search_default_mtrl_alpha.9.png, -0, arsc, -I, C:\Users\megapro17\AppData\Local\apktool\framework\1.apk, -S, D:\Downloads\!Browser\Google+Photos+4.19.0.254093387+(arm64,400-480dpi)\com.google.android.apps.photos.4846842\res, -M, D:\Downloads\!Browser\Google+Photos+4.19.0.254093387+(arm64,400-480dpi)\com.google.android.apps.photos.4846842\AndroidManifest.xml]
Steps to Reproduce
apktool d com.google.android.apps.photos.4846842.apk
apktool b com.google.android.apps.photos.4846842
Frameworks
If this APK is from an OEM ROM (Samsung, HTC, LG). Please attach framework files
(.apks
that live in /system/framework
or /system/priv-app
)
No, this is a stock android application
APK
If this APK can be freely shared, please upload/attach a link to it. https://play.google.com/store/apps/details?id=com.google.android.apps.photos https://drive.google.com/open?id=19Ew17HiPJkb8AiZPk_K1mWyD-XJGxNE8
Questions to ask before submission
- Have you tried
apktool d
,apktool b
without changing anything? Yes - If you are trying to install a modified apk, did you resign it? Yes
- Are you using the latest apktool version? Yes
I tried apktool empty-framework-dir --force
, not helped
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
MyLocation example causes error: No resource identifier ...
Android Question MyLocation example causes error: No resource identifier found for attribute 'foregroundServiceType' in package 'android'.
Read more >java - Error: No resource identifier found for attribute ...
I have the same problem, and always get unknown resource problem when recompile it. It solve when I use -r flag when decompile...
Read more >No resource identifier found for attribute ****** when wrapping ...
We tried to use managed-app-utility.jar from the MAM SDK to wrap our Android app, but it gives us the following errors:.
Read more >Apktool et "No resource identifier found for ..." - Le labo
xml:316: error: No resource identifier found for attribute 'foregroundServiceType' in package 'android' W: brut.androlib.AndrolibException: brut.common.
Read more >解决error: No resource identifier found for attribute ...
解决error: No resource identifier found for attribute 'requestLegacyExternalStorage' in package 'android'错误 ... 这篇文章上次修改于661 天前,可能 ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Apologies. Misread ticket. Will take another look
I"m also seeing this still occurring
Edit: pulling and installing the framework file from this bug fixed it https://github.com/iBotPeaches/Apktool/issues/2167