yashsingh1/xdaforums huggingface dataset:
[Android Themes] zooperaj:
Sorry for this long post. But I thought it would be helpful for helping me out. So, I have tried to give all possible details.

Device: Samsung Galaxy Grand Quattro; OS: Android Jelly Bean 4.1.2 (I have already done following with Cygwin Kitchen and Assayyed Kitchen)

1) Root, Busybox, init.d support, removed csc apps, deodexed system/apps and sys/framework, debloated 82 apps, zipaligned, signed ROM

Above information may be useful for you to help me out.

Done following with TMA (on C:\ drive) by using apktool 2.3.0

Steps followed:

1) extracted framework-res.apk and twframework-res.apk (both deodexed, from above ROM) and placed them into _in folder .....

2) Installed the frameworks .....

3) extracted SecSettings.apk (deodexed, from above ROM) and placed it into _in folder .....

4) Decompiled .....

5) from SecSettings.apk/res/values opened strings.xml .....

6) Using NotePad++ in <string name="sysscope_tampered">Custom</string> changed word "Custom" to "Modified" .....

7) Saved the file

8) Recompiled with Original Signature

9) Zipaligned

10) Opened ROM zip and replaced old SecSettings.apk with modified apk

11) Closed the zip, copied to device external sd card, flashed ............... flashing was successful

But, when I saw settings/about device/status/device status it shows "Custom" instead of "Modified"

I do not understand what went wrong! PLEASE HELP!
[Android Themes] 22728033:
View attachment history.txt
[Android Themes] Ticklefish:
Normally, if this sort of thing happens, I'd suggest pulling and decompiling your APK after you flashed it. Just to see if it flashed properly. If your change is still in the APK, then you'd have to change something else to get your desired modification.

Thank you for that. I've been going through your history and I can't see any obvious reason why the deodexing isn't working.

The trouble is that every rom and every version of Android needs to be deodexed in slightly different ways. There's no one way to deodex everything.

If you're able to share your build.prop, app folder, framework folder and priv-app folder I can try to work out what's going wrong with your rom. It could be that there is something else going on that I don't know about.
[Android Themes] zooperaj:
Thank you for reply. Probably yes. I need to change something else.

I did not face deodexing problem.

When I installed TMA for the first time, AVG detected it as "FileRepMalware". I added TMA to exceptions.

Thank You for this excellent tool. I tried many apk tools for Samsung Quattro GT-i8552. I faced problem with either recompiling or decompiling. But, TMA worked for me.

Other than the problem mentioned in my previous post, I tried to modify some other things. There was success. I could add "ROM Name", "Developed by" and "ROM Version Info" on About Device page of Settings. Trying to do some small modifications for the time being. Will try some more modifications because now I have TMA which works for me.

Thank you once again.
[Android Themes] Ticklefish:
It's my pleasure. I'm just glad you're enjoying it. :highfive:
[Android Themes] Tulsadiver:
How are you enjoying your Xperia? You have root and custom recovery?
[Android Themes] Ticklefish:
Actually...I don't, no. It's still completely stock.

Which is crazy, I admit. There is a root method available for it now but I just haven't had the time to try it out. My laptop at home doesn't work very well so I'd have to do it at my job.

And work's always very busy.

But I do still like the XA1. I probably should have waited to see what development would be like for it, as the forums are very quiet, but it's a nice phone. I've no issues with it at all.
[Android Themes] Tulsadiver:
Root is a great start and it is still new.
[Android Themes] 22728033:
https://drive.google.com/open?id=0B6ZWuvTovy0ieEdSSDZPX0gyRHc
[Android Themes] Tulsadiver:
Maybe it is just me but your app, priv-app, and framework folders appear to be empty.
[Android Themes] KpChuck:
They weren't empty when I looked:)
[Android Themes] Tulsadiver:
You are right. They are there.
[Android Themes] Ticklefish:
Thanks for that. Your folders look pretty normal, in terms of the way they're laid out.

Which is bad, because that doesn't explain why you can't boot your phone.

I'll download your files and try deodexing them on my laptop. Maybe I can get a clue from the ZIP that's made.

I have to admit though that I can't see any obvious answer right now. I suppose it's not impossible that there's something else about your rom that won't allow the deodexed phone to boot. I will have to do some research. It wouldn't be the first time that Samsung have done something annoying like this.
[Android Themes] kin201303:
Ticklefish

tma_Deodex-15-10-2017@1601.zip

in framework have arm folder i move it (I asked my friends not to remove no problem)

just i test it work on my Samsung Galaxy S8+

