yashsingh1/xdaforums huggingface dataset:
[Android Themes] Tulsadiver:
I looked at it again. That was never going to work. I don't know what I was thinking. The public IDs are hosed. I don't know how that booted up at all.

I'm just not sure what is causing this. The blowup is starting in public at the beginning of the ^attr-private section but the errors that usually cause this is the one right above the first one. That is the attr singletonecolor but there's nothing wrong with it I can see. I can't think of any way to get past it......
[Android Themes] Tulsadiver:
I think there might be another way to do this (though I don't know that how you are flashing your mod is working. The last one should have bootlooped you).

The drawables you are modding don't have anything inside them that use public IDs. You take a stock rom, modify it, recompile it, unzip it, take out the recompiled drawables. Unzip the custom rom, replace those drawables with those modded ones, zip it back up and flash that.

Here are some modded, recompiled ones to try.

Also, are you rooted with magisk? If so you must flash your SystemUI via a module and not to system.
[Android Themes] David Stone:
same happening to me bro

any solution???
[Android Themes] nickelnine:
Hi [MENTION=5346465]Tulsadiver[/MENTION], thanks for the new files. I borked my phone doing something else so I took the opportunity to upgrade to Android 10. The small icons are not an issue for me anymore.

What I would like to do now though is color the navigation bar in both my phone app and contacts app so it matches the app theme color. What I've done so far is pull the phone.apk, decompiled it, made the changes (adding the color attribute to the navigationBarColor) to res/values-v27/styles.xml:

Before

<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="DialtactsTheme" parent="@style/DialtactsThemeBase">
<item name="android:navigationBarColor">?android:windowBackground</item>
<item name="android:windowLightNavigationBar">true</item>
<item name="android:navigationBarDividerColor">#ffe0e0e0</item>
</style>
<style name="NuiActivityTheme" parent="@style/NuiActivityThemeBase">
<item name="android:navigationBarColor">@color/background_dialer_white</item>
<item name="android:windowLightNavigationBar">true</item>
<item name="android:navigationBarDividerColor">#ffe0e0e0</item>
</style>
</resources>

After:

<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="DialtactsTheme" parent="@style/DialtactsThemeBase">
<item name="android:navigationBarColor">@color/dialer_theme_color</item>
<item name="android:windowLightNavigationBar">true</item>
<item name="android:navigationBarDividerColor">#ffe0e0e0</item>
</style>
<style name="NuiActivityTheme" parent="@style/NuiActivityThemeBase">
<item name="android:navigationBarColor">@color/dialer_theme_color</item>
<item name="android:windowLightNavigationBar">true</item>
<item name="android:navigationBarDividerColor">#ffe0e0e0</item>
</style>
</resources>

My confusion now comes on what to do after the mod. You did explain above regarding SystemUI changes, does the same apply to an app apk? Do I zip the recompiled folder manually and flash the zip in TWRP or Magisk? Do I use the flash utility in TMA to create the zip? Sorry for all the questions, I've read through the forum but I'm still not clear on it.
[Android Themes] Tulsadiver:
You are rooted with Magisk so I would use a module. You have TWRP so if you mess up it would be easier to fix too. I don't know if recompiling with original signature works on the phone.apk or not. You could try that first or unzip both the original phone.apk and the modded one, take the resources.arsc out of the modded one and replace the one in the original apk with it. Zip the original one back up and flash that.
[Android Themes] nickelnine:
Can I use the Magisk template you provided in another post (attached)? Or is there an updated one? Is it just a matter of unzipping the module, adding my zip file to the proper folder, then zipping the module to flash it?

Secondly, am I just replacing the resources.arsc or also the styles.xml where I actually did the mod?

When I unzip the original or modded APK, there is no values folder under the res folder at all so I can't actually replace the styles.xml if I had to.
[Android Themes] Tulsadiver:
Resources.arsc is everything in the values folder

You might be able to use that vrthemer if you do it right.
[Android Themes] David Stone:
Can anybody tell me why TMA created flashable Zip not working with Android 10 TWRP

how to create a flashable zip that would work fine?

TMA zips flashing but do nothing changes.
[Android Themes] Tulsadiver:
I don't know what phone you have but for me, since Android 10, flashing to system doesn't work. I had to use Magisk modules.
[Android Themes] nickelnine:
I made some progress. I created the Magisk module and flashed it but no changes occur to my phone app. I'm expecting the navbar color to be blue but it remains white. I copied the resources.arsc from the modded apk to the original apk and renamed the original unzipped folder with the apk extension and put that in the module.

Either the mod I did isn't targeting the right file (a couple posts above) or I messed up the process somewhere - I tried it twice.. I've attached the phone apk in case you'd care to help out once again :)

https://drive.google.com/drive/folders/12D1FmyRyctLGPDPL0mwd6KJMttHWykGo?usp=sharing
[Android Themes] Tulsadiver:
Why is the stock apk named different from the one you put in the vrthemer?

In the vrthemer, you don't put the meta-inf folder or androidmanifest.xml.

The vrthemer you used wasn't for apk other than where SystemUI is located. This one should work for you. I renamed the folder to Dialer. If that's the way it's on your phone, that's the way you need to have it.
[Android Themes] steha:
Hi guys. Im having trouble with all apps, it will decompile and recompile but when i try to install it, i get app not installed. I have tried with and without modifications of the app but still have the same issue. Im using the latest version of TMA. Any help would be great.

Thanks.
[Android Themes] Tulsadiver:
Are you signing them? Are these apps ones that came with the phone? Give an example.
[Android Themes] steha:
I have tried xciptv, netflix, facebook, whatsapp. And all the same out come they decompile/recompile with no errors. Where is the option to sign them?, i thought it was automaticly done.

Edit

I found the sign option but when that is active the apk generated is 0kb (empty).
[Android Themes] steha:
Any ideas why when i try to sign apps, the recompiled/signed app is an empty apk?

Thanks
[Android Themes] Raiz:
Hi,

I have a problem installing the apk I just modified on apktool. I modified the string text in the value-fr language (basically I translated it) and recompiled with no errors so far. I complied it keeping the signature in with the -c, and I got a problem installing it. So I recompiled it without the -c, signed it manually (using jarsigner from java jdk and a keystore I generated), then zip aligned it, but failed once again to install it on my phone. I uninstalled the previous version of the app.

Am I doing something wrong, or is it a tamper protection that I need to get around?

(Android 11, latest security patch, device not tampered in any way like root or ROM, ...)

Edit: solved, see this post : https://xdaforums.com/t/tool-tickle-my-android-decompile-recompile-with-ease.1633333/post-84095039
[Android Themes] Raiz:
Idk how you do it, but the most common way is by using keytool to generate the keystore, and jarsigner (included in the Java jdk) so sign the apk.

Here's a video for you:

And actually, I got the same problem, and with signing and zipaligning I'm have this problem too.

Edit: Using apksigner of the lastest build tools got me out of trouble, so to sum up: Generate the key using keytool (java jdk), align your apk (if you want) THEN sign it with apksigner. With jarsigner it was sign then align but apksigner is the other way around.

Good day ;)
[Android Themes] starbucks2010:
Did anyone tried apktool 2.5.0? I cannot produce a viable recompiled apk only by decompile/recompile the apk. The apk is recompiling ok but is fc or bootlooping. Same apk is ok if recompiled using apktool 2.4.1.
[Android Themes] Tulsadiver:
I have had no problems with 2.5.0 so far.
[Android Themes] Tulsadiver:
I just signed a apk and it came out okay.
[Android Themes] starbucks2010:
Android 11?
[Android Themes] Tulsadiver:
Yes. Pixel phones. That being said, I don't flash the entire apk as I use vrthemers. I see where there was some changes made two days ago. I just built a new apktool jar if you care to try it. I added ,zip to the end so I could upload it.
[Android Themes] starbucks2010:
I will try it, thank you.
[Android Themes] steha:
Everytime i try it i get empty 0kb apk, so been recompiling then have to use apk signer on my phone to sign the apk. Ill just have to keep using this method.

