yashsingh1/xdaforums huggingface dataset:
[Milestone XT720 Android Development] JiroPrinz8:
Ok.. so I flashed this rom last night, almost pulled all my hair out trying to get a hold of the apn settings.. I can't have my data turned on all the time as I don't have unlimited data, which all th apn managers seemed to do, is to fix apn settings and keep it turned on.. not to mention that the default.language is Korean, which I managed to switch to English after like 30 minutes .. and the keyboard the dialler.. well to sum it up, I'm now back to khals steelepicbluev4, frankly this.rom requires too much work atm, I'll wait till.everything gets sorted out I think before even considering to flash wanhu.. whheew..!!
[Milestone XT720 Android Development] Mioze7Ae:
Some ideas:

WanHu modified com/android/internal/telephony/gsm/SmsMessage.smali inside framework.jar (that's the only change inside the /system/framework/*.jar from the official Korean sbf, framework-res.apk is also changed). The version in stock22korean.zip is unmodified.

I found these:

http://developer.android.com/reference/android/telephony/PhoneNumberFormattingTextWatcher.html

http://developer.android.com/reference/android/telephony/PhoneNumberUtils.html

These are inside framework.jar (i.e. android/telephony/PhoneNumberFormattingTextWatcher.smali)

This seems to be extended in the Korean version. Looking at these class interfaces, it may be possible to substitute/adapt the A853 smali for these. I don't have time to look at that right now, though. So, if someone wants to give it a look, please do. I may be able to provide some hints. (The Korean version has an extra constructor and field, we can probably make those be dummy interfaces...) Anyway, I'm finishing the power menu first before I touch that.
[Milestone XT720 Android Development] Mioze7Ae:
I know it's little help now, but on the click-on-the-big-android screen, the bottom right button gives you a language menu. In the next patch, I'll swap it to English as default (/system/build.prop).
[Milestone XT720 Android Development] hellmonger:
I say stay with current dialler and make modifications to formating, this dialler is very gast and stable i find.

public static void formatNanpNumber (Editable text)

Since: API Level 1

Formats a phone number in-place using the NANP formatting rules. Numbers will be formatted as:

xxxxx xxx-xxxx xxx-xxx-xxxx 1-xxx-xxx-xxxx +1-xxx-xxx-xxxx

Parameters

text	the number to be formatted, will be modified with the formatting

Great find Mz!
[Milestone XT720 Android Development] hellmonger:
Please use the other Wanhu thread to report bugs on the original Rom, this thread is for developing.
[Milestone XT720 Android Development] hellmonger:
App works but does not change formatting... thank you for the info tho :)
[Milestone XT720 Android Development] hellmonger:
Mz how do you edit those, i 'm pretty good at ***.apk but no idea here.

i am able too extract from .jar and have .. lol im writing this and i just figured it out :)

http://xdaforums.com/showthread.php?p=6301488
[Milestone XT720 Android Development] Mioze7Ae:
I use http://code.google.com/p/smali/. smali.jar decompiles and baksmali.jar recompiles. I use a bunch of standard unix text processing stuff to search, split method into individual files (csplit), meld (similar to winmerge on windows I think) etc to make it more manageable.
[Milestone XT720 Android Development] hellmonger:
Sorry, you are limited to five thanks per day $|-|17!!!
[Milestone XT720 Android Development] JiroPrinz8:
Will do.. :) just sharing my experience from noob's perspective. Anyway, keep it up everyone, hopefully we see a super rom once all this is sorted out.. thanks!
[Milestone XT720 Android Development] gera_nium:
dear all, for the...

2. Base-band, needs to be updated to a cleaner version due USIM incompatibilities.

: i would suggest to backup our current baseband, then restore back using the OR Androdiani 3.3...but it depend to each country and region...

: as my knowledge the baseband files are in \system\etc\motorola\bp_nvm_default\

just idea and suggestion only, maybe someone can clarify..
[Milestone XT720 Android Development] Mioze7Ae:
Baseband backup/flash doesn't work in OR, right? The only way I know to change the baseband on XT720 is to flash an sbf...
[Milestone XT720 Android Development] Woody:
No baseband in AOR doesn't work. I remember someone in the thread I started about AOR features saying baseband soft "bricked" there phone and they had to reflash sbf then bring it all back to being able to restore their nandroid. I say soft bc they were able yo raise it from the dead.
[Milestone XT720 Android Development] fjfalcon:
http://xt720.ru/Files/Kernel/boot4.img

New kernel.

