Android - Quick question about DeOdexing, and BOOTCLASSPATHS - General Questions and Answers

So, I have been learning how to DeOdex Android ROMs, and have made great progress today in getting familiarized with the Java commands, and figuring out what BOOTCLASSPATHS to specify for a given Odex/APK file.
I have one quick curiosity about specifying BOOTCLASSPATHS. Is it in any way detrimental or harmful to the DeOdexing process or to the ROM itself to specify more BOOTCLASSPATHS than are necessary for a given odex file?
For example, if I'm trying to DeOdex HTCFriendStreamWidget.odex, it is necessary to call out the BOOTCLASSPATH of com.HTC.android.Rosie.jar, but it may not be necessary to call out the BOOTCLASSPATH of com.HTC.android.easopen.jar. However, it might be necessary to call upon that BOOTCLASSPATH for another odex file I'm wanting to DeOdex at the same time.
Or, say I want to just assume that a given number of odex files may very well call for paths to a number of different jars, but there is a distinct possibility that some of the apks/odex files won't need the paths that I decide to specify. I'd rather not keep trying to use the bare minimum of jars only to find I'm short by 1 or 2 jars that I can only figure out through looking over the error that is spit out.
Would this be harmful in any way to call out unnecessary paths, or will they simply be ignored if they don't pertain to the APK/odex?
Thanks in advance!
EDIT: Upon further searching and reading, I finally feel I have found the answer to the question. It seems as though it is as I suspected. The BOOTCLASSPATHs that are unneeded for a given jar/odex will simply be ignored in the DeOdexing process.
Sent from my ADR6400L using XDA App

Boostjunky said:
(...)
Click to expand...
Click to collapse
I was wondering about the exact same thing. Thanks for putting the answer in your post, instead of ignoring you ever posted it .

ldeleeuw said:
I was wondering about the exact same thing. Thanks for putting the answer in your post, instead of ignoring you ever posted it .
Click to expand...
Click to collapse
Not a problem, I'm glad I was able to help someone out! I hate it when people post a question, only to find the answer later, but not share it.
Sent from my Rezound using Tapatalk 2

Related

All in 1 .CAP??

Hi, can anyone make this happen??
collect all the important .cap files and make a .rar file or post it in a Sticky post or anything like this??
programs such as a lists of all the tweaks, the sim fix, the adv. configuration, any registry editor, battery saver, and other important tweaks...
that will be a very usefull Post..
hope someone read this..
Sorry, but what is .caps?
Maybe you mean .cab(s)
yeap, thats what I mean..
limx said:
Hi, can anyone make this happen??
Click to expand...
Click to collapse
That will take a bit of effort, going through all the posts and setting the info out in an organised manner, and collecting all the cab files.
But it's not rocket science, all the info is there, so why don't you make the effort. I'm sure many others will appreciate it.
yes it would be hard. sounds like you are lazy
besides, not all tweaks here work for everyone and some tweaks are needed at all
Brendo said:
yes it would be hard. sounds like you are lazy
besides, not all tweaks here work for everyone and some tweaks are needed at all
Click to expand...
Click to collapse
Exactly. The thing I love most about this forum is the ability to seach for things and learn how to make my device mine (just the way I like it) not the way that he likes his or she likes hers. what I like and need, might not be what you need, and what you need, might not be what I am interested in. If you want an all in one package, do some reading about the many different custom Roms and Rom upgrades available. Some come preinstalled with many tweaks and apps.

Has Anyone Seen/Used this? Theme Porter Script?!?

Looks like it may make it pretty easy to port themes from any other phone with the same resolution as ours. I just stumbled on this tonight. I am on a Mac and don't have Windows running on my machine, and I'm not sure if they got a Linux version up and running. I have to get back to work so I don't have time to read into it or mess with it. I just wanted to post a link to it so you guys could check it out. Please post any results that you have with this and be sure to thank OP who created the script!
http://forum.xda-developers.com/showthread.php?t=737526
I'm very curious to this as well, anyone? I've never worked with adb
It works very well at dragging over the png files for you from one apk file to another. It doesn't get any of the xml or smali stuff that you need to go with it, though. It's got it's place, and I use it when I'm still being lazy to move stuff myself, but I'm finding things like Beyond Compare to be more useful in comparing what is in one file to another. This way you can trash what you don't need and then drag everything else over yourself.
Apktool and apk manager are two other tools that I use in theming to decompile the apk's so you can get in them and do your work and the it recompiles them for you and lets you know if there is a problem.
I've got more info, and when I have more time I can drop it on here. Also, I know that nitsuj17 just started a thread in the Fascinate forum somewhere that is going to have all of the info he has on theming. Most of what I have came from him. I've just had to make changes because of the differences between the two phones.