i see his log have XposedBridge.jar call him move it try again

i give my friend TouchWizHome_2017 like he (but it stuck at second boot logo when he flashed it.)

he have Xposed

i call he move Xposed OK

after add Xposed OK

my english is bad
[Android Themes] thereassaad:
[MENTION=5262778]kin201303[/MENTION] u can remove arm folder but u need patched kernel that has tima & rkp disabled on it then u can boot ur rom or his rom without arm folder ?
[Android Themes] kin201303:
hi:br

long time not see you ha ha

i only test the tool work or not work
[Android Themes] LiquidT:
[MENTION=4315551]Ticklefish[/MENTION]

Can anyone tell me how to remove the stock battery icon...? What I did was added 3minit battery and it's working with the exception of the stock battery icon is still showing under my 3minit battery. Any help
[Android Themes] Ticklefish:
There are many ways to do this. It all depends on what code you have that's displaying the battery.

I'd suggest looking in your status_bar.xml to start with, to see if you can find a line of XML that is responsible for that battery icon. It may take some digging but, once you find it, you can easily hide it by changing the layout_width and layout_height to 0.0dip. You can remove the icon but it's a lot of work and it's simpler just to hide it instead.
[Android Themes] LiquidT:
I got it. There was a setting in the dimen.xml I had to fix. Thank you
[Android Themes] B3311:
Total theming noob here, but willing to learn. One quick question before I start reading - all I want to do is to change the system font colour (everything) and make my own icon pack for my S8+. Is TMA

the tool for me?

TIA.
[Android Themes] Tulsadiver:
It is the tool for you but it isn't going to do all that for you. You'll have to do that yourself ?

You cannot change entire system font color as so much of it is hard coded. You can change your primary and secondary text colors but it won't get everything. TMA doesn't design icons either. You have to do the work, TMA will help you get to the necessary files, then get everything back together again.
[Android Themes] B3311:
Thanks. I reckoned on having to put the work in and am happy to do so. Got a lot of icon images and my son is the PS expert. Xml editing is the scary one, but I'll be brave...?
[Android Themes] Ticklefish:
I had a quick look at how to create icon packs when I saw your last post. I don't have much experience with making icons, apart from the ones in TMA. My artistic talents are..well..pretty much non-existent.

But it's worth having a look at this page here: [url]https://stackoverflow.com/questions/40782165/creating-a-android-icon-pack[/url]. I can't guarantee that it'll be what you're after but it looks like a good starting place.

Some 3rd-party launchers can change the icons in your homescreen and/or app drawer which may be worth looking into.

As for changing your text colour, it's possible but quite a long job. You'll have to find every single bit of code that displays text and ensure that you change the colour yourself. That's possible for your expanded status bar (where you can see all the notification text, etc) but not really for the whole phone as you'll have to edit every single app you use.

XML isn't as bad as it may seem. There's a very useful starters guide just here: https://xdaforums.com/general/xda-university/xml-101-xml-modding-easy-t2929816

It's written by a very good friend of mine and you may find it handy.
[Android Themes] Ticklefish:
It has begun..
[Android Themes] DaOldMan:
Great! Thanks for your hard work.
[Android Themes] Camlin3:
Dear [MENTION=4315551]Ticklefish[/MENTION] ,

I am trying to mod PHOENIXOS system systemui.apk to add more stuffs in toggle menu .I would prefer to use VTS .used your tool in days of gb .Can you guide me ?

Thanks
[Android Themes] Ticklefish:
Sure. There's a guide to using TMA in the first 4 posts but I'm more than happy to help if you need anything further. :highfive:
[Android Themes] bunnys7679:
Hello Ticklefish

A friend of with has TMA installed. Unfortunately he has the problem that as soon as he recompile he only gets a 0KB apk. What does he do wrong?

Greeting Bunny
[Android Themes] Ticklefish:
I've no idea, I'm afraid. I need more information.

Can they share their history.txt? That will hopefully tell me what I need to know.
[Android Themes] bunnys7679:
Recompiling "daniel.apk" With New Signature,

in work area "_WorkArea1", using "apktool_2.2.3.jar"

With Tickle My Android 14.2.0.0.

(tinyurl.com\ticklemyandroid)

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

I: Using Apktool 2.2.3

W: Could not find sources

I: Building AndroidManifest.xml...

