yashsingh1/xdaforums huggingface dataset:
[Android Software Development] hacktock:
Makefile

APP := test
ROOT:=$(HOME)/Projects/Android
NDK_PLATFORM_VER := 8
INSTALL_DIR := /data/tmp

ANDROID_NDK_ROOT:=$(ROOT)/android-ndk-r5b
ANDROID_NDK_HOST:=linux-x86
ANDROID_SDK_ROOT:=$(ROOT)/android-sdk-linux_x86
PREBUILD:=$(ANDROID_NDK_ROOT)/toolchains/arm-eabi-4.4.0/prebuilt/$(ANDROID_NDK_HOST)
BIN := $(PREBUILD)/bin

CPP := $(BIN)/arm-eabi-g++
CC := $(BIN)/arm-eabi-gcc
CFLAGS := -I$(ANDROID_NDK_ROOT)/platforms/android-$(NDK_PLATFORM_VER)/arch-arm/usr/include -fno-short-enums
LDFLAGS := -Wl,--entry=main,-rpath-link=$(ANDROID_NDK_ROOT)/platforms/android-$(NDK_PLATFORM_VER)/arch-arm/usr/lib,-dynamic-linker=/system/bin/linker -L$(ANDROID_NDK_ROOT)/platforms/android-$(NDK_PLATFORM_VER)/arch-arm/usr/lib
LDFLAGS += -nostdlib -lc -disable-multilib

all: $(APP)

OBJS += $(APP).o

$(APP): $(OBJS)
$(CPP) $(LDFLAGS) -o $@ $^

%.o: %.c
$(CC) -c $(INCLUDE) $(CFLAGS) $< -o $@
install: $(APP)
$(ANDROID_SDK_ROOT)/platform-tools/adb push $(APP) $(INSTALL_DIR)/$(APP)
$(ANDROID_SDK_ROOT)/platform-tools/adb shell chmod 777 $(INSTALL_DIR)/$(APP)

shell:
$(ANDROID_SDK_ROOT)/platform-tools/adb shell

run:
$(ANDROID_SDK_ROOT)/platform-tools/adb shell $(INSTALL_DIR)/$(APP)

r: $(APP)
$(ANDROID_SDK_ROOT)/platform-tools/adb push $(APP) $(INSTALL_DIR)/$(APP)
$(ANDROID_SDK_ROOT)/platform-tools/adb shell chmod 777 $(INSTALL_DIR)/$(APP)
$(ANDROID_SDK_ROOT)/platform-tools/adb shell $(INSTALL_DIR)/$(APP)

clean:
@echo "Cleaning up..."
rm -f $(APP).o $(APP)

Output:

[hacker@derp app]$ make run
/home/hacker/Projects/Android/android-sdk-linux_x86/platform-tools/adb shell /data/tmp/test
Hello world!
[1] Segmentation fault /data/tmp/test
[hacker@derp app]$

Output (on the phone):

# /data/local/test
link_image[1995]: failed to link /data/local/test
CANNOT LINK EXECUTABLE
#

What am I doing wrong?
[Android Software Development] Gene Poole:
I've never been successful with dynamic executables using a plain Makefile. I've always had to use the JNI approach with an appropriate Android.mk configuration. To do this, make an empty directory for your project. Within this directory, make a dir called "jni" and cd to it and copy your "hello.c" source file there. Add an Andriod.mk file that looks like this:

LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_MODULE := hello
LOCAL_SRC_FILES := hello.c

include $(BUILD_EXECUTABLE)

Then, with the ndk path set appropriately (ie, on my system):

export PATH=${PATH}:/usr/src/android-ndk-r4b/build/prebuilt/linux-x86/arm-eabi-4.4.0/bin/

just run the ndk-build script (again, modify to point to your ndk installation):

/usr/src/android-ndk-r4b/ndk-build

This will produce two additional directories in the dir above "jni": "obj" and "libs". In the libs/armeabi/ dir, you'll find your (non-stripped) executable.

