yashsingh1/xdaforums huggingface dataset:
[Samsung Infuse 4G] Dani897:
it is kinda speculative as ive never tried it. but rfs is similar to fat32, magic iso can manipulate the images. as far as i can tell factoryfs.rfs is the system partition. im not a dev and am kinda clueless on the other stuff. i know there are scripts in the csc stuff on the captivate files. im not sure what to do about that other than mimic the captivate stuff and hope for the best.
[Samsung Infuse 4G] lost1:
Recovery is Vol-Up + Vol-Down + Power.

Just tried it and it worked like a charm.
[Samsung Infuse 4G] Dani897:
did you try any pit at all? that's a bad idea all together right now. there is a post in i9000 section about how to make one. i can try it out but without data.rfs and dbdata.rfs images it is useless. still a lot to learn.
[Samsung Infuse 4G] Dani897:
yep it's all like the captivate
[Samsung Infuse 4G] Dani897:
this phone has 3e recovery. not a good chance of it working. unless att wanted it unlocked for some reson
[Samsung Infuse 4G] Unkrash:
This takes me to the downloader instead of recovery.

I'm not sure what good a pit's going to do if we don't know the way anything's partitioned and I never repartitioned to begin with. I'll look into it, however.
[Samsung Infuse 4G] lost1:
Yeah, I'm not sure that will work. I am a dev, just not an android dev. This thing will ultimately need a lag fix since its using RFS.

The problem is that what you see is incomplete. There are image files which are mounted during startup that we lose access too once the system is fully booted. Its those files we need to pull. Once we have those, we have everything we need for full blown development.

I started down this path with the Captivate but got side-tracked by life. Hopefully, I'll have some more time so I can experiment more here.

On a side note, I started doing a lag fix for this before I got distracted with the rom issues.
[Samsung Infuse 4G] Unkrash:
Yeah, noticed that. I was trying to get cwm on it instead (in hindsight, bad idea due to no roms) and read up that flashing a kernel with it on it, in my case speedmod, would change that.

Obviously not!
[Samsung Infuse 4G] Dani897:
i think it gets pulled from the phone. i may look at it and try it so we have one.

for recovery, if the phone is not badly messed up timing is esencial let go of the button combo when the forst slpash screen pops up
[Samsung Infuse 4G] lost1:
So did CWM work? Were you able to reboot after installing CWM?
[Samsung Infuse 4G] Unkrash:
Yeah, the timing thing doesn't do anything. If I let go of all buttons at/after the splash, it stays or goes back to splash. Same with releasing just the power button at those times.

Nope. Only recovery-type screen I can get to is that downloader.
[Samsung Infuse 4G] Dani897:
good news is sources are posted. may take time but it's something
[Samsung Infuse 4G] Unkrash:
Wonderful! I asked them on Twitter and they said they didn't know as of yesterday. Faster than I thought and I'm thankful.
[Samsung Infuse 4G] Dani897:
did you try the kernel in post 2? i know you said you tried to .tar the zimage but i may have done something different when i did it.
[Samsung Infuse 4G] Unkrash:
Yup. Still no dice; it gave me the hanging on zImage problem.
[Samsung Infuse 4G] Dani897:
hmm so we have a zimage and no confirmation that it is any good
[Samsung Infuse 4G] Unkrash:
The progress bar goes nowhere on both Odin and the phone while it tries to flash. It does say KERNEL in Odin, but that's it. Eventually it gives up and disconnects and reconnects.
[Samsung Infuse 4G] slappyjoker:
Chika Da China Da Chinese Chicken?

Yesssssssssssssssssssssss.........................:cool:
[Samsung Infuse 4G] slider2828:
Where are the sources posted?

******EDIT Found it **********
[Samsung Infuse 4G] slappyjoker:
Chika Da China Da Chinese Chicken?

HOW TO BUILD KERNEL 2.6.32 FOR SGH-I997

