yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] andrews240:
I have a couple questions about odex optimization on hero.

I ran the speedup script that was posted in the, now closed, hero help thread earlier. Later, I decided to move my app_s folder to /data/app_s to further optimize for speed. My question is, do I need to rerun the script now that app_s has been moved.

Another question that I have is, is it normal for the .odex files to be created in the app_s folder, not the dalvik-cache folder? I just expected them to be in dalvik-cache. Also, there are a handful of regular .dex files still in the dalvik-cache folder. Is this normal too.

Thanks for all of the valuable information. This is great.
[G1 Android Development] knaries2000:
you should be able to move the files without having to regenerate them.

The odex files are created next to the apk files so not suppose to be in dalvik-cache folder.
[G1 Android Development] ccyrowski:
The Best way

I've tried all of these, and gotten them to work successfully. There were marginal increases in speed for them. However, the best way IMHO is (1) to leave widgets and Rosie.apk internal and move everything else to the SD, (2) and delete Launcher.apk.

Mine never force closes and is reliable. Plus 84MB free.
[G1 Android Development] jroid:
this didn't work for me. i got a huge load of rm failed for every app

at the end of the process it said process failed
[G1 Android Development] jroid:
now im stuck on g1 screen.
[G1 Android Development] beagz:
what did you try to do. Step by step please
[G1 Android Development] daemontux:
Which folder did you run this on? If it was in system did you remount first? Not sure if it's required for other folders but did you have root priveledges when running the script?
[G1 Android Development] jikei:
*post deleted..I'm a moron*

anyways, for those who want to run this on JF 1.51/etc and don't realize, you need to modify the script from this post http://xdaforums.com/showpost.php?p=3874592&postcount=58 to change "app_s" to "app"

Worked perfect for me.
[G1 Android Development] overground:
Linux geniuses please read