Just curious, where'd you get the Makefile? It looks like it should work, but I can't really see where it is getting it's libc.so.
[Android Software Development] hacktock:
I got the Makefile from http://betelco.blogspot.com/2010/01/buildingdebugging-android-native-c.html

It's for Cygwin so I made a few changes. The last comment says I should link it against crtend_android.o to prevent the segfaults but that didn't work for me. Maybe I did something wrong. I'm not really a C programmer and the only experience I have is with writing extremely basic apps so, honestly, I don't know much about linking but I'm trying to let that not discourage me from trying. It usually takes me days to get something simple done but it feels great once I manage to get my app to work.

I'll try your approach in a few hours and post back.

Oh, and I thought I should mention my phone is running Froyo at the moment.

Since I'm completely new to writing code on the phone, I thought I should ask if it is a bad idea to push the app to the phone and run it directly or should I really be using the emulator instead (since I'm not an experienced programmer)? I've got a very old PC and the emulator is slow as hell on it so it'll be great if i can avoid that.
[Android Software Development] Gene Poole:
I visited that site and read over their comments and modified the makefile at the end to match my system (gentoo linux) and it works fine on my phone (HTC Inspire 4G). I didn't do the "make run" thing, but just "make" and then pushed it to my phone manually and ran it from an adb shell. Worked fine. I'm using the r4b plaform ndk so that might be something. I'll D/L the r5b ndk and check it out.
[Android Software Development] hacktock:
I tried what you suggested and it works perfectly. Thanks!
[Android Software Development] MisesEnForce:
I still do have a segmentation fault... I stated all what I did here :

http://stackoverflow.com/questions/20936770/android-command-line-executable

Any good idea would be appreciated !

Thx
[Galaxy S I9000 Q&A, Help & Troubleshooting] Chatbox:
[Q] How to change "Input method" display order in "Select input method" popup menu?

Currently the "Select input method" popup menu shows:

Swype

Touch Input Chinese

Gingerbread keyboard

Samsung keypad

Android keyboard

Can I change it so that it will show (?):

Gingerbread keyboard

Android keyboard

Samsung keypad

Swype

Touch Input Chinese
[Galaxy S I9000 Q&A, Help & Troubleshooting] myrddral:
There's no end-user option to change it whatsoever.
[Galaxy Tab General] jtskier11:
Anybody know if there will be a sub-forum for the wifi only Tabs? How much if anything from other Tabs will even work on the wifi only units??
[Galaxy Tab General] natious:
try and flash overcome and see what happens
[Galaxy Tab General] ravness:
You'll need balls of steel to do it though.
[Galaxy Tab General] foxmeister:
Given this post, I think you can safely say that a WiFi Tab subforum isn't going to happen!

Regards,

Dave
[Galaxy Tab General] markgamber:
Not really, just some common sense. For example, if you DO NOT have the original firmware FOR THE GIVEN DEVICE that you can flash in case of emergency and a flashing app that works in emergencies, DO NOT flash anything to that device, period. Unless, of course, you're ok with quite possibly staring at the download screen forever. It takes a lot to kill these things but if it's waiting for good firmware you don't have and you can't get, you may as well have killed it.
[Galaxy Tab General] webrover83:
We just recombined GSM and CDMA, why split for Wifi only?

Actually, I'm indifferent. I'm just trying to get my post count up so I can talk to DEV's.
[Galaxy Tab General] jtskier11:
Good point. Now that I look at things again the Tab itself is all in one area anyway. Ill just keep my eyes peeled for wifi specific stuff.
[Galaxy Tab General] numb_heart666:
there is 1firmware that works the one at samfirmware.com

and it can be flash by odin 1.7 and ive tried it

i just havent tried the overcome rom yet

cause my tab is 2weeks old ahahaha and i dont have the balls to do it.

i got research the different kernel will kill the phone without download mode
[Upgrading, Modifying and Unlocking] hanyu14:
Hi, I am currently using T-Mobile Samsung Galaxy S 4G, SGH-T959V.

I want to know how to do the partitioning thing to improve speed of my Galaxy S 4G and want to know how to change my phone setting into one nand format to increase speed also.

Those intellectuals who knows very well.. please answer me!

I want to get out of my slow Galaxy S !! :(
[Upgrading, Modifying and Unlocking] Andrewawright:
Just did a quick Google search and found a link I was going to post that should help, but being a new user I can't post it in a reply.

Fear not, however! If you Google "partitioning samsung galaxy s" it comes up as the third result.

Not too clued up about partitioning and have never used the Galaxy S but hope this helps :)
[myTouch 3G Slide Q&A, Help & Troubleshooting] SefEXE:
Now, it's not a bootloop. Thought I'd clear that up first.

Sometimes when I reboot my phone, it'll loop the splash maybe 2, 3 or even more times and then get to the CM7 image and start up.

I noticed this after activating Wifi. I don't know if it's the cause, though. I'm actually gonna test that after this post... Just wondering if anyone else is experiencing this.

Started on CM7 RC...4, I think. Still doing it on Final as well.

Also, my Wifi stopped working. D: It was working the first time I turned it on, rebooted and then it was borked.
[Desire Q&A, Help & Troubleshooting] adamofport:
Huzzah noob questions!

Recently, my phone's screen head-butted a microphone and now the touchscreen doesn't work. US Cellular would like ~$250 to 500 (refurb and new, respectively) for a replacement. I love the phone, but I can't just part with that much money without doing a little research.

Fast forward to now: I've looked on eBay (and many other dealers, carriers, etc.) for a used phone as getting a new plan elsewhere would still be too expensive. I found a couple used ones for ~100 from a highly rated source and it leaves me wondering a few thoughts:

-Does the phone differentiate at all going from carrier to carrier? Or, does a cdma desire mean a cdma desire?

-I have heard that US Cellular will activate the used phone once I purchase one. Anyone have any experiences with this kind of support through them, htc desire or otherwise?

-Are there any other places to look for a used/new htc desire? I'm currently checking local craigslist ads and finding prices slightly higher than eBay. I figured at least they could show me the phone was functional if I chose to go that route.

Thanks for any/all help you can send my way.
[myTouch 3G, Magic General] jaime1400:
hello everyone. i just bought my dad a Mytouch3G. i installed ginger Yoshi but he did not liked so after trying to going back to stock.

i installed and hboot version (i don't remember the thread where i got it). now the phone wont turn on!!!

I get the charging let light. but when i press the power button the led turns off an nothing happens.

its a 32B board. what can i do?

would you kindly help me?

i tried with the following

power + volume down

power + home

power + back

and nothing happened. can i still do something thru ADB?
[myTouch 3G, Magic General] jaime1400:
i found the thread i was link to from this forum

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

it seems it is for the G1 not the mytouch 3g!!

what can i do?
[Nook Color General] Sjflowerhorn:
Does anyone elses Nook lock up on them frequently. My lockups consist of a reboot, me pulling out the CWMR boot sd and wiping my cache and then good to go(60% of the time it works everytime, sometimes i have to reflash completely).

But it seems like its 2-3 times a day that it will just freeze and fail to reboot properly. This has been on CM7 nightlies 37,38 and phiremod 5.3. I also had same results with Honeycomb and Froyo 0.6.8. Stock 1.0.0 was fine for extended lengths of time. not sure whats going on with my device maybe someone else is having this issue or has fixed it already, any advice is welcome. SJ
[Nook Color General] Sjflowerhorn:
i hate to be that guy but 29 views and nobody can at least type "never had that happen" im not looking for an answer im wondering if its software or if its hardware malfunction ie water or impact damage.

(edit)

I have only owned this NC for 5 days now, however no new kid on the block when it comes to android and rooting devices. i feel as if i must be forgeting to wipe something when i flash roms but i jst do as instructed by the thread.
[Nook Color General] Evaders99:
I've had occasional forced close on the CM7 nightly builds. Nothing on the frequency you're describing. The only time I had major issues with lockups, I was using a slow or faulty SDcard. I switched to a Transcend 8GB class 6 and it's been much better.
[Nook Color General] Sjflowerhorn:
I did a clean wipe and flash of cm7 stable and it seems to be holding upas of so far, but well see.

Im also sometimes noticing screen distortion on power Downs. I wish there was a water damage indicator I could see easily
[Nook Color General] john10101:
On the rare occurrence, ill pickup my nook, and it will be off. not sure why this has happened once or twice (could be user error.) Otherwise its very stable. I would suggest a full wipe, dont forget davlik cache (which it sounds like you already did) and see what happens. CM7 has been quite stable for a while. Ive never had an issue.

Now on SD Card.. thats a different matter entirely. i was never able to get a stable bootable version of any rom on sd card. It seems like the Cards Are very picky.
[Android Apps and Games] Miami_Son:
Want to upgrade one of these apps, but not sure which one. I like the idea that Pandora gives paid users better quality music, but that probably means more data usage. I listen mostly to alternative hits and I recognize more of the songs/artists when listening to Slacker. Fewer skips, too. Pandora is cheaper, but only offers 1 year memberships. Slacker offers monthly, but it gets even more expensive that way. Pandora almost never loses signal, Slacker sometimes does and the pause between songs on Slacker is often long. Just wondering what the XDA community prefers. Thanks.:cool:
[Android Apps and Games] djdanska:
I use slacker. I find it plays better. I do like it because i was able to bill it to my t-mobile account. I went into the settings and put it in high quality audio mode and i am more than happy with the audio quality. I like the interface better.
[Android Apps and Games] I Am Marino:
I don't use either one. Pandora is being investigated for selling personal phone IDs, among other information, so uninstalled.

Never used Slacker.

I just use TuneIn Radio for streaming actual stations.

Nothing for just random music selection.
[Android Apps and Games] Miami_Son:
WOW!:eek: Had never heard this, but a Google search brought this up:

http://online.wsj.com/article/SB10001424052748704694004576020083703574602.html?mod=WSJ_Tech_LEADTop

Looks like Angry Birds and some other popular apps are involved. This kind of thing makes me consider using a prepaid, featureless phone. We may all be dummies for using smartphones.:mad: I hate to see government get involved, but it's obvious that companies will stoop to anything unless and until there are laws to stop them.
[Vibrant General] Do Thai Ngoc:
Hi everyone,

I'm using Trigger rom for my phone. But Bi-winning rom is already issued. Both of them from EDT, and i like them. Just now, i'm so confuse to choose Trigger or Bi-Winning. Please tell me the suggestion. Thanks.
[Vibrant General] MilkPudding:
I was using Trigger before I got FFC, then I switched to Bi-winning coz I don't need to flash more mods to have the FFC support.

Frankly speaking, I can't really tell the difference in terms of speed and power. Both are smooth as butter, fast and gorgeous. Just pick the one you like.
[Vibrant General] s15274n:
2.2.1 rom's are nice, and bi-winning is my fav of them.

That said, I'm reverting to Trigger as it's 100% perfect. Others just seem to have hiccups, for me. I can't stand the browser showing transparency when scrolling on bi-winning (maybe just me?)
[Vibrant General] Mdtolic:
While I'm still more than happy with Loki, I'd like to hear what else folks, who have tried these two EDT ROMS, have to say about them too.
[Vibrant General] JD76:
What are the differences between TeamWhiskey's Bionix 1.3.1 and EDT's Trigger?
[Vibrant General] iCaptivate:
For me, Trigger is more smooth and way better on battery life.

Bionix is nice, but it has a sturdy feel to it instead of smooth, might just be me tho.

Trigger gets updated constantly, but when there is an update to Bionix, it's usually something big(thats what she said).
[Vibrant General] JD76:
Thank you for your feedback. Its time to try Trigger...
[Vibrant General] Bernardos70:
Bi-winning's browser (and probably every 2.2.1 browser, I imagine) is hardware accelerated. So it is faster than Trigger's when it comes to pinch zooming, scrolling heavy websites, etc. It has tiny little glitches, mostly dealing with pages that pop up non-maximized, but I rather deal with that and have the way faster browser than the other way around.
[Vibrant General] s15274n:
Interesting, i really disliked the browser on Bi-Winning... just seemed glitchy to me. Never noticed it on Trigger or CM7.
[Vibrant General] Do Thai Ngoc:
I want to talk about battery life and smooth. Which is better than? Anyone tried? Just tell me your opinion.
[Vibrant General] Bernardos70:
It works great for me. If I go to engadget.com on a 2.2 browser, the full site that is, it lags a whole lot when scrolling. even the forums here at XDA, the main forum view, lags a lot in 2.2, but it is a lot smoother in 2.2.1. Other sites I can think of are as.com, ablogtoread.com, among others. A blog to read is pretty much unusable in 2.2.

I used trigger for a while, and it is as good as 2.2 will get IMO. But 2.2.1 is worth it for the browser alone (save for the one aforementioned glitch, the pages that pop up when you click on a link, but they are on top of the previous page, which are pretty glitchy).
[Vibrant General] s15274n:
I've tried them all, and so should you.... you and your phone are going to determine what is best. From what you said, I would try Trigger first.
[Vibrant General] Blown 89:
I'm with bi-winning for the browser acceleration. I prefer trigger because I don't have a front facing camera but right now the browsing experience is keeping me on bi-winning.

I might try some of the other 2.2.1 offerings and see if that have that annoying ffc buttons all over when I find the time.
[Vibrant General] alexhee:
Bi-Winning has Chinese Language support which I prefer but in terms of perfection still Trigger is better.

Bi-Winning is still new compared with Trigger but I bet it will become one of the favorite vibrant ROM among the rest since the uniqueness of it is Chinese Language support. :)
[Vibrant General] infin80:
For all people using the stock browser regardless of the version I highly recommend you check out Opera Mobile, the new version that came out it a huge improvement. It has hardware acceleration and much smoother than the stock browser for pinch to zoom and a lot of features that IMO should be included in the stock browser.

As far as roms go, I was using Team Whiskey roms (Nero 5 through Bionix 1.3.1) almost exclusively for a while, tried Trigger which was pretty good, but had some minor issues. I've flashed Bi-Winning v2 and I think it's the best of the roms I've tried so far. Of course YMMV so I'd try them both to see which you like better.
[Epic 4G Q&A, Help & Troubleshooting] dreamsforgotten:
I'm searching for syndicate rom version 1.0.2 or 1.1.0 fully loaded users to do some touchwiz theme testing. In house acs testing is being done but I want to try more phones to get a wider range of results. what I needed is just for you to flash a theme and see if it all works fine. If not we need to do a little but of troubleshooting so a solid nandroid is a must but it could all work the first go round. Post in the thread if theres anyone interested and for more details.
[Epic 4G Q&A, Help & Troubleshooting] ecooce:
Ill help,2 epics here...
[Epic 4G Q&A, Help & Troubleshooting] heroforme:
I'll help if needed. My Epic seems to be one of the one's without all the freezes and Fc's and I'm running Syndicate 1.1.0 at 1.3 Ghz by 800 mhz with no issues so far.
[Epic 4G Q&A, Help & Troubleshooting] dreamsforgotten:
Here you go https://dl-web.dropbox.com/get/Public/Giger2.0tw.zip?w=59c06432

This is the new Giger theme for touchwiz flash this and see for me. The problem on sr101 was that the dialer tab activity, contacts, and phone.apk would completely remove the phone icon from the phone when themed. Even when I themed directly from the apps in the rom. I'm hoping this issue is resolved in the sr110 but if it hasn't I want to figure it out so those on fully loaded can enjoy full themes as well.
[Epic 4G Q&A, Help & Troubleshooting] dreamsforgotten:
I can use you to test this as well but make sure your on the fully loaded syndicate rom and not the standard version I know that one works.
[Epic 4G Q&A, Help & Troubleshooting] heroforme:
I can try to help. I am running fully loaded version but link seems broken.
[Epic 4G Q&A, Help & Troubleshooting] dreamsforgotten:
The ssl sites and tapatalk always does this. When you get to the webpage and it don't load, look up at the address bar in your browser. It will have http://https:// at the beginning of the address. Delete the http:// leaving https:// and the rest of the address then hit enter
[Epic 4G Q&A, Help & Troubleshooting] dreamsforgotten:
Bump
[Epic 4G Q&A, Help & Troubleshooting] sultan.of.swing:
SRF 1.02 here, wll give it a try when I get home and showered.
[Epic 4G Q&A, Help & Troubleshooting] dreamsforgotten:
Thank you the last rom tested was 1.0.1 but I'm hoping both 1.0.2 and 1.1.0 don't have the issue theres just less touchwiz users that mod than the rest of us so a wide range of testing just don't happen
[Epic 4G Q&A, Help & Troubleshooting] sultan.of.swing:
Hey just got a second to sit down and download it but I'm assuming you have it in your private folder. Says I have to login to dropbox to download.
[Epic 4G Q&A, Help & Troubleshooting] dreamsforgotten:
Alright my apologies I'll move it over now to public, if you don't mind holding a bit.
[Epic 4G Q&A, Help & Troubleshooting] dreamsforgotten:
Sorry upload speeds aren't the best with the box

http://db.tt/JRssVKw
[Epic 4G Q&A, Help & Troubleshooting] igoth76:
I'm willing to help also.
[Epic 4G Q&A, Help & Troubleshooting] dreamsforgotten:
Alright try to flash the link directly above the post you just made but nandroid first in case it don't play well and let me know if everything works. Make sure your phone icon stays there and no fx issues
[Epic 4G Q&A, Help & Troubleshooting] igoth76:
All seems to be fine. Still have phone icon, no funky stuff that I can tell.
[Epic 4G Q&A, Help & Troubleshooting] dreamsforgotten:
Great and the theme took as well? That is awesome its much appreciated! The first fully loaded rom lost the phone icon when themed even when specifically using the apps from fully loaded rom
[Epic 4G Q&A, Help & Troubleshooting] dreamsforgotten:
Your running sr102 or sr110?
[Epic 4G Q&A, Help & Troubleshooting] igoth76:
110 and theme seems to have taken fine. Only thing I see is the messaging icon isn't themed. Attaching screenshots.
[Epic 4G Q&A, Help & Troubleshooting] dreamsforgotten:
Oh yeah. I slacked on the icons cause I replaced all of them with the adw launcher but since this is touchwiz I'll open the system apps and fix that. Once again thank you
[Vibrant General] ericwalsh:
hi, i was running simply galaxy, and decided to try flashing MIUI. I have all the files and I flashed the CM7 Kernel. Im not sure if its just the way its supposed to be and its taking long, but when i reboot my phone after flashing the kernel, it appears to be stuck at the clockwork mod boot logo. is it just taking long or am i in trouble?

If i am in trouble, please, tell me how i can fix it.

I can get into recovery,

I can NOT GET into download mode
[Vibrant General] shreddintyres:
so its stuck at the vibrant splash screen or does it go to the boot animation?
[Vibrant General] ericwalsh:
I think its soft bricked. Its stuck at the clockword mod logo screen that comes with the kernel.
[Vibrant General] ericwalsh:
OK UPDATE

. I can NOT GET into download mode. please, i need help
[Vibrant General] VeryCoolAlan:
You might have to buy a jig :/
[Vibrant General] ericwalsh:
You cant be serious. please, no :(
[Vibrant General] VeryCoolAlan:
If you can't get into recovery to flash or download mode then yes

They're like $8
[Vibrant General] ericwalsh:
I can get into recovery though.
[Vibrant General] VeryCoolAlan:
Can you flash or select options?
[Vibrant General] ericwalsh:
Yea, i can actually mount USB storage.if i found a stable ROM, flash, then factory reset, this could possibly work, right?

by the way, recommend any daily, stable ROMs?
[Vibrant General] VeryCoolAlan:
Okay you are at the orange recovery right?

If so then no the only rom you can flash is miui or cm7 okay

Go to mounts and storages then format system .data .and cache then flash miui the. Factory reset and reboot

.
[Vibrant General] ericwalsh:
flash the miui ROM or the vibrant-efs backup?