yashsingh1/xdaforums huggingface dataset:
[Android Themes] edzamber:
[MENTION=4315551]Ticklefish[/MENTION],

I think there is an inversion for recompil between option 2 and option 4 (7.0+).

I have mod my SystemUI (6.0.1 Samsung base) with option 2 and at the end of compilation, there is a lot of files witch are copy (ressources.arsc, qmg...). It result that it break something on my phone into data/system/users/0/runtime-permissions.xml. Then if i flash a vrtheme for change some png into my systemUI, statusbar disappeare, SystemUI is broken.

If i recompil with option 4 (7.0+), no files are copyed at the end of compilation, no problem, everything working, even if i flash my vrtheme.
[Android Themes] Ticklefish:
This is why your APK won't recompile:

W: res\drawable-v19\stat_sys_signal_0.xml:0: error: Resource entry stat_sys_signal_0 is already defined.
W: res\drawable-v19\stat_sys_signal_0.png:0: Originally defined here.

You have a lot of these sort of errors in the recompile log. This is because your APK uses XML files to draw the signal icons (these are known as 'Drawable Vectors') and you've used TMA to add a load of PNG files with the same filename. Apktool doesn't like it when two or more files have the same filename in the same folder and that's why the recompile fails.

All you need to do is go into your "drawable-v19" and "drawable-v21" folders and delete all the "stat_sys_signal_*.xml" files that you have a matching PNG file for.

Option 2 creates a copy of the original APK and then copies the res folder into it, along with the manifest and the classes.dex. This is to keep the signature the same.

With Option 4, you can't keep the signature the same as Nougat won't accept it. So TMA deletes the SEC-INF folder (if it exists) in the new APK and signs it with a new signature.

It sounds like some files in your original APK aren't being put into the recompiled one. This sadly has happened before and was discussed here: http://xdaforums.com/showpost.php?p=69671411&postcount=5854

I've reported this bug to apktool's developer here: https://github.com/iBotPeaches/Apktool/issues/1366

Have a look at the number of files in your original res folder and the recompiled one. If there's a difference that's probably what's causing the problem.
[Android Themes] nujackk:
Ok, I'll try it with just the 3minit files. Only thing I'm adding there is 3 smali files. Any chance I could get copy of older version of TMA to test. Can't find it anywhere
[Android Themes] edzamber:
Thanks for theses explanations !

Yes its that, recompiled files with option 2 are less than with option 4.

Anyway it working with option 4 so maybe my SystemUI needed to use N recompil instead of normal one [emoji4]
[Android Themes] Ticklefish:
I tried recompiling it with the 3minit mod and it worked without any trouble at all. It's up to you whether you put a new signal icon on or not. Yes you have to delete some files but there's only a few to deal with.

I can link to the previous version if you want, just let me know if you have any recompiling trouble. The previous versions will all do the same thing though...

It's more that Samsung need to stop messing around and making weird APK files..

Can you share your files please? I'll add them to my bug report on the apktool github and it should help get this fixed. :highfive:
[Android Themes] edzamber:
Sure, i send you in PM [emoji4]

Edit : PM sended [emoji6]
[Android Themes] nujackk:
I have no problem deleting files, its just that 3minit is the priority for me at the moment. And i had same issue with just 3minit mod.

izarcc crash and failure. Now i should mention I am attempting to recompile with original signature. As i am under the assumption systemui with different signature would fc continuously or something like that.

It will recompile with new signature for me no problem. But although i have added 3 files it comes out slightly smaller then original. 53.3mb orig and 52.9 on new sig apk.

I have not dared test it yet.
[Android Themes] Ticklefish:
Thank you! :)

I was able to recompile with original signature without any problem. Izarcc didn't cause any trouble. Odd. Are you able to share a screenshot of the error at all?

It's not unusual for the recompiled APK to be smaller than the original one. The smali files aren't that big. It's just the way it's compressed.

