yashsingh1/xdaforums huggingface dataset:
[Android Themes] Teracotta:
I update to 2.7 and it's more of same

11-01-2023@1154 --- Recompiling "SystemUI.apk" in "_WorkArea3", using "apktool_2.7.0.jar" with standard settings

Installed Framework File(s)

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

(java -jar user_files\APKTOOL\apktool_2.7.0.jar b --frame-path _WorkArea3\Frameworks _WorkArea3\_working\SystemUI.apk -o _WorkArea3\_out\SystemUI.apk)

I: Using Apktool 2.7.0
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
W: C:\Users\USER1\Downloads\TMA\TickleMyAndroid\_WorkArea3\_working\SystemUI.apk\res\values\styles.xml:3: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Animation.PopupWindow'.
W:
W: C:\Users\USER1\Downloads\TMA\TickleMyAndroid\_WorkArea3\_working\SystemUI.apk\res\values\styles.xml:4: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Animation.PopupWindow'.
W:
W: C:\Users\USER1\Downloads\TMA\TickleMyAndroid\_WorkArea3\_working\SystemUI.apk\res\values\styles.xml:9: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Animation.PopupWindow'.
W:
W: C:\Users\USER1\Downloads\TMA\TickleMyAndroid\_WorkArea3\_working\SystemUI.apk\res\values\styles.xml:24: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Animation.PopupWindow'.
W:
W: C:\Users\USER1\Downloads\TMA\TickleMyAndroid\_WorkArea3\_working\SystemUI.apk\res\values\styles.xml:57: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Animation.PopupWindow.ActionMode'.
W:
brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\USER1~1\AppData\Local\Temp\brut_util_Jar_26962783748139634803878807242821340743.tmp, p, --forced-package-id, 127, --min-sdk-version, 16, --target-sdk-version, 16, --version-code, 16, --version-name, 4.1.2-R530UVXAMD4, --no-version-vectors, -F, C:\Users\USER1~1\AppData\Local\Temp\APKTOOL5234541390718667038.tmp, -e, C:\Users\USER1~1\AppData\Local\Temp\APKTOOL6765552804099351804.tmp, -0, arsc, -I, _WorkArea3\Frameworks\1.apk, -S, C:\Users\USER1\Downloads\TMA\TickleMyAndroid\_WorkArea3\_working\SystemUI.apk\res, -M, C:\Users\USER1\Downloads\TMA\TickleMyAndroid\_WorkArea3\_working\SystemUI.apk\AndroidManifest.xml]

11-01-2023@1154 --- File Not Recompiled
[Android Themes] Tulsadiver:
Are you using ticklemyandroid from your downloads folder?

Try putting it directly on your c: drive....c:\ticklemyandroid\ then all the files and folders.
[Android Themes] Teracotta:
looks like tht fix the problem

how/why?
[Android Themes] Tulsadiver:
I read somewhere that it worked best directly on c:/ and with only one copy of tma installed at a time.... regardless, it now works. That's the main thing.... possibly it has to do with root directory permissions.
[Android Themes] Teracotta:
so I made edits and it looks like system.apk isn't load, as you say I see odex file in /system

what do then, do I deodex first, then decompile, edit dimens.xml and recomple

or install system.apk and system.odex in Framework first
[Android Themes] Tulsadiver:
You say it didn't load...you mean it bootlooped? If all you edited is dimens xml, you shouldn't need to deodex...at least if you edited existing ones and didn't add new ones. If you are rooted by magisk you should install the recompiled SystemUI as a module.
[Android Themes] Teracotta:
no bootloop, rom loads but systemui is not loaded into RAM

there is no statusbar and it can't be pulled down.

settings and twlauncherr still work

to test, I just decompile, recompile systemui.apk with no changes to dimen.xml and flash it, ~200 Kbs difference in apk size (2.3 vs 2.1 mb) and systemui still does not load

this phone is GSIII R530U. there are other models, same sdk and soc, which can load nandroid successful over this model

example I can load nandroid for i535 and systemui.apk works, it flash system, data, boot partitions

but if I port systemui.apk fom i535 to R530U, no othe change, systemui.apk does not load into RAM at rom boot
[Android Themes] Tulsadiver:
Sorry, I can't help with porting....
[Android Themes] Tulsadiver:
How are you installing the SystemUI?
[Android Themes] Teracotta:
that's just example to explain "didn't load"

recompiled apk and original apk are not original size, all 3 apks are about 200 kbps short, need to test

