yashsingh1/xdaforums huggingface dataset:
[Milestone XT720 Android Development] peshovec:
As you know i use the cust partition as container about basebands.

When i was stock, i saw a commented entry in init.maphone_umts.rc about mounting it under /system/etc/motorola. After comparing it turns out that they was identical. So i uncomment the mount entry.

About backing and restoring the cust partition a simple tar will do the job (we will miss of course the nandroid mkyaffs part, but it should work)

about hijacking sh or logwrapper.. imho in our phone sh is first ...

actually logwrapper can be called from init.maphone_umts.rc defined service (backup and restore), but the services are disabled

having in mind this:

Debugging notes
---------------
By default, programs executed by init will drop stdout and stderr into
/dev/null. To help with debugging, you can execute your program via the
Andoird program logwrapper. This will redirect stdout/stderr into the
Android logging system (accessed via logcat).

https://github.com/nadlabak/android_system_core/tree/gingerbread/init

i bet that our device is using sh before logwrap

p.s. in the experimental builds, cust is mounted under /system/etc/motorola ... so normally that means, the "right" baseband is used, but assuming that there was not sbf jumping... if some sbf jumping was made, then better is to comment (of course if there are issues) line 37 in /system/etc/rootfs/init.maphone_umts.rc

mount yaffs2 mtd@cust /system/etc/motorola noexec ro

and to apply the favorite baseband update

p.p.s. imho the baseband updates, has to have no impact on voice. for the data it can impact
[Milestone XT720 Android Development] Mioze7Ae:
That cust mounting line is commented out in Motorola's init*.rc's inside boot.img, and I don't understand why there are two copies of those files, so I've been leaving it commented.