You can test the new file. Just, as always, make sure you have a backup in case it doesn't work. I generally always have a ZIP file with a stock SystemUI.apk on my SDCArd just to play it safe.
[Android Themes] nujackk:
had to do 2 shots to get details but here ya go.
[Android Themes] nujackk:
Think I will try it on my windows 7 machine later today see what happens.

Update: worked fine on win 7 machine,:victory: so guess problem with my laptop. Think i should check the memory on there. maybe bad stick or something.

Just waiting on answer from Gharrington about 3minit before I test it.

Thank you for all your help. And this great tool. Get to try stuff I had to ask others for.
[Android Themes] MaFiBoSS:
Ok, thanks again for your support in trying to explain this "bug" :highfive:

and a lot of patient to Touchwiz of Sam . :eek:
[Android Themes] Ticklefish:
You have to be patient with Samsung. They do some amazing phones but their roms are horrible..
[Android Themes] Ticklefish:
TMA NEEDS YOUR HELP!

​

Hiya folks. With the holiday season fast approaching I'm trying to distract myself from the financial ruin I'm facing from buying all these presents...by working on the next version of Tickle My Android!

And I could do with your help. If you're feeling kind, could you guys please share your "build.prop" files?

I'm mainly looking for files from devices with an arm64, x86 or similar processor.

Thanks in advance! :good:
[Android Themes] gvmiguez:
Tomorrow I will send you two build.prop of my S7 Edge, one from Marshmallow and another from Nougat Beta. Today my wife dont let me touch the pc [emoji28] [emoji28]
[Android Themes] Ticklefish:
Ha, that's what wives are for..

I got quite lucky tonight. Mine actually let me touch the remote control for the TV.

It was while I was passing it to her but still...lol

Thanks in advance and thanks to everybody who's already shared. You're all good people!
[Android Themes] ndrancs:
Here my build prop.

build.prop from Asus ZenFone 2 laser ze601kl arm64 marshmallow 6.0.1
[Android Themes] gvmiguez:
Here I leave you mine
[Android Themes] Hamidreza2010:
Hey [MENTION=4315551]Ticklefish[/MENTION] this is my build.prop.for sony xperia z5 dual

thanks for your great work :good:
[Android Themes] michi24hl:
Here is mine, Xperia Z3 MM http://cloud.tapatalk.com/s/583c1b9144fbf/build.prop.zip

Gesendet von meinem D6603 mit Tapatalk
[Android Themes] Ticklefish:
Thanks for your generosity everybody! It's very kind and really helps a lot. :highfive:
[Android Themes] Hamidreza2010:
Your welcome bro

here you are.2 sony device. xperia sp and xperia z

if i could , i,ll give you xperia m4 aqua build.prop later
[Android Themes] steha:
Hi iv been using TMA for about 2 years now and not had any problems until now, the problem i have is not with TMA its self but hope someone can help. I have a new pc which has windows 10 installed, if i extract TMA i keep getting this stupid windows defender thing coming up and it automaticaly deletes TMA. I tried turning it off but after 15 mins or so it turns itself back on and then deletes TMA again. Is TMA not compatible with windows 10.

Thanks.
[Android Themes] gvmiguez:
You have to add TMA to Defender exceptions, on its settings
[Android Themes] nguyentankiet:
You just install other antivirus app and add TMA to white list. Then windows defender will auto disable
[Android Themes] steha:
Thanks ill give it a try later.
[Android Themes] Ticklefish:
​

The days are getting shorter, the nights are getting colder and the adverts on TV are getting more insistent...something tells me that Christmas is nearly here.

I'm quickly running out of time to finish the next version of TMA before the New Year. Work is getting busier and my free time seems to be spent wrapping presents and decorating the house. (Not to mention the fact that I've been busy working on my scrolling navbar...http://xdaforums.com/crossdevice-dev/sony-themes-apps/mod-scrolling-navigation-bar-t3511437)

