yashsingh1/xdaforums huggingface dataset:
[Milestone 2 Android Development] r2beta0:
Yeps, we can. Just include bothe files on update.zip and edit updater-script to issue write_raw_image commands for both images.
[Milestone 2 Android Development] Atomos33:
Can't we just flash Walter's Milestone2Patch?

Gingerbeta and this are both Gingerbread and if i'm not mistaken Blur don't really change anything of Android. Unlike Sense.

I've tried but CWM 3.0+ refuse to flash this because some of the scripts are no longer supported.

Then i've tried to Bootstrap recovery but it corrupted my rom and couldn't have acces to any recovery even stock so had to flash ans SBF.

If someone could convert me that patch i can try.
[Milestone 2 Android Development] r2beta0:
Ok, Now we know that MIUI/CM7 will only boot if devtree and boot if flashed from 2.2 CH SBF, but why is that so? Why can't we just flash any 2.2 boot+devtree?

If we are to compile our own build of CM7 for MS2, we are going to be restricted to these 2 images?
[Milestone 2 Android Development] r2beta0:
I've found the defect into the scripts of CWMR 3. I think Endless7 have already fixed that on bootmenu port.
[Milestone 2 Android Development] r2beta0:
@Endless7: What's the password for the rar containing the full CH 2.2 SBF?
[Milestone 2 Android Development] Atomos33:
Is it possible to make another patch with the same file but for CWM 3.0+ ?
[Milestone 2 Android Development] cypressious:
When I got a call earlier, I noticed, that the proximity sensor doesn't work and the screen didn't go dark.
[Milestone 2 Android Development] will5:
Im the only one getting error in cwm, when I try to flash cm7 backup, I get error while flashing boot.img (cause there is no one on cm7 backup folder) and stop there, dont write anything :confused:

I guess advance restore will work...
[Milestone 2 Android Development] imakdevries:
Does the theme chooser work?
[Milestone 2 Android Development] will5:
theme chooser work sometimes, sometimes gives FC

Cm7 booting here :D

Im having one problem with oscreen keyboard, it´s half its size, the fix on first page are for onscreen kb?
[Milestone 2 Android Development] Gongui20:
The fix is for fisical keyboard.

I build a fixed sbf with recovery :)

http://www.mediafire.com/?c6duyio8g7hzuh1
[Milestone 2 Android Development] szmartin:
2.10 chs rom?

try this "bbs.dkdiy.net"
[Milestone 2 Android Development] Endless7:
I have updated the correct link in main post with password. Sorry for my carelessness.
[Milestone 2 Android Development] Atomos33:
What are the files related to media and backlight ? In GingerBeta for example? And where are they?
[Milestone 2 Android Development] cypressious:
Advanced restore only system helped
[Milestone 2 Android Development] Endless7:
I also want to know. Maybe we can fix this issue by replacing files.
[Milestone 2 Android Development] Atomos33:
I think i found them. I'm at work right and i don't have my PC but i'm going to upload those files from gingerbeta ;)

Edit: Here they are: http://www.multiupload.com/QMH1QAJMN3

Took them from /system/lib

I'm not shure these files are the ones we are looking for. My knowledge being close to none....
[Milestone 2 Android Development] n3ptun3:
Just a little warning for all these files being replaced all around. Sometimes just replacing files doesn't cut it on unix systems, you have to make sure you have the right permissions as well. So make sure you check the permissions for those files you're replacing and then restore them once they've been replaced.
[Milestone 2 Android Development] Atomos33:
I'm ready to learn about those things and want to build my own rom where can i learn?

I personnaly change the permission because i had issues in the past...

Also one you replace those files and check the correct permission do we need something else? Is there a risk of bricking the device is we only replace some lib files? Or flashing the sbf will always work?

Here are the folders from /system/lib

www.multiupload.com/Y8W03YAATN