Please check tvout work.
[Milestone XT720 Android Development] hellmonger:
Sorry, you are limited to five thanks per day DAMINT!!!!!

Thanks bro :) i'm trying now.

Well everything is working as normal, my TV out is still not working but i never got it working so im not really a good test but swap yes and stable so far like like like!
[Milestone XT720 Android Development] mediaon:
hi man ,i tired but TV OUT (3.5mm) not works,nothing happens when plug jack in..last time with(boot3.img) poweramp player pops up and Camera shows black,this time nothing happen ..but camera works fine..thanks for your works anyway
[Milestone XT720 Android Development] 3rdstring:
@ Hellmoger any luck? I tried some last night without any luck.

Can anyone post the framework.jar from Dexters or CBs Rom? I was planning on playing with some more at lunch but I forgot to put that file in my Dropbox.
[Milestone XT720 Android Development] hellmonger:
I just had enough time to set up my lab last night dint really messa arround with it i will try again to night after work :)

But i was having alot of problems decompiling the classes.dex file in the framework.jar...
[Milestone XT720 Android Development] Mioze7Ae:
Here's the one from Dexter's 1.3. It's identical to the new Cincinnati Bell one. Rename .zip to .jar.
[Milestone XT720 Android Development] Mioze7Ae:
Word of advice: you will save yourself a lot of hair pulling if you do a dummy decompile/recompile and test the result on your phone before you start making changes. You want to know that the bootloop is caused by your changes, not your build system ;).
[Milestone XT720 Android Development] gera_nium:
framework.jar and framework-res.apk

3rdstring,

here the framework-res.apk and framework.jar from original dexter rom :)
[Milestone XT720 Android Development] hellmonger:
Wow lol ok i see... Thanks man :)

Btw, have extensively tested the hack scripts and they all work flawlessly, but MSOC 1.4.8 will load the module now but it won't keep it's settings after reboot.

Any ideas why,
[Milestone XT720 Android Development] Mioze7Ae:
I think there's a bug in Milestone Overclock. http://code.google.com/p/milestone-overclock/issues/detail?id=161#c0

Supposedly an older version doesn't have the bug. In the past, I tested that if you prevent the bootscripts from loading the module, then Milestone Overclock works, but someone said that didn't work anymore because it's not able to load the modules. Maybe I should just add back in the ugly hack that reads Milestone Overclock's preferences until it's fixed... I really wanted to avoid mounting /sdcard in the boot scripts, though... Maybe mount read-only... hmmm. Annoying.
[Milestone XT720 Android Development] hellmonger:
No don't id rather use an older version, then that mount hack. too much corruption possible.
[Milestone XT720 Android Development] reverendkjr:
I have been using Milestone Overclock 1.4.1 exclusively for my testing with this ROM.
[Milestone XT720 Android Development] hellmonger:
Does it save settings after reboot?
[Milestone XT720 Android Development] 3rdstring:
Well i did the smali baksmali on clases.dex from Wanhus framework.jar & didn't bootloop but I might not have tested it thoroughly enough. When I replaced the two smali files from Dexters ROM the phone booted fine but trying to get to the dialer or contacts force closed.
[Milestone XT720 Android Development] hellmonger:
How did you decompile the .dex file?
[Milestone XT720 Android Development] reverendkjr:
I am also removing the overclock.ko files in /system/lib/modules, but then it does.
[Milestone XT720 Android Development] hellmonger:
Ok.... trying now, Removed overclock.ko...

REbooted after changing settings...

