yashsingh1/xdaforums huggingface dataset:
[Desire Themes and Apps] thE_29:
I warm up this thread :D

I wanted to decompile and compile some apks for the Samsung Galaxy S and darkys rom!

So i created a new working directory and run the 1-click bat script!

At first I set services.jar from ROM-zip, then decompiled it, then get framework-res from ROM-zip and decompiled it.

Then i pressed number 8 for apks. There i extracted the ROM-zip via the script and then i choose "DialerTabActivity".

But i get some error when i decompile it:

So what is the problem now?

The XMl are not binary, so i am able to edit the files, but when i compile it again to an APK-file, the classes.dex and resources.arsc is missing in the APK-file.

And when i transfer the apk back to the phone, i am not able to start it :(
[Desire Themes and Apps] shoey-n:
The display error is a baksmali/smali error, but the missing resources might be a script error, I'll check it and will post fixes. Probably after christmas though.
[Desire Themes and Apps] MWBehr:
Hopefully not a dumb question, but couldn't find anything through search or rummaging through your app. I'm trying to do some framework edits, but have had issues with getting a working end result. I've gotten to the point that I'm decompiling/recompiling a stock framework with no changes and it stil bootloops after I push it. I notice that the word "warning" flashes by quickly during the compiling process, but I can't make out what it's saying before it scrolls by. Is there some kind of log it produces or I can make it produce so I can figure out what's going on?

Side note: if I try to update from alpha5 to beta2, java no longer functions. It brings up a confirmation window and then a window that I can only describe as a usage window (has a list of command line options) then fails.

Thanks for all the work!
[Desire Themes and Apps] Tsaukpaetra:
Failures not detected?

Just found this, and after figuring out that it doesn't like to be on a path with spaces (suggestion: inform people about this...), I discovered a bad bug.

It seems that no matter what you do, the program indicates "SUCCESS", despite errors being displayed on the screen. These errors are not a success and in fact indicate that the entire procedure is "FAILED".

I'm not sure what is being done to qualify whether an operation was successful or not, but it needs to be improved. Badly.

An example of this in action:

Downloading boot audio from device. (press 3, 2)

This is what follows:

----------------------------------------------------------------
This will backup your device's boot audio to your work directory
----------------------------------------------------------------

Your current bootanimation audio will be backed up to your Work Directory.

Connect your device
* daemon not running. starting it now *
* daemon started successfully *

remote object '/system/customize/resource/android_audio.mp3' does not exist

SUCCESS.
Press any key to continue . . .

Now, this is clearly a mistake, as I was just told that the remote object (i.e. the file on the phone) did not exist, a problem which would indicate that the operation failed. The associated file was clearly not backed up, and yet.... well, you see my point.

You could probably at least do something after the adb commands to check if it went through (i.e. if exist "%workdir%\android_audio.mp3" or even if "%errorlevel%"==1) it would help a lot of people who didn't read the entirety of the screen and assumed that since the last line says "SUCCESS" then everything is hunky-dory.

So, yeah. Rant for the day done.

It looks promising at least.

Win7Ultimate_x86
[Desire Themes and Apps] dxdiag32:
downloading....looks like a great one
[Desire Themes and Apps] shoey-n:
There was lots to be done to this to make it work 100% plus it needed to be rewritten so it would work with Gingerbread

I haven't got enough time to do all this on my own because I'm now in 6 Form

I'm willing to start another project WITH SOMEONE ELSE to do something like this

Inbox me if you want my help for a project
[Desire Themes and Apps] Beaverman20:
Works again ;) thx...

You forgot a cls (the clear screen command) in the beginning of bootanimation or audio ;)
[Desire Themes and Apps] shoey-n:
Thanks mate, you should be helping me make this :p

I'll do some more testing and fixes, and I'll add the cls into the script

Thanks for your reporting :)

If there's anything you want added/changed to this script just let me know

and I saw your original post (through email), I was missing a dll file needed for adb, I added both of them into resources to make sure. Problem fixed :)

and since your the only one bug reporting, can you please tell me what is and isn't working :)
[Desire Themes and Apps] shoey-n:
Alpha 4 is out !

Fixed ADB (was missing a dll file)

And a few other tweaks

Working on mods for new version of Theme Pro
[Desire Themes and Apps] shoey-n:
Beta 1 is released!

Lots of bug fixes and changes

Much more stable

