FORUMS
Remove All Ads from XDA
Post Reply Subscribe to Thread Email Thread
3rd June 2015, 12:05 PM |#111  
Spannaa's Avatar
Recognized Contributor / Themer
Flag Cardiff
Thanks Meter: 14,385
 
Donate to Me
More
Quote:
Originally Posted by aureljared

I don't think so. I saw this line in your script:

Code:
dc_file=/data/dalvik-cache/system@app@$f@classes.dex
Correct me if I'm wrong, but I'm guessing you're checking only the existence of the already optimized dexfile, not the existence of a new dexfile in the theme.
Like what I did with mine:
Code:
checkdex() {
	if [ -e ./classes.dex ]; then
		if [ -e "/data/dalvik-cache/system@$1@$2@classes.dex" ]; then
			rm -f "/data/dalvik-cache/system@$1@$2@classes.dex"
		else
			rm -f "/cache/dalvik-cache/system@$1@$2@classes.dex"
		fi
	fi
}
# Refresh bytecode if necessary
cd /data/tmp/vrtheme/system/app/$f
checkdex "app" "$f"
cd ../

That's because I forgot to wrap the dalvik classes.dex file check inside an if included classes.dex check
Code:
if [ -f classes.dex ]; then

fi
Quote:
Originally Posted by aureljared

But it's okay if you don't want to test.

I've tested eviltheme-2.0.4.zip with a theme for my S2 on 4.1.2 and it fails on the preload partition theming. There's also no backup for the themed preload apks.

I've attached the recovery log.
Attached Files
File Type: log recovery.log - [Click for QR Code] (314.7 KB, 4 views)
The Following User Says Thank You to Spannaa For This Useful Post: [ View ] Gift Spannaa Ad-Free
 
 
3rd June 2015, 12:10 PM |#112  
anandisrocking007's Avatar
Senior Member
Flag Kolkata
Thanks Meter: 102
 
More
Quote:
Originally Posted by Spannaa

You mean my version doesn't work either?

What device and rom did you try it on?

Pm me the zip you flashed & your recovery log and I'll take a look.



Sent via Bacon...

Sorry i got confused between the you and the eviltheme maker and posed to you the vrtheme works super don't worry about that
4th June 2015, 05:55 AM |#113  
aureljared's Avatar
OP Senior Member
Flag Quezon City
Thanks Meter: 556
 
Donate to Me
More
Quote:
Originally Posted by Spannaa

That's because I forgot to wrap the dalvik classes.dex file check inside an if included classes.dex check

Code:
if [ -f classes.dex ]; then

fi

I've tested eviltheme-2.0.4.zip with a theme for my S2 on 4.1.2 and it fails on the preload partition theming. There's also no backup for the themed preload apks.

I've attached the recovery log.

I fixed preload now, turns out I haven't even mounted the preload partition before theming.
Hope that fixes things now. Updated the 2.0.4 release.

Quote:
Originally Posted by anandisrocking007

Sorry i got confused between the you and the eviltheme maker and posed to you the vrtheme works super don't worry about that

Haha, no worries mate
10th September 2015, 09:10 PM |#114  
Senior Member
Flag Gelnica
Thanks Meter: 342
 
More
Hi, is there any chance to delete some files from instead of just replacing them? Thanks for answer

Gesendet von meinem D6603 mit Tapatalk
12th September 2015, 01:57 AM |#115  
aureljared's Avatar
OP Senior Member
Flag Quezon City
Thanks Meter: 556
 
Donate to Me
More
Quote:
Originally Posted by domicq

Hi, is there any chance to delete some files from instead of just replacing them? Thanks for answer

Gesendet von meinem D6603 mit Tapatalk

You mean delete files inside an APK? It's possible, but you'd have to know the exact path of the file's you're going to delete. Anyway, I can probably implement this in the coming weeks - I have my exams coming next week and I can't work on this right away.

Thanks for the suggestion, though. Will keep this in mind.

Sent from my sprout using Tapatalk
The Following User Says Thank You to aureljared For This Useful Post: [ View ] Gift aureljared Ad-Free
12th September 2015, 08:10 AM |#116  
Senior Member
Flag Gelnica
Thanks Meter: 342
 
More
Quote:
Originally Posted by aureljared

You mean delete files inside an APK? It's possible, but you'd have to know the exact path of the file's you're going to delete. Anyway, I can probably implement this in the coming weeks - I have my exams coming next week and I can't work on this right away.

Thanks for the suggestion, though. Will keep this in mind.

Sent from my sprout using Tapatalk

Many thanks for answer. I have idea, in zip can be two folders one for deleting stuffs from apk and second with (re)placing new files.

