yashsingh1/xdaforums huggingface dataset:
[LG Optimus 2x] DcR-Nl:
Hello,

Every time I click on a hyperlink/URL I get the "Complete action using" pop-up which asks me to select a browser. And by every time I literally mean every time, as in always and constantly.. Even if I click on the same link. It doesn't matter if I check "Use by default for this action.", it still keeps asking the same thing over and over again while browsing. Sometimes multiple times before it loads one single page...

I'm using the default browser and I'm on stock EU v10d. Tried clicking on "Clear defaults" in the app manager, but the problem still persists.. Updated to v10d two days ago, but already had this issue in v10c for a long time. No new browser installed, only Firefox and Opera which I had installed far before this error occurred.

Anyone who can point me in the direction of the responsible Android developer, or anyone with a non-violent solution? Thank you. :rolleyes:
[Milestone 2 Android Development] r2beta0:
As lately some people are asking me about ROM porting I decided to create this new thread where we can share knowledge about this hard task.

Please note this is a Dev talk thread, so DON'T ASK about fixing a particular ROM problem here. Also don't ask questions like "My phone is bricked! please help!". This IS NOT the appropriate place for it. There are plenty of other threads to help you out.

Also note that this is not a step by step guide (and not a guide at all), it's just a point where you can start from. Android is a very complex system and there are many things I don't know yet. So, research and hard work is what you need to learn it deeply. My first tip is Google really works. Don't be afraid to search :)

Ok, to the basics. Porting a ROM is no simple task. It requires advanced understanding of how android works and how it is organized. Previous Linux/Unix knowledge helps A LOT. As android is based on this O.S. there are many similarities between both. In fact many ppl consider android to be a kind of linux distro.

The very first task to port a ROM is finding a device which is compatible with your own. For example Defy/Milestone2. Then you are going to choose a ROM to port to your device.

As our devices (Milestone2) have a locked bootloader we now need to find a system image that have a compatible kernel with the ROM we are trying to port. This is mainly based on trial and test and takes a long time. You'll be ending flashing your phone several times with RSD Lite. You should learn how to use MotoAndroidDepacker and how to create a fixed SBF.

The basic procedure to try that:

1. Open original ROM update.zip and remove any files/commands that flashes boot/devtree/recovery/anything.

2. Install this new file on your phone via CW Recovery.

3. Boot into bootmenu and enable ADB so you can read logcat while phone boots.

4. Choose Boot/Normal. If your ROM uses 2nd-init you will need to place/edit/adapt bootscripts into bootmenu 2nd-init folder.

5. Check logcat for errors:

- If you're getting HAL errors you're going to need a new kernel;

- If you can start android without getting HAL errors but still getting errors and bootloop on android animation you should try to replace libs with appropriate original ones.

6. Once you are able to boot android you should test it's features to see what needs to be fixed.

This is what I have to say for now. The thread is now open for discussion.
[Milestone 2 Android Development] jorgebaruchi:
At this week, motorola has just pushed the GB official update for Droid 2 and Droid 2 Global....

Can i try to port this new rom to milestone 2 and after a success boot, fix the radio..??

I was asking that, because some people has success on port CM7 to milestone 1, when it originally maked for droid 1...

tks a lot..!!
[Milestone 2 Android Development] dangpzanco:
It may be possible, but you'll have a hard time fixing the baseband.

You may have to mod the init.rc scripts and find the right radio binaries (rild is one of them) and drivers.

Ask those ms1 people for help, if they are still with the same phone...

Sent from my Milestone 2 XDA App
[Milestone 2 Android Development] sahilarora911:
I don't know if this will be relevant or not.

I wanted to know if to do any of this, having a Linux distro as OS a must or can I try my hands at it on a windows based machine. I mean I'm sure that a Linux distro will give certain advantages (as Android is based on UNIX/Linux) but can we get things to work a 100% on windows.

If yes, then will someone be kind enough to get give the list of all softwares etc. which will be required to do the job on Windows machine as well as a Linux machine.

I do know a few softwares but I'm not sure if I have an exhaustive list. I would like to learn and try and at least be able to modify in bits n pieces to begin with.

I apologize if this wasn't supposed to be asked in this thread.
[Milestone 2 Android Development] WeeDv2:
The only thing i can get from SBF is a bunch of smg files.

But the only ones i can open are

preinstall.smg