Work Directory has been coded completely differently and not tested in every type of environment yet. Report any bugs straight away
[Desire Themes and Apps] Vorbeth:
Win7 x64 - instant error is window closes.

Error given when run from terminal

The system cannot find the batch label specified - end
[Desire Themes and Apps] shoey-n:
Sorry about that, new one is uploading

But for easy fix...

right click click-me.bat then edit

where it says: if "%testpath%"=="%pathcheck%" goto end

it's the 4th line under tptop

replace with: if "%testpath%"=="%pathcheck%" goto top
[Desire Themes and Apps] Vorbeth:
Do the lines

if "%opt%"=="2" (
call "%scripts%\menu_framework.bat"
goto end
)
if "%opt%"=="3" (
call "%scripts%\menu_resources.bat"
goto end
)

need changing too?
[Desire Themes and Apps] shoey-n:
Yes, thanks for the bug reporting :)

New version with the fix is up btw
[Desire Themes and Apps] Vorbeth:
if "%testpath%"=="%pathcheck%" goto top

is failing on win7 x64 too, for me

%pathcheck%="C:\Users\Klutsh\Desktop\ThemePro\"
%testpath%="C:\Users\Nathan\Documents\ThemePro\"

Maybe it's the escape character?
[Desire Themes and Apps] shoey-n:
I'm working on it now, for some reason, the check is always coming up as true when it shouldn't

Just delete themepro.path from the resources folder for now
[Desire Themes and Apps] shoey-n:
Beta 2 released

Fixed bugs created by beta 1 + more enhancements and fixes
[Desire Themes and Apps] Mestr:
Service.jar modifing don't work on Windows 7. It says no work directory found. Every thing else is working. TNX!
[Desire Themes and Apps] bradputt:
in your manual you state that extract it to the desktop

i did that, but when i run it states:

'""C:\Documents' is not recognized as an internal or external command,

operable program or batch file.

Basically nothing happens when i choose anything.

I'm running WIN XP pro

Hmmm ... seems like your script couldn't handle spacing, i tried using d:themepro and it works
[Desire Themes and Apps] Beaverman20:
lol now this has been edited like 30 times :P sorry about that :P

anyway the decompile services is broken ;)
[Desire Themes and Apps] shoey-n:
Is this on Beta 2? Because I thought I fixed that on Beta 2, if so I'll have a look in the morning and try and fix it :)

So the click me reports the error ? If so I only have to edit one file

Also I haven't updated the manual yet...sorry

I'll fix the bug and update the manual for the next release :)

I'm assuming this is the same problem as Beaverman20. It's probably because I missed that file when updating them all to my new way of handling any location

I'll look in the morning and hopefully the fix will be up tomorrow

If you say everything works, when I fix these bugs, hopefully I'll be able to release this as RC tomorrow :)
[Desire Themes and Apps] shoey-n:
RC1 is out, fixed all bugs posted then fixed the bugs created by fixing those bugs :p

Fixed this bug, it took the most work, but it now all works with spaces and it's been thoroughly tested :)

Working on a splash screen for ThemePro, picture is on first post, comment whether you think it should be included or not

And whether it should appear once or every time :)
[Desire Themes and Apps] shoey-n:
Going on holidays for a week, so unfortunately I can't work on this

Report as much bugs and enhancements wanted, to give me something to do when I'm back :p
[Desire Themes and Apps] shoey-n:
Back from holidays

Had lots more downloads but no one reporting/commenting

Is this version stable enough for a 1.0 ?

Got lots of updates to do, cgrec92 has been busy since he's been back
[Desire Themes and Apps] Dany0:
Can you do a video tutorial for it?
[Desire Themes and Apps] shoey-n:
Yer sure, I'll have to find the hypercam tool I downloaded on my other computer first though

I'll hopefully get a video up tomorrow and a new version.

Video will be in the themepro zip and uploaded separately
[Desire Themes and Apps] Dany0:
If you use hypercam demo I will kill you. Use camspace -.-'
[Desire Themes and Apps] shoey-n:
is camspace free ?
[Desire Themes and Apps] Dany0:
uhm, it's the best screencorder available. And yes it's opensource. No ***** stickers and high quality.
[Desire Themes and Apps] shoey-n:
great, i shall use that :)
[Desire Themes and Apps] Dany0:
Yay.
[Desire Themes and Apps] :
1)Tried to locate framework apk,results in a sintax error