W: Warning: AndroidManifest.xml already defines versionCode (in http://schemas.android.com/apk/res/android); using existing value in manifest.

W: Warning: AndroidManifest.xml already defines versionName (in http://schemas.android.com/apk/res/android); using existing value in manifest.

I: Building apk file...

I: Copying unknown files/dir...

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

Recompile Successful!

History.txt

22-10-2017@1237 --- "_WorkArea1\_working\daniel.apk" recompile succeeded with new signature, using "apktool_2.2.3.jar"

I: Using Apktool 2.2.3

W: Could not find sources

I: Building AndroidManifest.xml...

W: Warning: AndroidManifest.xml already defines versionCode (in http://schemas.android.com/apk/res/android); using existing value in manifest.

W: Warning: AndroidManifest.xml already defines versionName (in http://schemas.android.com/apk/res/android); using existing value in manifest.

I: Building apk file...

I: Copying unknown files/dir...
[Android Themes] Ticklefish:
Sorry, I need the whole history.txt. Not just part of it.
[Android Themes] kramer04:
Hello [MENTION=4315551]Ticklefish[/MENTION]

Using the last v14.4

Sometimes i've to reinstall Framework because of this issue

S: Please be aware this is a volatile directory and frameworks could go missing, please utilize --frame-path if the default storage directory is unavailable

Could you take a look.

I attached log error
[Android Themes] JT1510365:
why cant i recompile my lineageos nougat systemui i keep getting errors

View attachment history.txt

View attachment 4311072

never mind i was using the wrong systemui lol i feel retarded
[Android Themes] Ticklefish:
Yes, I've been getting this on the PC at work as well. The latest versions of apktool want to use a certain folder in your user area..and it looks like it can't always access it so it had to use a temp folder instead.

I have a plan to fix this in v15. It should be possible, I just need to get TMA to make apktool use a different folder.

Hmm..

Which could actually work out a better user experience. I'll have to think about this one..

In the meantime, you will have to keep reinstalling the frameworks for now.

:)
[Android Themes] Albe96:
[MENTION=4315551]Ticklefish[/MENTION] I've been enjoying and using your TMA from many years.It's the best apktool I've ever seen.But which bothers me is-> I decompiled a services.jar or systemui.apk of new os(7.0+) from samsung(for me,I'm using samsung).And when I wanted to delete the decompiled folder,it didn't deleted all files.like in services.jar some folders called "am", "pm" still stays there.It says a a there's a smali file whose name is too big that can't be deleted.I also tried renaming it but no luck.

Hope you look into the case..
[Android Themes] Ticklefish:
"Many years"? Wow..I'm feeling old now... :D

Those files can't be deleted by Windows as the filename is too long for the OS to handle.

But the command window can handle them. You can use the del command or you can get TMA to wipe all the folders in the WorkArea.
[Android Themes] Albe96:
Ah,thanks for the reply but it isn't deleting from the command menu either! it says the same..
[Android Themes] Ticklefish:
How are you doing it? Are you navigating to the folder with the file in and typing "del whateverthefileiscalled.smali"?
[Android Themes] Albe96:
LOL.I'm not dumb! I saw there's a option in menu to delelte whole files from the work folder.So I choosed that.But boom! nothing happens.. same error
[Android Themes] Albe96:
Delete
[Android Themes] a.raul:
To remove folders with smalis with very long names in Windows, I use unlocker 1.9.2

Regards
[Android Themes] Albe96:
Thanks for the reply! can I get the link for that tool or whatever it is!?
[Android Themes] a.raul:
Search on Google

https://www.google.es/search?q=unlo...9j69i57j0l4.2458j0j8&sourceid=chrome&ie=UTF-8
[Android Themes] Albe96:
Thanks for giving time on me! ?
[Android Themes] Rajeev:
Me too have the same issue my friend. Anyway that Unlocker app helps me ;)
[Android Themes] Albe96:
Yeah
[Android Themes] Lasacv:
Wow!!

I like it!
[Android Themes] Ticklefish:
Odd that these files can't be deleted in the command window. I wonder if it's something to do with the version of Windows..

Anyway, thanks for your advice. Well worth knowing! :highfive:

Thanks! :cool:
[Android Themes] Albe96:
Anyway if you look into the code of that application and try to bring the power to your TMA would be great! ☺
[Android Themes] Rajeev:
Hi.. Its fixed. I tried with Windows 7 Ultimate and got delete error. But i tried with Windows Widows 10 Pro 1511 version and boom. Delete works.. :D
[Android Themes] Albe96:
I'm using 8.1 Enterprice,No luck..I can't deleted my os now I've so mamy files..
[Android Themes] Rajeev:
Hmm... i can understand. There is no good alternative for decompile tool. This tool is so much good.. Very thanks to [MENTION=4315551]Ticklefish[/MENTION]

U can use that unlock app anyway...
[Android Themes] Albe96:
Yeah.The TMA is the best in my opinion.You can do your work in 6 folders ?
[Android Themes] Tulsadiver:
And I use every one of them ?
[Android Themes] Albe96:
Me too
[Android Themes] zooperaj:
problem installing frameworks

Basic info:

OS: Windows 10 pro, version 1511

Mobile: Samsung Quattro GT-i8552 with Jelly Bean 4.1.2

Android SDK, Java SDK: installed

Java runtime: 1.8 update 151

Problem: When I try to install frameworks (framework-res.apk and twframework-res.apk) using apktool 2.3.0 I am getting following message:

31-10-2017@1840 --- "_WorkArea1\framework-res.apk" installed to PC

S: WARNING: Could not write to (C:\Users\Rajesh\AppData\Local\apktool\framework), using C:\Users\Rajesh\AppData\Local\Temp\ instead...

S: Please be aware this is a volatile directory and frameworks could go missing, please utilize --frame-path if the default storage directory is unavailable

I: Framework installed to: C:\Users\Rajesh\AppData\Local\Temp\1.apk

31-10-2017@1840 --- "_WorkArea1\twframework-res.apk" installed to PC

S: WARNING: Could not write to (C:\Users\Rajesh\AppData\Local\apktool\framework), using C:\Users\Rajesh\AppData\Local\Temp\ instead...

S: Please be aware this is a volatile directory and frameworks could go missing, please utilize --frame-path if the default storage directory is unavailable

I: Framework installed to: C:\Users\Rajesh\AppData\Local\Temp\2.apk

But when I use apktool 1.5.2, both the frameworks get installed correctly in C:\Users\Rajesh\AppData\Local\apktool\framework

Please help in getting frameworks installed in "C:\Users\Rajesh\AppData\Local\apktool\framework" by using apktool 2.3.0.
[Android Themes] Veid71:
whenever i try to pull any files from my phone it wont do it but if i do the deodex thing it pulls the build.prop and thats about it but it also allows me into the shell window so why can i pull some things but not the majority of others? i have adb enabled and gave it permission to my computer
[Android Themes] Ticklefish:
This has been fixed in v15, which I'm hoping to release soon. For now though, your frameworks are being installed, just in a temporary directory. You may have to reinstall them next time you're using your computer.

I don't know, sorry. Can you share your history.txt please? That should show me the actual error message which will give me a better idea what's happening.
[Android Themes] Veid71:
thank you for your help it should be attached
[Android Themes] zooperaj:
Thank you for your prompt reply. Will certainly wait for v15. In fact, I did some modifications also. But today after resetting TMA when I reinstalled frameworks, I saw those messages. Most probably, earlier I could not notice those; especially the directory / folder where frameworks were being installed.

Edit: just downloaded apktool v2.2.3 & 2.2.4. Tried to install frameworks with both versions. They got installed correctly in "C:\Users\Rajesh\AppData\Local\apktool\framework"

In my previous message, I did not mean to say that TMA is faulty. Sorry, if any such message was conveyed. Actually, I would have never said that because apktool 1.5.2 installed the frameworks correctly.

In fact, I have written earlier also that TMA is the only tool that worked for me flawlessly.

But I really wonder if lower versions of apktool could install the frameworks in correct folder, why would the highest version fail to do so.

When I realised that I was quite upset. I checked windows permissions also, reinstalled Java JRE etc. But all that did not work and finally posted a message here.

Yet to test whether recompiling and decompiling works properly with apktool 2.2.3 and / or 2.2.4.

Edit again: decompiling, recompiling etc worked well. Flashed generated zip file. No problem.:good:
[Android Themes] Ticklefish:
Thanks. The error given when you try to pull a file is this:

This adbd's
[Android Themes] Tulsadiver:
New smali and baksmali are out.
[Android Themes] Ticklefish:
Rrrright, let me try this again. It seems XDA Labs cut my original post short for some reason..

The error message is saying:

This adbd's
[Android Themes] Veid71:
i am still lost lol sorry im new to recompiling and decompiling stuff and never really used adb other than for things like fastboot

edit: i see it says this "This adb server's $ADB_VENDOR_KEYS is not set" so how can i set the vendor keys?
[Android Themes] Ticklefish:
Grr...

Try this link here for a possible fix:
[url]https://stackoverflow.com/questions/32132434/set-adb-vendor-keys/42052776#42052776[/url]

This is basically adb getting confused.

Maybe this post will work if I don't quote so much text..

Apktool 1.5.2 and the latest version store framework files in different places. Windows won't always let the latest versions of Apktool use those folders so puts the files in a temporary folder instead. This won't stop decompiling or recompiling but just means you'll occasionally have to install the frameworks again. Annoying but not a serious issue.

V15 keeps installed frameworks in the WorkArea which stops this from happening.

Thanks! I'll take a look now and see what the difference is. :highfive:
[Android Themes] Veid71:
i apreciate the help :D but now it seems like xda got confused and posted the link in HTML instead of the regular way xD
[Android Themes] Ticklefish:
Looks like this is a bug fix release, rather than adding any new functionality. I'll include it anyway, it's always handy to have the latest files.

Deodexing Oreo is still being worked on, it would seem. I'll have to keep an eye on that and include it in a future release.
[Android Themes] Ticklefish:
Just copy and paste the link without the url tags. :)
[Android Themes] Veid71:
yeah i tried that it doesn't recognize it as a real web address :/ sorry about all the work lol i got it i had to right click and open it in a new window and it posted the whole address there and i took out the url tags but the suggestion to clear out the usb debugging permission isnt working for some reason
[Android Themes] Tulsadiver:
I can deodex 8.0 Oreo, but not 8.1
[Android Themes] Veid71:
sorry to double post but it seems like i was able to pull my framework from my phone but only once for some reason, ive uploaded the history text and the framework text.
[Android Themes] Ticklefish:
31-10-2017@2042 --- "/system/priv-app/SystemUI/SystemUI.apk" pull failed
adb: error: connect failed: device offline