The baseband software I was talking about though is "bpsw" or CG45 (http://and-developers.com/partitions:cdt). That's the software that the baseband CPU loads. There's no mtd device for it, though so we can't use nandroid on it.

Unrelatedly, I was comparing dmesg output for normal boot to OpenRecovery vs fastbooted boot with the same boot.img to OpenRecovery late last night to see if there were any differences in the various "power_up_reason" codes (no luck unfortunately). Anyway, I noticed that the mtd-hack.ko kernel module that OpenRecovery loads to create the missing mtd devices segfaults at insmod (as it should since it's got hardcoded addresses for A853). So, we could probably fix it.

If we dare.
[Milestone XT720 Android Development] peshovec:
i had memory, that i had success with mtd-hack.ko (compiled), but i am not sure if the phone was booted normally or in openrecovery..(probably i had tried both way :).

about bpsw, i am not actually sure if we (xt720) are using it...

from

http://developer.motorola.com/products/?num=all

xt720

GSM 850/900/1800/1900,

W-CDMA 1700/2100

853

GSM 850/900/1800/1900,

GSM 900/1800/1900,

W-CDMA 2100,

W-CDMA 850/1900/2100,

W-CDMA 900/2100

e.g. 2 gsm and 3 w-cdma bands for the 853, and just 1 gsm and 1 w-cdma for the xt720

also in the phone testing menu, (*#*#info#*#*) there are options to select the band. on the xt720 the only one selectable is auto:) (even if in roaming), on other phones the options can be selected. so still imho the baseband theme (for xt720) is somehow overreacted (adding that part of the baseband files are generated in the data partition, the magic becomes more and more black:):)
[Milestone XT720 Android Development] Zachary57:
My phone get very hot when low signal even with update. Battery go to 42°C and then it stop signal. I am with france update.
[Milestone XT720 Android Development] DarkMD:
In the testing menu i tried to change the band... but it cannt... so why our phone have that option and dont work?
[Milestone XT720 Android Development] peshovec:
IMHO it is there because of code reusing, and doesn't work because no need for it ( no implementation in hardware and firmware)

trying to slide the above onscreen
[Milestone XT720 Android Development] Mioze7Ae:
I think this fixes the FMRadio volume step bug. Basically FMRadio.apk was stepping the volume level by 0x5 for each button press. In first tried changing that to 0x1--that was better but still seemed to hit max volume before end of volume slider so I put it to 0x1. I've only tested on CM6 and it's signed with testkey, so that may be a problem--it may need to be resigned with the CM7 platform key--not sure.

This was the change (since it's at 0x1 now, I could probably just deleted the lines because they're essentially NOOP):

diff --git a/FMRadio/smali/com/motorola/fmradio/FMRadioPlayerService.smali b/FMRadio/smali/com/motorola/f
index 2595575..2a7d34a 100644
--- a/FMRadio/smali/com/motorola/fmradio/FMRadioPlayerService.smali
+++ b/FMRadio/smali/com/motorola/fmradio/FMRadioPlayerService.smali
@@ -148,7 +148,7 @@

.field private static final VOLUME_LEVEL:I = 0xe

-.field private static final VOLUME_STEP:I = 0x5
+.field private static final VOLUME_STEP:I = 0x1

.field private static final mDefaultRssiThreshold:I = 0x7

@@ -1088,7 +1088,7 @@

iget v1, p0, Lcom/motorola/fmradio/FMRadioPlayerService;->mVolumeIndex:I

- mul-int/lit8 v1, v1, 0x5
+ mul-int/lit8 v1, v1, 0x1

invoke-virtual {v0, v1}, Lcom/motorola/fmradio/FMRadioPlayerService$FMServiceStateBase;->setVolume(I

@@ -1133,7 +1133,7 @@

iget v1, p0, Lcom/motorola/fmradio/FMRadioPlayerService;->mVolumeIndex:I

- mul-int/lit8 v1, v1, 0x5
+ mul-int/lit8 v1, v1, 0x1

invoke-virtual {v0, v1}, Lcom/motorola/fmradio/FMRadioPlayerService$FMServiceStateBase;->setVolume(I

@@ -1372,7 +1372,7 @@
.line 1208
iget v0, p0, Lcom/motorola/fmradio/FMRadioPlayerService;->mVolume:I

- div-int/lit8 v0, v0, 0x5
+ div-int/lit8 v0, v0, 0x1

iput v0, p0, Lcom/motorola/fmradio/FMRadioPlayerService;->mVolumeIndex:I

In testing it seems sometimes a little wonky (esp when first launched). Occasionally when you go down to mute it's not muted but if you go up a bit and come back down then it corrects itself. So, I may have missed one of the 0x5's that matter somewhere. This doesn't fix the volume working on the lockscreen/other apps. I'm not sure what ROM this FMRadio.apk came from (it's different from the XT720 one)--the XT720 stock ROM also has some framework code to handle volume when a call comes in, etc and to prevent fmradioserver from being killed by the lowmemory killer.

Oops. I don't think this fixed it. I think we need the matching fmradioserver... probably Droid2?
[Milestone XT720 Android Development] acrobat69:
I'm going to go post the results of my test of your Wind baseband in the 6.3.6 thread, since that's the rom I'm currently testing. (overall, improved)
[Milestone XT720 Android Development] Similya:
does tethering works.? i always have an error when i enable wireless tethering.
[Milestone XT720 Android Development] Zachary57:
Hi,

Is there a way to have notification bar round shaped like in cm 6.3 even in black ?

Because our isn't like in stock android 2.3.
[Milestone XT720 Android Development] peshovec:
in the test build both usb and wireless tethering works.

1. usb i used it in linux, have to patch cdc_ether

diff -ur cdc_subset/drivers/net/usb/cdc_subset.c cdc_subset-patch/drivers/net/usb/cdc_subset.c
--- cdc_subset/drivers/net/usb/cdc_subset.c	2011-12-27 09:47:53.373837833 +0200
+++ cdc_subset-patch/drivers/net/usb/cdc_subset.c	2011-12-27 09:58:34.879817903 +0200
@@ -28,6 +28,7 @@
#include <linux/usb.h>
#include <linux/usb/usbnet.h>

+#define ANDROID_MOTO

/*
* This supports simple USB network links that don't require any special
@@ -222,6 +223,16 @@

#endif	/* CONFIG_USB_ARMLINUX */

+#ifdef ANDROID_MOTO
+#define HAVE_HARDWARE
+static const struct driver_info motousb_info = {
+ .description = "Motorola USB endpoint",
+	.check_connect = always_connected,
+	.in=0x84, .out=0x03,
+};
+#endif /* ANDROID_MOTO */
+
+

/*-------------------------------------------------------------------------*/

@@ -323,6 +334,14 @@
},
#endif

+#ifdef ANDROID_MOTO
+{
+	//Motorola's android phones (xt720 and others)
+ USB_DEVICE_AND_INTERFACE_INFO (0x22b8, 0x41da, 0x02, 0x0a, 0x01), // moto's presenting rndis usb ethernet
+ .driver_info = (unsigned long) &motousb_info,
+},
+#endif
+
{ },	// END
};
MODULE_DEVICE_TABLE(usb, products);

then after enabling usb tether (from the settings too) you will have usb0 ethernet device

about windows, may be will work out of the box (after installing some drivers)

2. wireless

the mynet.apk (e.g. 3g mobile hotspot) will work. you have to modify your apn to include dun. something like that:

- <apn carrier="MobiTel BG" mcc="284" mnc="01" apn="inet-gprs.mtel.bg" type="default,supl" />
- <apn carrier="Mtel BG" mcc="284" mnc="01" apn="inet-gprs.mtel.bg" mmsc="http://mmsc/" mmsproxy="010.150.000.033" mmspor
+ <apn carrier="MobiTel BG" mcc="284" mnc="01" apn="inet-gprs.mtel.bg" type="default,supl,dun" />
+ <apn carrier="Mtel BG" mcc="284" mnc="01" apn="inet-gprs.mtel.bg" mmsc="http://mmsc/" mmsproxy="010.150.000.033" mmspor

you can do that form the apn settings too, just have to add dun to the apn type

someone (sorry forget the nick), has shared, that using the test build the wireless tether for root, works in infrastructure mode too

the wireless tethering from the settings menu will not work at the moment. i don't see the point of fixing it (should change the tethering service to check some flag instead of the name of presented interfaces), as there are working (nice) solutions
[Milestone XT720 Android Development] Similya:
thanks for the reply. i've tried to install mynet.apk but it won't install.

the version of mynet.apk comes from the froyo rom.

is there a way to install froyo based apps to CM7.?
[Milestone XT720 Android Development] fjfalcon:
new build =) new version.. =)
[Milestone XT720 Android Development] bagongs:
Hi, first of all, thanks for your hard work! :)

Secondly, what's new in the new release? :D
[Milestone XT720 Android Development] fjfalcon:
Well, cyanogenmod team now commits and applying all gerrit commits... after they finish that hard work they will release 7.2, and stop work over gingerbread brunch.
[Milestone XT720 Android Development] SickBeast:
Hey fjfalcon, thanks very much for the ROM. :)