1. Visit http://www.codesourcery.com/, download and install Sourcery G++ Lite 2009q3-68 toolchain for ARM EABI.

2. Extract kernel source and move into the top directory.

3. Execute 'make dempsey_rev00_defconfig'.

4. Execute 'make' or 'make -j<n>' where '<n>' is the number of multiple jobs to be invoked simultaneously.

5. If the kernel is built successfully, you will find following files from the top directory:

arch/arm/boot/zImage

net/netfilter/xt_TCPMSS.ko

drivers/onedram_svn/modemctl/modemctl.ko

drivers/onedram_svn/onedram/onedram.ko

drivers/onedram_svn/svnet/svnet.ko

drivers/bluetooth/bthid/bthid.ko

drivers/net/wireless/bcm4329/dhd.ko

drivers/scsi/scsi_wait_scan.ko

drivers/samsung/fm_si4709/Si4709_driver.ko

drivers/samsung/vibetonz/vibrator.ko
[Samsung Infuse 4G] Dani897:
thank you, no-one has ever answered me when i asked how to compile a kernel. i plant to try this tonight
[Samsung Infuse 4G] Unkrash:
I was looking around and heard a Linux distro is required for some of the software. Dunno, I'm a script kiddie at best here. I'll look around some tonight and see if I can as well. Experience would help for me regardless.
[Samsung Infuse 4G] Dani897:
im at about that level myself but i do have a linux box. it is acctually my primary computer.

if you dont have linux look into mint 10 or you can be like everyone else and use ubuntu. these are both usable for everyday stuff with very complete software packages. video drivers can be annoying depending on your hardware. wifi drivers may also be a problem but on many systems it is easier than installing windows. and almost as easy to operate
[Samsung Infuse 4G] Dani897:
/bin/sh: /opt/toolchains/arm-2009q3/bin/arm-none-linux-gnueabi-gcc: No such file or directory

i get this error when i try to build the kernel. wondering why the files wasnt installed. hmmm

edit. the bins appear to be there but it is looking for the wrong file names and in the wrong directory. did i somehow install it wrong? im afraid to edit anything in fear that it is not right.
[Samsung Infuse 4G] slappyjoker:
Chika Da China Da Chinese Chicken?

I am still new to all of this. I have the ability to find the info, follow directions and eventually learn what the heck I am doing. Usually by finding out that the directions I was following were incomplete.

I will do some trial and error with you.....we will get this whipped out.
[Samsung Infuse 4G] supergear:
Did you try flashing with heimdall ?
[Samsung Infuse 4G] h8rift:
Yes. Any luck with heimdall?
[XPERIA X10 Q&A, Help & Troubleshooting] kistigun:
Hi can anyone provide me the customer Region/location finger prints numbers for the newer xperia devices(Arc, Neo, Play)?
[General Topics] bigbudha:
upad zt-180 rooting 256 ram ddr2 and 4gb nand.

i need rooting instructions pls

and need a link to rom development pls

i am a noob

thank you
[General Topics] bigbudha:
i also in the app draw superuser does that mean it has been rooted? i bought this used. pls any help
[Hero, G2 Touch General] tomekk_nt:
I'm looking for a guide which tells how to make a own custom ROM from another one :)

I mean:

1. How to add/replace/remove apps in /system/app/?

1. a) Do they need to have special permission?

2. How to replace boot screen?

3. How to add custom kernel?

4. How to add Desire lockscreen/flip clock?

5. How to add transparent notofication area?

6. How to add Power menu?

I've been serching forum, but didn't find such tutorial. Would be very thanful to get this knowledge.

I think that will be very useful for maaaany android maniacs :D
[Hero, G2 Touch General] bluepinkpanther:
1. Simple delete/copy apks in .zip file using 7-Zip or any other.

2. I belive you need to put bootanimation.zip in /data/local/ folder.

3. Idk