www.multiupload.com/E2WFFPA82Y
[Milestone 2 Android Development] Endless7:
If I use update.zip to replace it. Do i still need to change permission manually or add some command in updater-script?
[Milestone 2 Android Development] will5:
Any fix for onscreen keyboard? It's half its size :(
[Milestone 2 Android Development] Atomos33:
Try using a keyboard from the market.
[Milestone 2 Android Development] dangpzanco:
Yes you have to change permission thru updater-script.

@Milestone 2 (Finnaly on Gingerbread!)
[Milestone 2 Android Development] r2beta0:
Here is an example:

# user group perm file
set_perm(0, 3003, 02750, "/system/bin/netcfg");
set_perm(0, 3004, 02755, "/system/bin/ping");
set_perm(0, 1001, 04770, "/system/bin/pppd-ril");
set_perm(0, 2000, 06750, "/system/bin/run-as");
set_perm(1000, 1003, 02755, "/system/bin/screenshot");

# user group dir_p file_p directory
set_perm_recursive(1002, 1002, 0755, 0440, "/system/etc/bluetooth");
[Milestone 2 Android Development] jamieelockey:
is anyone here running the miui defy rom?

im currently on "mostly blurless gingerbread" rom, so i should nand restore the miui and then flash the fixed sbf?

by doing this will i lose my apps?

thanks for any replies, also any screens of miui?

keep up all the great work!!
[Milestone 2 Android Development] Endless7:
Your method is correct. And you may lose your app because without a double wipe you may have serious FC issues.
[Milestone 2 Android Development] dangpzanco:
No, if you want you dont need to wipe data, just make sure you wipe Dalvik Cache. Do a nandroid backup with Droid 2 BootStrapper just in case.

Edit: I tought you were flashing just gingerbread from froyo, sorry. Forget what I said.

@Milestone 2 (Finnaly on Gingerbread!)
[Milestone 2 Android Development] jambo89liam:
anybody noticed that gallery does not show your pictures. and the camera view is upside down (same as defy gb rom)
[Milestone 2 Android Development] Endless7:
http://xdaforums.com/showthread.php?t=1221153

I didnt add this fix to my nandroid backup. so you may need to do it yourself.
[Milestone 2 Android Development] jamieelockey:
okay then thankyou! is the rom stable?and in working order? im not bothered about camera issues as my camera auto focus doesnt work anyway for some reason? haha

thanksfor the replies
[Milestone 2 Android Development] Endless7:
Just updated my main post. Take a look.
[Milestone 2 Android Development] jamieelockey:
so im guessing thats a yes to it being stable haha? :P

EDIT: is this where i can find the fixed sbf to flash with miui? or shall i use the one i used when i flashed the blurless gingerbread?
[Milestone 2 Android Development] webmahceter:
I'm a bit of a n00b with this device and I think I f#ck'd up. I restored the nandroid backup, and rebooted tight away and now I'm stuck at the 2nd M logo. How can I get back to clockworkmod recovery? I've searched for it but I can't seem to find the answer. Thanks in advance for your help!
[Milestone 2 Android Development] dangpzanco:
Reboot with Volume Up and Camera pressed.

Then flash the fixed sbf on RSD Lite.
[Milestone 2 Android Development] webmahceter:
Thanks mate! I'll try it in a few hours, we don't have Windows PCs in the office.
[Milestone 2 Android Development] dangpzanco:
No problem you can use sbf_flash on Linux or Mac OS.
[Milestone 2 Android Development] dangpzanco:
Hey, I created a test project on github for this port, and also forked from defy.

Since I never did something like this, I couldn't even find out how to upload my "modified" (actually they're only renamed for now) files from Defy...

So, when I have more time I will create a definitive account for this port and share with some people here. So we can organize this and do it together. Of course it would take a while to port and don't expect great things from me, I don't know any programming language (yet).

So what do you think r2beta0 and Endless77, or anyone else interested?

Do you wanna team up?