Thanks all the same.
[Android Themes] starbucks2010:
Is still not working. I recompiled the S20 SecSettings but the device gets stuck in boot logo.
[Android Themes] Raiz:
@Ticklefish @Tulsadiver

The issue regarding apktool dummy values has been solved in apktool v2.5.0!

I've seen a lot of posts here complaining about the issue, now that it's solved, it's time to share the good news.

I updated the issue I made a year ago, so if you want the details there are over there: https://github.com/iBotPeaches/Apktool/issues/2104

I also ran into some little errors with dummy values, but I got it fixed pretty easily.

Enjoy the good new, and keep rocking (both of you) ;)

Have a nice day (y)
[Android Themes] Ticklefish:
​

Well...2020 has been a different year, hasn't it? I managed to avoid Covid-19, along with everyone in my immediate family. My job got busy and I was finally able to start earning some decent money..then I lost it and started to get into some worrying debt.

Then I got a new one a few weeks ago. Which is good but it pays less and there's no access to a PC. So my work on the new version of TMA has been put on hold. I don't think the new feature I was working on would have been that useful anyway.

The tool is still live and I'm not closing the thread but don't expect anything new and exciting for a little while. Unless somebody wants to help out? TMA could do with a co-developer, after all..

I hope everybody reading this is doing well, keeping safe and having a lovely festive time.
[Android Themes] porkyhontas:
I'm still glad you're rocking TMA, and always look forward to the holidays when you sport the Tickle my Santa title. Wish I knew enough as a developer to help you out.
[Android Themes] steha:
Hi guys, just wondering if anyone could help me with editing some smali code please. I want to change a editable text to a fixed text and also hide a few things, i have been reading all i can find about it but there is very little info on the subject that i can understand, im sure @Ticklefish did a smali guide but i cant seem to find it anymore, iv used the theming guide years ago and picked up values and layout editing but this is the furst time iv tried to edit smali and its driving me crazy. If anyone could help i will post the files im working with if you could point me in the right direction or if you could mod the files for me so i can do a side by side comparison, if not any help will be greatfuly recived.