4. For Desire lockscreen you need edited HtcLockScreen.apk; for flip clock - HtcClockWidget.apk

5. Edited /system/framework-res.apk or /system/framework/com.htc.resources.apk. I'm not sure :D

6. You need edited /system/framework/android.policy.jar

69. Resign your zip file using Auto Sign
[Hero, G2 Touch General] tomekk_nt:
Attachment doesn't load, but I know about resigning ROM after everything is done :)

Ad. 1. As I thought, but do the need special permissions? And I also wonder one thing. Are they installed while flashing? Cuz they need to be in system registry, I think...
[Hero, G2 Touch General] bluepinkpanther:
I have found this: http://wiki.android.com.pl/wiki/Kon...iana_instalowanych_aplikacji_razem_z_systemem

No any permissions etc.
[Hero, G2 Touch General] tomekk_nt:
Found this, too. Thanks.
[Hero, G2 Touch General] JieeHD:
to add a custom kernel you have to unpack the boot image and edit the ramdisk manually, although i think there is an option in dsixda's kitchen to unpack and repack the boot.img
[Hero, G2 Touch General] tomekk_nt:
I've got two more questions:

1. When signing, three files are created in folder META-INF: CERT.RSA, CERT.SF, MANIFEST.SF. But in other packages I see also com/google/android/update-script in META-INF. How to make it? Is it necessary?

2. If I want to make only flashable update file which changes one app or another file, eg. framework-res.apk, I have to create folder structure: system/framework/framework-res.apk, add it to zip archive (no compression?) and sing using Auto-sing. Am I right?

Edit:

Found nice guide there: update-script syntax
[Hero, G2 Touch General] erasmux:
The most important part of a recovery update zip is the update script. It will tell the recovery what to do. If you want an example of a basic update package, which replaces one file in the /system/framework (although a different one) can found here. Open this and read the META-INF/com/google/android/updater-script (or whatever its called). The syntax is pretty straight forward and I think its easiest to learn from the examples of updater scripts found here on XDA. For the simple case, of only replacing/adding files to the /system partition you can leave the updater script from the above example as is and only change the files under the /system directory in the zip.

Note, that the above example uses the newer upader-script (I hope I am writing this correctly, I am writing from memory) which also has a binary file in the same directory. Some update zips use the older "update-script" lone text script. For these kind of scripts, you can find a guide here.

Personally, I use RA recovery, and for this recovery you need to sign the update zips (last thing you do of course). At least for RA recovery, both the older "update-script" and the newer "updater-script" work fine, so its up to your personal preference which do you prefer.
[Hero, G2 Touch General] tomekk_nt:
Thanks. Found a guide you mentioned a couple of minutes ago and read it.

The more I know, the more questions it brings :D So one more thing. If I'd like to use the newer version of syntax: "updater-script", I need also to put this binary file in this folder. But I create/edit only "updater-script", binary file is the same for all packages, or do I need to edit it, too?
[Hero, G2 Touch General] elelinux:
I built a kernel tool long time ago, very easy to use (only for linux)

1: unzip the file, place it where you want it eg your desktop

2: place boot.img in the working directory

3: double-click the menu icon or launch from terminal

4: it creates a new directory named BOOT-EXTRACT,edit what you want in there or change the kernel etc.. and repack it again via the kernel tool

see screenshot. here for those how want the tool >>> http://www.elelinux.se/tools/kernel_tool.zip

Edit: Only for Hero
[Hero, G2 Touch General] riemervdzee:
Only the updater-script. The binary is a replacement of the script-interpreter I think, but thats just an assumption.
[Hero, G2 Touch General] tomekk_nt:
And that's a good reason to install newest Ubuntu ;) Thanks!

That's mine assuption, too, but would like to know it for 100% :)