@Milestone 2 (Finnaly on Gingerbread!)
[Milestone 2 Android Development] r2beta0:
You can count on me! I know a lot of C/C++ but have no experience in android development. I've never used git before, will have to learn how it works, just like you. I have a lot of experience in CVS/subversion so I think it will make things easier.
[Milestone 2 Android Development] Gongui20:
I don't know too much about programming but i will try to help and learn c++

I am downloading defy and droid2 cm7 source code...

Sorry for my english i need improve that too :d

Edit: if you install official miui for defy and you network didnt work (even after flash) follow this steps:

http://xdaforums.com/showthread.php?t=1182050
[Milestone 2 Android Development] Endless7:
I have no knowledge about android/linux. What I can do is almost zero. But I can port this thread to GFAN and find some people who interest in it to join this preject.

Once my school years beggin, I will not have much time like now:o
[Milestone 2 Android Development] momus87:
I've been looking for information about device and vendor tree the part few days, since this is the specific part for compiling aosp or Cm7 to a new device.

Sadly, such info is very sparse (or I'm getting old and can't google anymore).

In most aosp/port projet, people clone this tree from someone else's git. (Most of the time, it's koush's job on cyanogen's git) It's like almost everybody ignore how to deal with this. And of course, so do I...

Our problem is that no one has ever built this yet for mm2.

We definitely need to get in toucha with someone who knows about this. Koush or Defy's Cm7 dev.

Another problem is that we need source of the kernel contained in the ch fixedsbf if we want to compile compatible modules for it. In opensource.motorola.com, there are sources for 2.2 firmware but not for 2.2.2.

We must also consider similar devices :

Milestone1 has a Cm7 port. GSM/wifi/bluetooth chips are exactly the same according to milesdropedia, and the cpu in mm2 is just a faster die shrink of mm1.

Finally, droid2 also shares most of hardware with mm2, radio excepted of course. More interesting, Cm7 people also have to deal with a stock froyo kernel because of the locked bootloader.

I think we can use part of their trees to build ours. Don't ask me how though. Getting in touch with their dev/maintainers is I think one of the first thing to do.

And, maybe we need a dedicated thread for this huh ? :p
[Milestone 2 Android Development] Endless7:
Since we can use CH2.2.2 kernel to boot DEFY CM7/MIUI. Does it prove that DEFY-179-002 kernel is roughly the same with CH2.2.2 ? So maybe we dont need to look for source code of MS2 2.2.2 kernel, but DEFY 179-002 kernel instead.

Another idea: Or we can try to use our 2.2kernel to boot D2/D2G and MS1 CM7.

BTW, I think we should open a new thread about this.:p
[Milestone 2 Android Development] Atomos33:
We need to find what's really different between the our devices and the Droid 2/Defy.

Why don't we try booting CyanogenMod 7 for D2 and repaire the gsm like we do with Defy? I know that defy and milestone are both gsm devices intead of D2 but wouldn't be easier?

I'm ready to help but i also don't have any knowledge.

Can someone confirm me that flashing CM7 for D2 won't brick the Device?
[Milestone 2 Android Development] dangpzanco:
Defy's CM can boot from at least 3 kernels. And I found out why:

Its 2nd-init is modified specially for each kernel. I check it in the source code of 2nd-init.c from cyanogenmod/devices/motorola/jordan. Inside the code search for injected_.