So I don't think I'll have it ready this month. Sorry about that everyone. But you know me...I'm always tweaking code when I can. V14.3 will be out as soon as it can be!

I want to take this opportunity to thank all of you wonderful people who've downloaded Tickle My Android over the past few years and especially those who've enjoyed it. The greatest present I could ever have is knowing that my little program is making a difference.

Whatever you're doing this festive period, whether you're celebrating Xmas or not, I hope you all have a great time.

Merry Christmas (or whatever) folks!!
[Android Themes] gvmiguez:
Thanks Master, I wish you a Merry Christmas too and dont worry about new versions, this time is to be with yours and enjoy [emoji6]
[Android Themes] MysticEnforcer:
hi,

can someone help me?

i try to deodex my sony xperia xz rom &

tma says it can't find odex.app.sqsh / odex.priv-app.sqsh / odex.framework.sqsh.

where can i find these files?

i've searched in /system, nothing.

i also searched in the .ftf and found nothing.

where are these 3 files?
[Android Themes] Klaus N.:
I've read in another thread that there are no more odex.app.sqsh / odex.priv-app.sqsh / odex.framework.sqsh files since the Xperia Z5. So what you can do to deodex your rom is using SVADeodexerForArtx64. Btw, you can follow that guide; I can confirm, it also works with the Xperia XZ ;)

[MENTION=4315551]Ticklefish[/MENTION]

Merry Christmas also to you and your family - and keep up your good work :good:
[Android Themes] MysticEnforcer:
in some z ... firmware were these files still in it,

only in which and for which device :confused:

i have clearly too many xperia at home :D :p
[Android Themes] Ticklefish:
Sony did introduce the SQSH files...then stopped using them again. Which was very annoying for somebody like me who's trying to keep up with all the different types of deodexed roms available!

I'm working on a new version of the code right now (literally right now - I have Notepad++ open on the other side of the screen) and this should work a little bit better. If it survives testing, I'll release it in the next few days. Tomorrow, maybe..
[Android Themes] MysticEnforcer:
i wait for the new version of tma :D

i use tma a long time and i don't want to use an other tool ;)
[Android Themes] Ticklefish:
Give this a try: http://www.mediafire.com/file/3r6erea3h4eec37/TickleMyAndroid_-_v14.3.0.exe

I've rewritten large chunks of the deodexing code. Now it reads your build.prop and does what it needs to automatically. In theory.

Download it, try it out (don't forget to provide the build.prop from your phone if you're not using TMA to pull the files for you) and let me know how it goes.

If all goes well, I'll release this officially. Just in time for Xmas! :cool:
[Android Themes] MysticEnforcer:
when i'm at home, i'll test it.

i always use the pull option of tma, so i can't forget something ;)
[Android Themes] MysticEnforcer:
tried it & what is now to do?

folders were created, but nothing was pulled

*edit*

i try it later on my laptop with my xz ;)
[Android Themes] MysticEnforcer:
Pulled needed files,

type 2 - Deodex Rom &

Error! Files Not Found In Folder:

"_Workarea1\_deodex"
[Android Themes] Ticklefish:
Is your build.prop in the folder?
[Android Themes] MysticEnforcer:
i look in a few minutes, i be besieged by my cats

*edit*

build.prop wasn't in _deodex folder :o

i have to wait until the kitten sleeps.

she scratches me, jumps on my back and

she runs over the keyboard of the laptop.

i think she's a terrorist :D
[Android Themes] Ticklefish:
All cats are...

I guess build.prop isn't pulling then for some reason. Try copying it over manually.
[Android Themes] MysticEnforcer:
after i copied build.prop to _deodex,

it works.

i looked into created zip and there was no meta-inf and all .odex files are also there.

after flashing the odex files were still there
[Android Themes] MysticEnforcer:
sure
[Android Themes] Ticklefish:
Thanks, that's very helpful. According to this the program can't find "framework/arm64/boot.oat" in the files it pulled, but it did pull it.