Thanks. 10yrs on and TMA is still the best.
[Android Themes] Tulsadiver:
What phone do you have? I don't know if I or anyone can help but post your files and see.
[Android Themes] Raiz:
Rn I can't help you (my work taking too much time) but there's a wonderful guide about smali edititing: [GUIDE][SMALI]Understanding and Creating Smali Mods & General Smali Questions
[Android Themes] kalmena:
Hello

Does anyone know what happens?

I modified many apps on the system, decompiling and recompiling, signing, etc. so far so good,

when I try to modify the contacts.apk it tells me application not installed, I tried to decompile and without modifying anything, I recompiled and signed it, but it doesn't work either, the same thing happens to me,

what happen ?
[Android Themes] Raiz:
You have to keep the signature unchanged when modding your contact app
[Android Themes] kalmena:
and how I do it?

and will I be able to modify the xml?
[Android Themes] Raiz:
Yes, you can use --copy-original (or more simply -c) on apktool when recompiling. If you don't modify the Manifest.xml file it should be fine.
[Android Themes] kalmena:
Good!
[Android Themes] kalmena:
I have these files in smali and I need to copy this that I copy below from NO_ORIGINAL and add to ORIGNAL but I don't know how to do it because I don't know smali,

.line 224

invoke-interface {p1}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

move-result-object p2

const-string p3, "^[0-9].*$"

invoke-virtual {p2, p3}, Ljava/lang/String;->matches(Ljava/lang/String;)Z

move-result p2

if-eqz p2, :cond_0

.line 225

iget-object p2, p0, Lcom/nwagu/contacts/activities/ActionBarAdapter$SearchTextWatcher;->this$0:Lcom/nwagu/contacts/activities/ActionBarAdapter;

invoke-static {p2}, Lcom/nwagu/contacts/activities/ActionBarAdapter;->access$200(Lcom/nwagu/contacts/activities/ActionBarAdapter;)Landroid/widget/EditText;

move-result-object p2

const-string p3, ""

invoke-virtual {p2, p3}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V
[Android Themes] kalmena:
Who solves this above mentioned, and it works for me, give me the paypal account for a donation
[Android Themes] Tulsadiver:
Something like this would be my guess.
[Android Themes] kalmena:
the app it stopped
[Android Themes] Tulsadiver:
Here's another one to try.

Edit: that won't work either. Your code is pointing to the wrong files. Lcom/nwagu....

Sorry, I'm not going to be able to help you.
[Android Themes] kalmena:
I changed it but it didn't work for me.
[Android Themes] gcrutchr:
So, trying to add 3Minit Battery to latest N9750 ROM. Keep getting compile errors as Samsung has added capital letters to 4 resource files Flash_on.webp, Flash_off.webp, Flash_on_black.webp & Flash_off_black.webp. I cannot just change to lower case. These files are used in a lot of files. Also, recompiling smali_classes_2 and copying it to the original SystemUI.apk does not work. ROM fails to load SystemUI.apk (even if I make no changes to smali_classes2). The latest apktool.jar uses smali 2.4.1, but the most recent is 2.5.1. The smali.jar is embedded in the apktool.jar file. Anyone have any ideas?
[Android Themes] gcrutchr:
@Ticklefish

