yashsingh1/xdaforums huggingface dataset:
[Android Software Development] moebot1976:
Thanks!

Do you know of any docs for smali? Most of the output is obvious but there are some lines that are confusing to me. For example:

///---- code begin ---- //

1. invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

2. move-result-object v4

3. sub-int v5, v1, v6

4. invoke-virtual {p1, v6, v5}, Ljava/lang/String;->substring(II)Ljava/lang/String;

5. move-result-object v5

6. invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

7. move-result-object v4

8. invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

9. move-result-object v4

10. invoke-static {v4}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

11. move-result-object v4

12. invoke-direct {v0, v10, v4}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V

/// ------ code end ------ ///////////~

Q1. What is happening in line 3 to 5? I see method substring being called but how do you know what its arguments are? Specifically beginIndex and endIndex.

Q2. Whats the difference between invoke-direct and invoke-virtual?

These are really cool programs!!
[Android Software Development] tekproxy:
There isn't much documentation for smali but for the Dalvik opcodes there is some. Just try googling "dalvik opcodes". Here's one I use, sorry I can't post real links yet:

pallergabor.uw.hu/androidblog/dalvik_opcodes.html

Dalvik is optimized to use very little memory so you will see a ton of variable reuse. Also, it is register based and not stack based so at least you don't have to worry about what is on the stack.

Line 3 is doing v1 - v6 and putting the result into v5.

Line 4 is getting a substring of p1 starting at v6 and ending at v5. Without getting a good look at v1 and v6 it's hard for me to tell exactly.

Line 5 puts the result into v5 (reduce, reuse, recycle!)

The difference between virtual and static is that static methods are called without virtual method resolution. I'm not really an expert but I found this link helpful:

netmite.com/android/mydroid/dalvik/docs/dexopt.html
[Android Software Development] Jan Rune:
Thank you. It was exactly what i needed after to much smali :D
[Android Software Development] lotherius:
Thanks for this... I know I'm engaging in Thread Necromancy, but others may find this useful as well... I fought forever with Notepad++ trying to get syntax highlighting.. there's a website out there with a smali syntax file for NP++, but it just never actually worked...
[Android Software Development] mudhi:
Thanks, and BTW, without highlighting, it will take me to stare those codes forever.
[XPERIA X10 Themes and Apps] debs626:
Hello guys and thanks for looking in on my quest

I've had a look around but can find anything suitable so though I would aks your expert opinion.

I've had (still having probs) with SE's PC companion, its telling me there are updates for my X10i but I'm just going round in circles trying to get it up dated so I gave up. anyway, all I want to do is edit my contacts, also add and delete a few. I cant connect with the SE's online sync as I don't have that option on my phone, only option is to sync with google :(

Does anyone know of a PC app that will connect with my Xperia X10i and enable me to edit these fields ?

Tanks in advance for any help, recommendations or advice ;)
[XPERIA X10 Themes and Apps] madman13:
do you have a blutooth adapter on your pc
[XPERIA X10 Themes and Apps] debs626:
No, I don't have blutooth on my pc :(
[XPERIA X10 Themes and Apps] im_iceman:
Have you tried accessing the contacts via your google account on the web??