2)Tried to extract it,results in"there is no such arhive"

3)Tried to view working directory,results in "the file pathname can't be found"
[Desire Themes and Apps] shoey-n:
I've tried to recreate these errors but I can't recreate the first one :confused:

The other two I've now fixed, and will be uploaded in next version
[Desire Themes and Apps] shoey-n:
Due to me receiving my GCSE results this week and other stuff this week don't expect an update until at least the end of the week

Completely re-working it and adding tons of new features, testing as I go along.

Have only now finished all the menus and 'added features' to menus and the make directory part

So far script is a lot smarter, a lot more checks, new detect splash screen and advanced user terminal options

If anyone wants to help development or wants to be preview/beta testers message me

I want this release to be perfect and bring it out of RC and testing

Hope to hear from someone
[Desire Themes and Apps] cgrec92:
Hope your GCSE went well, i got my A-Levels this week as well.

When you say adding a lot more checks do you mean adding the ones i just added in the version 4 release?

Also it's a bad idea to make connecting your device obligatory, what if people only want to customize a ROM or file? there's no point in connecting the phone.

I've got version 4.1 ready and i'll release it today, in this version it is tested completely on both Mac and linux and there are no bugs whatsoever and all the menus are completely re-worked.

For Window users who want to try it they can download a small app called cygwin which will let them run a mac/linux terminal on their windows pc :)
[Desire Themes and Apps] Dany0:
Can't you make the video at least with something you've already got?
[Desire Themes and Apps] shoey-n:
I get my results tomorrow, hopefully everything will be ok

What results did you have if you don't mind me asking ?

I've added work directory checks at the beginning so it automatically runs make directory first and a few small checks in the menus

I've tried making this into more of a suite so it tells you more about your phone and allows you to operate the phone more and I'm also making it so you can test each file you make and revert to original if goes wrong

I've done it so it involves your phone more, and that's why I decided to add the phone plug-in at the beginning

I'm going to create a suite version which has the phone plug-in at the beginning and all the features

And I'm also going to release a normal version which doesn't have some of the new features and doesn't have the plug-in at the beginning

Oh cool :) I'll check that out as soon as you release it

There's not much point in releasing a video before this release because I've changed so much, if your stuck doing anything at the moment, just ask

And if you want to learn the program as it's built message me with your email address

I'll give you my code so far and explain everything which it does so far and how to use it

I'll send you it every night and explain what's different
[Desire Themes and Apps] Dany0:
well mkay, it's just I wanted to know what is it for
[Desire Themes and Apps] shoey-n:
it allows you to modify roms in every way possible

it allows you to theme it

add/remove applications to roms

sign roms/apks

for a full explanation, go to the mac/linux thread of themepro

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

I'll add this information to the first post :)
[Desire Themes and Apps] Dany0:
thanks ;) are you adding a GUI?
[Desire Themes and Apps] shoey-n:
I want to make a GUI for it, but I haven't got much knowledge of creating GUIs or enough time to make one really

If anyone is willing to make one or help me make one then that would be great
[Desire Themes and Apps] j.blaze:
hi guys,

Can someone please help me? I have the amoRA Recovery on my phone. I enter the recovery Mode and want to copy the framewrok-res.apk for modifiying. But somehow it won't work. What are the exact steps I have to do?
[Desire Themes and Apps] shoey-n:
Ok thanks for letting me know of the bug, I've managed to replicate the problem

I am currently working on a new release which will fix this bug and many others

I'm sorry for this problem, it's not that your doing anything wrong, there's an actual bug
[Desire Themes and Apps] cgrec92:
I had my A-Levels - all is well got into my 1st choice university :)

The work directory thing is a good idea :) That'll also mean that you can just remove it from the Menu to make more space for other things.

By involving your phone more what features have you added to make connecting your device necessary?

The script already makes a backup of files what are you trying to do?
[Desire Themes and Apps] shoey-n:
Well done :)

I've added features so you can dial directly from the pc and I'm looking for sending text messages directly from the pc. Save device serial number and a few small bits. And if phone is already connected, there's no need to add adb wait-for-device everywhere.

Because you think it's unnecessary, probably a few other people will as well, that's why I'll be offering the 2 different versions