voice during boot

I would like my phone to say my name and tell me the current temp outside. I have two weather apps which rhe program or acript can look at to get weather...
asomething along the line like how the rom devs has the lady talk while downloading rom to phone useing cwm. Just instead of saying downloading, say the current temp in my area.
ive searched and found no app or no way to do this. if theres not a way can someone point me to a
good xml guide so i cam write my own script...im decent in html so think ill be able to pick up xml. thanks.
xxprincecjxx said:
I would like my phone to say my name and tell me the current temp outside. I have two weather apps which rhe program or acript can look at to get weather...
asomething along the line like how the rom devs has the lady talk while downloading rom to phone useing cwm. Just instead of saying downloading, say the current temp in my area.
ive searched and found no app or no way to do this. if theres not a way can someone point me to a
good xml guide so i cam write my own script...im decent in html so think ill be able to pick up xml. thanks.
Click to expand...
Click to collapse
I may be wrong but I believe that all occurs in the boot loaders which means the OS is not loaded. If it's still in the boot loader process then the kernel modules necessary to access certain functions of the hardware (GPS, modem, etc.) are not loaded yet. That would prevent access to the network. A qualified dev might have to speak to it, though, as I might be off-base.
There is a thread in the themes and apps section to flash linda on your phone. Like Raver previously had on VB. You may start there and try replacing the sound files.
lumin30 said:
There is a thread in the themes and apps section to flash linda on your phone. Like Raver previously had on VB. You may start there and try replacing the sound files.
Click to expand...
Click to collapse
Reread his request. He is asking for something not possible.
During boot your phone is loading the necessary radios and files. The project Linda stuff is preloaded with commands that trigger preloaded sounds. That is not realitime just tirggered by certain scripts running.
If you want it to announce each time you unlock that is another animal. IIRC there are several apps that do similar might search the market via a pc so they arent filtered on your phone.
Dear god eollie. I dread opening a thread and finding your commentary after something I post. I hate the thought of hurting your feelings and owing the community an apology.
during boot wont happen... As the phone doesnt have acccess to the network tell after the firmware is loaded...
boot process = Init
Linda the lady you hear during the conversion process is just prebuilt audio files into the voodoo inframats... Haveing the phone beable to tell you your name time and temp outside of the actuall operation of the device isnt going to happen.. Especally sence during boot its intalizing the stuff needed.
that would be like having your laptop check your bank info before you even boot into the os....
lumin30 said:
Dear god eollie. I dread opening a thread and finding your commentary after something I post. I hate the thought of hurting your feelings and owing the community an apology.
Click to expand...
Click to collapse
...
What the hell are you talking about?
All I said was reread his request. I think you misunderstood him...good god man. To think I just sent you a apology via pm for my initial reactions to you. Seriously stop thinking Im picking on you. You offered something that as confirmed by raver ISNT POSSBILE.
lumin30 said:
You may start there and try replacing the sound files.
Click to expand...
Click to collapse
eollie - you can't possibly get as upset as you sound in so many of your posts can you?
lumin30 said:
eollie - you can't possibly get as upset as you sound in so many of your posts can you?
Click to expand...
Click to collapse
Ok heres the dealio, that is giving hope to something not possible. Just simply not possible. Its like pretrolling him into posting thats not what he wants..then smacking him with a android nerf bat saying dummy.
No written expression is/does get taken out of context. Kinda like your initial post to me. Im still trying to figure out how I implied you owed anybody a apology or anything tho. /shrug
back on topic....
xxprincecjxx as raver stated its not possible on boot up. But I do know I seen apps that would do similar on unlock. Im lazy and not going to search. But use a pc browser and search android market it will show unfiltered results. Then you might be able to contact the dev if its not available for the SGS4G.
thanks
thanks for all the replys...
so what i gather is that its impossible to get linda to voice the weather because the nwtqoek hasn't loaded yet. However it seems possible to change the preloaded audio files which linda loooks at. hmmm it may be possible to say a symbolic constant (something static) like a name or a phrase during boot. i believe it comes down to the commands which r read during boot.
sorry but now i have another ?
How would i change pre loaded audio files to my own custom one. is it possible to do or is it burnt into rom? im off to read about linda and pre loaded audio files and what cmds are read at boot.
agian...
thx for all the info...very helpful
eollie said:
..then smacking him with a android nerf bat saying dummy.
Click to expand...
Click to collapse
Hmmmm..... Can I virtually smack you with an android nerf bat
xxprincecjxx said:
thanks for all the replys...
so what i gather is that its impossible to get linda to voice the weather because the nwtqoek hasn't loaded yet. However it seems possible to change the preloaded audio files which linda loooks at. hmmm it may be possible to say a symbolic constant (something static) like a name or a phrase during boot. i believe it comes down to the commands which r read during boot.
sorry but now i have another ?
How would i change pre loaded audio files to my own custom one. is it possible to do or is it burnt into rom? im off to read about linda and pre loaded audio files and what cmds are read at boot.
agian...
thx for all the info...very helpful
Click to expand...
Click to collapse
If you wanted to change the boot sound you can do that to have it say your name.
The link lumin posted has a zip file that you can extract and push the files to the respective folders. In theroy you could replace the files with whatever you wanted as long as you rename then to whats there currently and rezip it.
lumin30 said:
Hmmmm..... Can I virtually smack you with an android nerf bat
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=1494423 that question would be better asked there
eollie said:
The link lumin posted
Click to expand...
Click to collapse
I never posted the link... you will have to look for it as I bet it is buried in the theme and apps section.
eollie said:
http://forum.xda-developers.com/showthread.php?t=1494423 that question would be better asked there
Click to expand...
Click to collapse
Now we're talkin eollie! Glad I don't have to track you down with my android nerf bat!
eollie said:
If you wanted to change the boot sound you can do that to have it say your name.
The link lumin posted has a zip file that you can extract and push the files to the respective folders. In theroy you could replace the files with whatever you wanted as long as you rename then to whats there currently and rezip it.
http://forum.xda-developers.com/showthread.php?t=1494423 that question would be better asked there
Click to expand...
Click to collapse
thanks i've found project linda's link...downloaded...i just dont know where the "respective folders are located" . where is the boot sound located in filesystem? i'll start at root of phone and search for each app individually and apply my own custom sound as you mentioned. i'll zip and move to folders once i find say the messages notification folder resides...
for boot i was actually thinking a modified bootloader script which acts like a virus sort of but thatthat is too much codeing for what im trying to accomplish so i will conclude as u and ravwr said its impossible for now.
Read up on Linux and the initramfs. That's where this stuff is stored per Raver (thanks for the lesson, Raver).
Sent from my SGH-T959V using xda premium
xxprincecjxx said:
thanks i've found project linda's link...downloaded...i just dont know where the "respective folders are located" . where is the boot sound located in filesystem? i'll start at root of phone and search for each app individually and apply my own custom sound as you mentioned. i'll zip and move to folders once i find say the messages notification folder resides...
for boot i was actually thinking a modified bootloader script which acts like a virus sort of but thatthat is too much codeing for what im trying to accomplish so i will conclude as u and ravwr said its impossible for now.
Click to expand...
Click to collapse
Download the file to your pc. Put your created sound files in place of the ones in the zip that you want to replace. Rezip it and then flash it via CWM. It should put the files in the proper location.
Now regarding your name on boot. If you create a bootsound and name it properly it should play on boot but it would be during your boot animation. Maybe you could get a custom bootanimation with your name and such and it would be close to what your looking for.
Regarding the phone saying your name - check your system folder using Root Explorer app.
If you have system\etc\PowerOn.wav - it's the boot intro.
You can change it to "Hello...."
eollie said:
Download the file to your pc. Put your created sound files in place of the ones in the zip that you want to replace. Rezip it and then flash it via CWM. It should put the files in the proper location.
Now regarding your name on boot. If you create a bootsound and name it properly it should play on boot but it would be during your boot animation. Maybe you could get a custom bootanimation with your name and such and it would be close to what your looking for.
Click to expand...
Click to collapse
thx it worked. replaced linda with my own custom sounds. i got it actually telling me weather once an hour and how many msgs calls i missed and couple other things.
as far as boot i found the file bootanimation in /system/media/bootanimation.zip i'm running val final black edition. there are no sound files in this folder. just the boot images. would i put
sound file in this folder or would i brick phone at next boot with sound file in images folder? also what extension should i make sound file? i see .ogg refrenced a lot bit soneone above said .wav so im unsure what ext i should make it.
eollie said:
Ok heres the dealio, that is giving hope to something not possible. Just simply not possible. Its like pretrolling him into posting thats not what he wants..then smacking him with a android nerf bat saying dummy.
No written expression is/does get taken out of context. Kinda like your initial post to me. Im still trying to figure out how I implied you owed anybody a apology or anything tho. /shrug
back on topic....
xxprincecjxx as raver stated its not possible on boot up. But I do know I seen apps that would do similar on unlock. Im lazy and not going to search. But use a pc browser and search android market it will show unfiltered results. Then you might be able to contact the dev if its not available for the SGS4G.
Click to expand...
Click to collapse
i agree with you on the fact that this is possibly impossible...
but my friend 10 15 yrs ago someone would have told you it was impossible for a phone to have a 1.5 ghz dual core processor. or the beggining of cell phones someone would have told you it would be impossible to watch a live streaming football game on your cell phone.
xxprincecjxx said:
thx it worked. replaced linda with my own custom sounds. i got it actually telling me weather once an hour and how many msgs calls i missed and couple other things
Click to expand...
Click to collapse
You ain't gotta lie to kick it.