@Milestone 2 (Finnaly on Gingerbread!)
[Milestone 2 Android Development] Endless7:
So we can also try use the 2.2 kernel to boot it?
[Milestone 2 Android Development] Endless7:
Main post updated.
[Milestone 2 Android Development] stargo:
Modules built against the 2.2 sources work on the ch-leak kernel. My debounce module is compiled against frs.milestone_2_source_froyo.milestone_2_2_2_16.zip (which is android 2.2) and works with the new kernel.
[Milestone 2 Android Development] dangpzanco:
That's right. We don't need to compile it again. We just need the inject_adress_code from any froyo (girgerbread doesn't completely support 2nd-init) kernel to change in this file:

https://github.com/CyanogenDefy/android_external_bootmenu/blob/gingerbread/2nd-init/2nd-init.c

To find it we need to use dsixda's option to show boot information, I think.

@Milestone 2 (Finnaly on Gingerbread!)
[Milestone 2 Android Development] Endless7:
Backlight fixed.
[Milestone 2 Android Development] stargo:
This code does not need any kernel-space information, it just puts some code in the image of the running init-process to exec another init and then sets the program counter to the injected code. It depends (to some degree) on the internal layout of the running init process but has no dependency on the kernel (other than that ptrace-support is enabled). The two constraints on the address are: It has to be after the code for exec in the process image (or at least not overwrite any part of it) and the injected code must not cross into an unmapped page (which would lead to a segfault).

At least that's what it looks like the code does on a first glance.

From my perspective as an OS guy I have to say that using such an approach is prone to race conditions and should never ever be used, but it might work under certain circumstances (read as: nearly always) ;-)
[Milestone 2 Android Development] sahilarora911:
I would have loved to help if I had knowledge on C++. I think it is a great idea to port this to GFAN..

Thanks guys for all your efforts!!
[Milestone 2 Android Development] dangpzanco:
All right you're in, I will PM people when I get this ready.

If you post this on GFAN, tell they have to know english well.

@Milestone 2 (Finnaly on Gingerbread!)
[Milestone 2 Android Development] AragornPE:
Looks great! But I'll wait for CM7 with GB and fixed issues.
[Milestone 2 Android Development] sahilarora911:
I'm sure you understood but just want to clarify that I don't know C++. But I guess there might be other ways that those who don't have knowledge on C++ might be able to help.

Endless7: I'm getting md5 mismatch on trying to restore MIUI from the main post. I'm using Defy Bootmenu and CWR 3.1.0.0 to restore. What am I doing wrong?

I have looked at the nandroid backup that you have uploaded and it only has system.img . I'm guessing since the other files are missing from your nandroid backup it is giving the error. I may be mistaken.
[Milestone 2 Android Development] Endless7:
which backup did you download? It should be have md5 file inside it.

Edit: Download original defy_CM7/MIUI + fix_for_CM7/MIUI = nandroid backup.
[Milestone 2 Android Development] sahilarora911:
Okay. Let me try again. Will update.

So your own nandroid backups that you have put up in the first post are just your own /system files in which fixes have been implemented??
[Milestone 2 Android Development] Endless7:
Yes...:p:p:p
[Milestone 2 Android Development] sahilarora911:
Okay mate. I guess I misunderstood earlier. I'm downloading WajkIUI now.

Thanks for all your efforts and quick responses!!
[Milestone 2 Android Development] dangpzanco:
Hey, I tought you new C ++...

I don't either... Reallly need some devs here...

@Milestone 2 (Finnaly on Gingerbread!)
[Milestone 2 Android Development] stargo:
I just looked at the disassembly of the init from the ch-leak:

$ ~/android-2.3.4/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-objdump -d init
...
81a0: e92d0090 push {r4, r7}
81a4: e3a0700b mov r7, #11 ; 0xb
81a8: ef000000 svc 0x00000000
81ac: e8bd0090 pop {r4, r7}
...

So execve_address is 0x81a0.

The .text section ends right before 0x19e28, so putting the injected code there is probably a good idea. The putdata function is used to write 1024 (0x400) bytes to the destination which leaves us with:

Calculate offset to the end: 0x19e28 - 0x81a0 = 0x11c88

long injected_code_address = execve_address + 0x11C88 - 0x400; //0x19a28
[Milestone 2 Android Development] sahilarora911:
Glad that I clarified that on time then. Yes, we do need devs. It may be a long shot. But how about we contact m0rph3us. I mean the guy who gave an AOSP of sorts.

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

