yashsingh1/xdaforums huggingface dataset:
[Android Software Development] EMSpilot:
Thank you very much for the info. Haven't even opened the phone yet so I am going to send it back. I have no use for a phone that can't be modded.

Cheers
[Android Software Development] Ibuprophen:
I just wanted to emphasize that those may be my findings but, I haven't noticed anything recent regarding this from [MENTION=3924617]iBotPeaches[/MENTION].

I hope he can elaborate on this a bit further here or, hopefully, he will do so if someone submits a new issue within Github.

Good Luck my friend!

~~~~~~~~~~~~~~~

I DO NOT provide support via PM unless asked/requested by myself. PLEASE keep it in the threads where everyone can share.
[Android Software Development] gcrutchr:
Possible solution for oreo 8.0 .9.png error

1. goto Android Asset Studio PNG .9 Editor

2. select xxxhdpi (640) from left side (source density)

3. drag and drop pip_dismiss_scrim.9.png into drag 'n drop area

4. do not edit

5. download .9.png file

6. extract (under xxxhdpi folder), rename pip_dismiss_scrim_9.png => pip_dismiss_scrim.9.png

7. replace pip_dismiss_scrim.9.png in xxxhdpi folder

8. build SystemUI

D:\NoteFE\ROMS\XXU2BRD4\test>apktool b SystemUI

I: Using Apktool 2.3.3

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 resources has changed...

I: Building resources...

W: fakeLogOpen(/dev/log_system, O_WRONLY) failed

W: fakeLogOpen(/dev/log_system, O_WRONLY) failed

W: fakeLogOpen(/dev/log_crash, O_WRONLY) failed

W: fakeLogOpen(/dev/log_crash, O_WRONLY) failed

W: fakeLogOpen(/dev/log_security, O_WRONLY) failed

W: fakeLogOpen(/dev/log_security, O_WRONLY) failed

W: fakeLogOpen(/dev/log_system, O_WRONLY) failed

W: fakeLogOpen(/dev/log_crash, O_WRONLY) failed

W: fakeLogOpen(/dev/log_security, O_WRONLY) failed

W: fakeLogOpen(/dev/log_main, O_WRONLY) failed

W: fakeLogOpen(/dev/log_system, O_WRONLY) failed

W: fakeLogOpen(/dev/log_crash, O_WRONLY) failed

W: fakeLogOpen(/dev/log_security, O_WRONLY) failed

W: warning: string 'dcm_lockscreen_unlock_help_text_fingerprints_iris' has no default translation.

W: warning: string 'mobile_data_show_popup_disable_kor_skt' has no default translation.

W: warning: string 'mobile_data_show_popup_enable_kor_skt' has no default translation.

W: warning: string 'mobile_hotspot_wifi_off_warning' has no default translation.

W: warning: string 'mobile_hotspot_wifi_off_warning_china' has no default translation.

W: warning: string 'mobile_hotspot_wifi_off_warning_jpn' has no default translation.

W: warning: string 'screenshot_failed_to_capture_text' has no default translation.

W: warning: string 'screenshot_failed_to_save_text' has no default translation.

W: warning: string 'screenshot_failed_to_save_unknown_text' has no default translation.

I: Building apk file...

I: Copying unknown files/dir...

I: Built apk...

I cannot test this as I have Samsung Note FE and have to wait 7 days before I can root it.

Can someone test this procedure to see if it works?
[Android Software Development] techker:
I update my JDE and it seems to work.but the install does not work.says can't install file.i also get a zip align error when i use the tool.It's like if the command was not set.But i find it odd that i can't install the app even if i use the sign tool

Zip alignment utility

Copyright (C) 2009 The Android Open Source Project

Usage: zipalign [-f] [-p] [-v] [-z] <align> infile.zip outfile.zip

zipalign -c [-p] [-v] <align> infile.zip

<align>: alignment in bytes, e.g. '4' provides 32-bit alignment

-c: check alignment only (does not modify file)

-f: overwrite existing outfile.zip

-p: memory page alignment for stored shared object files

-v: verbose output

-z: recompress using Zopfli

------------------------------------------
[Android Software Development] djdarkknight96:
What app is it? Also if it's a system app you cannot just sign install it.
[Android Software Development] kevin1091:
Hey guys, i decompiled an base.apk because i wanted to get the launcher icon...

but after decompile there is no single icon in res folder :S only values-folder wit xml's ...

and i getting this in my log:

Exception in thread "main" brut.androlib.AndrolibException: brut.directory.DirectoryException: Error copying file: ??.

at brut.androlib.Androlib.decodeUnknownFiles(Androlib.java:221)