Can you see if you have "_deodex/framework/arm64/boot.oat" or if it's "_deodex/system/framework/arm64/boot.oat" please?

Since build.prop didn't pull, and the pulling creates a massive log, maybe I should consider removing the pull function altogether..
[Android Themes] MysticEnforcer:
i have C:\TickleMyAndroid\_WorkArea1\_deodex\framework\framework\arm64\boot.oat ;)

don't remove the pull option & the massive history, not so bad
[Android Themes] Ticklefish:
Framework\framework? Hmm, looks like I need to sort out the syntax of the adb command. There should only be one framework in the address..

For now, can you try just copying over the framework, app and priv-app folders as well as the build.prop file to the _deodex folder? That should be enough for the tool to work.
[Android Themes] MysticEnforcer:
i have all needed files from the ftf copied, pushed into the _deodex folder & now i have to wait :D
[Android Themes] Ticklefish:
Yeah, it's not fast. I've tried a few different options for the actual deodexing and the only one that reliably works isn't as fast as some others. I've got about 540 odexed files in my stock rom and it takes around 90 minutes to process them all. A good time to catch up on my reading..lol
[Android Themes] MysticEnforcer:
i have just looked into the _deodex folder & as far as i could see,

no .odex files were there.

Now i'm still waiting for the zip file to flash this :D
[Android Themes] MysticEnforcer:
when i extract needed files form ftf, pushed it into _deodex,

start deodex rom in tma, it creates a zip file with meta-inf without .odex files.

i flashed these zip and now it seems to work perfect :good:
[Android Themes] Ticklefish:
So you now have a deodexed rom? Excellent news!

Now I just need to sort out that adb issue and this should be ready for release!
[Android Themes] MysticEnforcer:
now i got some fc,

did a dirty flash.

now i did factory reset & try again :D
[Android Themes] Ticklefish:
What fc'd?
[Android Themes] MysticEnforcer:
till now these files:

semcalbum,

semcmusic,

swiftkey keyboard,

google maps,

*edit*

google play services,

google app,

xperia tipps,

google drive,

google docs,

playstation app,

video & tv sideview
[Android Themes] jack.mario:
great job

great job
[Android Themes] MysticEnforcer:
now i translate tma into german :D :laugh:
[Android Themes] starbucks2010:
Hello,

Did anyone got this error of recompilation and got it solved?

Recompiling "facebook_v105_black_1.apk" With New Signature,

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

With Tickle My Android 14.2.0.0.

(tinyurl.com\ticklemyandroid)

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

I: Using Apktool 2.2.1

I: Smaling smali folder into classes.dex...

I: Smaling smali_assets folder into assets.dex...

I: Smaling smali_classes10 folder into classes10.dex...

I: Smaling smali_classes11 folder into classes11.dex...

I: Smaling smali_classes12 folder into classes12.dex...

I: Smaling smali_classes2 folder into classes2.dex...

I: Smaling smali_classes3 folder into classes3.dex...

I: Smaling smali_classes4 folder into classes4.dex...

I: Smaling smali_classes5 folder into classes5.dex...

I: Smaling smali_classes6 folder into classes6.dex...

I: Smaling smali_classes7 folder into classes7.dex...

I: Smaling smali_classes8 folder into classes8.dex...

I: Smaling smali_classes9 folder into classes9.dex...

I: Building resources...

W: C:\TickleMyAndroid\_WorkArea1\_working\facebook_v105_black_1.apk\res\values\plurals.xml:629: error: Multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute?

W:

W: C:\TickleMyAndroid\_WorkArea1\_working\facebook_v105_black_1.apk\res\values\plurals.xml:629: error: Found tag </item> where </plurals> is expected

W:

Thank you.
[Android Themes] tdunham:
Wow, I haven't seen the plurals error in a long time.