I've installed it and it seems to be working really well. I'll report back if I find any bugs.
[Milestone XT720 Android Development] SickBeast:
Tethering is not working in the newest fjfalcon rom. :(

It won't even work with 3rd party apps.
[Milestone XT720 Android Development] brianlili:
Thanks fj, you give us so much fun and so much meaning of this phone.
[Milestone XT720 Android Development] secret_tidus:
comparing this rom to cm6.3.5, is it much more better? i scare i get the same problem found on jy daddy cm7 rom which will hv screen off dead issue
[Milestone XT720 Android Development] jackfrost3821:
Does camera work in this build? In previous one it used to give me FC and sometimes hot-boot.
[Milestone XT720 Android Development] Leotronick:
Sorry i just can't find it myself. Can someone point out the changes between this releases and the previous one?
[Milestone XT720 Android Development] bagongs:
Hi, to solve it go to settings-Cyanogenmod settings-lockscreen-delay and timeout and set

Screen timeout delay: immediately

Screen turned off delay: immediately

BTW, compared to CM 6.3.5 it has more features (the ones typical of android 2.3 like screen turn off animations and overscolling effects, power notification widget more efficient) but of course this results in less RAM availability ;) I've tried this for a couple of days and after cleaning some apps it looks pretty stable and fast.