Failed, 1.4.8 did not save OC settings :(
[Milestone XT720 Android Development] 3rdstring:
I used this guide that I found for changing the clock color.

What you have to do:
Extract the services.jar from your phone/rom file to the same directory as your smali/baksmali jar files.
Extract the classes.dex out of the services.jar using a zip tool of your choice. Only extract it. Do not extract the whole file
Decompile classes.dex: java -jar baksmali.jar -o classout/ classes.dex
That will create a directory classout where your decompiled files are stored
move to the directory classout/com/android/server/status . There you will find a lot of .smali files
Open StatusBarIcon.smali in the text editor of your choice
Search for the text Landroid/widget/TextView;->setTextColor(I)V (there should be only one)
In the same line you will see somethink like invoke-virtual {v4, v6}. Note second v-Value (it can be another number) and search for it.
You will get something like const/high16 v6, -0x100. That's Black. To change the color to White, use const v6, -0x1, using const/high16 v6, -0x1 will turn it Red. You can use this format: const v6, 0xffRRGGBB. const v6, 0xff0000ff would turn it blue and const v6, 0xffff00ff will turn it pink
Save the file and move back to your directory, where you have saved the classes.dex
Rename it for having a backup file
Run this command: java -Xmx512M -jar smali.jar classout/ -o classes.dex
Replace the classes.dex INSIDE your services.jar with your newly created classed.dex
Push the new services.jar to your phone (/system/framework/) and reboot.

(I also tried that to change the clock color but just bootlooped on that attempt) I don't remember where I got the smali/baksmali jar files so I'll try again with the latest smali files that Mioze7Ae linked to.
[Milestone XT720 Android Development] reverendkjr:
there is another okverclock.ko file too, but it's named something different. I don't remember exactly what it was... As far as 1.4.8, i've yet to get that to work. I only use 1.4.1.
[Milestone XT720 Android Development] Mioze7Ae:
You can't just replace them, because the Korean one adds a few changes to the interface. For example, the methods defined in the Korean framework/android/telephony/PhoneNumberFormattingTextWatcher.smali are:

.method public constructor <init>()V
.method public constructor <init>(Z)V
.method public declared-synchronized afterTextChanged(Landroid/text/Editable;)V
.method public beforeTextChanged(Ljava/lang/CharSequence;III)V
.method public onTextChanged(Ljava/lang/CharSequence;III)V

But the A853 one (Dexter's 1.3) only defines these:

.method public constructor <init>()V
.method public declared-synchronized afterTextChanged(Landroid/text/Editable;)V
.method public beforeTextChanged(Ljava/lang/CharSequence;III)V
.method public onTextChanged(Ljava/lang/CharSequence;III)V

The way these lines work, is the stuff in the parentheses is defining the types of arguments. On the Korean one there's an extra version of the constructor that takes a (Z). That's not present on the A853 one, so we need to add one. The force close probably happens because the dialer is calling the <init>(Z)V form of the constructor which didn't exist. The korean one also adds a public field called dialer:Z so the force close could also have been caused by dialer trying to access that field. That interface needs to be emulated/adapted in the A853. Or maybe you can just replace the individual methods instead of the entire class.
[Milestone XT720 Android Development] hellmonger:
Could you zip and UL your Lab mine just fails for some reason...

Thanks'

@Mz thnx :)
[Milestone XT720 Android Development] 3rdstring:
This is with the files already disassembled (\classout) and no changes made.
[Milestone XT720 Android Development] khalpowers:
Anyone manage to edit status bar.XML to white..

Smali for clock white on service jar already done..now I'm testing my latest steelblue ( wanhu).

Ram available - swap up to 115.,without swap up to 100+..

Milestone autoload on start up with oc script @SD

With swap i Can play movie and games thru real HDMI 1.5..swap really stable @1.1gh 70vsel already switched from miui since real HDMI working ..:).btw I'm used the first kernel from fjfalcon.
[Milestone XT720 Android Development] c_urbanek:
Rom Timetable?

Khal, any time estimate when you can release a steelblue wahmu Rom? Also, have you tried the Cincinnati Bell Rom for anything?:D
[Milestone XT720 Android Development] hellmonger:
I knew getting real hdmi working was a good idea :D WB Kahl!

Milestone autoload on start up with oc script @SD

I really hate that SD script man... no other way?

How about that weird formatting on the dialer any ideas?
[Milestone XT720 Android Development] JiroPrinz8:
Wow..!! Now that's something to look forward to..!! Thanls Khal!!
[Milestone XT720 Android Development] khalpowers:
I'm not try CB yet...will upload beta version tonite..I'm screwed with this status.bar XML..can't pass thru so now stuck with date n telco name in black color ..Google for any black theme from motoroi 2.1 also failed..
[Milestone XT720 Android Development] 3rdstring:
I'll trade ya for the services.jar with the white clock:p
[Milestone XT720 Android Development] khalpowers:
Dialer still same bcoz my country also using same format..so no problem for me..

Just copy paste the script to SD root..hehe..
[Milestone XT720 Android Development] 3rdstring:
Oooooppppps. I missed the date on the last one. For the carrier name you will also need status_bar_expanded (included)
[Milestone XT720 Android Development] syrenz:
Looking forward to. :D

When you do get around to making SteelEpicBlue complete theme I'd just like to request that you make the notification bar more readable this time. I liked the theme last time but reading text on notification bar was always hard. Maybe you could just use the simple black and white theme of Google for notification dropdown part so it's readable. Thx :)
[Milestone XT720 Android Development] ktylife:
Please do !

I have 25+ RAM at startup :P
[Milestone XT720 Android Development] Mioze7Ae:
Has anyone succeeded in modifying framework-res.apk? I'm starting to suspect that apktool is what's not working.

The powermenu code is close to done I think, but something's wrong with the rebuilt framework-res.apk. :mad: I can see the powermenu behind all the force-close windows... This means two things. (1) something's wrong and (2) not everything's wrong because it's reading the strings and icons from framework-res.apk. Grrrrrr. I tried removing otacerts.zip--no change. I also tried not updating the signatures and that caused bootloops.

The attached zip has the android.policy.jar, framework.jar and framework-res.apk I built if someone has some ideas how to tweak the files. To work it will also need the /system/xbin/boot_to_or and /system/xbin/boot_to_bl (there are versions in rusmod).
[Milestone XT720 Android Development] khalpowers:
Try clear memory with free memory recover then see how many ram availabe you have..mine also same below 40 on start up but once clear memory then I hv 95 - 100+ available ram without swap..
[Milestone XT720 Android Development] Mioze7Ae:
Oh, that's purty!
[Milestone XT720 Android Development] khalpowers:
I miss shot @115 ram available with swap..hehee..that's the record I got since bought xt..last time on miui also never get 115..only 103 the highest I hv with miui..
[Milestone XT720 Android Development] syrenz:
Woah. I don't think I've ever seen my task killer register anything close to 90, whether on 2.1, previous 2.2 ROMs or even MIUI...

EDIT:

I used one of those clear memory things before (I think SuperBox) and while it did go to like 70-80 free, it went back down after a minute or so... It looked like it was only giving that much memory for a moment...
[Milestone XT720 Android Development] ktylife:
Issues are services ! The new Skype service is always running, maps too, Swype is taking soooooooo much (12MB!), etc...
[Milestone XT720 Android Development] fjfalcon:
That strange, mine framework-res values/public.xml have different size from yours..

and it's bigger.

Will try to fix it.
[Milestone XT720 Android Development] smoki3:
Kahl when do u release ist?
[Milestone XT720 Android Development] 3rdstring:
I modded framework-res.apk for the white text on the statusbar but not adding anything in. (I think) I'm using a beta apktool 1.4.2 which was posted deep in Brute.all's thread, not the 1.41 in the OP. BTW I saw the samething, with all the forceclose windows when I was playing with framework.jar yesterday
[Milestone XT720 Android Development] Mioze7Ae:
I was using 1.41. Thanks I'll try that newer one. Did you do anything after apktool or just put the result on the phone? I actually get all those force closes if I do nothing except resign the unmodified framework-res.apk
[Milestone XT720 Android Development] 3rdstring:
I was under the impression that you never resign system apks. The instructions in Brute.all's thread ... "Don't resign system files. Unzip it, copy META-INF and AndroidManifest.xml from original apk, zip it back and push to device." Now If you're making changes to AndroidManifest.xml I'm not sure what to do. :confused:

:edit: I'm actually using apk manager 4.9 & I just replaced the apktool.jar
[Milestone XT720 Android Development] Woody:
What free memory tool is everyone using? I used superbox for awoke but it only cleared for a minute then started to go back down. U am already using atuokiller memory opt and works really well once you figure out the right settings for my system. Fastboot works pretty well for killing services quickly.

Another question, is there going to be an all-inclusive rom posted? I have all the zips, but is there going yo be one big "package"?
[Milestone XT720 Android Development] 3rdstring:
Looking at the decompiled framework-res.apk from Wanhu's ROM, I don't see any signature file at all, there is no META-INF, so maybe just don't sign it at all (?)
[Milestone XT720 Android Development] Mioze7Ae:
They're there in the original apk. Thanks for the tip about just copying AndroidManifest.xml and META-INF. Probably that's what fjfalcon was trying to tell me too, but I was being dense. It's working now. Now I'll finish up the rest of the changes.

When I was working on the powermenu for Dexter's 1.3, I always had bootloops until I tried signing the framework-res.apk with the test key. Probably I also only needed to copy those files across, too. I guess it makes sense that the phone isn't constantly checking signatures--they're probably only checked at install. Anyway, thanks! That's solved that mystery for me.
[Milestone XT720 Android Development] hellmonger:
I just want to take this opportunity to express how proud and impressed i am of the members of this branch of XDA.

We have made the news in XDA and have brought some incredible information to this forum.

YOu guys ROX+CK!!!
[Milestone XT720 Android Development] Mioze7Ae:
Powermenus

Here's an update that includes everything from Mz01-Mz03 and adds the powermenu (including fjfalcon's bootloader option).

I also switched the default language to English.

An under-the-hood change is that I combined all of the /system/xbin/boot_to_or, /system/xbin/boot_to_bl, /system/xbin/extra_boot_mode executables into a single static /system/xbin/uglybox binary that uses symbolic links to save disk space (static binaries are big, source included as /system/xbin/uglybox.c.bz2). Also, I renamed /system/xbin/extra_boot_mode to /system/xbin/fast_boot_mode because it seemed to be a better name.

I looked at merging fjfalcon's ussd.zip changes, but I wasn't sure what to change. Among other things it replaced the framework/android/telephony/PhoneNumber*.smali. Does that fix the dialer format or is the dialer also broken after applying ussd.zip?

What do I do with the Mms.apk update? Just put it in /system/app?

What other things did I miss that should go in?
[Milestone XT720 Android Development] syrenz:
I didn't see anything about XT720 in XDA news. What do you mean by this?
[Milestone XT720 Android Development] cancrippler:
Great update. Phone number format still screwy.
[Milestone XT720 Android Development] hellmonger:
How about that super sleep mode? that blue button at the bottom of the apps menu?

has a moon on it, is it possible to replace the short press on power button to perform that script?

Thanks for the menus btw :)
[Milestone XT720 Android Development] hellmonger:
A while back with the Autofocus as a flashlight it had never been done before i believe...
[Milestone XT720 Android Development] Mioze7Ae:
I didn't try to fix that. I'm not sure if fjfalcon's ussd.zip fixes it though. (Warning: ussd.zip conflicts with Mz04, if you want to try it you should reflash the original WanHu nandroid first) If it does, I can merge the changes. I think fjfalcon said he was having force closes with the phone, though.
[Milestone XT720 Android Development] fjfalcon:
ussd.zip don't works right now.

I will try to fix it later... but like always.. smali is very hard to understand.
[Milestone XT720 Android Development] Mioze7Ae:
Already done! :):):):):):):D:D:D:D:D:D:D:D

Don't read this:

After decompiling ItfunzFastPowerManager, this is what it does. Pressing that icon uses su to run these commands:

sendevent /dev/input/event2 1 107 1
sendevent /dev/input/event2 1 107 0

That's just faking a quick press and release of the power button. To compare, use adb and run "getevent /dev/input/event2" and push and release the power button. You will see:

# getevent /dev/input/event2
0001 006b 00000001
0001 006b 00000000

6b is hex for 107. FYI the other buttons are on /dev/input/event4 -- that's basically how the volume-down boot to fastboot works.
[Milestone XT720 Android Development] hellmonger:
OMFG i love you man you rock so damn hard !!!!!

All buttons work btw
[Milestone XT720 Android Development] Mioze7Ae:
Hot reboot is:

/system/xbin/killall system_server

The power menu is getting pretty long, though...
[Milestone XT720 Android Development] ktylife:
Thanks for the menu options.

However, since then my ext3 partition is no longer recognized and Link2sd cannot generate the script (I think the partition is not properly mounted).

Any hint ?
[Milestone XT720 Android Development] mediaon:
try use the Root Explorer and go to sd-ext then press the mount button on the top of the right of the screen and creat a folder and name it "app" ,then restart your phone.:)
[Milestone XT720 Android Development] ktylife:
app folder for link2sd :confused:
[Milestone XT720 Android Development] mediaon:
NO i don't use link2sd,but that's for app2ext..
[Milestone XT720 Android Development] Mioze7Ae:
For link2sd you have two choices: (1) use ext partition and create /sd-ext/link2sd folder or (2) use fat for the second partition. We have to require the /sd-ext/link2sd folder for compatibility with the sd2ext users. The boot scripts actually look for and delete init scripts installed by link2sd and delete them because they will cause big problems. If you do either (1) or (2) and then reboot, link2sd will work.
[Milestone XT720 Android Development] ktylife:
Mio, thanks for the hard work, but doing (1) with ext3 partition does not work for me with your update !

I restored on top of it the "original" WanHu's and got back working my link2sd...
[Milestone XT720 Android Development] Mioze7Ae:
I'm having trouble following what you're saying. WanHu's "original" ROM doesn't support link2sd? (do the "" mean it's not original?) It uses Dexter's boot scripts that do automatic app2ext and link2sd will refuse to run? In any case, if you did get link2sd working on original WanHu's using link2sd's own boot scripts, then link2sd's files will be directly inside /sd-ext, not /sd-ext/link2sd.