And also N3ptun3. I guess Mikevhl sold his MS2. Don't know who else might be interested.
[Milestone 2 Android Development] PetrusDLX:
Currently, what are the bugs?

Sent from my Milestone 2 with GingerBread
[Milestone 2 Android Development] sahilarora911:
Hey Endless7

I'm unable to get MIUI to boot.

Here are the steps that I did.

1. Went inside Defy Bootmenu and then CWR 3.1. Installed the WajkIUI.zip (install from zip option).

2. Installed fix_for_CM7_MIUI.zip

3. Rebooted

4. Got a black screen after first M logo which was bootloader mode. Flashed the fixed sbf provided in the first post.

5. The system rebooted

After this I get stuck at the WajkIUI bootscreen picture. After a while at that point it starts blinking every 5-6 seconds.

Edit: Plus I should add. At this point I'm unable to access Stock recovery too. If I try to enter stock recovery (either directly or through Bootmenu or CWR options) I get stuck at the first M logo.

Please correct my procedure where I'm mistaken.
[HTC Sensation] ariel123:
my sensation keeps my google search filter in strict and everytime i try to take it off it wont let me. it blocks me from alot of sites. is there a way around this? could it be google plus i just recently got invited and since then its been acting like this or does lookout interfere with blocking websites on my phone?
[HTC Sensation] ariel123:
also how to i get rid of lookout its just annoying to me and i feel it slows down the phone
[HTC Sensation] thefsfempire:
1. Try to "reset" the browser back to factory defaults (Settings > Manage Applications > All > Internet > Clear Data, Clear Cache). This will erase all browser settings, bookmarks, saved passwords etc.

2. To remove Lookout you'll need to either gain temp-root and "freeze" the app with Titanium Backup (makes the app invisible to the system; it doesn't run or show up as installed) or completely S-OFF and perm-root to delete the app entirely. I'd recommend just freezing the application if you aren't comfortable with S-OFF or have no idea what S-OFF is for.
[HTC Sensation] ariel123:
i tried the first option and it didnt worked
[LG Revolution] paulreminder:
UPDATED:

Kudos for Mr. doc3000!!! He just sort me out for this issue. The weather widget from LG

Optimus UI 2 (include Optimus Black and Optimus Revolution) works smoothly now on my HTC

Hero GSM! (Rooted Elelinux-7.1-Hero-v3.6 Android 2.3.7) Thanks a million bro, you are the

man!

I've added some screenshots here. Everything, all 3 sizes widgets (4x1, 4x2, 4x3), all

animations, all functions are running like hell!

final

4x3

4x1

today

hourly

15 days

So maybe now we can say we've finally found an universal way to port the weather widget for

non LG devices? doc3000 could you please what's the trick behind framework.jar tweaking?

-------------------------------------------------------------------------------------------------------------

Hi everyone. Is there any chances you guys (LG Revolution users)extract/port the embedded stock weather widget out? As a non LG user I really like the whole UI design of the weather widget.

Some of you might remember back in the beginning of this year the Optimus 2x weather widget had been extracted for public Android world and it was truly a blow, it even runs smoothly on my old HTC Hero G3 (running elelinux based on CM android ROM 2.3.5). It turns out those of you Revolution and Optimus Black users ar even luckier since you're using an updated version of weather widget which has better graphics and functions compared to the the original one runs on sister device Optimus 2x.