---------- Post added at 09:50 AM ---------- Previous post was at 09:48 AM ----------

As far as I tried it (not so many times) it works. No FCs in taking 20 pics in a row.
[Milestone XT720 Android Development] secret_tidus:
so did u experience low ram issue like closing of home launcher after using heavy apps like fb or browser if whatapps, magilocker, skyvi installed?
[Milestone XT720 Android Development] bagongs:
adw launcher ex never restarted, but yeah, multi-tasking gives me some trouble, apps restart from time to time. but I guess there's no way to avoid this problem, since we're running android 2.3 (a dream for our phone) with 256 MB of RAM. I'll post the results using Ram manager pro. we'll see if some improvements occur.

btw, i forgot another difference with reapect to 6.3.5: another nice feature is the led notification (for calls, messages, but I couldn't make it work for whatsapp, anyone knows how to?), works perfectly.
[Milestone XT720 Android Development] mchlbenner:
you need to remove some system apps.

search application provider,dsp manager,fora kill,pgm system, Com.motorola.hidden menue,drm protected content.

I have included darkey ota it has system appremover and you can restore them with it.

its a free apk but only works on cm7.

leave the other things on this app alone.
[Milestone XT720 Android Development] brianlili:
Hi, fj, can you fix media key in framework? since you can edit the source code. It only take four steps to do it.

1. querty.kl add "key 112 MEDIA_MODE WAKE"

2.framework.jar, define MEDIA_MODE key code in KeyEvent.jar

3.com.policy.jar, when media key is pressed(keydown and keyup), this file broadcast a intent of "MEDIA_MODE_KEY".

4.app(like gallery3d.apk) receive the broadcast and start intent.

I tried binary work, but it is so diffcult, and I failed. If you can try it out, that will be great.

Anyway, thank you so much for this great rom.
[Milestone XT720 Android Development] Mioze7Ae:
Oh, is that all that's needed? I had been studying the files you posted to the CM6 thread but I didn't see where they were going...
[Milestone XT720 Android Development] Mioze7Ae:
Playing with DDMS to compare froyo and gingerbread memory use. It seems that android.process.acore is relatively gigantic on CM7. Anyway, this was using CM7.1 20111214 with heap set to 24mb.

Froyo

Note: android.process.acore is the yellow sliver at approx 11:00

Gingerbread

Note: android.process.acore is the huge huge yellow wedge at 5:00

Update: The gingerbread acore seems to fluxuate wildly. Sometimes it goes really small and then other times it becomes that enormous monster. I can't quite tell yet what's triggering the transformation.

I'll load up the new 7.2 and see if CyanogenMod has done something about that and I'll also try nadlabak's CM7 and see if his tweaks reduce the size of acore. Or maybe huge acore is a gingerbread feature. Anyway, ddms is really nifty. I feel pretty stupid I never tried it before now. (It's in the sdk. On linux just run /path/to/android-sdk-linux_x86/tools/ddms and plug in your phone)
[Milestone XT720 Android Development] brianlili:
Yes, and in stock's rom, it is the cameramoto.apk receive this "MEDIA_MODE_KEY" broadcast, and start mediagallery activity.

Reveiver registed in cameramoto's manifest like this

<receiver android:name="ModeButtonIntentReceiver">

<intent-filter>

<action android:name="motorola.intent.action.MEDIA_MODE_KEY" />

</intent-filter>

</receiver>
[Milestone XT720 Android Development] peshovec:
ddms test build

here is the ddms from the test build
[Milestone XT720 Android Development] Mioze7Ae:
nadlabak-picked or gingerbread?
[Milestone XT720 Android Development] peshovec:
nadlabak-picked + latest gingerbread commits

trying to slide the above onscreen
[Milestone XT720 Android Development] fjfalcon:
Omg, thanks. Will do it right now.

Already make changes in qwerty.kl, build/frameworks/base/core/java/android/view/KeyEvent.java.

As for policy files that containt case keyEvent:

./PhoneWindow.java

./KeyguardViewBase.java

./KeyguardViewMediator.java