And in case, I know that path, what should I do?

Gesendet von meinem D6603 mit Tapatalk
The Following User Says Thank You to domicq For This Useful Post: [ View ] Gift domicq Ad-Free
12th September 2015, 10:10 AM |#117  
aureljared's Avatar
OP Senior Member
Flag Quezon City
Thanks Meter: 556
 
Donate to Me
More
Quote:
Originally Posted by domicq

Many thanks for answer. I have idea, in zip can be two folders one for deleting stuffs from apk and second with (re)placing new files.

And in case, I know that path, what should I do?

Gesendet von meinem D6603 mit Tapatalk

That's a great idea! 👍

For the paths, I was thinking that the script could unpack each APK in a list and delete the files referred to by the paths. It's easy enough to do, I guess.

Sent from my sprout using Tapatalk
The Following 2 Users Say Thank You to aureljared For This Useful Post: [ View ] Gift aureljared Ad-Free
12th September 2015, 10:30 AM |#118  
Spannaa's Avatar
Recognized Contributor / Themer
Flag Cardiff
Thanks Meter: 14,385
 
Donate to Me
More
Quote:
Originally Posted by aureljared

That's a great idea! 👍

For the paths, I was thinking that the script could unpack each APK in a list and delete the files referred to by the paths. It's easy enough to do, I guess.

This could be useful - vrthemes can only replace or add files to an apk.

I often replace .pngs with .9.pngs of the same name but this can't currently be done with a vrtheme.
The Following User Says Thank You to Spannaa For This Useful Post: [ View ] Gift Spannaa Ad-Free
19th December 2015, 02:52 AM |#119  
aureljared's Avatar
OP Senior Member
Flag Quezon City
Thanks Meter: 556
 
Donate to Me
More
Quote:
Originally Posted by domicq

Many thanks for answer. I have idea, in zip can be two folders one for deleting stuffs from apk and second with (re)placing new files.

And in case, I know that path, what should I do?

Gesendet von meinem D6603 mit Tapatalk

Quote:
Originally Posted by Spannaa

This could be useful - vrthemes can only replace or add files to an apk.

I often replace .pngs with .9.pngs of the same name but this can't currently be done with a vrtheme.

I've implemented this with v2.0.5 (click here to go to downloads page) and tested it out with a dummy file list, and the script parses it properly. Can you test with actual theme files?

To delete files, add the filenames to a text file named "delete.list" inside the APK theme folder.
This is an example of a delete.list:
Code:
res/drawable-hdpi/ic-launcher.png
res/drawable-xxhdpi/battery_full.9.png
This is what the contents of an example ZIP with delete.lists would look like:
Code:
theme.zip
   -- META-INF
   -- engine
   -- new
   -- vrtheme
       -- system
           -- app
               -- SystemUI.apk
                   -- delete.list
           -- framework
               -- framework-res.apk
                   -- delete.list
       -- vrtheme_restore.zip
If you do test it out, can you please give me the resulting evt_mmddyy-hhmmss.log file in /data/eviltheme-backup? Thanks!

Hope it works for you Happy holidays!
The Following 2 Users Say Thank You to aureljared For This Useful Post: [ View ] Gift aureljared Ad-Free
19th December 2015, 06:33 PM |#120  
Spannaa's Avatar
Recognized Contributor / Themer
Flag Cardiff
Thanks Meter: 14,385
 
Donate to Me
More
Quote:
Originally Posted by aureljared

I've implemented this with v2.0.5 (click here to go to downloads page) and tested it out with a dummy file list, and the script parses it properly. Can you test with actual theme files?

To delete files, add the filenames to a text file named "delete.list" inside the APK theme folder.
This is an example of a delete.list:

Code:
res/drawable-hdpi/ic-launcher.png
res/drawable-xxhdpi/battery_full.9.png
This is what the contents of an example ZIP with delete.lists would look like:
Code:
theme.zip
   -- META-INF
   -- engine
   -- new
   -- vrtheme
       -- system
           -- app
               -- SystemUI.apk
                   -- delete.list
           -- framework
               -- framework-res.apk
                   -- delete.list
       -- vrtheme_restore.zip
If you do test it out, can you please give me the resulting evt_mmddyy-hhmmss.log file in /data/eviltheme-backup? Thanks!

Hope it works for you Happy holidays!

I won't get the chance to try this for a while but the method & code for deleting files looks promising.

I'll get back to you...

Happy holidays to you too ☺

Tapatalked via OnePlus 2
The Following User Says Thank You to Spannaa For This Useful Post: [ View ] Gift Spannaa Ad-Free
Post Reply Subscribe to Thread

Tags
eviltheme, flash, recovery, theme, vrtheme

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes