looking for some programming help for a non programmer - Epic 4G Q&A, Help & Troubleshooting

I am trying to edit a cdmasmsdispatcher.smali file and Im a bit confused as to the .line 621, or .line 134, etc lines of the script represent. I am just wondering so I can copy and paste to another rom. Thanks in advance.
Edit: may need to move this to q/a please move if I posted in the wrong section.
Sent from my Xoom using xda premium

Okay I hate being this guy. But this really needs to be moved to the Q&A section or general... Development is mainly for POSTING ROMs kernels Mods etc. Not for help... Sorry

kennysvgp08 said:
Okay I hate being this guy. But this really needs to be moved to the Q&A section or general... Development is mainly for POSTING ROMs kernels Mods etc. Not for help... Sorry
Click to expand...
Click to collapse
Yeah I realized immediately I was in the wrong section when posting, I have 15 xda tabs open and get kind of lost sometimes. I emailed the mods to move to Q&A.

gatorlee said:
I am trying to edit a cdmasmsdispatcher.smali file and Im a bit confused as to the .line 621, or .line 134, etc lines of the script represent. I am just wondering so I can copy and paste to another rom. Thanks in advance.
Edit: may need to move this to q/a please move if I posted in the wrong section.
Sent from my Xoom using xda premium
Click to expand...
Click to collapse
Why are you trying to edit CdmaSmsDispatcher.smali?
And for what ROM?

This might help you out, it is the actual java source for getting virgin MMS on CM9. Should be similar to the smali file but I think it contains some extra snippets of code:
https://github.com/mantera/android_...nternal/telephony/cdma/CdmaSMSDispatcher.java
darkierawr said:
Why are you trying to edit CdmaSmsDispatcher.smali?
And for what ROM?
Click to expand...
Click to collapse
I am pretty sure he is trying get MMS working on the stock Epic 4g rom for virgin mobile.

brooksyx said:
This might help you out, it is the actual java source for getting virgin MMS on CM9. Should be similar to the smali file but I think it contains some extra snippets of code:
https://github.com/mantera/android_...nternal/telephony/cdma/CdmaSMSDispatcher.java
Click to expand...
Click to collapse
The route I took was to compare the original cm7 epic ROM cdmasmsdisp.file, and then compare that to your cdmasmsdisp.file see what the differences are, and then modify another device or ROM accordingly. In my non programming enabled mind I see the different .line xxx differences and am not sure how this would apply to another ROM or device

Related

[Q] How do you make flashable zips?