The backup option can make a backup of the sdcard, ext partition and whatever else they choose. I just though they were handy little features
[Desire Themes and Apps] Moe5508:
I think the SD/ext backup option is actually pretty handy...I accidentally deleted a folder from my SD yesterday and sat there feeling really silly and wondering why I hadn't backed up my entire SD card to my PC before...so we shouldn't download the current Windows RC1 file coz it has a bug?
[Desire Themes and Apps] shoey-n:
You can download it and get the feel of the program, but I am aware of bugs within it, I can never guarantee bug-free, it all depends on user-response

There is a new version on it's way hopefully by the end of the week which will fix most of the bugs and add a lot more features

You should download and request a feature which you cannot see in RC1 or my preview of the newer version :)
[Desire Themes and Apps] umd:
Hi. Thanks for your good work. I don't know someone else mention that before but I've got to say. I tried to modify framework-res.apk. After decompile it I changed some stuff and I compiled it back. But the compiling makes more folder. Normally there should be META-INF, res.. folders in apk but after the compiling these META-INF, res folders exist in other framework-res folder. ThemePRO sends them in framework-res.apk-> framework-res folder-> META-INF, res... After decompile again I noticed that so I didn't try that framework-res.apk. Do you think it works though or is this a bug?
[Desire Themes and Apps] shoey-n:
I've just noticed, it's fixed in the new version which should be out either later today or tomorrow :)

Massive changelog for this version also nearly every bug is fixed in this version
[Desire Themes and Apps] umd:
Thanks. I can't wait for the new release :)
[Desire Themes and Apps] Dany0:
Great dude! I hope you'll add the video with it.
[Desire Themes and Apps] shoey-n:
I've been working on ThemePro all day...

99% of all coding is complete, small amounts left to add

60% tested, will do some more testing tomorrow

Will do a full code check for small bugs

Video will be created tomorrow - maybe with download, or as attachment later on in the day, or uploaded to youtube so I'll have the video in the first post, Dany0 you can decide :) (Just make it before tomorrow :p)
[Desire Themes and Apps] Dany0:
I can make the video for you, if you give me notes or something ;)
[Desire Themes and Apps] shoey-n:
If you don't mind, I'll send you ThemePro first so you can learn it yourself and I'll let you make the video however you like... if you want
[Desire Themes and Apps] Dany0:
Ye I'm 99% up for this!
[Desire Themes and Apps] shoey-n:
ThemePro 1.0 Suite Edition is out

(Will be creating a normal verison soon)

Fixed loads of bugs - Changelog on 1st post

Please tell me asap if I've missed any bugs

Please consider a small donation if you find this tool of any use, all my time goes towards making this script better for you :)
[Desire Themes and Apps] EnterNameHere:
Awesome work mate! Thanks very much :)

Gave it a try and I think it's a very usefull tool :)

What I recognized is, that if u decompile APKs, the xml files are still in binary form. Doesn't matter which menu I choose (1 - modify framework / 6 - modify apk), looks more like just unzipping them ;)

Everything else works, as far as I can see, like a charm!
[Desire Themes and Apps] shoey-n:
Thanks a lot for the great review :)

I'm aware that you can't view the XML files yet, I'll have to do some research on how to change the XML files through the command line, the main purpose of decompiling the apks was to change the images

I'll try and get that done as soon as possible :)
[Desire Themes and Apps] EnterNameHere:
Ah ok, I see. I think you should create 2 menu items. One like "Unzip APK" and another one for "compile/decompile".

I've used Apk Manager, I think they use adb for compiling, thats the only thing that tool demands on your harddisk :).

I need compiling for stuff like circle battery mods, in that case you have to edit the XML files.

What I liked is to pull the apk directly from my phone, nice idea, I am too lazy to do it manual :D

Nice work, keep on with it :)
[Desire Themes and Apps] shoey-n:
Circle battery mod is just changing pictures, so you can apply that with my script

I'm adding circle battery mod to this script for the next release

It'll be in the common mods menu
[Desire Themes and Apps] EnterNameHere:
Oh, it does? And i edited the public.xml, was close to smash my screen :D

Then I'm really looking forward to the next release :)
[Desire Themes and Apps] shoey-n:
Just out of curiosity, which version of the circle battery mod do you prefer ?
[Desire Themes and Apps] Moe5508:
C appears to be quite popular at the moment but am actually quite indifferent at the moment, prefering rather the stock battery with % mod but that's a hard one to mod, let alone find.
[Desire Themes and Apps] EnterNameHere:
Just have a look at my theme :) (included a screenshot)