Edit: I see you use it in your kernel update package. So you write only updater-script and place also update-binary next to it?
[Hero, G2 Touch General] JieeHD:
LOL, you've got help from every well known hero dev on xda, I'm sure you'll have all the info you need now to start building rom's. Good Luck! :)
[Hero, G2 Touch General] tomekk_nt:
Found an app called Easy Flashable zip Builder on this thread. Will test it soon.
[Hero, G2 Touch General] elelinux:
But it is for MS Windows, or saw I wrong ? I have also built a tool to javasign files,but should probably write a manual first,it is easy to use but some dependencies maybe not so easy for a beginner with Linux.
[Hero, G2 Touch General] riemervdzee:
Correcto :)
[Galaxy 3 General] maverickgenius:
Hello guys

I saw a thread somewhere here that explained how to remove the unnecessary apps with the name of the apk and the description of what the apk does. The thread listed all the apk files in the phone and their description. I tried searching around but cannot find it now.

Could somebody please point me to the thread?

Also, tips on removing default apps would be appreciated :)

Thanks :)
[Galaxy 3 General] maverickgenius:
Dude if you got some problem start a separate thread. You will get better replies that way. Stop posting your problem in every thread on the forum.
[Galaxy 3 General] harry4747:
ok sorry..i am new on here..but i m srry though..
[Galaxy 3 General] rickslick:
I do this to remove apps

commands:

adb shell

su

ls system/app (to view all apks)

rm system/app/<filename>.apk
[Galaxy 3 General] neo1691:
You need to root your phone!!

then two ways of doing that

1. install titanium backup.

goto backup and restore

select unninstall.

you can unninstall them easily!! all apps!!

2. install root explorer!!

go to the system/app

and simply delete apps you dnt need..!!!

sometimes you need to be careful while unninstalling system apps
[Galaxy 3 General] maverickgenius:
thanks for the replies but I also wanted to know WHAT apps are safe to remove. I saw a thread here that listed all the apks in our phone, what other apps depend on them and if they are safe to remove.
[Galaxy 3 General] Dharam_Maniar:
1) BuddiesNow

2) Dlna

3) DualClock

4) FlashSVGPlayer

5) HTMLViewer

6) InfoAlarm

7) InputEventApp

8) Layar-samsung

9) Maps

10) MobileTrackerEngineTwo

11) MobileTrackerUI

12) Protips

13) SamsungApps

14) SamsungWidget_CalendarClock

15) SamsungWidget_FeedAndUpdate

16) SamsungWidget_ProgramMonitor

17) SamsungWidget_StockClock

18) Street

19) UNAService

20) UnifiedInbox

21) VoiceRecorder

22) wipereceiver

23) WriteandGo

All these apps are safe to remove and usually removed when making a clean ROM...
[Galaxy 3 General] IonAphis:
If it was my list you saw, here it is:

http://xdaforums.com/showthread.php?t=1006900
[Galaxy 3 General] maverickgenius:
this exactly is the list i was looking for.

thanks for the list and also for replying to this thread :)

cheers mate :)
[Eee Pad Transformer Q&A, Help & Troubleshooting] zainqaiser:
Hey guys I just bought the transformer....updated it to the new firmware....I am having some issues...just want to make sure that is it just me or are these issues common....I just cannot open facebook website on browser....my XDA app,facebook app,and sometimes youtube app force closes....and the HD video on YouTube is not as smooth as it should be......these issues I have experienced so far.....are there any solutions to solve these issues?
[Eee Pad Transformer Q&A, Help & Troubleshooting] itay1:
It's not just you.

Facebook is horrible. App is ****. Website barely usable. I wouldn't say it doesn't open.. but just not very usable and extremely slow.

Youtube HD stutters and not smooth.

Didn't try XDA.

i'm hopeful that an update will fix this.

So far my experience with Honeycomb suggests that it is buggy as ****. Gives android an awful name.

Why can't google get their act together?!
[Huawei Ideos X5 U8800] ksatta:
The solution: http://xdaforums.com/showpost.php?p=13982398&postcount=14