at brut.androlib.ApkDecoder.decode(ApkDecoder.java:172)

at brut.apktool.Main.cmdDecode(Main.java:164)

at brut.apktool.Main.main(Main.java:73)

Caused by: brut.directory.DirectoryException: Error copying file: ??.

at brut.directory.DirUtil.copyToDir(DirUtil.java:88)

at brut.directory.AbstractDirectory.copyToDir(AbstractDirectory.java:208)

at brut.androlib.Androlib.decodeUnknownFiles(Androlib.java:214)

... 3 more

Caused by: java.io.FileNotFoundException: C:\Users\Kevin\Desktop\Advanced_ApkTool_v4.2.0_By_BDFreak_2.3.3\3-Out\Diba.apk\unknown\??. (Die Syntax für den Dateinamen, Verzeichnisnamen oder die Datenträgerbezeichnung ist falsch)

at java.io.FileOutputStream.open0(Native Method)

at java.io.FileOutputStream.open(Unknown Source)

at java.io.FileOutputStream.<init>(Unknown Source)

at java.io.FileOutputStream.<init>(Unknown Source)

at brut.directory.DirUtil.copyToDir(DirUtil.java:84)

and every other apk works gr8 for me!

any solution, its banking app (ing diba) btw, i just want to edit the icon and theme it coz i got it on my homescreen :D
[Android Software Development] niaboc79:
Paste this file in your decompiled systemUI, I've modded it to work when recompiling ;)
[Android Software Development] EMSpilot:
Seems to me all that needs to be done is change the Config flags size limit.

Cheers
[Android Software Development] Ibuprophen:
Hmm... I was close in my "Assumption" but, I hate to provide certain assumptions to anyone unless I was confident enough to "upgrade" it to a "suggestion" or "recommendation".

It's been quite a while but, I've had assumptions bite me in the "rump roast" (LOL!).

You can always do what I do when I'm in the same boat for many things...

Back it up and try it out with your fingers crossed (aka "Hope for the best but, Always Prepare for the Worse").

~~~~~~~~~~~~~~~

I DO NOT provide support via PM unless asked/requested by myself. PLEASE keep it in the threads where everyone can share.
[Android Software Development] esansnewman:
reserved
[Android Software Development] Spannaa:
Why?
[Android Software Development] esansnewman:
I've posted in the wrong thread.
[Android Software Development] Spannaa:
I've answered in the right thread!

The solution is just three posts above your 'reserved' post...
[Android Software Development] z.BaBe:
Error import framework and other operation

/data/data/per.pqy.apktool/mydata/apktool.sh: line 6: /data/data/per.pqy.apktool/lix/jvm/java-7-openjdk-armhf/jre/bin/java: not found
[Android Software Development] Ibuprophen:
This error, to me, looks like Apktool App (I'm assuming). Please correct me if I'm wrong! :)

If this is via PC, then it looks like the Java being referenced "java-7-openjdk-armhf" cannot be found.

That's specific to the Debian OpenJDK "7u171" located on the following link.

https://packages.debian.org/source/jessie/armhf/openjdk-7

The Oracle JDK "7u171" is located on the following link.

http://www.oracle.com/technetwork/j...ase7supportreleasenotes-1601161.html#R170_171

The difference is really only personal preference depending on the PC's OS installed.

The bottom line for the error is clear...

"java: not found"

~~~~~~~~~~~~~~~

I DO NOT provide support via PM unless asked/requested by myself. PLEASE keep it in the threads where everyone can share.
[Android Software Development] Spannaa:
There are already a few 'fixed' pip_dismiss_scrim.9.pngs in this thread but I've attached a zip containing both compiled and decompiled versions...
[Android Software Development] z.BaBe:
Forgive me. because I can not send pictures yet.

I'm wearing samsung SM-E500H

KitKat 4.4.4

apktool downloaded from.

code*google*com/archive/p/apktool/downloads

I'm sorry if I'm wrong.

photos.app*goo*gl/NY8fyC4tMV4zxxst2[/url]
[Android Software Development] Ibuprophen:
That's not the location for obtaining the Official Apktool (as reflected on this thread) by the Developer [MENTION=3924617]iBotPeaches[/MENTION].

The following links are where you can locate the Official Apktool downloads.

Via Github:

https://github.com/iBotPeaches/Apktool/releases

Via iBotPeaches (personal) website:

https://ibotpeaches.github.io/Apktool/

Good Luck!

~~~~~~~~~~~~~~~