Post line 629 of your plurals.xml. I think its an apktool issue and all you have to do is change the line to conform. See this post:

http://xdaforums.com/showthread.php?t=1601511

and pay attention to this part on that link:

go to res/values plurals.xml

go to line 79

change this

%d of %d

to this

%1$d of %2$d
[Android Themes] Ticklefish:
That's not too bad. At least most of those can be installed from Google Play. And Google Play can be installed by flashing some Gapps.

Unfortunately deodexing isn't a perfect science. I'm just glad the process worked!

That'd be very kind of you. :)
[Android Themes] starbucks2010:
Thanks TD for your reply. I overcome that error by changing %d to %3$,d into line 629. I hope that it will not cause any problems somewhere else.

<plurals name="n_people_like_this_page">

<item quantity="other">%1$s, %2$s and %3$,d other friends like this page.</item>

<item quantity="one">%1$s, %2$s and 1 other friend like this page.</item>

</plurals>

First line is 628.

Best regards.
[Android Themes] Ticklefish:
I've changed the adb code a little. Do you mind giving this a try? https://www.mediafire.com/?3r6erea3h4eec37

It should now pull all the right files and put them into the right places..
[Android Themes] MysticEnforcer:
Gimme some time, i have to reflash an originale firmware
[Android Themes] MysticEnforcer:
build.prop is in _deodex folder, great :good:

but i saw there are again 2 folders for app/priv-app

C:\TickleMyAndroid\_WorkArea1\_deodex\app\app
C:\TickleMyAndroid\_WorkArea1\_deodex\priv-app\priv-app

& framework folder is empty.

i've seen that in pullframework.bat:

tool_files\adb -d pull system/framework/ _%SubActiveWorkArea%\[COLOR="Red"][B]_deodex[/B][/COLOR]>> user_files\LOGS\history.txt

but is that not right?

tool_files\adb -d pull system/framework/ _%SubActiveWorkArea%\[B][COLOR="Orange"]_deodex\framework[/COLOR][/B]>> user_files\LOGS\history.txt

---------- Post added at 07:05 PM ---------- Previous post was at 06:47 PM ----------

if i change line 12 in pullframework.bat to _%SubActiveWorkArea%\_deodex\framework>>,

the framework folder was pulled again
[Android Themes] alphamale:
Having trouble decompiling system ui resurection remix 7.1.1 nexus 6. Trying to mod for 3 minit battery, getting errors using tma 13.2 apk tool 2.2.1. have done before without issues
[Android Themes] Ticklefish:
It was pulled again? So you had _deodex\framework\etc or did you get _deodex\framework\framework?

This is saying it can't open the ZIP file. Can you open the APK with 7zip or similar?
[Android Themes] MysticEnforcer:
With this line in pullframework.bat

tool_files\adb -d pull system/framework/ _%SubActiveWorkArea%\_deodex>> user_files\LOGS\history.txt

framework wasn't pulled.

tma creates framework folder, but there is nothing inside.

when i change the line into

tool_files\adb -d pull system/framework/ _%SubActiveWorkArea%\_deodex\framework>> user_files\LOGS\history.txt

tma creates framework folder & in this folder is a second folder named framework & the needed files.
[Android Themes] alphamale:
i get and unexpected end of data message, but the apk does open
[Android Themes] MysticEnforcer:
this apk is damaged,

the meta-inf is missing &

AndroidManifest.xml is empty/damaged &

a damaged header ;)
[Android Themes] kevintm78:
You may already know this but I thought I would bring it up anyways since it's kind of along these same lines. When making a flashable zip that has framework files added it makes a folder for the .jars so it ends up being /system/framework/services/services.jar. Is this just a Samsung thing, do other phones have folders inside the framework folder? It still creates it right by using the 4.4 option instead of the 5.0+, but just an fyi. Anyways, I use this program all the time (and while I'm writing this), thank you and I'm looking forward to projects to come.
[Android Themes] MysticEnforcer:
have you taken the right framework?
[Android Themes] alphamale:
Yes I installed the framework res and tried to decompile system ui. Tried multiple times
[Android Themes] Ticklefish:
Odd but I can work with that. Thanks!