I'm trying to fix the bug that when using normal stereo headphones (without mic) or a 3.5mm jack -> 2xrca cable is used, the internal mic is disabled.

I've gotten so far that I have modified rpc_server_handset.c to set value of /sys/class/switch/h2w/state to 2 when headphones are inserted.

Now logcat shows:

Without the modifications logcat shows:

So the logs look like my mod is working correctly, however now I can't hear anything from the phone or headphones and also the internal mic is disabled. I've been trying to debug this further, but I can't find where the SRS_wowhd_binder, musicUtils and AudioFlinger logs are generated. Looks like huawei modified some other files than the kernel files, but they haven't released sources for those?

I've tried tags android-2.2.1_r2 and android-2.2.1_r1 from android.git.kernel.org, I found the line where "Intent.ACTION_HEADSET_PLUG: state:..." is logged from HeadsetObserver.java, but I haven't found the others.

Looking further into this..

Anyone have any ideas/suggestions?

edit: looks like Huawei has modified AudioService.class from framework.jar. AudioService handles ACTION_HEADSET_PLUG and and determines if a headset or headphone is connected. Next I think I'll try to decompile the classes and see what's been changed. Or then I'll just try to stick the git version of AudioService on the phone (I wonder what other consequences this'll have, AudioServer handles a bunch of other stuff too).

edit2: I decompiled the phone's AudioService class, it totally ignores the microphone=0 variable :D Jeez, I wonder why Huawei is cheaper than some others.. Oh well, it's possible to fix. Next step is to edit the decompiled AudioService class and see if that works. Progress :)

edit3: Actually looks the mic = 0 isn't ignored, the decompiled class just looks really funky. For example "while (true) { return; ...". Might be effects of the decompilation process. Investigating further. The problem might also be in the native libmedia.so

edit4: I found this: http://code.google.com/p/toggleheadset2/ It is used to set output and input to headset.

Might be easiest to fix using a similar way to set output to headphones/line-out and leave the internal mic on.. Looking into that now, I'll post here if I get it to work.
[Huawei Ideos X5 U8800] ryronz:
Hey just a quick thing, I have absolutely no idea how easy or difficult it would be to do. But the phones seem to have a problem with headsets/headphones with the iPhone/Blackberry controls on them. It shorts and you can't hear much unless you're pressing the play/pause button.

AFAIK the ground/mic are switched round, but at least for the Samsung Galaxy S there is a kernal + rom out that fixes it so i'd imagine it was somewhat plausible with this phone too.

Don't necessarily need the buttons working (although they work with stock headphones, but meh) it'd just be nice to be able to using any type of headphones.
[Huawei Ideos X5 U8800] ksatta:
I think this would have to be fixed from some other place in the kernel. I'm now trying to mod toggleheadset2 so that it sets the audio output to headphones and leaves the internal mic on. I think your suggestion could be accomplished probably by checking out what they changed in the Samsung Galaxy kernel and doing the same changes.
[Huawei Ideos X5 U8800] Piron:
in HTC devices do not have that problem. After connecting the headset microphone is working, one could see how it is set in the HTC. I have a headset phones that work with HTC and other companies. The X5 does not work and I get the impression that the reason is not software and the construction of the socket (While connecting).
[Huawei Ideos X5 U8800] ksatta:
Yes, the Ideos X5 seems to detect headset connected even if it's headphones or line-out cable. You might be right that it's a hardware issue.

If I get my fix to work it'll just force the internal mic to stay on if headphones/headset is used. It's a workaround :)
[Huawei Ideos X5 U8800] ksatta:
OK. Some "progress"..

When headphones without mic are plugged in the Huawei sets DEVICE_OUT_WIRED_HEADSET to 1 and DEVICE_IN_MIC_ARRAY to 1 :D

When I manually set only DEVICE_OUT_WIRED_HEADSET (even if headphones are not connected), the internal mic is disabled.