That's what I did.
[XPERIA X10 Themes and Apps] debs626:
I have 380 contacts in my gmail :( and only about 100 of them I want on my phone.

What happened was, when i went to copy my contacts to sim (in my old phone) only 230 of those were saved :( and from the letter P onwards the contacts with phone numbers only are no longer on my phone and not on my gmail contacts list. (only the email contacts are there)

I thought that I could easily access my contacts list on my phone and delete who I didn't want and add who I do. I still want to keep all my contacts on gmail tho.
[XPERIA X10 Themes and Apps] Bigw@ve:
Just set the google sync on your phone to sync "My Contacts" only and make those the contacts with phone numbers using the web interface of gmail.

The "All contacts" is for everything of course and you'd uncheck that sync to leave out the others.
[XPERIA X10 Themes and Apps] debs626:
I cant find a google sync on my phone :( I can just view contacts with phone numbers in my phone book

..... still gonna hold out for a PC app b4 I go adding more contacts to gmail.

Thanks everyone for ur reply's sofar ;)
[XPERIA X10 Themes and Apps] SXUsr:
So what do you see in "settings" - "Data Synchronisation"? It's a bit strange that you say...

"I cant connect with the SE's online sync as I don't have that option on my phone, only option is to sync with google" & "I cant find a google sync on my phone"

...have you had a good play around with your phone?
[XPERIA X10 Themes and Apps] debs626:
I found it eventually lol but the SE's sync instructions don't match my phone. It instructs me to select SE's sync and I cant, for the life of me, find that anywhere :(

1. From the Home screen, tap the applications bar.

2. Tap Settings > Data synchronisation > Select sync application

3. Select Sony Ericsson

I don't see number 3

To set up Sony Ericsson sync in your phone:

1. From the Home screen, tap the applications bar

2. Tap Sony Ericsson Sync > Get started

3. Log on with your Sony Ericsson account (same as on www.sonyericsson.com)

4. Tap Accept in the Authorise screen

5. Select which information you want to synchronise

6. Start the sync by tapping Finish

I don't see number 2 :(

each time I start up the SE's PC companion it tells me there is an update for my phone but I've yet to manage to up date it as the companion keeps sending me round in circles. I tap the mount SD as instructed by the companion, then I get a slash screen instructing me to turn off phone, take out battery for 5 seconds, restart phone plugged into usb holding the back button ... then the splash screen on the pc instructing me to tap mount SD on my phone appears again .... and so on and so on grrrrr :(
[XPERIA X10 Themes and Apps] Evostance:
www.google.com/contacts
[Galaxy S I9000 General] _DiMoN_:
I had uploaded from my previous phone all my contacts to my Gmail account under a group phone. So my Galaxy S downloaded all of them.

Now here comes the questions:

1) When I create a new contact what should I do to have it synced with my Gmail account? I suppose I have to create it under my Gmail account and not to the phone? Right? What about the contacts under th phone, they are not synced with my Gmail? What if I have several accounts?

2) I have added my facebook account and I have linked contacts together. Is this backed-up somewhere? I found the simple answer is no.

So what I want is to update my contacts with correct data, link them together and have them backed up to my gmail account?

If you tell me about kies, it back up only what is in the phone...
[EVO 4G Themes and Apps] dmoses1969:
Anyone know what this clock is or where to get ?

Thanks
[EVO 4G Themes and Apps] timothydonohue:
looks like a skin for beautiful widgets clock
[EVO 4G Themes and Apps] dmoses1969:
I want that Clock!

After doing a little more searching I think you are correct. But, its not available in the skin list on beautiful widgets.
[EVO 4G Themes and Apps] TheBiles:
I'm fairly sure that it isn't Beautiful Widgets because the weather is in the wrong place. You can't re-arrange the icons when theming the widgets.
[EVO 4G Themes and Apps] Sprockethead:
Where did you get the screeshot?
[EVO 4G Themes and Apps] dmoses1969:
Got it from here http://androidforums.com/android-ap...ul-widgets-not-taken-down-htc.html#post195063
[EVO 4G Themes and Apps] neodorian:
In that thread it seems that they are mockups that one forum poster put together as ideas for the Beautiful Widgets dev.
[Android Software/Hacking General [Developers Only]] qvert:
Hi, i am no dev, sorry if this is the wrong section, but i realized that inside of Android 2.2 sdk or something there is the new C2DM Service. Even Google says that it could work very well for instant messages like this:

C2DM makes no guarantees about delivery or the order of messages. So, for example, while you might use this feature to tell an instant messaging application that the user has new messages, you probably would not use it to pass the actual messages.

http://code.google.com/intl/de-DE/android/c2dm/index.html

i searched for an app, which uses C2DM for instant messaging for serveral IM networks like icq, msn etc, but didnt found anything... all the messengers like ebuddy, meebo etc don't use this new push notification which should save a lot of battery, if the device gets pushed about new messages and only than the devices download the message from the server

what do you think about it?

PS: sorry for my crap english
[Android Software/Hacking General [Developers Only]] vibez:
Hopefully this new service will solve all the issues we have with the current crop of instant messengers and their frequent disconnection. This is one feature I miss from my old iPhone
[Android Software/Hacking General [Developers Only]] FadeFx:
i guess most developers of messaging apps are already working hard to incorporate c2dm into their clients. since froyo is still verry young and there is only one device yet that is officially running it, the use for this would have been verry smale yet. but im sure in a few weeks we will have lots of messaging apps using this feature.
[Android Software/Hacking General [Developers Only]] plzkkthx:
-

new Google Talk in FroYo already uses C2DM, other messengers are likely to follow in several months as more phones get FroYo
[Android Software/Hacking General [Developers Only]] Alexander6501:
How is life going? Froyo is about 6 months old, 36 % running Froyo, and the only C2DM-using apps I know are Whatsapp, Jumpnote and Chrome To Phone. I know Google is holding several C2DM presentations.

I'm still missing a IM-app, soccer scores app and so on. Are there any developers working on this? Or is it hard to obtain acces for Google C2DM?
[Android Software/Hacking General [Developers Only]] qvert:
Triilian im and beejive im are using c2dm
[Android Software/Hacking General [Developers Only]] -Happy Feet-:
hi to all,

when you want to use googles cloud to device messaging ,you must still connected wifi or wakes wifi up when you recieve an message like Googlemail or Trillian Messenger?

thx

p.s.:sry for my bad english
[Android Software Development] nanolite:
I don't know what to make of it but some programmer might find this interesting. That is the reason I'm posting this. I personally don't understand how this app can improve the speed of our phones. If that is it's intention in the first place.

Read more about it here:

http://flexycore.com/droidbooster-overview.html

...and a demo of it in work?

http://www.androidzoom.com/android_applications/demo/droidbooster_fbzk.html

Via AndroidZoom.com ->

Here is where I read it in the first place:

http://androinica.com/2010/07/22/dr...ms-to-pulverize-java-code-execution-on-froyo/

They mention XDA-developers :D
[Android Software Development] header2k:
It seems to be a toolchain for GCC and they sell this to the OEMs only.

P.S. There are some threads about it already!
[Tilt, TyTN II, MDA Vario III General] aznphatb0i:
Hi.

The problem is that when making or receiving phone calls, no audio can be heard (audio is sent fine) - unless the speakerphone is enabled.

This problem appeared randomly at some point after it had been running a custom WM6.5 build for some time.

The exact same problem is now persisting under ANDROID.

Is this most likely a broken speaker or a software fixable issue?

I'm using the latest available radio and HARD SPL.

Anyone know a way to enable the speakerphone mode by default under ANDROID?
[Tilt, TyTN II, MDA Vario III General] aznphatb0i:
BUMP

I've read in some threads that certain HTC phones have a problem where the USB port thinks that a USB headphone is plugged in and then disables the regular audio, seems the only remedy is jiggling the port which hasn't helped for me..

Is this the problem with my Kaiser?

Any fix or workaround, or at least software hack in Android to make the speakerphone default then
[Tilt, TyTN II, MDA Vario III General] aznphatb0i:
bump!

..........​
[Tilt, TyTN II, MDA Vario III General] Mr. Clown:
Have you hard reset or reflash?
[Tilt, TyTN II, MDA Vario III General] aznphatb0i:
I have hard reset and flashed different OS -

The problem 'appeared' after it was running fine for a long period of time though (with no configuration changes) - so I think that perhaps the problem lies with the mini usb jack as noted in post #2 - but i may be wrong?
[Tilt, TyTN II, MDA Vario III General] Gourm3t:
I have same problem which makes very MAD:mad: Did you fixed that already? any tips how to solve or even tutorial?
[Tilt, TyTN II, MDA Vario III General] sciobel:
Up.

The same problem with HTC Desire HD on a stock Android ROM 2.3.5 (no custom ROMS tried on this phone yet). Any idea? Any help?
[Hero, G2 Touch General] johann3s:
Like it says in the title. Since this morning the phone thinks headphones are plugged in on boot, it shows the symbol in the top right corner. But there are no headphones at all ;)

I did some flashing this morning, that may have caused it? But the strange thing is: If i wipe everything, and flash a new rom, the problem still exists, with different roms. It gets even stranger: when i connect the phone to my computer by usb, and then disconnect it, the symbol disappears, but when the phone is still connected, it shows a symbol for a headphone with a mic attached to it, if you know what i mean ;)

Any help with this? I am stuck here since wiping and flashing new roms doesnt solve anything...
[Hero, G2 Touch General] xinos:
I had a similar problem with my Xperia X1. The problem was my headphone jack got stuck (meaning the little pin that indicates whether something is plugged in got stuck). Wat solved the problem for me was taking a small pin and poke around till you un-stuck the plug. Have had this problem with my hero once but a reboot solved the problem.
[Hero, G2 Touch General] johann3s:
Maybe i should also tell you, that after the usb-cable has been connected and disconnected, everything works fine, until the next boot, so that is strange if it is a hardware fault isn't it?
[Hero, G2 Touch General] nijnvy:
mine used to have this problem, and was annoying as the phone could only be used for calls in speakerphone mode, or with the headset.

The problem kind of waned away, but when it returns I use headset toggle widget (google) to switch the headset off when I need sound to come from the handset.
[Hero, G2 Touch General] sublue:
Mine had that problem some days ago, i flashed other kinds of ROM's and all that but the phone still showed that a headset was plugged in.

The next day, it was all fine.

Could be dust or something inside the jack that's causing this problem? :rolleyes:
[Hero, G2 Touch General] walkinhotdog:
I think it is a software problem but definitely not a ROM problem, i had this problem before on 1.5 and 2.1. It usually appears after being turned on or rebooted. What i found was that if you turn off the phone without waiting a while to turn back on it is more likely to appear. Sometimes i would poke a headphone around until it went away, sometimes when i do this it brings up a call screen but it doesnt actually make the call. Really weird. What i did to keep this problem away is to turn off the phone for the night when i sleep.
[Android Software/Hacking General [Developers Only]] Deleted member 267841:
hi,