Due to lack of rights I am not allowed to post links here.

It's thread ID: 764786
[Desire Themes and Apps] umd:
Thanks for the hard work. Maybe that will be a noob question but I've got to ask. I've decompiled the framework-res.apk, changed some images and decompiled back. Isn't it enough to use it? Because I've pushed it via adb but nothing changed. I guess I have to change some xml files? The thing is I don't know coding or editing xml files :o What should I do after changing images? Is it easy to explain to me? :o
[Desire Themes and Apps] EnterNameHere:
Easiest way is to open the framework-res.apk with 7zip or something.

Just open, not extract, and put your images in there.
[Desire Themes and Apps] Dany0:
Hey I have a great idea - could you include apktool the next release? Thanks!
[Desire Themes and Apps] umd:
It didn't work either :confused:
[Desire Themes and Apps] shoey-n:
I was thinking of using that, I'll have a look into it :)

What images are you changing?

Maybe your changing images which you don't normally see
[Desire Themes and Apps] umd:
I'm changing these images:

statusbar_background.png, status_bar_close_on.9.png, status_bar_header_background.9.png

Just for trying. I've signed the apk but it didn't help at all. I don't know what I'm doing wrong.
[Desire Themes and Apps] j.blaze:
Now everything works fine. Thanks Man, great work!
[Desire Themes and Apps] shoey-n:
I really like your theme, can I include that in ThemePro? I'll put your name in :)

I'l also put stock battery with %
[Desire Themes and Apps] shoey-n:
Is anyone else having the same problem as Figure_desire or is he doing something wrong?

Thanks mate, if there's something you would like added to the script then just ask, same to everyone, I'm currently working on XML editing
[Desire Themes and Apps] umd:
Finally did it :) What I was doing wrong is using different framework from rom's framework. But this framework was working on my rom. Intresting. I simply made this in fw minutes just for trying. I'm gonna make a theme better than that in coming days :) And credit will go to shoey-n for his hard work :)
[Desire Themes and Apps] shoey-n:
Great to hear you got it working. Once you make it, I'll put screenshots of it on 1st post as an example of what people have made with the use of ThemePro :)
[Desire Themes and Apps] j.blaze:
Where can I change the icons you see in the screenshot? Are these icons also in the framework-res.apk or somewhere else?
[Desire Themes and Apps] shoey-n:
By the looks of your screenshot, your running a sense ROM, so you'll have to change some icons in the framework-res.apk and com.htc.resources.apk :)

_____________________

Can people comment on what features they want in the next version so I know what to concentrate on please
[Desire Themes and Apps] j.blaze:
Has anyone tried to modify com.htc.resources.apk with ThemePro? Somehow it won't work. Maybe I'm doing something wrong.
[Desire Themes and Apps] shoey-n:
What error do you get ?
[Desire Themes and Apps] j.blaze:
I'll have to look again. But when I'm compile the file again, all changes are gone.
[Desire Themes and Apps] shoey-n:
There's no reason for that happening

Have you decompiled the new version to check that your changes are there, I've just checked the code, and there's no explainable reason for that
[Desire Themes and Apps] shoey-n:
Version 1.0.1 is out

Fixed a few bugs and added apktool in preparation for next release
[Desire Themes and Apps] Dany0:
The video will take a while because the camera I am about, yes about, to use is well.. in use =/

But the app is GREAT! Will see if I can re-write the click-me.bat in Python/TK ;)
[Desire Themes and Apps] shoey-n:
That's ok mate, take all the time you want

Python/TK - Not familiar with them, are they for a GUI ?
[Desire Themes and Apps] Dany0:
My goodness, am I on the whole forums here the only one that uses google? Seriously?

Python = great great great great! programming language I am most familiar with

TK = a very(really VERY. it's like windows 3.1 with windows 95 looks) basic cross-platform GUI written in Tcl/Tk
[Desire Themes and Apps] shoey-n:
I've been working on decompiling apk...

I've finally understood the tool, got it to work outside of the script

Will leave the old version of decompiling because it's way quicker if you are only changing pictures

Adding inside the script and then will test

Hopefully will have the new version of ThemePro up soon
[Desire Themes and Apps] bradputt:
yes, i successfully change my battery icon!!

thanks for this program.

hope that you could decompile XML files too.....
[Desire Themes and Apps] shoey-n:
It will be in the next version, I'm in the middle of developing it now ;)