./PhoneWindowManager.java

As far i can see:

PhoneWindow.java is file for intent launcher to be added=)

Only question is about wich intent we should use.
[Milestone XT720 Android Development] brianlili:
Yes, It is. You beat it:)

And, ModeButtonIntentReceiver.java(CameraMoto.apk) is where stock's rom receive this broadcast.
[Milestone XT720 Android Development] fjfalcon:
Thanks, also, can you give me PhoneWindow.java from android.policy.jar?

Cause mine jd-gui shows me segmentation fault on it.
[Milestone XT720 Android Development] brianlili:
Of course, the whole package of com.policy.jar, decode from motoroi's froyo rom.
[Milestone XT720 Android Development] fjfalcon:
Intent localIntent8 = new Intent("motorola.intent.action.MEDIA_MODE_KEY");
Intent localIntent9 = localIntent8.putExtra("android.intent.extra.KEY_EVENT", paramKeyEvent);
Intent localIntent10 = localIntent8.putExtra("keyup", 0);
getContext().sendOrderedBroadcast(localIntent8, null);

Youp, only add reciever to camera app, and we done...

Ofcource we also should add led notify system to camera and gallery app.. but it shouldn't be a problem.

Thanks again.

One more file to edit:

build/frameworks/base/core/java/android/content/Intent.java to add intent action string... cause we should do it right, youp? =)

https://github.com/CyanogenModXT720...mmit/a90c215e6cf97a949050153e31192ec130ee6d6c

Commit to frameworks base.. Now only problem to add to camera.app

Camera app commit.

https://github.com/CyanogenModXT720...mmit/56c20a3109481ab37a1330de118807aa821a96b0

Now trying to build.. and test it

Building finished, trying to flash and check(for now gallery button will just run camera app..)

Btw, ddms from mine phone from cm 7.2.0
[Milestone XT720 Android Development] bagongs:
I removed these and many more, but still the RAM availability at boot is 40 MB (but it drops to 25 after a while), hence, when I use some heavy apps (e.g. Maps), their responsiveness is quite low.
[Milestone XT720 Android Development] secret_tidus:
will remove these system apps with impair the function of the phone?
[Milestone XT720 Android Development] mchlbenner:
Its safe to remove system apps I have listed .

Remember you need ram manager pro for this to work right.
[Milestone XT720 Android Development] fjfalcon:
As far i can see, KeyEvent.java not only one file to make keycode working =)

But, now i get working keycode, next attemp - is camera launcher. =)

After a workday on that problems - all works, camera get launched... only question is in gallery/camera/camcorder, but than i will do or at evening, or tomorrow.

Or if someone wish - code for older files from korean framework - brianlili posted earlier.

Our file currently located here:

https://github.com/CyanogenModXT720...oid/camera/MediaModeButtonIntentReceiver.java
[Milestone XT720 Android Development] brianlili:
Exciting:)

Would you consider a lite gellery app instead of gallery3d?

And one more little thing, in Call Settings, "voice quality" do not have chinese language values yet. "CyanogenMod Settings"-"Performance"-"Disable boot animation" do not have, ether.
[Milestone XT720 Android Development] fjfalcon:
Well, i don't know chinese lang. Maybe you make it and move it here(or just commit file to github?)

I mean values-ch or how chinese locale are done.

Lite gallery app? =)

Maybe you can show me it intent?
[Milestone XT720 Android Development] brianlili:
I mean a gallery app which need less ram and runs faster. Never mind, gallery3d is ok.