There's definitely a problem connecting your phone to your PC. If you've tried all the options in that link I shared previously then I'm not really sure what to suggest. You've given permission for the PC to access your phone via adb, right? It might be worth going into your Settings app and removing that permission, just to make the PC ask it again.

If you still can't connect, you can copy over the files manually. Just copy the files you need into the "_in" folder.
[Android Themes] Veid71:
yeah ive tried them except for this one, this one im not sure whether to do it on my pc or phone or what lol but either way none of the commands work on either of them also do you know how i can grab an apk from an installed ap on my phone since when i try to do it and put it in the in folder it says there isnt one there also im now getting an error when trying to move files from my phone to my computer that says a device attached to the system is not functioning

However I've managed to connect device!

There is tutor, step by step.

Remove existing adb keys on PC:

$ rm -v .android/adbkey*

.android/adbkey

.android/adbkey.pub

Remove existing authorized adb keys on device, path is /data/misc/adb/adb_keys

Now create new adb keypair

➜ ~ adb keygen .android/adbkey

adb I 47453 711886 adb_auth_host.cpp:220] generate_key '.android/adbkey'

adb I 47453 711886 adb_auth_host.cpp:173] Writing public key to '.android/adbkey.pub'

Manually copy from PC .android/adbkey.pub (pubkic key) to Device on path /data/misc/adb/adb_keys