after latest upgrade (htc desire, open desire 2.3, busybox, app2sd), i have issues with the access to the file system on /system (via terminal emulator from the phone).

all works fine using adb, but when i try to delete or copy a file to /system (directly on phone), i have a error.

i have searched over inet, but i don't find :/

i attach a example below

# mount -o rw,remount /dev/block/mtdblock3 /system
# cd /system/etc/test
# ls
-rw-rw-rw root root 124 ul 22 13:54 test1
-rw-rw-rw root root 124 ul 22 13:54 test2
# rm test1
error deleting test1: directory not empty
# ls
-rw-rw-rw root root 124 ul 22 13:54 test2
# ls test1
test1
[Android Software/Hacking General [Developers Only]] Deleted member 267841:
edit:

i have the same issue when i connect to my phone using adb (and the phone started, not in recovery mode)..

# mount -o rw,remount /dev/block/mtdblock3 /system
# cd /system/app
# cp -f /sdcard/install/nosense/system/app/Terminal.apk .
cp: can't create './Terminal.apk': Out of memory
# cp -f /sdcard/install/nosense/system/app/Terminal.apk .
cp: can't create './Terminal.apk': Out of memory
# cd /system/app
# cp -f /sdcard/install/nosense/system/app/Terminal.apk .
cp: can't create './Terminal.apk': Out of memory
# cd /system/app
# cp -f /sdcard/install/nosense/system/app/Terminal.apk .
cp: can't create './Terminal.apk': Out of memory
[Android Software/Hacking General [Developers Only]] bemymonkey:
Hi there... are you new to the desire?

As far as I can remember, writing to /system/ outside of ADB in Recovery is not possible on the Desire - an unfortunate limitation of the current root methods which hasn't been circumvented yet.
[Android Software/Hacking General [Developers Only]] Deleted member 267841:
oh! thx!

i have received my desire a few days ago.

my old phone was a nexus.

i agree! and sorry for the inconvenience
[Android Software/Hacking General [Developers Only]] bemymonkey:
What inconvenience? :p

I was a little confused too when I started reading about root on the Desire, and the info is hard to find (buried in one [or a few] of the many root tutorials)...

The really interesting part, IMO, is whether this limitation causes any problems with root-apps. But there don't seem to be any other than Adfree, and there seem to be patched versions that work with the Desire now (IIRC by moving the Hosts file out of /system/ and symlinking to it) :)
[Vibrant General] LovellKid:
Used busy box to cp dlna.apk/odex (allshare) back to system/app and my phone boots up normal, but then when the lockscreen is supposed to come up it stays black, but the keys are responsive and light up when touched.. any ideas how I can fix that? thanks
[Vibrant General] LovellKid:
Bump.....Anyone?
[Desire Android Development] blubber83:
This update installs a binary battery percentage indicator. This is a particularly 'geeky' mod, and it requires some getting used to. I made it for fun, install it if you want to, or don't if you don't like it.

If there are any ROMs that you want me to make an update.zip for, let me know. Be advised though that this mode is specifically made for ROMs with black notification bars, although the battery icons don't have a background color, I can't imagine them being readable on white notification bars.

Changlog:

Added icons.zip as attachment (contains all the icons).

Added charging icons.