If it's possible (which it's probably not, since no one has put this out there yet), could someone compile a script or give us a command to only delete and update odex files which are new or modified since last script run? Sounds really complicated to me, but just throwing it out there for thought. I think we all can agree it sucks to run the scripts to recreate every file when we just update or install 1 or 2 .apk's. Some sort of attribute difference search or something. Of course, I'm not holding my breath on this one, but I think we would all appreciate this. Thanks.
[G1 Android Development] ivanmmj:
I wonder: Are these compiled for our CPU's? (Can I use it on a port of Android for an ARM5 based phone? (Ours is ARM6 based.)) Or is this just ARM compatible in general?
[G1 Android Development] Tafkatoo:
I'm running Ionr1 which already has most of the .jar files .odex'd. Installed newest HTC_IME and PDFViewer, along with the /etc /lib and /framework files. As I went through and dexopt-wrapped things by hand (very few things aren't in ION anyway) and then /data/app and /app-private (on SD) I'd noticed my davik-cache would get used less and less. Eventually the only thing left were the two .jar files I pushed, which I dexopt'd along with everything else in /framework not already done (again, almost all of it was in ION anyway) except framework-res.apk which would give an error. I'd then delete before a reboot for fear of looping.

Been running it for a couple days now, bootin' and rebootin', using every function in every app and have had no issues and an empty dalvik-cache. Although w/o H's New SPL it wouldn't be possible due to all the .odex files in /system/app.
[G1 Android Development] knaries2000:
I hate shell scripting.... anyways here is a new script that will only regenerate new odex for apps that have been updated, or for apps that don't have an odex file....

for i in /data/app/*.apk

do

odex=`echo $i | sed -e 's/.apk/.odex/g'`

i_time=`stat -t $i | cut -d' ' -f14`

o_time=0

if [ -f $odex ] ; then

o_time=`stat -t $odex | cut -d' ' -f14`

fi

if [ $i_time -gt $o_time ] ; then

rm $odex

echo "dexopt-wrapper $i $odex"

dexopt-wrapper $i $odex

fi

done

echo "----------- DONE -----------"
[G1 Android Development] knaries2000:
here is that script attached to make it easier.
[G1 Android Development] overground:
Thank you for being a genius!
[G1 Android Development] jroid:
I pushed the dalvikvm and libdvm.so from ion to hero, and removed the ones from hero and now rosie forcecloses everytime i do anything on rosie(tap an app, swipe to left,or right) any ideas.. if i click the app tray it comes up nd i can run any app still, so I assume the vm is still running?
[G1 Android Development] Nedlinin:
Any harm in having this script run at bootup to generate the .odex files? Having to manually do it is a bit on the annoying side..

Either way, thanks for the script - works great
[G1 Android Development] miclaro:
as requested:

find /data/app -name "*.apk" -mtime -1 -exec programm {} \;

that gives the files modified in the last day and execute the programm.. giving it the file name as a parameter
[G1 Android Development] miclaro:
the full script would be:

for i in `find /data/app -name "*.apk" -mtime -1 -print`

do

odex=`echo $i | sed -e 's/.apk/.odex/g'`

if [ -f $odex ] ; then

rm $odex

fi

echo "dexopt-wrapper $i $odex"

dexopt-wrapper $i $odex

done

just tried it and it works
[G1 Android Development] pelo88:
Here's my script that takes a bit from what everyone already does

for i in /system/app/*.apk

do

odex=`echo $i | sed -e 's/.apk/.odex/g'`

i_time=`stat -t $i | cut -d' ' -f14`
o_time=0

if [ -f $odex ] ; then
o_time=`stat -t $odex | cut -d' ' -f14`
fi

if [ $i_time -gt $o_time ] ; then
if [ -f $odex ] ; then
rm $odex
fi
echo "dexopt-wrapper $i $odex"
dexopt-wrapper $i $odex
fi

done

for i in /system/app/*.odex

do

apk=`echo $i | sed -e 's/.odex/.apk/g'`

if [ ! -f $apk ] ; then
rm $i
fi

done

echo "----------- System Apps DONE -----------"

for i in /data/app/*.apk

do

odex=`echo $i | sed -e 's/.apk/.odex/g'`

i_time=`stat -t $i | cut -d' ' -f14`
o_time=0

if [ -f $odex ] ; then
o_time=`stat -t $odex | cut -d' ' -f14`
fi

if [ $i_time -gt $o_time ] ; then
rm $odex
echo "dexopt-wrapper $i $odex"
dexopt-wrapper $i $odex
fi

done

for i in /data/app/*.odex

do

apk=`echo $i | sed -e 's/.odex/.apk/g'`

if [ ! -f $apk ] ; then
rm $i
fi

done

echo "----------- Market Apps DONE -----------"

It creates new odex files for any apks that don't have an odex or have an older odex and it removes odex files for any removed apk, first it does this for system files then it does this for data files (market apps).
[G1 Android Development] enatefox:
Maybe I'm failing here, I tried to run it (on Donut but shouldn't matter) and got this error for each:

All the odexes are 0-byte. Any ideas?

I found the source code for it here but don't see the condition that is met to throw the error.
[G1 Android Development] htcmagic:
Could somebody please put the command from adb shell to create odex file for a single apk?

Thanks
[G1 Android Development] overground:
You can try this...no guarantees. Needless to say !!USE AT YOUR OWN RISK!!

Edit below commands replacing instances of * with desired FULL app name. If the app you're odexing does not reside in /data/app/ - replace with correct path. Save as /sdcard/odex.sh or change path and filename to preference. Easiest IMO to run with Gscript. Good luck. I quit doing this a long time ago. The hassle/problems didn't seem worth the barely noticeable speed gains.

mount -o remount,rw -t yaffs2 /dev/block/mtdblk3 /system
rm /data/dalvik-cache/data@app@*.dex
rm /data/app/*.odex
for i in /data/app/*.apk
do
odex=`echo $i | sed -e 's/.apk/.odex/g'`
echo "dexopt-wrapper $i $odex"
dexopt-wrapper $i $odex
done

After editing run:

su
sh /<path to script>/scriptname.sh

Again...untested for several months.
[G1 Android Development] dying4004:
so it means that i can delete any odex file and recreate it. right?
[G1 Android Development] -= sk0t =-:
You must specify BOOTCLASSPATH

dexopt-wrapper /system/framework/services.jar /system/framework/services.odex [COLOR="Red"]/system/framework/core.jar:/sys
tem/framework/ext.jar:/system/framework/framework.jar:/system/framework/android.policy.jar:/system/framework/services.jar[/COLOR]

You can find right BOOTCLASSPATH in file init.rc
[Touch HD Themes and Apps] lancsuk:
can anyone recommend an app that i can use to send text messages from an touch hd that has the capabilities of saving sent messages ?

cheers
[Touch HD Themes and Apps] Scrtcwlvl:
Your phone is already able to do this by default.

Open Messaging (texts or email doesnt matter)

Hit right soft key - Menu

Go to Tools - Then Options

Hit the message tab at the bottom

Enable Keep Copies of Sent Items in Sent Folder
[Touch HD Themes and Apps] Pandemoniumone:
Pretty much any 3rd party app will do this (along with the stock winmo).

I use Vito SMS Chat for my sms. It also has the capability to backup you texts to your SD card!
[Touch Pro2, Tilt 2 Themes and Apps] mallman:
Just wanted to start a thread and say I have tried version .106 which was working on every ROM i tried n my touch HD but no go on the TP2. Anyone else have luck with a particular version?
[Touch Pro2, Tilt 2 Themes and Apps] sMoKeFiSh:
Same problem here. I was able to get a pin with version .103 but it would not connect to the network.
[Touch Pro2, Tilt 2 Themes and Apps] jutley:
did you try here

http://www.htc.com/sea/SupportViewNews.aspx?dl_id=497&news_id=61
[Touch Pro2, Tilt 2 Themes and Apps] davidebeatrice:
not working for me....:(
[Touch Pro2, Tilt 2 Themes and Apps] sMoKeFiSh:
As stated in the first post, version .106 of BlackBerry Connect won't work (no PIN). Tried it myself too.

Thanks for the reply though. Hope we'll get a fix for this soon so I can get rid of my TYTN II.
[Touch Pro2, Tilt 2 Themes and Apps] leginag:
Would love to see BB Connect work on the TP2, as my plan comes w/ BIS, and from what I understand, BB Connect would allow me to use the unlimited BIS internet/email (right?)
[Touch Pro2, Tilt 2 Themes and Apps] mirage22:
ouch....

that will hurt big time... as my htc tytn died completely before i decided to buy the pro 2.

Will no change in the registry or something help, like we used to do in the TyTn?
[Touch Pro2, Tilt 2 Themes and Apps] mallman:
nope, tried the standard reg hacks
[Touch Pro2, Tilt 2 Themes and Apps] mirage22:
has anyone tried asking customer support at HTC for a temporary solution?

btw, am getting my phone tomorrow - have been tracking DHL... :)
[Touch Pro2, Tilt 2 Themes and Apps] mallman:
no but from past experience they are not very helpful and will probably state it isn't supported. All devices seem to go through this then they are magically supported and a version is released. I have been using exchange push emaul option and it works great. the only difference for me is that my company uses 4 character passwords for blackberry and 8 for exchange.
[Touch Pro2, Tilt 2 Themes and Apps] mirage22:
got my htc tp2. installed bbconnect 106 and the device is connected - has a pin. On the flip side, its been some time since i sent my service books, it has none in the list! :(
[Touch Pro2, Tilt 2 Themes and Apps] mirage22:
after a few hours of waiting and also one soft reset, the connection is established.

The settings page shows - Data Tunnel Available - but it does not go into connected mode.

However the services page does not have anything listed yet.

Any smart brains around? :)
[Touch Pro2, Tilt 2 Themes and Apps] mirage22:
i contacted HTC support, and this is what they wrote back! ... hmm.... - looong wait....

btw.. which is this compatible software they r talking abt?
[Touch Pro2, Tilt 2 Themes and Apps] mallman:
doesnt exist yet
[Touch Pro2, Tilt 2 Themes and Apps] leginag:
Is the Blackberry connect software dependent on HTC or our mobile carrier? (or doesn't it matter).

Would really be handy to get the unlimited BB internet on the TP2.
[Touch Pro2, Tilt 2 Themes and Apps] mallman:
carrier i believe. I think there is a range of IMEE or something software related that passes through the carrier and if the BB connect software version youa re running doesnt report the right things then it doesnt work. Not sure if I am right or not but i thought that is how i understood it.
[Touch Pro2, Tilt 2 Themes and Apps] giantrez:
hi guys, tp2 just bought and sadly realized that bbconnect doesn't work. any news form your side?
[Touch Pro2, Tilt 2 Themes and Apps] merryg:
Please dont let this thread to be forgotten. Surely there are capable people at xda-developers who will find a solution for this. It has been solved for the blackstone so I hope the solution for Rhodium is on its way.
[Touch Pro2, Tilt 2 Themes and Apps] mallman:
the reason it was solved for the Blackstone is because HTC put out a version for it :) This is standard for new devices. You will just have to wait. I hate it too but is how it is.
[Touch Pro2, Tilt 2 Themes and Apps] mirage22:
why don't we all mass mail them again this weekend... and show there is an urgency to get bbconnect asap...

i feel so disabled for the past 2 weeks... :(
[Touch Pro2, Tilt 2 Themes and Apps] bremair:
Did anybody try this: http://www.willnat.org/?p=58

Sync BB with Thunderbird. Sounds really nice but don't what to crash my PPC as it runs great for now.
[Touch Pro2, Tilt 2 Themes and Apps] Zzzza:
ModelId and BB connect Touch diamond2

Hello all. I installed new ROM 6.5 from HTC. Followed the steps described here. Same issue on BB conncet - Pending. Device ID did not changed. I also run application manally, no change. Option nr.2: Installed cooked ROM from HTCPedia. Followed the steps described + changed AKU as here in forum. Same result - Pending. I used BB106. If I was RIn fir sure I would ask for IMEI. Also i think MS apps on the phone does not make possible to tun BB related services. From some friends this is the same issue on Symbian new OS. War of giants hit only us.
[Touch Pro2, Tilt 2 Themes and Apps] Zzzza:
ModelId and BB connect Touch diamond2

Hello all. I installed new ROM 6.5 from HTC. Followed the steps described here. Same issue on BB conncet - Pending. Device ID did not changed. I also run application manally, no change. Option nr.2: Installed cooked ROM from HTCPedia. Followed the steps described + changed AKU as here in forum. Same result - Pending. I used BB106. If I was RIn fir sure I would ask for IMEI. Also i think MS apps on the phone does not make possible to tun BB related services. From some friends, this is the same issue on Symbian new OS. War of giants hit only us.
[Touch Pro2, Tilt 2 Themes and Apps] tmotp2jc:
Double-post aside, there is no "war of giants" on this front. RIM stopped developing Blackberry Connect a long time ago, and people are simply trying to patch outdated software to run on modern ROMs. RIM is actively (albeit as slow as Microsoft does with OS development) developing the BlackBerry Application Suite, which is equivalent to running a BB virtually on a WM device.

Now, that aside, what MS apps are you implying are conflicting? This would help with people with a bit more knowledge track down what's happening and see if they can help.

Also, everything on this site in terms of ROM & software development is technically not allowed by the respective copyright owners, RIM, MS, Opera, etc. They just tend to turn a blind eye because the developers here are actually helping to make their products better. :D So, again, the man is not trying to shaft you. :D
[Touch Pro2, Tilt 2 Themes and Apps] billy_batch:
Hi,

I upgraded using the stock HTC 6.5 ROM and followed these steps.

I install the modelid.exe fix first

I enable the multi APN feature through the registery, so that BBC didn't keep loosing conneciton

I set the ACU to .1.6.3

Then I installed BBC 1.06 and bam! worked first time, connected and IP and PIN received. I ran wireless activation and everything worked OK.

My only problem is that when using the device for several hours, I cannot press the OK button in the top right hand corner, as it is non responsive, I have to press the "back button" to return to the inbox, after reading each message.

Also the Settings hard button doesn't respond when in this state. This looks to me like there is some conflict with BBC 1.06 and the 6.5 build, as I haven't installed any other software.

Everything else is working 100% so it is frustrating to have this problem, has anyone seen this before?

Now I know BBC 1.06 works with 6.5, I may look to one of the cooked ROMS as they may well not have this problem, do to updates to base applications.

Any help is appreciated :)
[Touch Pro2, Tilt 2 Themes and Apps] miscom:
That seems to be an issue specific to the Device/ROM version you are using. I have an HTC HD (T8285) with Dutty's Leo R6 ROM with no issues.

What Device/ROM do you have?
[Touch Pro2, Tilt 2 Themes and Apps] billy_batch:
Hi,

I have the Touch Pro 2 with the newly released ROM update from HTC for 6.5.

It all worked fine with 6.1.

Thanks
[Touch Pro2, Tilt 2 Themes and Apps] Zzzza:
BB Connect 4.0.0.106 working great Windows Mobile 6.5 on seveal phones

Hello All. Here in the forum you will find the setmodelID for diamond2 too. do the steps described here. Our phones are working with the original ROM's.

We are using BB connect106. You might have to press register several times under BB unit you got the PIN.
[Touch Pro2, Tilt 2 Themes and Apps] ralfkanton:
Hello,

I am using a HTC Touch Diamond (German Vodafone, WM 6.1 Prof.) now for 15 months. First I flashed a customized Rom + Radio from bepe (bepe_0.95PremGer) and then I installed the bbconnect_wm6_professional_bb.4.0.0.104.cab on the HTC Diamond. I am the only user in our company who is using a none Blackberry device for our Blackberry mail service. Runs great for me with mails, calender appointments, etc.

Now I am thinking about replacing my Touch Diamond with a new, ongoing cell phone. For instance the HTC HD2 oder some other smartphone with WM 6.5. May be there are any other options for me using the Blackberry services on Android, Apple, Symbian or any other operation system? It would be very nice if someone would list the current phones, which are able to run the Blackberry serivces.

I would appreciate your help and recommendations!
[Touch Pro2, Tilt 2 Themes and Apps] bremair:
I now flashed my MDA Vario V from WM 6.1 to WM 6.5. BB runs with the SetModelID.exe-thing but now I didn't get it working. ID is changed to HTC-Raphael, install v106, did everything like before.

Someone who use BB with WM 6.5? I use ROMeOS³
[Touch Pro2, Tilt 2 Themes and Apps] c0rnholio:
I suggest you to use the info provided here: http://www.silentservices.de/HexEdit-ROM-for-BBC.html

to change your ROM permanently. By doing it this way, you don't have to mess around with the modelID stuff and everything is working fine.
[Touch Pro2, Tilt 2 Themes and Apps] bremair:
Thx 4 the answer, sounds really got.

But I found "Rhodium" two times and no "HTC-Rhodium" as you can see at the screenshots. Which one did I have change? And do I only write Raphael or HTC-Raphael?

*Edit

Just change both Rhodium to Raphael and flash again but it don't change the device id in bbc.
[Touch Pro2, Tilt 2 Themes and Apps] mitsi:
Does anyone know how to create shortcuts as described in post 4 of this: http://xdaforums.com/showthread.php?t=271076 ?

Then it may be possible to automate the BBReloaded programme at startup?

In addition, once I have gone through the BBReloaded programme, I usually have to go into either

(1) BBSettings, Status, Suspend and then Resume; or

(2) BBSettings, Utility, Register Now

as well. Could this be automated too? :confused:
[Touch Pro2, Tilt 2 Themes and Apps] c0rnholio:
Come on man, you're editing the upgrade program instead of the rom. Edit the nbh file instead...*sigh*
[Touch Pro2, Tilt 2 Themes and Apps] c0rnholio:
In my opinion this cannot be automated, but maybe I#m wrong here. Why don't you simply edit your ROM to fake the device id?
[Touch Pro2, Tilt 2 Themes and Apps] mitsi:
Hi cOrnholio, I tried that before, but I have a Topaz. This has fewer letters than the Raphael. You previously suggested that I try to find other HTC's with 5 letters that are Blackberry enabled, but I couldn't find any....
[Touch Pro2, Tilt 2 Themes and Apps] c0rnholio:
Ah, OK. Sorry, I forgot that.

What you can try is to set BBC to not start automatically (->BBC-Settings->Status->Suspend on Startup).

Thus, it *should* not be necessary to reregister after each softreset.
[Touch Pro2, Tilt 2 Themes and Apps] mitsi:
Thanks cOrnholio, I tried that too. It doesn't work for me because my company's IT Department inflict Blackberry security on my phone. This kicks in before any programme in my startup folder. Therefore Blackberry is/has been running even if I suspend it at startup. It certainly runs before the SetModelId runs. :(
[Touch Pro2, Tilt 2 Themes and Apps] c0rnholio:
Ok, now I'm out of ideas...sorry
[Touch Pro2, Tilt 2 Themes and Apps] mitsi:
I was afraid you would say that, but I appreciate your efforts and help so far with this anyway!!
[Touch Pro2, Tilt 2 Themes and Apps] bremair:
Oh, my mistake. Now I edit the right one and in the bbc tab device type is HTC-Raphael but PIN is still pending.

Which ROM do you use? It really works on WM 6.5? When I push "Register Now" I got a IP Address for a few seconds and then lost it again -> No Connection.

I use BBC for over 1 year now with different roms but this time I need your help to get it working.
[Touch Pro2, Tilt 2 Themes and Apps] c0rnholio:
OK, LAST hint. It has been posted several times before:

BBC 106 works on 6.5 on the Rhodium if you change the device model ID (as you already did) AND you changed your AKU to .1.6.3
[Touch Pro2, Tilt 2 Themes and Apps] bremair:
Thanks c0rnholio changed

HKLM\System\Versions\AKU key, change whatever in there (like .5.3.0) to .1.6.3

and now it works so far.
[Touch Pro2, Tilt 2 Themes and Apps] Rickmasta:
Ok, guys. I've been reading the thread, and I'm a little confused. Do I need to have some kind of blackberry plan for this to work?
[Touch Pro2, Tilt 2 Themes and Apps] AirwolfUK:
Yes I'm afraid you do.
[Touch Pro2, Tilt 2 Themes and Apps] Rickmasta:
Ah. Can we use our data plan and a blackberry plan at the same time?
[Touch Pro2, Tilt 2 Themes and Apps] mitsi:
For those of you who are still using the SetModelID programme with cOrnholio's BBReloaded programme and would like to automate this on startup, here is a Mortscript I have come up with. Thanks go to RoryB on the Mortscript forum here http://xdaforums.com/showthread.php?p=4980404#post4980404. The script below also deals with the Blackberry Security. You can see my password is pppl, because once BB Security is re-enabled, the password needs to be inputted.

WaitForActive("BBReloaded",-1)

Sleep (1000)

MouseClick 150,127

Sleep (2000)

MouseClick 150,187

Sleep (2000)

MouseClick 150,245

Sleep (2000)

MouseClick 150,307

Sleep (2000)

MouseClick 150,366

Sleep (2000)

MouseClick 150,427

Sleep (2000)

MouseClick 150,485

Sleep (2000)

SendSpecial( "LeftSoft" )

Sleep ( 900 )

SendKeys( "pppl" )

Sleep ( 400 )

SendSpecial( "LeftSoft" )

Sleep ( 900 )

SendSpecial( "LeftSoft" )

Run("Program Files\Mortscript\BBCUnlock.mscr")

Note, this works with the Topaz. Because the screen is WVGA, the mouse click positions may not work with yours if it not a Topaz. Also, this deals with the BBSecurity. Yours may be different, so I suggest you use either RoryB's one or modify mine above or make your own!! I cannot be responsible if this messes up your phone, although I think Mortscript is quite harmless and very useful.

I have done quite a few soft resets now and this seems to work. You will need mortscript installed and put a shortcut of whichever script you use in the windows/startup folder.

Good luck.
[Touch Pro2, Tilt 2 Themes and Apps] WiZaxx:
No activation password

I keep getting "no activation Password" error message everytime i try to activate.

Anyone knows what causing it?

Cheerz

M