CG39.smg

Is there a way to open/see the rest?

2)

Im trying to modify the CM7 rom, what boot does it use? 2nd-init or 2nd-boot?
[Milestone 2 Android Development] chillje:
i guess it is second-init. but not sure
[Milestone 2 Android Development] EVEALEX62:
thanks a lot for this !!!
[Milestone 2 Android Development] r2beta0:
SMG files are disk images of certain partitions of your flash memory.

You can only open CG39.smg and preinstall (CG66.smg) because they are the only images in ext3 format. The rest of images may be on ramdisk format or some proprietary format. For more details on partition codes take a look here:

http://and-developers.com/partitions:cdt

You may be able to open and see contents of other partitions but the only one that matters aside from system and preinstall is the boot partition (CG35.smg), which contains the init scripts we should mod in order to make they work with 2nd-init. Boot partition is in ramdrive format. More details here:

http://android-dls.com/wiki/index.php?title=HOWTO:_Unpack,_Edit,_and_Re-Pack_Boot_Images

http://elinux.org/Android_on_OMAP

It is easier to unpack boot image using Dsixda's Kitchen here:

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

Edit: To see what boot your CM7 uses just go inside /system/bootmenu/config and look for a file called default_bootmode.conf. That should be the boot method used. It's normally 2nd-init.
[Milestone 2 Android Development] r2beta0:
Don't worry, this is the right place :)

As for your question: yes you can work in windows if you like, but using at least a Linux VM is more productive. I don't have a full list of applications to give you, as different mods may require different tools, but I advice you to have at least:

- Notepad++ (essential for editing text files and keeping linux end-line format);

- dsixda's Android Kitchen (http://xdaforums.com/showthread.php?t=633246)

- 7zip (or some other compress tool you like)