I've looked around and can't seem to find a proper guide of how to make flashables I know newer cwm's use an amend script as opposed to the older edify what ever that may mean xD .... anyways I want to start creating my own shiz I don't want to give details but I think it might be kind of special and could interest some nerds anyways if someone can point me in the direction of a proper guide/ tutorial I will much appreciate it.
Sent from my OG Epic
Someone recently asked a similiar questioon. Maybe their thread will help?
http://forum.xda-developers.com/showthread.php?t=1394328
sent from a phone using an app
Figured it was as easy as modifying someone elses zip but wanted to make sure
Sent from my OG Epic
Biggoron said:
Figured it was as easy as modifying someone elses zip but wanted to make sure
Click to expand...
Click to collapse
Often it's as easy as gutting another flashable .zip that you know works, then replacing the directory structure and files with what you want to install. If you want a neater solution with more customization, adamdelozier found benzyniarz1's UpdateZipCreator utility, which provides much more customization possibilities. It currently has a bug that causes scripts to fail, thus causing the entire flashable .zip to fail, but I've let the developer know what's up so hopefully a fix will be out soon. If you want to learn about the bug and the workaround, see pages 5 and 6 and pay close attention to the "Error 6" and "EOL" related posts.
Customization kind of like what the script shows ex: after flashing rc it says your phone is now legendary?
Sent from my OG Epic
Biggoron said:
Customization kind of like what the script shows ex: after flashing rc it says your phone is now legendary?
Click to expand...
Click to collapse
Yes, you can create a custom script from scratch within the utility, and it has the most used commands available to drop into your script, along with a very brief description of syntax for each. Read the OP for the utility to get an idea of its range of features.
AmericanJedi001 said:
Yes, you can create a custom script from scratch within the utility, and it has the most used commands available to drop into your script, along with a very brief description of syntax for each. Read the OP for the utility to get an idea of its range of features.
Click to expand...
Click to collapse
You are the man jedi. Thanks for updating the op also
sent from a phone using an app
Djinn23 said:
You are the man jedi. Thanks for updating the op also
Click to expand...
Click to collapse
Word! Umm, which OP are you refering to? I've updated a couple different OPs this evening, that's why I'm confused!
Thanks as well this is what I did with the knowlegde gained here.
http://forum.xda-developers.com/showthread.php?t=1404886
Sent from my OG Epic
AmericanJedi001 said:
Word! Umm, which OP are you refering to? I've updated a couple different OPs this evening, that's why I'm confused!
Click to expand...
Click to collapse
Yea I typed that knowing it was misuse n abuse. Sorry. I meant the link above I provided to this thread where the people were struggling to find out why it was broken and you explained the bug you linked to here. Jedi's always pop in, save, then boogie. Not choad chomping or anything but I also read your proposal for documentation formatting and lmmfao at your example.
sent from a phone using an app
Biggoron said:
Thanks as well this is what I did with the knowlegde gained here.
http://forum.xda-developers.com/showthread.php?t=1404886
Sent from my OG Epic
Click to expand...
Click to collapse
Awesome. Not my personal cup of tea but I am sure someone somewhere is thinking you are the motts! Well done.
sent from a phone using an app
Most people aren't picky about their cwm zips, basicly it consists of the items you want to flash, the stuff to flash it with, and an updater-script and updater-binary. I usually just take someones updater-binary and write my script from scratch
sent from my always aosp epic
Biggoron said:
Thanks as well this is what I did with the knowlegde gained here.
http://forum.xda-developers.com/showthread.php?t=1404886
Click to expand...
Click to collapse
Interesting... I'm glad you found what you needed!
Djinn23 said:
Yea I typed that knowing it was misuse n abuse. Sorry. I meant the link above I provided to this thread where the people were struggling to find out why it was broken and you explained the bug you linked to here. Jedi's always pop in, save, then boogie. Not choad chomping or anything but I also read your proposal for documentation formatting and lmmfao at your example.
Click to expand...
Click to collapse
Ah, now I understand, my young padawan. Awww, no choad chomping? But seriously, I'm glad I got a laugh out of you! Unfortunately, I'll have to clean parts of it up to get the Mods to sticky it.
Back on topic, the dev of UpdateZipCreator hit me back and said he'll release a fixed version of his utility soon.
UpdateZipCreator has been updated to use UNIX newline / end-of-line / EOL characters in the script generator / editor, which should eliminate "Error 6" when flashing .zips in CWM Recovery.
UpdateZipCreator
AmericanJedi001 said:
UpdateZipCreator has been updated to use UNIX newline / end-of-line / EOL characters in the script generator / editor, which should eliminate "Error 6" when flashing .zips in CWM Recovery.
UpdateZipCreator
Click to expand...
Click to collapse
Awesome too bad I'm headed to bed thanks ill try it out tomorrow. Is this complex or does this generate script or do I have to? That's over my head but yeah...
Edit nevermind took a look at. Any way to change what the binary script displays ie. What it shows in the script when flashing..." your phone is now legendary"
Sent From My Cyan Samurai
Biggoron said:
Awesome too bad I'm headed to bed thanks ill try it out tomorrow. Is this complex or does this generate script or do I have to? That's over my head but yeah...
Edit nevermind took a look at. Any way to change what the binary script displays ie. What it shows in the script when flashing..." your phone is now legendary"
Click to expand...
Click to collapse
This has example scripts, but I don't remember it dynamically generating scripts based on what you install. You must customize the scripts yourself, to include mounting the partition you wish to install to, install package, and screen output. FYI, IIRC the screen is 48 fixed-width characters wide in CWM Recovery. That should help make pretty output screens!

[Q] S Voice/Vlingo Uninstall and Install Modded Directions Please