Do you have any idea why I am getting this download error? See attached.
[Android Themes] Ticklefish:
TMA doesn't have any viruses in it, I check that stuff when I make it, but some antivirus programs don't like the way it's constructed. TMA is a batch file turned into an EXE file and that can sometimes cause a false positive.

To fix this, you just need to disable your antivirus. Which could potentially cause you all sorts of problems so you should really only do this if you trust what I'm saying. I think I'm trustworthy but, if I was trying to spread malware, that's exactly what I would say..
[Android Themes] Raiz:
I can confirm, @Ticklefish is trustworthy, same for TMA ;).
[Android Themes] Ticklefish:
Thank you! The cheque is in the post..
[Android Themes] Raiz:
Just got it, always a pleasure working with you 😉
[Android Themes] Tulsadiver:
Yes, I saw the files a while back and couldn't get a Samsung firmware to recompile. There were lower case files with those same names in a different folder. When I tried to recompile it, it said there were duplicates of those files, ones with upper case, ones with lower case.

You can throw the current apktool.jar in the user/apktool folder and smali and baksmali in the tools folder.
[Android Themes] gcrutchr:
Hi,

I got it working. Need to remove Flash*. webp in xxhdpi folder and values/public.xml folder.

Also, there is a file in smali_classes2/com/samsung/android/sdk.1/bixby2/R$drawable.smali where the public IDS need to be changed to the public IDs for flash*.webp. Also, I discovered the SystemUI.apk file has to be zip-aligned. (haven't done this in years!)
[Android Themes] IamTheBRAVE:
I can confirm, Raiz is trustwothy.👍

I'll be waiting for my cheque too😛
[Android Themes] Huncriter:
any way to change battery icon on status bar on android 11?
[Android Themes] Tulsadiver:
Yes. You can install 3Minit battery or drop in your own smali files and battery pngs.
[Android Themes] Huncriter:
3minit is not working on android 11
[Android Themes] Tulsadiver:
Working on Pixel's. What phone do you have?
[Android Themes] :
Belated happy birthday!!! Still my favourite compiler for modding
[Android Themes] Ticklefish:
Well, thank you! What with the manic pace of my offline life, I had forgotten TMA's birthday. It's good to see somebody's paying attention!
[Android Themes] Huncriter:
MI A2 (jasmine_sprout) with custom a11 romm (octaviOS)
[Android Themes] Tulsadiver:
Might be because you are running a custom rom. If you like, and want to upload that rom's framework-res.apk and systemui.apk, I'll see if I can make a magisk module for 3Minit.
[Android Themes] romhippo.com:
Hi Tulsadiver,

I read your many posts and learned a lot :) Thanks for that!

I tried your VR Theme magisk module, but it didn't work on Android 11 out of the box. Android was complaining that resources.arsc has to be uncompressed when targeting R+ (version 30 and above). However I figured that part out (by adding that file with the zip -0 option).

But it does not seem to be possible anymore to modify the framework-res.apk in Android 11 (AOSP custom)? It seems that Android is actually checking the signature but fails to "collect certificates" and bootloops ...