- Moded putty for ADB as working with windows command prompt really suck (http://xdaforums.com/showthread.php?t=803225)

- Oracle Virtual Box (if you are going to use linux VM).
[Milestone 2 Android Development] WeeDv2:
Thanks again r2beta
[Milestone 2 Android Development] sahilarora911:
thanks r2beta0

- Notepad++ -- got it

- dsixda's Android Kitchen -- downloaded (need some link for a how-to on its usage)

- 7zip -- got it

- Moded putty for ADB -- got it

- Oracle Virtual Box -- can't install Linux on my system as this is a work machine

dunno if I can do without the last option.
[Milestone 2 Android Development] r2beta0:
Oracle Virtual Box is an application that lets you run an operational system on a virtual machine, in other words, it doesn't install linux on your real computer. It's a very useful tool that I use everyday. Google for it and learn a bit, you won't be disappointed. About kitchen: the link I provided was download + guide. Read it again. If necessary read the full thread.
[Milestone 2 Android Development] sahilarora911:
I know a bit about virtual box but as I said I'm not allowed to have softwares not approved by the IT team to be present on the system. Though I can get away with small things like notepad++ and 7-zip, having virtual box on my system may raise some eye brows.

I'm trying to arrange an alternative system.
[Milestone 2 Android Development] r2beta0:
Me neither. I must do almost everything at home, and at this very moment I simply don't have any free time. I'm afraid you're not going to see me here very often anymore (maybe in a few months? a year? well, it might be a bit too late for milestone2...)
[Milestone 2 Android Development] rasecrmz:
hi. Have a question, I want to remove baseband from a flashable zip (lets say, CM7 from Tezet) , is it posible? I dont know where to look for it (baseband). Thanks!!
[Milestone 2 Android Development] ---UFO---:
Baseband is located in \system\etc\motorola\bp_nvm_default\

But don't remove it, just replace it with files from ROM, which have baseband you want.
[Milestone 2 Android Development] rasecrmz:
Ok thanks for the info.
[Milestone 2 Android Development] Megalith27:
Hi All,

Just a quick question. I have ported Paranoid Android 2.10 to MS2 but the problem I am facing is that Reboot goes through Bootmenu and I have to choose reboot from Bootmenu again.

Any inputs?

Thanks in advance
[Milestone 2 Android Development] skeevydude:
I meant to get to it last night, but I was tired after work and fell asleep watch tv. Eventually, later tonight, I'll be uploading PA for MS2. Check my Defy PA thread in 12-14 hours cause I'm about to go to work and I'm not gonna feel like making a MS2 PA thread or updating my Bravo PA thread -- but the Defy Thread is always up to date when I put out new roms.

Also, I'm looking to get either a Defy or MS2 -- I've heard that there's 3G issues with AT&T users (which I am) with the MS2 -- Apparently the MS2 has different 3G frequencies than AT&T. Are there any AT&T MS2 users who are knowledgeable about that? While I can deal with no 3G, edge only, calls only -- I need to make sure I can at least do that before I commit to something.

I'd rather have the MS2 because I want a hw keyboard and I don't have the $300+ to try and get a Photon Q LTE from eBay (and I don't have to change up my repos if I get a MS2). If anyone here knows of a phone that's AT&T compatible, Defy code compatible, and has a keyboard, please let me know.

Thanks.

//Normally I'd post the latter half in the Q&A section, but ya'll don't have one so I'm just gonna piggyback :p

//My Bravo doesn't have a Q&A page either -- it needs one that's not my PM box...Don't PM me on how to root your phone and flash CM7 -- read one of the 5 guides on the first page of both General & Dev...:silly:
[Milestone 2 Android Development] Megalith27:
Ok devs need some help here.

I am trying to port a rom to our Milestone 2...but it bootloops on rom animation.

I tried to logcat it but I don't think it gets as far as adb server to detect the device.and just keeps saying "waiting for device"...so I end up with no logcat to diagnose the problem.

I can logcat my current working rom but only after the phone boots....am i missing something here? please, help

Any help is very much appretiated.

Thanks a lot in advance
[Milestone 2 Android Development] ---UFO---:
You need to enable adb in bootmenu.

Then you can get logcat also when ROM is not booting.
[Milestone 2 Android Development] Megalith27:
Question to devs:

Is there a chance to find sdk add-on for Milestone 2 (A953/ME722)? Or should I try using Defy's?

Thanks in advance
[Milestone 2 Android Development] dangpzanco:
Officialy, Milestone 2's SDK Addon provided by Motorola is the Droid 2 Global one, and yet, it only works with Froyo SDK from what I remember...
[Milestone 2 Android Development] Megalith27:
I guess, that means that i wont be able to test a custom rom on emulator which uses GB kernel?or is there a way?

Also, where can i find Droid 2 Global sdk addon? It is not listed on motodev website

Sent from my A953

EDIT: Found Droid 2 Global addon based on GB, never mind
[Milestone 2 Android Development] Megalith27:
Might be a dumb question here: but is there a way to convert rom zip into img's to test the rom on Emulator before flashing it?
[Milestone 2 Android Development] ZoLion:
Hi Developers!

I've installed a Defy+ ROM on my MS2, but the phone module doesn't work, I can't make phone calls. What do I have to replace in the zip to get a workable phone modul?
[Milestone 2 Android Development] Megalith27:
One would assume that you need to replace RIL* smali files in framework.jar with MS2 ones.

But just out of curiosity, why don't you use already ported UFO's MIUI JB rom which is based on Wajk's rom?!:confused:
[Milestone 2 Android Development] Megalith27:
Hi guys I need help yet again.

This is my second experience with porting ICS roms, I keep getting the "com.android.phone has stopped" error continuously. I have copied MotoWrigley3GRIL.smali to the framework of port.

Also tried following so far:

- replaced RIL*.smali files with the ones from CM9, specified MotoWrigley3GRIL in PhoneFactory.smali

- used PhoneFactory and BaseCommands from CM9

Not sure where else to look...also phone doesn't seem to recognize the sim card.

Help is appreciated.

---------- Post added at 09:46 PM ---------- Previous post was at 09:46 PM ----------

Hi guys I need help yet again.

This is my second experience with porting ICS roms, I keep getting the "com.android.phone has stopped" error continuously. I have copied MotoWrigley3GRIL.smali to the framework of port.

Also tried following so far:

- replaced RIL*.smali files with the ones from CM9, specified MotoWrigley3GRIL in PhoneFactory.smali

- used PhoneFactory and BaseCommands from CM9

Not sure where else to look...also phone doesn't seem to recognize the sim card.

Help is appreciated.
[Palm Treo Pro ROM Development] randomwit:
After a lot of reading and disbelieving and so on, I have finally tracked down some Verizon Treo Pro phones and I am currently doing a full dump for you guys. I will post all the raw files here and eventually get around to rebuilding the rom (OS Only). This phone does have the newer radio firm (1.12.40V). I hope that it will help some folks out. I will be using it to build a Pageplus rom, but use it as you like.

My links will likely be temporary, so I would appreciate a mirror if anyone can. Thnx.

Links to follow...
[Motorola Droid and Milestone Q&A, Help & Troublesh] NerdMech:
i just recently rooted my dads Milestone. and everything works just fine. except calling features. is there a apk i can use to fix this? i think something is just corrupted and i need a fresh phone apk or something
[Motorola Droid and Milestone Q&A, Help & Troublesh] skadude66:
What happens with the calling features that makes you think you need a new phone.apk?

How did you root it? Custom ROM? Stock?
[Motorola Droid and Milestone Q&A, Help & Troublesh] afonsolage:
Can you tell us more about this "calling features" and the problems that you got?
[Motorola Droid and Milestone Q&A, Help & Troublesh] NerdMech:
i rooted using z4root. and used rsdlite and an sbf to go back to 2.1 so i could put a custom rom like miui on. right now its at a stock rom. and anythime i open anything related to the phone like calling or anything i get a force close.
[Motorola Droid and Milestone Q&A, Help & Troublesh] skadude66:
Try updating to 2.2, by flashing an sbf from http://and-developers.com/sbf:milestone221 to update to 2.2.1.
[Motorola Droid and Milestone Q&A, Help & Troublesh] NerdMech:
i think i did that. i just might have used the wrong one.. any suggestions on which one to use?
[Motorola Droid and Milestone Q&A, Help & Troublesh] skadude66:
Use the one specific to your country/service provider.
[Motorola Droid and Milestone Q&A, Help & Troublesh] NerdMech:
ok. issue solved. it was process.android.acore

a simple factory reset.

my dad had the phone and simply said the phone wasnt working. but its all good now. thanks all
[G2 and Desire Z General] LGS1231:
I'm trying to get my phone to be exchanged through warranty, but tmobile wants to do a technical troubleshooting to see if they can fix it. My question is.. Can tmobile see that my device is rooted when they run these tests? Should I unroot prior to letting them run tests? If so, can someone provide me with the most simple guide to unroot? Thanks!
[G2 and Desire Z General] Spastic909:
Well either way if you are trying to get a warranty exchange you should revert everything to stock. Not just root. Look in the wiki as I can't post links from my phone. Some people will say the unlocker guide is better others will say the one here is. Look at each of them and see what you think would be the easiest
[G2 and Desire Z General] martonikaj:
What exactly is wrong with your phone? Are you sure its hardware related?

You'll have to unroot and return to stock in order to initiate a warranty replacement. So if its hardware related then you'll have to unroot anyways to send it back.
[G2 and Desire Z General] ohgood:
1) they don't run 'tests'... they ask you to reboot, perform a factory reset... assuming you're talking about the queue card reading 'customer support' phone helpers.

2) make a nandroid backup... then do whatever they want. you can always restore.