I DO NOT provide support via PM unless asked/requested by myself. PLEASE keep it in the threads where everyone can share.
[Android Software Development] z.BaBe:
-̶̶•-̶̶•̸Ϟ•̸ ★ Thanks. Sir★ •̸Ϟ•̸-̶̶•
[Android Software Development] techker:
its a regular iptv app..just needed to change the logos..it doesn't recompile at all..
[Android Software Development] Lanchon:
resource file names starting with $

hi [MENTION=3924617]iBotPeaches[/MENTION],

is there any information regarding resource files with names starting with $ (dollar sign) ?

apktool decodes such files fine, but then the standard android build system (android plugin for gradle) chokes while trying to pack them into an apk. (this happens running the dexpatcher gradle plugin, a tool that decodes apk resources using apktool but reassembles apks using the full android build system.)

a user reports seeing stuff like this on the build:

/Users/xxx/.gradle/caches/transforms-1/files-1.1/Amazfit 2.4.0.DEV.apk.aar/f8cc851473dee60bba699d0e55e5a94d/res/drawable-v21/$avd_show_password__2.xml: Error: '$' is not a valid file-based resource name character: File-based resource names must contain only lowercase a-z, 0-9, or underscore

i guess this might be a know can of worms, but i wasn't able to find relevant info.

thanks and sorry to bother you!
[Android Software Development] Droid King:
Decompiling APK file...

/c "java -Xmx1024m -jar "D:\DOWNLOADS\APK+Easy+Tool+v1.50+portable\Apktool\apktool_2.3.3.jar" d -f -o "D:\DOWNLOADS\APK+Easy+Tool+v1.50+portable\1-Decompiled APKs\Aidonnou-Headers - Extended" "D:\32gb\apps\Theming\Aidonnou-Headers - Extended.apk""