I guess there is no way to overcome this problem (because I don't have the signing key)? But then I am wondering how your mods work on Android 11? Maybe the ROMs you have are less strict?
[Android Themes] Tulsadiver:
I don't modify the framework values folder.
[Android Themes] romhippo.com:
Thank you for the quick response. That makes sense.

I guess I have to compile the ROM instead, if I want to do any changes. Not very tickling :-(
[Android Themes] romhippo.com:
Just a quick update. The solution is basically to create an overlay instead (RRO).
[Android Themes] :
For better understanding for beginners:

3Minit Battery modification is done in the SystemUI.apk only, but to be able to de- and recompile this apk correctly, you need to install framework-res.apk (and maybe other fliles depending on your rom).

Additionally you have to add 3MinitBatteryResources.apk to system/priv-app and install 3Mintbattery.apk as user app.

But you do not modify the framework-res.apk
[Android Themes] oldman20:
Glad to see this topic still alive!!!

Anyone can help me? Im using Samsung OneUI 2.5 which SystemUI in priv-app folder have odex file like this. How properly decompile/recompile it?
[Android Themes] Thebear j koss:
De odex it.
[Android Themes] Tulsadiver:
I can't remember if it starts with android 10 or 11, but most SystemUI's are deodexed already even though they still contain oat folders. Unzip your SystemUI.apk with 7zip or similar to see if you have .dex files in it.

Edit: it appears that it started as early as Android 9
[Android Themes] Raiz:
A very nice thing to know when you theme. Thanks for the tip good friend 👍
[Android Themes] oldman20:
thank, is it right?
[Android Themes] Tulsadiver:
Yes, it is already deodexed.
[Android Themes] porkyhontas:
Same here dude. Glad you're still hanging with TMA. Sucks that things aren't like they used to be. Anyhow, I'm still using your TMA almost on a daily basis.
[Android Themes] Ticklefish:
That's curious. Shouldn't make any difference if you're smali-modding as that oat folder has to be deleted. But I wonder why they do that. Maybe they just can't be bothered removing the dex files..
[Android Themes] Ticklefish:
Sigh.. Not as easy as it used to be..
[Android Themes] Ticklefish:
That's what I like to hear! And everyone knows that TMA users are the cleverest people in the galaxy..
[Android Themes] Fg-pl:
Was anyone ever able to make layout-land .xmls work? I made a modified version of quick_settings_header_info.xml for both layout and layout-land folder and when I rotate my phone it remains with the portrait version. I know it is a bit OT, but this is the main DC/RC community I know of hehe
[Android Themes] Ticklefish:
I haven't any personal experience but there are a few possible reasons why it doesn't work.

Assuming that you've got your decompiling/recompiling/etc process right, it could be that the file you're modding isn't the one you need. The first thing I'd do to check is to make a simple change that would definitely go through. I'd change the background colour or the colour of the text, for example.

That way if the the change happens I know I've got the right file. If it doesn't I'd know I need to look elsewhere..
[Android Themes] s1x5tring5amurai:
would someone mind helping me out im trying to get the rawprogram0.xml and patch0.xml so i can repair my imei....every walkthrough i see on here utilizes all kdz files i do not have a lg im using a moto g pro....even being pointed in the right direction will be appreciated

Ive tried blankflashing, reflashing stock firmware, and a few other things .... thanks in advance
[Android Themes] Tulsadiver:
It might be the other way around... I don't delete the oat folder

The forum dedicated to your phone type would be the best place to ask for this type of help.
[Android Themes] Fg-pl:
Actually, it is the correct .xml. It works when I "refresh" the overlay via Tasker. I configured it in a way when I rotate the phone, Tasker disables and reenables the overlay, and it works. The problem is that it doesn't work like that by default and I can't figure out why.

(I say overlay, because I did an substratum overlay, but I also tried directly in SystemUI (DC/RC) and still it doesn't work)
[Android Themes] Tulsadiver:
Apktool 2.6.0 is out.
[Android Themes] swift7e:
removed
[Android Themes] swift7e:
does it work with protected apk
[Android Themes] cerj:
@Ticklefish, I'm a First time user of TMA, and I had to come here and give you my Thanks and say this is a very good Tool and it works great. I love all the Advanced Options and how easy it is to use. I have seen others I know and some I don't talk about TMA for years and have visited this Thread at least three times, but I finally decided to give it a go and now wish I would have sooner. So anyone that has done the same as I have do yourself a favor and download this and get going, no reason to put it off another day.
[Android Themes] Thebear j koss:
You've wasted like over 10 years now with your themes. Lol About time you made your life easier...
[Android Themes] mkhcb:
So I decompiled a APK, changed the app version in the apktool.yml, recompiled, and then tried to install it on my Pixel 6 Pro (on Android 12) and got the following error: "App not installed as package appears to be invalid". Any suggestions?
[Android Themes] Tulsadiver:
What apk, did you sign it?
[Android Themes] mkhcb:
MH-Cure and I used the standard compile option.
[Android Themes] Tulsadiver:
You could try signing it. Doesn't look like a stock apk.
[Android Themes] mkhcb:
I cant find any good apk signer. I even tried signing the original APK. It installs, but then force crashes (even the original one, without edits).
[Android Themes] Illia12:
I understand correctly that the code for extraction is a single line that is transferred from Android directly to the "in" folder ? If it's not in the folder after I've pulled it then maybe there's a problem with the connection to my phone ? Or something else ? Help me please . I will have a better understanding of what is going on. Thanks))
[Android Themes] Tulsadiver:
What phone do you have? Do you have usb debugging enabled in developer settings?
[Android Themes] Illia12:
HTC One , about usb debugging I don't know if it's on or not, how do I check it?

Thanks in advance)