Evidently many non LG users are obesessed by this new weather widget aside of me. A few months ago forum user "mortuus82" has post a request thread over at xdaforums.com/showthread.php?t=1077703 for extracting it from Optimus Black but the extraction work doesn't work well. So here I am to try my luck on Revolution board: if any of you know how to extract and re-sign the stock weather widget from your device, please share it to we non LG users. It will ne much appreciated.
[LG Revolution] mtmichaelson:
Hey Paul I have got a copy of it deodexed at the house. I can message you when I get home and get you a copy.
[LG Revolution] paulreminder:
Hey Michaelson thanks for the quick heads up! Looking forward to it. :)
[LG Revolution] juicehead9:
Have you checked out Go Weather on the market. It looks very very close to LG's stock!
[LG Revolution] paulreminder:
Thanks for your help. I just forgot to mention that I live in China and Go Weather is developed by a chinese team, yes I've got my hands on Go Weather since the day one and installed all the widgets, plug-ins way earlier than you guys before it landed the Android Market. It looks similar to Revolution's stock weather widget, but it's just a knock off, it's buggy, unstable and the not battery friendly. And not to mention the weather source that Go Weather uses isn't accurate. Most importantly, it doesn't have the exact "look" I want. Now I'm using mutiple weather apps including the stock Android weather & news, weatherbug, the weather channel and stock weather widget dump from LG Optimus 2X and am waiting for Michaelson send me the copy from Revolution.
[LG Revolution] mtmichaelson:
Sorry about taking so long, but here it is. Good luck!

http://www.multiupload.com/URR4DIJT77
[LG Revolution] paulreminder:
No worries. Thanks again for the up mate!
[LG Revolution] Haxcid:
Though you had to be running LG home for the default LG apps to work correctly?
[LG Revolution] paulreminder:
It could be done without LG launcher by using "appwidgetpicker".
[LG Revolution] mtmichaelson:
Which revolt does have. And I have confirmed it does work!
[LG Revolution] thermal_tim:
Mt, you are just awesome! Had to say it.
[LG Revolution] nfederic:
how do i get it to work then, every time i try to install the weather widget it says "application not installed".
[LG Revolution] mtmichaelson:
Use root explorer and move apk into /system/app
[LG Revolution] Rav20:
i cant seem to move to system/app it says its a read only file? *edit* got it n/m

also any chance we could get the contacts and calendar?
[LG Revolution] mtmichaelson:
Upper right hand corner should be a button that says r/w for read / write
[LG Revolution] Rav20:
thanks,

never used it before but got it thanks
[LG Revolution] platinum8317:
Will this work in Cubes Decrapified rom?
[LG Revolution] mtmichaelson:
It should
[LG Revolution] platinum8317:
using root explorer i put apk in /system/app, with it mounted as r/w. It went through the install like normal until end were it says "application not installed."

Not sure what I'm doing wrong. PLease help. Thanks.
[LG Revolution] juicehead9:
Reboot phone
[LG Revolution] mtmichaelson:
Just move it there and you are done. You do not have to install or anything like that. It may not work with it though since decrap does not have appwidgetpicker
[LG Revolution] platinum8317:
Does not work for me. So im assuming appwidgetpicker is not in decrap. That sucks I do like that weather/clock widget.
[LG Revolution] K0G:
The app picker is in the revorom line.

Sent from my Cubed VS910 4G.
[LG Revolution] Rav20:
can anyone pull the LG Contact widget and the calendar widget?
[LG Revolution] RootThese:
I know this is going to sound needy...want want want...but I would love to have the Calendar widget, the news widget, and the accuweather widget that were on the stock rom...and have them all work on TheCubed decrapped rom. Thank You, Tyler, for all of your bad ass knowledge!!!!!!!
[LG Revolution] jegonzo3:
The Accuweather widget works, but not all the functionality is there.
[LG Revolution] Best01:
I got it installed on my sgs2 but the medium size widget does not work. I'm running newest miui build. Any thoughts on how I can get it to work. Thanks
[LG Revolution] K0G:
I tossed my Crap, Revolted and moved out of my Home.
[LG Revolution] black02ss:
I installed it on my charge and only the small widget works. The middle and large do not. :(
[LG Revolution] K0G:
Is charge an LG product. Surprised it even worked at all.

I tossed my Crap, Revolted and moved out of my Home.