java.lang.UnsupportedClassVersionError: brut/apktool/Main : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$000(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Exception in thread "main"
------------------------------------------

getting this error whatever app am trying to decompile any help
[Android Software Development] Phone_Guru:
Remove all spaces from the file name and try again
[Android Software Development] Spannaa:
You can also get the major minor error if your path environment variable hasn't been updated, even if you've updated Java to 1.7+
[Android Software Development] danielvilla1:
I can not extract the Netflix application:

Input file (C:\Users\Daniel\Downloads\Advanced_ApkTool_v4.2.0_By_BDFreak_2.3.3\2-In\Netflix) was not found or was not readable.

AND:

Exception in thread "main" brut.androlib.AndrolibException: brut.directory.DirectoryException: Error copying file: ?? .xml

at brut.androlib.Androlib.decodeUnknownFiles(Androlib.java:221)

at brut.androlib.ApkDecoder.decode(ApkDecoder.java:172)

at brut.apktool.Main.cmdDecode(Main.java:164)

at brut.apktool.Main.main(Main.java:73)

Caused by: brut.directory.DirectoryException: Error copying file: ?? .xml

at brut.directory.DirUtil.copyToDir(DirUtil.java:88)

at brut.directory.AbstractDirectory.copyToDir(AbstractDirectory.java:208)

at brut.androlib.Androlib.decodeUnknownFiles(Androlib.java:214)

... 3 more

Caused by: java.io.FileNotFoundException: C:\A\3-Out\Netflix.apk\unknown\?? .xml (El nombre de archivo, el nombre de directorio o la sintaxis de la etiqueta del volumen no son correctos)

at java.io.FileOutputStream.open(Native Method)

at java.io.FileOutputStream.<init>(Unknown Source)

at java.io.FileOutputStream.<init>(Unknown Source)

at brut.directory.DirUtil.copyToDir(DirUtil.java:84)

... 5 more
[Android Software Development] Hostname:
Hello, Thanks bro for information !

please i want to know other tool like Apktool to decompile android apps
[Android Software Development] djdarkknight96:
Yes look in the apk it's not formatted normal. I think they use own resources and encryption.
[Android Software Development] kramer04:
Hello

I've issues with v2.3.3

I can't recompile my Framework with it

Framework is from Samsung device.

So I install Framework-res.apk and twframework-res

Then decompile Framework

Decompiling "framework-res.apk",
in workarea "_WorkArea1", using "apktool_2.3.3.jar"
With Debug Info Disabled

With Tickle My Android 15.4.0.4
(tinyurl.com\ticklemyandroid)

----------------

Installed Framework File(s):

framework-res.apk [1.apk]
twframework-res.apk [2.apk]

----------------

I: Using Apktool 2.3.3 on framework-res.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...

----------------

Decompile Successful!

And when i want to recompile with 2.3.3 there is lot of errors with 9.png

Same with v2.3.2

[COLOR="Red"]Recompiling "framework-res.apk" With New Signature,
in work area "_WorkArea1", using "apktool_2.3.3.jar"

With Tickle My Android 15.4.0.4
(tinyurl.com\ticklemyandroid)

----------------

Installed Framework File(s):

framework-res.apk [1.apk]
twframework-res.apk [2.apk]

----------------

I: Using Apktool 2.3.3
W: Could not find sources
I: Building resources...
brut.androlib.AndrolibException: brut.common.BrutException: could not exec: [C:\Users\dunca\AppData\Local\Temp\brut_util_Jar_438704577094328473.tmp, p, --forced-package-id, 1, --min-sdk-version, 23, --target-sdk-version, 23, --version-code, 23, --version-name, 6.0.1, --no-version-vectors, -F, C:\Users\dunca\AppData\Local\Temp\APKTOOL8163746697674944074.tmp, -x, -0, png, -0, res/drawable-desk-mdpi-v8/sem_hover_popup_background_material.9.png, -0, res/drawable-desk-mdpi-v8/sem_indexbar_bg_mtrl.9.png, -0, res/drawable-desk-mdpi-v8/sem_tab_divider_mtrl.9.png, -0, res/drawable-desk-mdpi-v8/sem_tip_popup_balloon_background_left.9.png, -0, res/drawable-desk-mdpi-v8/sem_tip_popup_balloon_background_left_translucent.9.png, -0, res/drawable-desk-mdpi-v8/sem_tip_popup_balloon_background_right.9.png, -0, res/drawable-desk-mdpi-v8/sem_tip_popup_balloon_background_right_translucent.9.png, -0, res/drawable-desk-mdpi-v8/sem_tip_popup_balloon_border_left.9.png, -0, res/drawable-desk-mdpi-v8/sem_tip_popup_balloon_border_right.9.png, -0, res/drawable-desk-mdpi-v8/sem_tip_popup_balloon_shadow.9.png, -0, res/drawable-desk-mdpi-v8/tw_btn_default_mtrl.9.png, -0, res/drawable-desk-mdpi-v8/tw_btn_switch_mtrl.9.png, -0, res/drawable-desk-mdpi-v8/tw_ic_do_btn.9.png,[/COLOR]

But if I decompile/recompile with v2.3.2 all is perfect.
[Android Software Development] djdarkknight96:
Know issue like forever lol
[Android Software Development] Ticklefish:
Is it a known issue? I just had a look through the github site and couldn't see anything. I am critically low on coffee and having a crappy day at work though, so my focus might not be at its best.

This is the APK I posted about a few days ago (https://xdaforums.com/showpost.php?p=76536575&postcount=5431). These 9-patch errors occur without aapt2 support. With aapt2 support, there are a lot of errors about APKTOOL_DUMMY values. This is from a custom rom, so I did wonder if it was just something the dev did when they put the rom together. But the way that a previous version of apktool works and the most recent one doesn't is a bit puzzling.

So yeah, what I'm essentially trying to say is..is this a known issue or do I need to mention it to ibotpeaches?
[Android Software Development] Eleo:
I agree that it seems like an issue on latest apktool and we need to address it to ibotpeaches for troubleshooting.
[Android Software Development] djdarkknight96:
He knows if this issue, as it's been continuing to happen for a long time.
[Android Software Development] Ticklefish:
Then we'll just have to see if he can resolve it. Thanks for letting me know.
[Android Software Development] djdarkknight96:
Yeah I think he said can't resolve but just deleting them works for me.
[Android Software Development] younes001:
an apk can't recompile.. why? help me please
[Android Software Development] Ibuprophen:
All i can provide you with is the following Guides, Tutorials, etc...

https://ibotpeaches.github.io/Apktool/documentation/

https://www.xda-developers.com/guide-to-decompiling-and-recompiling-with-apktool/

http://www.**********.com/tutorial-how-to-decompile-and-recomplie-apk-files/

There's more out there but, those should give you a good start... :thumbup:

Good Luck!

~~~~~~~~~~~~~~~

I DO NOT provide support via PM unless asked/requested by myself. PLEASE keep it in the threads where everyone can share.
[Android Software Development] Spannaa:
If you provide no details at all, it's impossible to know why or help solve your issue!
[Android Software Development] ianmacd:
Can't recompile SystemUI.apk in spite of properly installed framework.

I'm trying to do my first mod with apktool (2.3.3), and it's for the Samsung Tab S3 tablet.

I thought I'd start out with something simple, so I chose the popular high volume warning disabler hack.

Decompiling the SystemUI APK was trivial. After that, I installed the framework, which I found on the device at /system/framework/framework-res.apk. That, too, was simple.

I made the required change to the smali file, and then tried to recompile, but that's proving problematic. Here's some truncated output:

W: warning: string 'dcm_lockscreen_unlock_help_text_fingerprints_iris' has no default translation.
W: warning: string 'mobile_data_show_popup_disable_kor_skt' has no default translation.
W: /home/ianmacd/src/systemui/SystemUI.t820/res/layout/notification_info.xml:5: error: Error: No resource found that matches the given name (at 'layout_width' with value '@android:dimen/primary_content_alpha_device_default').
W: /home/ianmacd/src/systemui/SystemUI.t820/res/layout/notification_info.xml:5: error: Error: No resource found that matches the given name (at 'layout_height' with value '@android:dimen/primary_content_alpha_device_default').

I've googled the hell out of this, but all such problems seem to relate to people who didn't install or only partially installed the required framework. In my case, I have correctly installed the only framework I can find on the device. If I remove that file from apktool, the errors multiply, so the framework I have is definitely being used.

Sorry if this is a beginner question, but as I say, I did my research before posting. I overcame, for example, the malformed 9 patch file problem. Unfortunately, though, I can't figure out a way past this issue, because I can't find any more framework files on the device. Is there perhaps something I'm overlooking?

Thanks in advance.
[Android Software Development] Spannaa:
Not sure about the Samsung Tab S3, but most Samsung stock roms also have a twframework-res.apk in the system/framework folder which also needs installing.
[Android Software Development] niaboc79:
You are missing a string in values/dimen.xml

primary_content_device_alpha_default
[Android Software Development] ianmacd:
Not this device. It has only one apk in that folder, and that's framework-res.apk.

---------- Post added at 15:40 ---------- Previous post was at 15:36 ----------

I get that, but the point is that I haven't touched that file.

I changed a few lines in one .smali file and that's it. The files throwing up errors haven't been touched, and I have the only framework file from the device properly installed for use by apktool.

This is my first time using apktool, so I hoped I was overlooking something obvious, even though I couldn't find a case of anyone who had experienced the same issue. It looks as if there's still a framework missing, but there are no other framework files on the device, as far as I can tell.
[Android Software Development] Spannaa:
If you decompile and recompile the apk without editing anything, do you still get the errors?

If you do, it could well be a Samsung issue - they like to do things differently.
[Android Software Development] Thebear j koss:
Install the framework before decompiling the system ui. Also there should be other framework files that need to be installed. Need to look or ask in your device's forums for what files are needed.

Sent from my Moto G5S Plus using Thebear Blue XDA Labs
[Android Software Development] ianmacd:
Thanks. That was the golden tip. I knew it would be a beginner's mistake.

I had installed the framework only after decompiling the APK I wanted to work on. Because there were no errors during decompilation, I had assumed the framework was only required for recompiling.

Once I'd decompiled using the framework, rebuilding was trivial.

Unfortunately, even after signing the new APK with the signature from the original (using apktool -c), it still doesn't work on the target system, so I'm still overlooking something.

I'll ask, but I think that's all there is on Samsung devices.

Anyway, I'm a step closer to my goal now. Thank you for your assistance.
[Android Software Development] Thebear j koss:
Try this, using 7 zip or winrar open the new apk and the original apk so you can see the files inside. If you only charged smali, grab the dex file in new apk and drag and drop it into the original apk and then flash that original apk with the new dex file in it.

Sent from my Moto G5S Plus using Thebear Blue XDA Labs
[Android Software Development] Ibuprophen:
Where have you been My Friend [MENTION=4916750]Thebear j koss[/MENTION]?

You played a "Houdini" for a little while... LMAO! :)

~~~~~~~~~~~~~~~

I DO NOT provide support via PM unless asked/requested by myself. PLEASE keep it in the threads where everyone can share.
[Android Software Development] ianmacd:
There were 2 DEX files to copy, classes.dex and classes2.dex, so I copied both of those over to the original APK and bingo!

I wish I knew what the difference was between the two APKs. The new one I made with apktool has 2856 files in it, whereas the original has 2906 files. That's one major difference, at least. Maybe this is just how it is with Samsung devices, or maybe I'm still making a beginner's mistake somewhere along the line, but I'm pretty sure I'm following everything to the letter now.

As long as one has changed nothing but the .smali files, is it always safe to take this approach of just copying the DEX files over to the original?

Many, many thanks for helping me not once, but twice today.
[Android Software Development] Spannaa:
Usually, yes and if you're only editing xml files in the res/values folder, just copy resources.arsc over.
[Android Software Development] danielvilla1:
It's impossible to decompile the app of Netflix :(