Reboot device and check adb devices :

➜ ~ adb devices

List of devices attached

aeef5e4e device

Permissions of /data/misc/adb/adb_keys are (766/-rwxrw-rw-) on my device
[Android Themes] mikky986:
Device - Galaxy Note 5

OS - Microsoft Windows [Version 10.0.14393

Java version - 1.8.0_131

I tried this tool first time to modify colors.xml from framework-res.apk. Have followed below steps to decompile & compile the apk.

1. Pulled the framework-res.apk

2. Decompiled the apk

3. Made changes in colors.xml file

4. Recompiled the apk with original signature

5. Choose option "Add 'system/framework' file to project"

6. Then created standard zip file

I flashed the zip file but when the phone reboots the home screen does not display status bar and notification panel.
[Android Themes] Ticklefish:
Installed apps are normally stored in your data partition, possibly in data/data. Have a look through there and see what you can find.

You need to pull and install the Samsung framework as well, before you decompile framework-res.apk. This used to be "twframework-res.apk" but it's changed to "samsung-framework-res.apk" in more recent roms.
[Android Themes] Thebear j koss:
Using 7 zip or winrar, open new apk and pull Resources.arc out of it and put it in the original apk. Put that original apk with the new Resources.arc in it into the zip and flash. Also check to make sure framework is being flashed into correct place and the file is named correctly.
[Android Themes] Ticklefish:
That's pretty much what recompiling with the original signature does. TMA makes a copy of the original APK and puts the modded files into it. That's how it keeps the signature the same.
[Android Themes] ANDROIDXFOREVER:
i use advanced apk tool if you like , dont i ave this problem