I just rooted my phone for the first time and flashed the Frankenstein Ego ROM. I just want to say thank you for the amazing work by everyone here at XDA. You guys are the best!
S voice that comes with the ROM does not work and get a network error. I know that there is a modded version that should work (here if anyone is looking: http://forum.xda-developers.com/showthread.php?t=1662358)
I apologize for the noob question, but how do I uninstall the S voice that came with the ROM and Vlingo (I tried Titanium and finding it in the .zip file, but didn't want to play with the latter too much).
Again, thank you for the amazing work. BTW-this ROM is absolutely wonderful.
Please provide step by step directions, I am new to the whole scene.
titanium worked
Never mind. Used titanium to uninstall. The modded version works great!!
For anyone else interested use the S Voice patch v4 on this blog
http://epicrev.blogspot.com/2012/05/frankensteins-ego-v4-is-here-and-it.html?m=1
THANKS tdunham for spotting that script error!
Sent from my SPH-D710 using xda premium
TeamERA said:
For anyone else interested use the S Voice patch v2 on this blog
http://epicrev.blogspot.com/2012/05/frankensteins-ego-v4-is-here-and-it.html?m=1
Click to expand...
Click to collapse
It looks like there is a v3 is posted on that url.
I examined the script and it's not quite right copying over one of the files that the dev put into that flashable zip. Specifically, there is an etc/permissions folder that isn't being written back to the phone. If the app works, then maybe that file isn't necessary. But if it doesn't someone needs to tell the dev to correct the script and see if it that helps.
tdunham said:
It looks like there is a v3 is posted on that url.
I examined the script and it's not quite right copying over one of the files that the dev put into that flashable zip. Specifically, there is an etc/permissions folder that isn't being written back to the phone. If the app works, then maybe that file isn't necessary. But if it doesn't someone needs to tell the dev to correct the script and see if it that helps.
Click to expand...
Click to collapse
And I was about to grab that... Lol hopefully someone will report here when out gets fixed.
Sent from my SPH-D710 using xda premium
CyberpodS2 said:
And I was about to grab that... Lol hopefully someone will report here when out gets fixed.
Click to expand...
Click to collapse
It may work the way it is. It wouldn't hurt anything to try it. That was just an observation on my part.
FYI for anyone downloading that flash, it will delete several default files on your phone, including voicetalk.apk and vlingo.apk. If you depend on these apps I thought you would like to know. Please backup your phone prior to flashing this file so you can easily restore everything the way it was.
Updated to v4, thanks man ^
TeamERA said:
Updated to v4, thanks man ^
Click to expand...
Click to collapse
No problem. Like I said, may not even matter but I thought I would point it out in case it was an oversight. Plus I like to see how other people like to code their work and learn from it.

Recompile Contacts.apk 4.1.1

hello I would like your help to decompile and recompile the Contacts.apk. now I have installed on my s3 the Paranoid Android 2.16 and have already changed most of the apk without problems while the contacts ...... Apk Manager seems to do its job, but when it is installed on the phone I get an error and the apk will not start. Can you help me?
I myself hate it when people post in wrong section but I hate even more when people act like douchebags to them for making a mistake but come on dude really what part of this post is your own original android dev work? You've been here more than two years have more than 50 posts and still don't know which section is which. I just can't defend you.
Sent from my SPH-L710 using xda app-developers app
massinegro204 said:
hello I would like your help to decompile and recompile the Contacts.apk. now I have installed on my s3 the Paranoid Android 2.16 and have already changed most of the apk without problems while the contacts ...... Apk Manager seems to do its job, but when it is installed on the phone I get an error and the apk will not start. Can you help me?
Click to expand...
Click to collapse
Ask in the how to theme sticky in the AT&T SGSIII themes section. It might even be posted in there already.
im not even going to move this. im geting tired of people not reading an following directions. for now on im just going to lock these things up an leave a message.
First thing is to read forum rules before posting!
Especially Rule 15 about where to post what
Thread moved

JOP40D Stock Wifi Tethering

RE: Sprint, Glaxy Nexus running Stock 4.2.1:
Has anyone found a way to enable wifi tethering with a rooted stock JOP40D yet?
Oh no, three angels have fallen from grace as a result of your mis-leading title and posting in the wrong section.
Now for the goods I was gonna do the hack for that but I won't have time, its simple to do all you need its apktools and the knowledge of how to use it and you're good to go.
1. use apktool to de-compile framework-res.apk
2. navigate to res/values/arrays.xml
3. open arrays.xml in a notepad editor
4. edit the line "config_tether_upstream_types" change the 4 to a 5
5. save changes and re-compile framework-res.apk
from there you will be able to tether
orthonovum said:
Has anyone found a way to enable wifi tethering with a rooted stock JOP40D yet?
Click to expand...
Click to collapse
Wrong thread.
Sent from my Galaxy Nexus using xda premium
MBQsniper said:
Wrong thread.
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
wrong thread? I am talking about a Sprint, Galaxy Nexus running JOP40D stock and rooted and the wifi tethering functionality, this requires some dev work (see post above yours). so maybe I should have been more descriptive in my title or even my post I guess I assumed since I posted it in here it would be obvious sorry to anyone who may have been confused or mislead, if a mod wants to move it no worries :good:
Anyways... I will try the decompile/recompile steps and see if that works, I just didnt want to re-invent the wheel if someone already had done it
thanks!
jakdillard said:
Oh no, three angels have fallen from grace as a result of your mis-leading title and posting in the wrong section.
Now for the goods I was gonna do the hack for that but I won't have time, its simple to do all you need its apktools and the knowledge of how to use it and you're good to go.
1. use apktool to de-compile framework-res.apk
2. navigate to res/values/arrays.xml
3. open arrays.xml in a notepad editor
4. edit the line "config_tether_upstream_types" change the 4 to a 5
5. save changes and re-compile framework-res.apk
from there you will be able to tether
Click to expand...
Click to collapse
Thanks this worked perfectly! For anyone choosing to do this things to note:
1. It will wipe your google account so you will have to re-login and setup the gapps
2. the framework-res.apk size will not be the same (in my case it was either a full MB larger if I unzip/reziped it with my changes or 4 MB smaller if I just dropped my new resources.arsc into the original apk.. very big size difference but everything still boots up and works *shrug*
Possible to post a flash able zip for TWRP?
Sent from my AT100 using Tapatalk 2
tethering zip for 4.2.1 sprint update
This worked for me so give it a try. I have no idea if this will work for anyone else so please dont blame me if it messes up your phone. This is for the stock sprint release 4.2.1 - framework-res.apk update to include unlocked tethering.
xdalaw said:
Possible to post a flash able zip for TWRP?
Sent from my AT100 using Tapatalk 2
Click to expand...
Click to collapse
hedrickms said:
This worked for me so give it a try. I have no idea if this will work for anyone else so please dont blame me if it messes up your phone. This is for the stock sprint release 4.2.1 - framework-res.apk update to include unlocked tethering.
Click to expand...
Click to collapse
exactly which tether app is this?
orthonovum said:
RE: Sprint, Glaxy Nexus running Stock 4.2.1:
Has anyone found a way to enable wifi tethering with a rooted stock JOP40D yet?
Click to expand...
Click to collapse
ive tried many different apps and versions
the only one that worked is 1-click tether (by diy guys)
free in market
profit
SayWhat10 said:
exactly which tether app is this?
ive tried many different apps and versions
the only one that worked is 1-click tether (by diy guys)
free in market
profit
Click to expand...
Click to collapse
This is not a tether app it enables the native tethering in android, no app required
hedrickms said:
This worked for me so give it a try. I have no idea if this will work for anyone else so please dont blame me if it messes up your phone. This is for the stock sprint release 4.2.1 - framework-res.apk update to include unlocked tethering.
Click to expand...
Click to collapse
hedrickms, first of all, thank you very much for doing this and posting it for the rest of us.
Would it be possible to post a "back to stock/restore to Sprint configuration" flashable .zip, just in case? (It's always nice to have that available in case I need my phone to appear to be truly unrooted and stock.)
-- Andrew
OK not sure if this works but here is a flashable .zip to return tethering to Stock (Locked) state. I did not flash this to see if it works so if you have issues please let me know and I will see what went wrong. The "tethering_4.2.1_Return_Stock.zip" is for Sprint Android 4.2.1 only and will not work with 4.1.1 or 4.1.2.
xdalaw said:
hedrickms, first of all, thank you very much for doing this and posting it for the rest of us.
Would it be possible to post a "back to stock/restore to Sprint configuration" flashable .zip, just in case? (It's always nice to have that available in case I need my phone to appear to be truly unrooted and stock.)
-- Andrew
Click to expand...
Click to collapse
Sorry wrong thread
Please read forum rules before posting
Questions and help issues go in Q&A
Thread moved
Thank you for your cooperation
Friendly Neighborhood Moderator

Oxed vs deoxed.

I try to do a lot of reading and very little talking. However, I have not been able to find an answer to this one question.
What is the difference in an oxed vs a deoxed rom?
I appologize if the has been discussed and explained before, but when I do a search I find a lot of discussions that reference them and nothing that explains their meaning.
Eagles1181
Sent with Tapatalk and my Galaxy S3
Please excuse any tpyos.
Oops. Thought I was putting this in th Q&A section. Can a mod move this for me please? Thanks
Eagle
Sent with Tapatalk and my Galaxy S3
Please excuse any tpyos.
Eagles1181 said:
I try to do a lot of reading and very little talking. However, I have not been able to find an answer to this one question.
What is the difference in an oxed vs a deoxed rom?
I appologize if the has been discussed and explained before, but when I do a search I find a lot of discussions that reference them and nothing that explains their meaning.
Eagles1181
Sent with Tapatalk and my Galaxy S3
Please excuse any tpyos.
Click to expand...
Click to collapse
If you read this thread in the q&a freeza explains it very well.... http://forum.xda-developers.com/showthread.php?p=6 again its about halfway down in the op.
Sent from my SPH-L710 using xda app-developers app
Getting a page that says that is not a valid link. Would tou mind double checking it for me? Thanks
Eagle
Sent with Tapatalk and my Galaxy S3
Please excuse any tpyos.
http://forum.xda-developers.com/showthread.php?t=1910947
Sorry try that one.
Sent from my SPH-L710 using xda app-developers app
Q: Odex and DeOdex. HELP!
A: Well, Odex is what your phone ships with. This is a way to optimize the Dalvik so that it doesn't need to create and/or optimize your system apps/framework. Since it will already be done for you. This does not apply to any apps you install yourself. Those will be optimized by the Dalvik VM automatically. This is generally the best way to go, but is a bit more cumbersome to theme and modify. You can mix and match Odex with DeOdex, but you will need to make sure that you delete any relevant .odex files for anything you install that is tagged only for "deodex" ROMs. For instance, if someone created a battery mod that changes the colors and/or icons of the battery, you will need to delete "SystemUI.odex" before installing it, or it won't work properly, and could even cause FCs (Force Closes) and system instability. Basically, if you are going to go the Odex route, you should stick with Odex mods. This usually is the case for folks who only want a stock rooted ROM and nothing more. DeOdex is what the majority of mods here on XDA and custom ROMs are based on. It makes decompiling, modifying, and changing things much more simpler. This comes with a small performance hit on "first boot" because the Dalvik has to now build entries for system apps. In every day usage you should see no difference between the two after the first boot. You can flash between Odex and DeOdex full ROM versions anytime, and most of the time Android can recognize when a Dalvik wipe is necessary so wiping it yourself isn't necessary, but if you notice any strange issues, wiping it won't hurt.
Courtesy of Freeza from his Q&A
Sent from the future via Tapatalk 4
http://www.talkandroid.com/guides/misc/what-do-odex-and-deodex-mean-the-all-inclusive-explanation/
Basically, the Dalvik Virtual Machine (DVM) is the software that runs the executable applications in the Android operating system. The ".dex" files contain the critical lines of code that are required to run the app. If it was explained to me correclty, the DVM, when running an app, looks for the ".apk" file along with the Dalvik Executeable file, or ".dex" file. The "dex" file goes first since it contains the critical command lines, and then if the app requires, the DVM looks into the "apk" file for the rest of the commands or code.
In a "deodexed" rom, the developer has deleted the "dex" file and instead compiles the "apk" file with the critical commands on top; this process is called "zipalign'. The "zipaligned" configuration replaces the "dex" file with an "apk" file that is optimized by design for the DVM to read. Thus, the modificaiton of the rom by use of mods or themes is easier with a deodexed rom since there is no second "dex" file that also needs to be themed.
The answer as to which version is better is like asking someone if Chevy is better than Ford; you will get as many opinions as you get answers.
If I am mistaken or have misspoken anything, please; someone who is smart (like a developer) please chime in and edumacate all of us! I only repeat what I hear (kind of like my teenage daughter).
orlzzt said:
...
If I am mistaken or have missp... the purpose of why it was introduced.[/hide]
Click to expand...
Click to collapse
Thanks for the info.
Eagle
Sent with Tapatalk and my Galaxy S3
Please excuse any tpyos.
Thread moved
And a simple Google would get you the answer a lot quicker. There is lots of info on the net. And it is Odexed vs. Deodexed
CNexus said:
Just a correction, it's an ".odex" file that matches up with each apk. Odexed apks contain a classes.dex inside the app, and an odex file that pairs up with them. Deodexed apks contain a single classes.dex file that is basically a conglomerate of the original classes.dex and <appName>.odex.
As for my take on this, I will simply say that some believe odexed roms to be hundreds of times faster...but this is not really true. Deodexed roms get optimized on the first boot, so the majority of that difference is made up already made up for. Yes, it odexing an app CAN make your system a little faster, but not by very much or a whole lot.
The Thanks button is just to avoid "THANKS" posts in threads. Nothing more. Don't defeat the purpose of why it was introduced.
Click to expand...
Click to collapse
Thank you, C-Nex! I think 99.9% of people polled have said that the difference in speed is negligible. Nevertheless, Android is about choices and we Android users can choose for ourselves whether we want to use an Odexed versus a Deodexed rom. And we have brilliant developers like @strongsteve, who have spent literally hundreds of hours of their lives theming and creating roms in the Odex platform so that we users can continue to exercise our "Freedom of Choice" in this matter (and many others...)
:good::good::good::good::good::good::good:

Categories

Resources