Add overlay help

Trying to build a rom, and keep getting an error stating "Resources appear in overlay but not in base. Use <add-resource> to add." Where do I add the resource? Noob question but I'm doing my best to learn, and have come a long way without any help. Any advice is appreciated :fingers-crossed:
So, if someone wanted to repeat your issue in order to try and help you, what would they do? Your message is giving an error message, but not telling anyone when that message appears, what is generating the message, steps to repeat, what device you are using, what you've changed, etc, etc.
In fact, your message is only a little better than creating a new thread containing only the words "it doesn't work." (without defining "it", etc.)
take care
Gary
garyd9 said:
So, if someone wanted to repeat your issue in order to try and help you, what would they do? Your message is giving an error message, but not telling anyone when that message appears, what is generating the message, steps to repeat, what device you are using, what you've changed, etc, etc.
In fact, your message is only a little better than creating a new thread containing only the words "it doesn't work." (without defining "it", etc.)
take care
Gary
Click to expand...
Click to collapse
Well, Gary...First off, thank you for responding. I understand the confusion as this is a dual device thread. I'm working on the SGS 3 (d2att). I figured my message was pretty much self explanatory as to the issue I'm having. When I stated trying to "build" a rom. I figured that would mean during the compiling script. Overlay issues generally seem to be related to vendor files as far as I can tell. I tried to add a device framework dimesion overlay to one of my vendor files (An s3 common folder I forked from Rootbox). I edited the arrays.xml and config.xml file inside the values folder under frameworks/base/core to allow such resources. This seemed to be the logical step, but then the error presented itself.
A overlay is supposed to modify a value in the base to the specific one you need for your device. So you must have added a value in your overlay that is not present in the base. Let's see if you can figure it out from there.
thewadegeek said:
A overlay is supposed to modify a value in the base to the specific one you need for your device. So you must have added a value in your overlay that is not present in the base. Let's see if you can figure it out from there.
Click to expand...
Click to collapse
You basically just paraphrased what I said in the previous post. I told you the steps I took to correct the error. Did it work? No....
Twiisted said:
Trying to build a rom, and keep getting an error stating "Resources appear in overlay but not in base. Use to add." Where do I add the resource? Noob question but I'm doing my best to learn, and have come a long way without any help. Any advice is appreciated :fingers-crossed:
Click to expand...
Click to collapse
Pretty sure I answered the one question you asked in your OP. Plus I believe this whole thread is better suited for Chef Central.
Sent from my SCH-R950 using Tapatalk 2
thewadegeek said:
Pretty sure I answered the one question you asked in your OP. Plus I believe this whole thread is better suited for Chef Central.
Sent from my SCH-R950 using Tapatalk 2
Click to expand...
Click to collapse
So you just looked at the OP and posted without reading any of the thread? Thats helpful :good:
Because we can all read your mind and your computer logs to know exactly what you typed. You asked a question and I answered it, without knowing what exactly you changed/added how are we supposes to provide any further support?
I did read your post...I don't see how it was supposed to change my answer though.
Sent from my SCH-R950 using Tapatalk 2
It's all good man...just frustrating. I've worked out sooo many kinks but this one has me stumped. The logs are gone and it takes 90 min to even get to that point during the build. I added device configurations to the vendor files. The ones giving me trouble are the resources in the vendor overlays files. Like I said, I added the resources to the config.xml and array.xml in the base...it still won't compile.
Twiisted said:
Well, Gary...First off, thank you for responding. I understand the confusion as this is a dual device thread. I'm working on the SGS 3 (d2att). I figured my message was pretty much self explanatory as to the issue I'm having. When I stated trying to "build" a rom. I figured that would mean during the compiling script. Overlay issues generally seem to be related to vendor files as far as I can tell. I tried to add a device framework dimesion overlay to one of my vendor files (An s3 common folder I forked from Rootbox). I edited the arrays.xml and config.xml file inside the values folder under frameworks/base/core to allow such resources. This seemed to be the logical step, but then the error presented itself.
Click to expand...
Click to collapse
You are still leaving out information. Based on some of the other replies, it's pretty obvious that I'm not the only one who thinks so.
For example, it seems to be (based on some of the things you are saying) that you are building a form of AOSP? CM? AOKP? Something else? What? Which version? (Yes, it DOES matter.)
It might help if you recreate your situation from a "known" starting point. For example, grab the cm10 (or 10.1) code as a starting point. Then make minimal changes to that in order to reproduce your problem. (I'm guessing this would mean just adding a couple xml files to the overlay.) If you get the same error, then you'll be able to post CLEAR instructions to repeat the issue - such as "started with cm10.1 and was able to compile for d2att fine. Added the following files (attached) to the x/y/z directory and then edited file a/b/c to what is also attached, and then when I run brunch, I get an error stating 'error message here'"
If you do what I suggested, then someone else would be able to reproduce exactly what you are seeing (or at least be able to understand the context of your issue) and might help.
...unless, of course, you are deliberately NOT sharing information. If that's the case, please state that. It would make things easier.
Twiisted said:
Trying to build a rom, and keep getting an error stating "Resources appear in overlay but not in base. Use <add-resource> to add." Where do I add the resource? Noob question but I'm doing my best to learn, and have come a long way without any help. Any advice is appreciated :fingers-crossed:
Click to expand...
Click to collapse
ur getting something like
(xml file):# (error message)
right?
if so, just open up the xml file and delete the part with whatever resource it tells you
cpu999 said:
ur getting something like
(xml file):# (error message)
right?
if so, just open up the xml file and delete the part with whatever resource it tells you
Click to expand...
Click to collapse
Not really neccessary anymore...vendor files were updated with latest sync. Fixed my issue and wasted a few days of my time :/

Edit APP and Re-publish to play store

Hello,
I import product from China, they have their own APP.
I rebrand their product and sell.
How can I edit their app with my brand name and change appearance and upload back to play store to be able to install by my clients ?
Looking forward for kind help.
Thanks & Warm Regards
saurabhvasa said:
Hello,
I import product from China, they have their own APP.
I rebrand their product and sell.
How can I edit their app with my brand name and change appearance and upload back to play store to be able to install by my clients ?
Looking forward for kind help.
Thanks & Warm Regards
Click to expand...
Click to collapse
You're literally asking for help on how to steal someone else's property?
No, I have got approval from factory itself, they have Chinese manual, which i dont know .. so they said you can do it yourself and they have already given permission agreement for that.
CosmicDan said:
You're literally asking for help on how to steal someone else's property?
Click to expand...
Click to collapse
saurabhvasa said:
No, I have got approval from factory itself, they have Chinese manual, which i dont know .. so they said you can do it yourself and they have already given permission agreement for that.
Click to expand...
Click to collapse
Alright, fair enough. I've done this work myself before.
This should be relatively easy, most of the resources will be in the res folder. You'll need to use APKTool and decompile the APK, edit XML's and replace png's and such.
Sometimes they hard-code strings though and it might be in the smali files.
You will also need to change the package name though. This involves a mass find-and-replace in smali, the Android Manifest XML, and renaming the packages (folders).
You can re-sign the APK yourself with zipsigner once recompiled, that's all you need for Google Play distribution. Apart from a developer account of course.
Appreciate your reply.
But im not technically well versed with this ... any website or video tutorial where step step process is mentioned will be good for me ...
CosmicDan said:
Alright, fair enough. I've done this work myself before.
This should be relatively easy, most of the resources will be in the res folder. You'll need to use APKTool and decompile the APK, edit XML's and replace png's and such.
Sometimes they hard-code strings though and it might be in the smali files.
You will also need to change the package name though. This involves a mass find-and-replace in smali, the Android Manifest XML, and renaming the packages (folders).
You can re-sign the APK yourself with zipsigner once recompiled, that's all you need for Google Play distribution. Apart from a developer account of course.
Click to expand...
Click to collapse
saurabhvasa said:
Appreciate your reply.
But im not technically well versed with this ... any website or video tutorial where step step process is mentioned will be good for me ...
Click to expand...
Click to collapse
There are plenty out there. The key tool is called "APKTool", try googling for something like "modding resources with APKTool". You will have to learn, there is no shortcut I'm afraid!
Super .. Thanks a lot ..
CosmicDan said:
There are plenty out there. The key tool is called "APKTool", try googling for something like "modding resources with APKTool". You will have to learn, there is no shortcut I'm afraid!
Click to expand...
Click to collapse

Categories

Resources