In cmparts.apk(these strings lack of value in res/values-zh-rCN/string.xml ）

<string name="pref_disable_bootanimation_title">禁用开机动画</string>

<string name="pref_disable_bootanimation_summary">"禁用动画以加快启动"</string>

In Phone.apk(res/values-zh-rCN/string.xml):

<string name="voice_quality_preferences_title">丽音设置</string>

<string name="voice_quality_summary">选择语音配置以加强收听体验</string>

<string name="voice_quality_entry_normal">普通</string>

<string name="voice_quality_entry_clear">清晰</string>

<string name="voice_quality_entry_crisp">清脆</string>

<string name="voice_quality_entry_bright">明亮</string>

That is all I found.
[Milestone XT720 Android Development] fjfalcon:
https://github.com/CyanogenModXT720...mmit/160f118ec2bdf44380bb20b8d59caf775256af8a

Check it.
[Milestone XT720 Android Development] secret_tidus:
after multiple time of testing, i found that the camera most properly will fc after 2nd launch... how to get rid of it?
[Milestone XT720 Android Development] fjfalcon:
Can you make logcat after fc?
[Milestone XT720 Android Development] fjfalcon:
new build.
[Milestone XT720 Android Development] bagongs:
whatsapp LED notification

wow, this is the 1st time I see whatsapp LED notifications work!

choose red, green or blue as notification color from inside the whatsapp app! ;)
[Milestone XT720 Android Development] mchlbenner:
hi all I have applied a ics theme.

I also applied some ram tweaks here are results.

I'm only overclocked at 720 for this bench mark.

I will run this for threw day.
[Milestone XT720 Android Development] jackfrost3821:
Looking at your screen shot I guess bottom right corner represents 86MB of free RAM. If yes then how did you manage to get free RAM so high? What RAM tweaks did you apply? Mine stays in range of 50-59MB with no widgets running on homescreens.
[Milestone XT720 Android Development] secret_tidus:
wat is logcat? and how to make?

i tried install uninstall the camera many time.. still the same...
[Milestone XT720 Android Development] luks_p:
Try the new build (2012.01.12). No camera issue found.
[Milestone XT720 Android Development] secret_tidus:
tat mean last time u also encounter the same problem? i tot only me experience.. i will try it.. ty..
[Milestone XT720 Android Development] luks_p:
Yes. On the 7.2.0 build 08.01.2012 I faced the same probs. FC after 3-5 picture take. Tap "Wait" than normal again, but FC again after several picture take.

On this new build I face it only once but I don't think its camera issues. Maybe system crash only coz after several times testing I don't face FC anymore.
[Milestone XT720 Android Development] secret_tidus:
i think so becuz when i try the latest rom, it seem like occur quite random and phone will freeze.... so far i only experience camera will bring freeze issue...
[Milestone XT720 Android Development] B_e_n:
I test this rom since yesterday morning

As always thanks to all the people working on it!

But so far i had a lot of issue...

- At the beginning i had some weird wifi disconnection (the wifi disconnect and can t reconnect to the network) but it seems to work now

I have also a lot of freeze then a reboot (with heavy apps most of the time like camera...) since yesterday i have it at least 5 or 6times.....

- But this morning it make me the worst bug ever! It freeze one hour before my alarm (i can see the hour stuck when it freeze) so no alarm (and one client lost because of a missed meeting.....) and when i see it few hours after i can t do anything. The only thing working were the power button so i can only turn on or off the screen or shut it down....

- It seems to manage the ram better than with the others cm7 (JYDaddy's and the old fjfalcon) their is always more than 50Mo without tweak memory (i get 70Mo with ram manager pro and some uninstall of useless apps) but even if the task manager show more free ram it seems that it s slower than my olds rom (CM7.1.1 from JYDaddy had only 50-60Mo but is a lot faster...) and i had also some FC with heavy apps (some with reboot some without)

- I also can t receive any MMS now (even if i restore my old APN which was working for sure)

edit: I use the first modsbf (and all the sensors work)

New other bugs:

- I still have the usb bug (i have to plug it twice to make it work) I think i read that it was ok now

- I also have a strange bug with ti backup it ask for the superuser access a lot of time (every 2 or 3 seconds!!!)
[Milestone XT720 Android Development] secret_tidus:
ya.. same condition with mine... but i dun hv alarm issue, just camera gives problem... i still cant get so much free ram with max killed apps...i only manage to get 60 free ram... i using ram manager pro set at hard gaming... many 3d games wont play properly... i used to it and dun mind... i hope the camera prob can be solve bcuz this rom really is a fast rom, just a little small drawback...

did uninstall theme choose, tmobiletheme.apk will cause the rom unstable?