Crash course: reading binary numbers.

The battery indicator consists of 2 rows of 4 'LEDs', the top row represents the 10's the lower row the 1's. Binary numbers are read from right to left, in this order the bits represent the values 8, 4, 2, 1 or (2^i for i = 3 .. 0), because the top row are 10's their values are 80, 40, 20 and 10 respectively.

For example, the image below,

.

In this image the 4, 2 and 1 LEDs are on in the top row, representing (4 + 2 + 1) * 10 = 70. In the lower row only the 4 LED is on, representing 4 :). Put this together and you get 70 + 4 = 74%.

Creating your own custom framework-res.apk

If you are not using AdamG's sensefroyo 1.0c chances are that the posted update.zip will land you a nice bootloop. If this is the case, you can modify your ROMs framework-res.apk. It's not that hard, just follow the steps below. Before you start you need the Android SDK (most notably adb), apktool, the attached icons.zip and ofcourse a rooted phone. (These instructions are for linux, but windows and mac instructions won't differ that much.)

Reboot your phone into recovery. Make sure you enter whatever custom recovery image you are using.

Execute:

adb shell mount /system
adb pull /system/framework/framework-res.apk

While executing the steps described below, make a nandroid backup.

Use apktool to unpack the .apk:

apktool d framework-res.apk

Unzip icons.zip and copy the files to the right directory:

unzip icons.zip
cp res/drawable-hdpi-v4/* framework-res/res/drawable-hdpi-v4/
cp res/drawable/* framework-res/res/drawable/

CD into the framework-res.apk directory and rebuild the apk:

cd framework-res/
apktool b

Push the new framework-res.apk found in the dist/ directory:

adb push dist/framework-res.apk /system/framework/framework-res.apk

.

Reboot phone.

Don't blame me if it goes wrong!
[Desire Android Development] lambrospower:
nice idea :P but i'd stick with the decimal battery for quicker reading although i love this kind of stuff :P
[Desire Android Development] stingerpl:
nice idea, but kind of useless since human beings operate on decimal system :D
[Desire Android Development] fatboygrim:
Hi - sorry to be a killjoy - maybe I pushed it wrong, but this made my phone boot continuously (HTC white screen boot loop)

I booted into recovery and then used the following commands:

adb shell mount /system

adb pull /system/framework/framework-res.apk C:\AndroidBackup

adb push framework-res.apk /system/framework

adb reboot

let me know if I've missed something! :)
[Desire Android Development] blubber83:
What rom are you using?
[Desire Android Development] fatboygrim:
ah yes - my fault - I'm using Modaco R5 WIP - didn't notice it's only for v1.0c of the AdamG/Opendesire team froyo sense Rom :)

Any chance of getting a version that will work on Modaco / other roms etc?
[Desire Android Development] munkimatt:
I'd hardly consider it useless, there are people who enjoy reading their numbers in binary.

Nice work blubber83, I'm sure there will be people on here who will love this :)
[Desire Android Development] fatboygrim:
Absolutely! Please create versions that will work on a few other (popular) Roms ;)
[Desire Android Development] dnlgee:
Nice touch and idea, won't be using as I don't have the foggiest! Nice work though :D
[Desire Android Development] alias_neo:
Speak for yourself. After 10 Years of Engineering, I see Hex or binary where it's not even intended.
[Desire Android Development] stingerpl:
What do you mean "speak for yourself"? I'm an engineering graduate also but I'm still pretty sure that human beings operate in decimal system. If this would not be true, you should not need any instructions on how to convert it back to dec. For me, using this is like making a cup of tea with your boxing gloves on. I just don't see the point.
[Desire Android Development] alias_neo:
Why do human's work on decimal? Because that's the number system we are first taught as a child. When you have been using a different number system almost as long as another, the distinction is small.

If you're fluent in several languages you'll understand exactly what I mean.

Hence I said "Speak for yourself", it was a light hearted joke, it is of course true to most humans, but there is no reason binary should be much harder than decimal if you use it enough.
[Desire Android Development] Fightspit:
I will make a Super Circle battery Mod with binary number ...

... in version Z !!!

:D :D :D
[Desire Android Development] blubber83:
I've attached a new version with charging animation. Also posted some instructions on making your own mod for different ROMs then sensefroyo.
[EVO 4G Q&A, Help & Troubleshooting] zunteck:
What's the best program to use for apps 2 SD?? Can't figure it out