i've sent in 3 G2's in the last couple of months. the service reps all ask me to reset it to factory blah blah blah even after describing the exact, widely known problem: faulty speaker

after 20 minutes of BS, they finally concede and sent out new phones each time. the support techs actually said they don't care if it's rooted, or running anything, so long as it's hardware related.

i wish the FUD about software/hardware would cease.
[G2 and Desire Z General] LGS1231:
You've received new G2s every time??

My phone's touchscreen is acting up. It would start selecting things by it else. Like I was pressing it. And sometimes it would press and stick (like u using ur finger and u keep it on the touchscreen) so then I can't do anything. Other times, the Y H and B keys don't work on my on screen keyboard. I've factory reseted several times. Even installed a fresh ROM but problem still persisted so I expect it to be a hardware issue now.
[G2 and Desire Z General] Nshih422:
Well I just got off of the phone with a support tech from T-Mobile. Told them that I had rooted the phone and had restored it back to factory stock. They said since I rooted the device that it voided the warranty. =(

My phone has touch screen issues and I was attempted to get a replacement. I don't know if they wrote down in the notes but I am thinking I will try again tomorrow. If not then I will call about a different line with the same phone and just send them mine back.

Any suggestions?
[G2 and Desire Z General] martonikaj:
Why would you EVER willingly tell them you rooted? there's no way for them to tell if you just unroot and return to stock before you send it in...
[G2 and Desire Z General] Nshih422:
I know it was an idiot move on my part. I read a few times in various places that the reps don't really care if it was or not and I mistakenly told him when he asked. I can't go back in time now though :(

I think this is an extra thing to the fact that I have a few days left before my warranty expires anyways. I think I bought it on Sept 8th. :/
[LG Thrill 4G] ik911:
To Root the LG Optimus 3D any firmware you will need

SuperOneClick , winRaR to extract the file , also you may need google ADB drivers if your on windows xp

Step 1: Download SuperOneClick here http://www.megaupload.com/?d=IKMS0QN3 then extract it.

Step 2: On the phone goto settings > Applications > Development > Turn USB Debugging on also turn on unknown sources.

Step 3: connect the phone to your pc make sure mass storage is turned off once connected wait for the drivers to install

Step 4: Run SuperOneClick as admin right click superoneclick run as administrator and click on Root, sometimes it can take a few minutes once it's done restart the phone now you should have superuser app on the phone.

To play Tegra Games you need to Root your phone first

Download this https://market.android.com/details?i...=search_result or search for chainfire pro in android market

once you have installed chainfire goto chainfire it will ask for root permission press allow

Then install CF3D Driver phone will restart once done

now download this http://www.megaupload.com/?d=G2AXTW04

this is the nvidia plug in put it in your sd card anywhere

now open up chainfire then install plugins then select nvidia zip

next gotodefault openGL settings > use plugin select nvidia

go back and select fix market settings, only on chainfire pro you can select this

Your done you should be able to play tegra games now

Note

I'm not responsable of any damage to your device
[LG Thrill 4G] SpellronHD:
Link is not working

market.android.com/details?i...=search_result

This link is not working
[LG Thrill 4G] ik911:
Just search chainfire in android market
[LG Thrill 4G] dincdoes.me:
Thanks for posting it for us

Just wanted to make sure ppl on the Thrill get it going WORKS GREAT THANKS!
[LG Thrill 4G] malickie:
This is good to know as I have one being shipped to me which should be here in the next day or two. Hope to get some awesome Rom's on here as well.
[LG Thrill 4G] Cthater:
Any luck with this working yet?
[LG Thrill 4G] kiltedthrower:
Wouldn't work for me. Followed directions exactly. However, the games for tegra devices wouldn't let me download from the market.
[LG Thrill 4G] dincdoes.me:
It works for me I've downloaded Ans played some THD games
[LG Thrill 4G] kiltedthrower:
Okay so at install plugins and shaders I have the nvidia.zip with a slash under it and a nvidia.zip with a /download/ under it. I tried both. No avail in changing what I can dl from the market.

Do I need to extract the nvidia zip file?
[LG Thrill 4G] malickie:
Well Troubleshoot it. If unzipping doesn't work correctly when done through the phone go to you PC than download it there considering I have heard people have issues with files not downloading 100% correctly when Downloading from an Android device so there might be some issues as well. Shrug just some ideas.
[LG Thrill 4G] Trekfan422991:
chainfire and nvidia driver working great!!!!

i just look online for games working with lg g2x cause it has dual core nvidia chipset...

moderncombat 2

hawx

riptide gp

all working great
[LG Thrill 4G] Spartoi:
Does the EGL (beta) driver work/install and how far can you up the MSAA?
[LG Thrill 4G] Urabewe:
Just tried, works great no problems here.
[LG Thrill 4G] malickie:
Ok for those that are having a few issues following the directions and went to the market to DL Chainsfire the menus and what the OP say's are slightly different than the order specified. You download and install Chainsfire and Install the CF3D Driver and Reboot. After that and you have the Nvidia thing put on your SD card you go to Install plugins / shaders THAN you go to Default OpenGL settings and Set Nvidia. The Install plugins part I thing was confusing people.
[LG Thrill 4G] Cthater:
I've tried everything posted and I still can't seem to be able to download any tegra games from market. Any helpful tips?
[LG Thrill 4G] kiltedthrower:
This completely fixed the problem. Rebooting after installing the driver made all the difference. Thanks given! Now if I could quit being lazy and take the time to figure out how to run the PX4droid emulator and get some PS games running would be sweet.
[LG Thrill 4G] ik911:
It should reeboot by it's self once you install the driver
[LG Thrill 4G] Cthater:
It usually does reboot after installation but if not, just go into CWM and reboot. Worked for me.