I think that might be a Samsung thing. It's common for APK files to be in their own folder since KK. But not JAR files. Samsung do have a habit for doing their own things though.

Can you share your files please? I can update the code to allow for this.

And thanks for your kind words. It's always appreciated. :)

It looks like you've got a bad APK, I'm afraid. I suggest contacting the dev and asking them.
[Android Themes] MysticEnforcer:
i don't know how i can explain it better.

in your last pullframework.bat was something missing and the framework folder was not pulled.

that is your latest pull command for the framework folder:

[b]tool_files\adb -d pull system/framework/ _%SubActiveWorkArea%\[color=red]_deodex[/color]>>[/b] user_files\LOGS\history.txt

behind _deodex is framework missing,

without the word framework behind _deodex nothing is pulled from /system/framework/

i can't explain it better, sry
[Android Themes] Ticklefish:
I'll just go with tool_files\adb -d pull system/framework/ _%SubActiveWorkArea%\_deodex\framework>> user_files\LOGS\history.txt and have the tool move the files from _deodex\framework\framework to _deodex\framework.

It'll probably be the simplest solution.
[Android Themes] MysticEnforcer:
that sounds good
[Android Themes] gvmiguez:
On Samsung 6.0.1 and 7.0 Beta roms on S7 Edge there isnt folders on framework for each jar, at least I have never seen it
[Android Themes] Ticklefish:
Wait..do you mean that TMA does that?
[Android Themes] kevintm78:
Yeah, when making the standard zips. The option for 5.0 puts the extra file in framework.
[Android Themes] kevintm78:
Here's some examples. I wasn't sure if there's a reason it's like that or you didn't know.
[Android Themes] Ticklefish:
Thanks, that should be pretty simple to fix. Are you able to share your framework, app and priv-app folders at all?

I know it's a lot of files but it really would help a lot.
[Android Themes] kevintm78:
Yeah, sure thing.
[Android Themes] Ticklefish:
Here's the next beta for v14.3. I've tried with files from a few different Lollipop roms and the ZIP definitely puts everything in the right place.

Deodexing Lollipop seems to be a difficult process though. Every rom I tried had files that couldn't be deodexed. Some of them can just be deleted from the folders and installed from Google Play later so they weren't a problem. But some were a bit more crucial to the operation of the phone so would have to stay odexed to avoid a bootloop..

This is down to oat2dex.jar more than TMA so hopefully any newer updates will improve on that.

Here's the link: https://www.mediafire.com/?3r6erea3h4eec37

I've also changed the code that pulls the relevant files. I'm not 100% sure it will work (I can't install adb drivers on this PC) so let me know what happens if you use it!
[Android Themes] kevintm78:
Sorry I think I confused you a bit with my first post. I'm not sure if we're talking about the same thing or not. Lol

I think your discussing the flashable zip that gets made when deodexing a rom? Where as the zip options I'm speaking about are in the theming section. I'm not at home right now to look at it but under the theming options there's options to make a standard or advanced zip. When I want to add a framework file to that zip, there is an option for "framework" and then an option for "framework (5.0+)". If I choose the "5.0+" option then the extra folder gets created. This really isn't a big thing as the other option (4?) creates it right. I just thought that unless other firmwares have that extra folder that you could remove the 5.0+ option, which I think is number 5 in the zip creation menu.
[Android Themes] MysticEnforcer:
[MENTION=4315551]Ticklefish[/MENTION],

this is from the history.txt of the last tma version

16-12-2016@2034 --- Pulling Files From "system/framework/" To "_WorkArea1\_deodex\framework\"

pull: building file list...
adb: error: failed to create directory '_WorkArea1\_deodex\framework\': File exists

folder deodex was empty