If I set both DEVICE_OUT_WIRED_HEADSET and DEVICE_IN_MIC_ARRAY to 0 after plugging the headphones, then the internal mic works, but the output goes to the earpiece..

Then I tried to set:

DEVICE_OUT_WIRED_HEADSET 0

DEVICE_IN_MIC_ARRAY 0

DEVICE_OUT_WIRED_HEADPHONE 1

Then the internal mic worked, but the output was routed to the phone's speaker (speakerphone mode) :D

I think the problem is in AudioSystem.cpp (part of libmedia.so), of which Huawei hasn't released the source.. Since they haven't modified AudioSystem.java (diffed that..).

There is something really different in there, maybe they have changed it so that always when _output_ is set to headset, input is set to "mic_array" or something... and setting output to headphones sets output to speaker etc etc..

I think I'll still try setting output to speaker (if headphone and speaker ids are switched).. Or then create my own native program which sets output to headphones..

Looks like the main routing is done in frameworks/base/libs/audioflinger/AudioPolicyManagerBase.cpp..

Oh well, I'll continue tomorrow
[Huawei Ideos X5 U8800] stockwell:
Thanks for your efforts and for putting so much time into documenting the process.

I think if you can't find a simple solution the next step would be to try and get msm7k drivers with known source code working on our device, rather than spending time on guessing behaviours of a driver which we have no source for.

See the links below for the source for all of the msm7k drivers and a modified msm7x30 kernel from Kali. It might also be interesting to look at the Qualcomm sources to see how they have modified it (I think mostly it's just been changed to accommodate FM radio but there may be other changes).

https://github.com/Kali-/android_hardware_msm7k

https://github.com/Kali-/htc-kernel-msm7x30-exp

I will help with this when I can, but I am extremely busy at the moment with work and uni. Good luck!
[Huawei Ideos X5 U8800] ksatta:
Actually I was thinking the same thing, move on to something of which I have the full source code.

Thanks for the info, I'll look into that. Fixing this "little bug" turned out to be quite a time-consuming process, but I'm getting good experience on modifying android. Also if I one day get this fixed, it'll be awesome :D
[Huawei Ideos X5 U8800] ksatta:
Actually the source for the msm7x30 is in the huawei's kernel source from huaweidevice.com.

I think there are also some problems with the libaudio etc for which Huawei haven't released the source.

Thanks for pointing me in the right direction, I'll see if can modify the msm7x30 from huawei source so that the int. mic isn't disabled.

edit: Yeah, this looks like the place where the actual routing is done. Of course, it's the kernel driver for the sound.. Learning something new all the time :)
[Huawei Ideos X5 U8800] ksatta:
I managed to get some logs from msm7x30.c:

device handset_dual_mic_broadside_tx set 1

device handset_dual_mic_broadside_tx set 0

when plugging headphones in and taking them out..

Now I think I'm getting close. A good point to continue from tomorrow :)
[Huawei Ideos X5 U8800] stockwell:
What I meant was that we don't have the libaudio source from Huawei, but we can use another source (Qualcomm/Kali/etc) for libaudio and then we need to change the kernel driver to suit it (which we can model from Kali's kernel drivers).
[Huawei Ideos X5 U8800] ksatta:
Ahh, I see. Yeah now I understand.

I'll see if I can get the kernel driver modded so that it doesn't disable the internal mic. Ofcourse this would mean that the internal mic is never disabled (the kernel driver doesn't know why the int. mic is being disabled.) So it wouldn't be disabled even when using bt headset etc.. If I have understood correctly. A better way to fix it would be from the libX side. But let's see first how my kernel mod goes :)
[Huawei Ideos X5 U8800] ksatta:
I got it working so that when I plug in headphones during a phone call, internal mic works and the output goes to the headphones :D

But... the routing doesn't return back to normal without the headphones or if I plug in the headphones before the call etc etc... but this is looking good!