I use flashable zip from TMA in twrp
[Android Themes] Tulsadiver:
Are you rooted with magisk?
[Android Themes] Teracotta:
Yes rooted, no magisk, magisk minimum api 21
[Android Themes] Tulsadiver:
I'm not sure what api my 7 year old Google Nexus 5X is...24 I believe. It's 7 years old on android 8.1 and is rooted by magisk. Magisk version 24.1

I'm not saying you should abandon SuperSU if it works for you but you would have to be lower than android 5 to be less than api 21, wouldn't you?

Maybe it's your delivery system that is the problem. Either that or your edits. What are your edits?
[Android Themes] kcls:
Well, a new version of the official apktool was released today with support for 4.2 apk's, so I would assume it's coming soon :D
[Android Themes] Ticklefish:
Yup! Uploaded a few minutes ago! Check the OP for a link for Beta 02. A few minor improvements to the code, a few extra icons and...support for 4.2!
[Android Themes] Warrior1975:
Just stumbled on this, what a great tool!! I am a complete novice at this, so much to learn. Quick question, I have a very modest goal at this point, I just want to change the color of my Go SMS Pro widget, this is possible with your program? I assume it would be done in the framework.res? I'm running a rooted GN2, Jedi X7.2 custom ROM. Thanks for a great program!!

G●Note~2 {Jedi X5}
[Android Themes] Ryuinferno:
Lol...you should decompile the apk of the widget...not framework-res...;)
[Android Themes] Warrior1975:
Lol, no clue. Thanks, next question, where in Gods name do I find that?

I've been checking in places but no luck. I thought system/app but I don't see it there.

G●Note~2 {Jedi X5}
[Android Themes] Ryuinferno:
It is in /data/app...:)
[Android Themes] Warrior1975:
Thank you very much.!!

G●Note~2 {Jedi X5}
[Android Themes] kempex:
hai Bro, i need some help for gingerbread stock rom. i can't find style.xml ,or maybe it has another name on gingerbread?

And, i got a problem when i follow U'r tutorial in center clock session ( gingerbread version ) .

Here i attach my SystemUI.apk and my screenshot status bar.

My device is Hisense E910 Gingerbread Stock Rom.

Ow... Tingkle My Android run well on my device.

Decompile,recompile,flash zip etc.

Thank's ,i like U'r application.

SystemUi.apk

http://db.tt/0WHUVZ0Z
[Android Themes] Ryuinferno:
If you decompiled your SystemUI.apk, there wil be a values folder in res folder...styles.xml is in it...:)
[Android Themes] kempex:
I have decompiled my SystemUI.apk ,but i can't find style.xml or value folder.

Maybe You would check my SystemUI.apk :(
[Android Themes] makeoutactics:
Guys I have a error in flashing the zip file in CWM.

Installation aborted. Status 0.

Everything is okay, recompiling, decompiling..etc except the flashing part.

I'm using Samsung Galaxy Y.

Custom ROM Gingerbread 2.3.6

I've modified framework-res.apk to change the battery and signal icons.

Thanks.
[Android Themes] Ryuinferno:
Replace the update-binary in the zip with another from a zip that works with your phone...:)
[Android Themes] Ticklefish:
That should do it. But it may be worth changing the icons in your SystemUI.apk as well.
[Android Themes] Ticklefish:
I've just decompiled your apk to check. styles.xml is in your values folder. Make sure you've installed the proper resource files before decompiling.

About that gap...which method are you using? It looks like a mix of Method 1 and Method 2...
[Android Themes] kempex:
I'm so sorry, yesterday i'm just extract SystemUI not decompile, but now i have find my style.xml

Sorry for that :D

About center clock, i following method 2 for gingerbread

xdaforums.com/showpost.php?p=31787980&postcount=231
[Android Themes] Ticklefish:
Try having a look a few posts after that one. Someone posted a correction that should help you out.
[Android Themes] funiewski:
What phone/tablet are you using?:

What version of Android are you running?:

What sort of rom are you on? (I need to know about OEM roms as well. That's things like Sense, Touchwiz, etc)

What are you trying to decompile/recompile?

What resources apps have you installed?

Are the files you're using odexed or deodexed?

What mod are you trying to do?

Do your files work if you decompile, recompile and prepare them without changing anything?

Have you tried the Mini Menu and, if you did, what happened?

What problems are you having? (Give me some detail here, don't just say "It doesn't work.")

Please also copy and paste the log files for the files you're modding (use Option 1 in the theming menu)

xperiaV

4.0.4

stock

systemUI, framework-res.apk

2 above and framework.jar, SemcGenericUxpRes.apk, services.jar

odex

battery icon

no idea

no

things was going quite well untill trying to make zip file, I chose option 2 for systemui, and option 3 for framework-res, success, than option 7 create zip - error, zip file not created (no log file for that?)

i got 1 warning through decompileing, file attached

edit: now i have tried minimenu, result: bootloop
[Android Themes] Ticklefish:
I probably should make a log file for that..hmm..

Anyway, this looks like there's an issue with the destination for your zip file. Change that to c:\ and see what happens.

By the way, if you want to decompile framework-res.apk, you'll need SemcGenericUxpRes.apk to be installed as a resource as well. That's why you were getting that warning.

Although, if you are just changing battery icons, you only need to decompile SystemUI.apk. Any icons in framework-res.apk will be ignored by the phone in favour of those in SystemUI.apk.
[Android Themes] funiewski:
i have installed SemcGenericUxpRes.apk as resurce and i have made destination for zip file, but zip give me botloop when installed from recovery,can it be something with update binary? that was something about it some posts above, if yes where to get update binary for xperia?
[Android Themes] Ticklefish:
The update binary is fine. If it wasn't, the zip wouldn't install at all.

Try doing this without decompiling framework-res.apk. Just pull it and install it, then pull and decompile SystemUI.apk. To change battery icons, it's only SystemUI.apk you need to worry about since that's where Sony have put them.
[Android Themes] Teracotta:
I'm on SDK 16, Android 4.1.2

The only edit I made was to dimens.xml

imo the recompile breaks some TW specific dependencies

I edited the res of SecWallpaperChooser.apk without touching the odex file

It runs and boots just as normal with a different md5 hash

ive seen this effect before

if I uninstally secgallery, then reinstall, it dos not load into apps

even if the app is in the /system/ folder it just sits there, is not recognized by other apps as being installed

I was able to get to "SystemUI has stopped working" by pasting the /res/ from the TMA compiled app into the original app

EDIT: I don't think the apps are signed which might be why they no load...
[Android Themes] Teracotta:
success, maybe?

I able to get systemui.apk to load properly

after recompile, must move /res/ folder and resources.arsc from /out/ apk to /in/ apk

new apk is 1.8 MB, original is 2.5 MB

then flash via zip in recovery

decompile to confirm that dimens.xml is edited

looks like touchwiz is looking for a specific signature from the apk's

but

<item type="dimen" name="status_bar_icon_drawing_alpha">100.0%</item>

notification bar not transparent yet...
[Android Themes] Ticklefish:
Wow.

I am truly humbled that not only are people still visiting this ancient thread of mine, not only are people still being kind and helping each other, but my little program is STILL being used!!

It has been months since I was last here. Thank you to everybody for keeping the lights on.

Anyway.. The problem is down to the signature. System apps like the one you're modding have to have the exact same signature as the original or they won't install.

You can solve this by copying new files into the old APK, like you did. Or let TMA do it for you.

If you have a look at the second post in this thread you can see I talk about options. One of which does exactly that.

To be fair, that post seems to be mostly striked out (stricken out?) for some reason. That wasn't the case originally.

I've just tried to edit it but without any luck. Very odd.

But try to ignore that when you read the post and you should see what I'm on about.
[Android Themes] Ticklefish:
This used to be a problem in the earlier versions of TMA but I ended up fixing it. It was so tiring constantly telling people to install the tool in the root of their c:\ drive.

Interesting that the issue is turning up again. It may be to do with apktool. 2.5.0 introduced a command to load framework files from a particular location. Maybe that's causing hiccups with my code?

But, as long as it still works in the root, then it still works. And that's okay.
[Android Themes] Tulsadiver:
Great to hear from you, sir. I hope you are doing well.

I've been stymied by android 13. It apparently reads the size of the apk (md5, sha256 or whatever) and if different bootloops so I've been out of business ever since. Framework overlay apks still work and substratum. If I could figure out how to make a SystemUI overlay I might be able to get back in business but I'm just a simple SystemUI, old school modifier, lol!
[Android Themes] Raiz:
A13 got me too... IRL got the best of me so I didn't have the chance to dig, what you say about the app's weight is very interesting and bit depressing tbh. Hopefully I got some time in my hands to dig deeper.

Hi ! It's been a long time indeed, hope you're doing fine !
[Android Themes] Teracotta:
it's great tool and good thread for advice

while here, I was able to get the transparent bar follow this thread but bar is only transparent on home screen, do you know how to fix this
[Android Themes] IamTheBRAVE:
Hey guys, are you aware of this project?

GitHub - REAndroid/APKEditor: Powerful android apk editor - aapt/aapt2 independent

Powerful android apk editor - aapt/aapt2 independent - REAndroid/APKEditor

github.com

Came across it and its lib is supposed to totally replace aapt/aapt2. Maybe you can give it a try? I've been out of the loop for a while so apart from fonts overlay mods, i'm not much help here...
[Android Themes] Ticklefish:
From what I remember, overlays are pretty simple to make. OEM's used to use them all the time. Maybe they still do.

I can't remember how to make them off the top of my head but I seem to recall there's a tutorial on the Android dev's site. Whether I'm right or not is debatable - the last time I messed around with them was years and years ago.

It may be simpler just to grab one from the /overlays folder, if there's one there, and modify that.

Overlays are great for XML and PNG changes, but tricky if you're changing smali.

Hopefully Android 13 can be overcome and we can continue modding like we did before. Being able to mod my phone was the main reason why I never went over to Apple.

Well..one of the many main reasons..

Thank you! I appreciate that. This thread is the result of over 10 years worth of work, which is amazing and scary at the same time, and the regulars who haunt it are good people.

In fact, anybody who uses TMA is a good person. It's just the way the world works.

That tutorial you linked to is for Jelly Bean. Which was Android 4.1 - 4.3. Since we're now on Android 13 you might not be surprised to learn that the OS has changed a lot since then. So this tutorial is largely out of date.

Modern, stock, Android has a transparent status and navigation bar at all times. The need to make it transparent has gone.

I can't honestly remember when this happened. I want to say it was around the time that Material Design kicked in but I could be completely wrong. It was a while ago, certainly.

If your phone has an opaque status bar instead then it may be running a different version of Android to stock. In which case it'd be a case of digging through the code and working out where the bar background is coming from. This might take some time.

It used to be that the transparency of the status bar could be changed just by changing the relevant PNG. Back when TMA started I spent ages making 100 different image files, each with a slightly different level of transparency, so that users could easily customise the look of their status bar.

It's great that Google have made it transparent by default but, as with so many of their 'improvements' to the UI, it does leave us with one less thing to mod. And I just looove modding things.

Oh well.

An interesting idea. I'm not sure if that would help with getting modded APK's to be accepted back on the phone, but anything is worth trying!
[Android Themes] JimzFreebies:
@Ticklefish sir, I'm using your ticklemyandroid tool from 1st day you released it and its working flawlessly.

Can you please add Kill signature verification function & signature scheme v1, v2 & v3?

Because i used apk editor pro on my mobile and tried to decompile, Recompile & sign the apk. It installed in phone and working fine.

I tried same via ticklemyandroid (decompiled, refompiled, then signed with apk sign tool), its not installing in my phones. Giving error app not installed.
[Android Themes] Thebear j koss:
Here are the keys from APK editor just unzip and add them into TMA. They should work.
[Android Themes] Tulsadiver:
Curious, were you editing a system apk like SystemUI?? What version of android are you running?
[Android Themes] JimzFreebies:
Its actually a modded app size around 60mb in which signature verification is added. I killed signature verification using MT Manager. Size of app is same after killing signature verification.

But after editing & signing it in apk editor pro in phone, size of apk increasing to around 100mb. But its working fine.

If i decompile, Recompile same apk(after killing signature) with ticklemyandroid without doing any changes, apk size increased to around 130mb. And after signing it, its not installing in phone.

This is the issue
[Android Themes] ForestCat:
Well, this probably my last hope. The TouchWiz Mod threads are long dead.

Using tickleMyAndroid 16.5.

Windows 7 pro (also tried on Ubuntu 22)

Java 1.8.0_231

Android 6.01 from a Galaxy Note 4

Looking in the History.txt file, I don't see errors installing the two framework files.

The apk I'm trying to decompile is:

SecContacts_M_OSup_Note_Legacy_USA.apk

In History.txt, a ton of these:

W: Invalid data detected. Skipping: 4 byte(s)

and these:

S: Could not decode file, replacing by FALSE value:

Before TickleMyAndroid, I tried literally every available version of apktool.

First, I tried adding the framework-res & twframework-res apk's.

Note that some of these versions will work without errors adding framework-res only, but I'm testing with twframework-res, since it's more of a problem child:

v2.0.2 no good

v2.1.0 no good

V2.1.1 will install both files with no errors

V2.2.0 will install both files with no errors

V2.2.1 will install both files with no errors

V2.2.2 will install both files with no errors

V2.2.3 will install both files with no errors

V2.2.4 will install both files with no errors

V2.3.0 will install both files with no errors

V2.3.1 will install both files with no errors

v2.3.4 no good

v2.3.3 no good

v2.3.2 no good

2.4.1 no good

2.7.0 no good

No version will decompile SecContacts_M_OSup_Note_Legacy_USA.apk without errors, some versions more than others.

I seem to remember I'm not supposed to upload touchwiz apks here, but I could get them to anyone who wants to have a crack at this. I'm stalled at the limit of my skill/knowledge.

If anyone could shed a ray of hope on this you'll have my gratitude.

Thanks
[Android Themes] Thebear j koss:
Need to use an old apktool if I remember correctly. Need to use 1 to decompile and another to recompile. TW sucks to modify as apktool doesn't like bad Korean code. Try different apktools, 1.5.2 is stuck in my mind for some reason.
[Android Themes] ForestCat:
Yeah, did try that. Understand that it this point, I'm ONLY trying to decompile. For that, I've tried every version on the main download page, they all throw errors w/ this particular apk. Hoping there's some workaround, etc. Thanks.
[Android Themes] Thebear j koss:
Looking at your history text the APK decompiled fine. Whatever wasn't decoded is because of missing resources. You installed all necessary files into TMA, need to install all relevant apps from system and install them, frameworks, jars, system ui, etc. TouchWiz pulls resources from everywhere. Without all the resources installed, apktool has no idea what they are and skips or dummies those files. A lot of them also may be language specific which you would not need anyway. The app did decompile successfully though.
[Android Themes] Tulsadiver:
Can you upload the three files?
[Android Themes] ForestCat:
Thank you, man, these are the kinds of clues that may lead me to some success with this. I don't want to write a novel here, but I think background on what I'm trying to do will be helpful , certainly for anyone in the future with the same questions who stumbles on this in a google search. I have two identical rooted, bl unlocked SM-N910V's. One has an almost stock VZW 6.01 touchwiz ROM, the other has an almost stock TMB 6.01 touchwiz ROM. With a TMB SIM in the TMB-ROM'd phone, VoLTE and W-Fi Calling work. With the same SIM in the VZW ROM'd phone, it drops back to 2G/GSM for voice calls, and the menu items for enabling Wi-Fi calling aren't present. It does have 4G/LTE data working. There are differences in the menus relating to VoLTE and W-Fi Calling within the contacts/dialer apps between the TMB and VZW ROMs. I'm trying to mod the VZW ROM (MODestROM v11, my daily driver until VZW service went to hell in my area)) to be fully functional on the TMB network. My admittedly newbie approach to this has been to search for VoLTE-related strings that are unique to the TMB contacts/dialer menus, within decompiled priv-app apks that have names that seem related to telephone function, and transplant the apks containing those strings. OK, stop laughing, I really AM trying :-) . If I read you right, you're saying the reason I can't find a string is the same reason this apk is throwing "S: Could not decode file" errors, i.e. those menu/settings text strings exist in some other resource, perhaps a CSC/carrier-specific apk/jar/etc? Is there some way to identify and/or satisfy those dependencies, short of 'apktool if every_single_apk_in_the_phone', if that would even work. I feel like there has to be a better way than trial & error. It's frustrating because I KNOW it's not the h/w. And both of the phones have VZW modem/baseband firmware! I sure do appreciate the help, and I apologize for drifting off-topic. Thanks.
[Android Themes] ForestCat:
Here you go. Thanks!
[Android Themes] Tulsadiver:
Kind of weird. Almost like the framework files are for something else. I tried just installing SecContacts as a framework. Apktool picked up the last framework I had installed under c:/usrers as the framework to use as 1.apk and the "invalid data detected, skipping 4 bytes" errors went away....the "could not decode file errors replaced by false" errors remained.
[Android Themes] ForestCat:
One thing I need to mention: Almost every other apk in priv-app decompiles with no errors using apktool v2.1.1 through 2.3.1. Not this secContacts bugger. There is a LOT of carrier-specific stuff in there. I just want to know where the settings/menus are coming from, if not within this apk itself.