[ROM][ShenQi_V4][20120218] CM7 XT720, Enjoy HD recording and H264 720p Video playback - Milestone XT720 Android Development

Download Link:
*http://xt720.ru/Files/Mods/ShenqiV4-En.7z (Mirror:http://depositfiles.com/files/29g2s4ovg?redirect)
*framework-res.apk: if you want multiple language support ( more than English and Chinese), download this file and replace the old one in /system/framework
Introduction:
The Rom I worked on was from a Chinese forum ztphone. And by the original Rom's name I thought it might be a branch version from KANG's CM7 Rom. So it is good to trace back and share the Rom here. Any feedback and comments are highly appreciated!
Highlight:
*Moto Camera, Moto MediaGallery and Moto Videoplayer port to CM7
*800w Camera and HD recording (1280*720) work fine
*Smoothly 720p H264 baseline profle video play with HW decode support
*Media button and all sensor work
Lowlight
*HDMI not work
*I customized the ROM for Chinese phone. Sorry for some possible language inconvinience. Language locale was set to en_GB in build.prop for this version.
Installing Instructions
1. Install milestone default 2.1 rom(Russian, CBW, Singapore, whatever).Root it with androot or superoneclickroot.Install last openrecovery build from Mioze7Ae.
2. Unzip the ROM, put the folder Shenqi-V4-En to your sdcard "nandroid\openrecovery". Boot to OpenRecovery, and use "nandroid->restore" to flash.
3. This additional step is only *required* for Korean Xt720 model. Put "Korean_Patch.zip" to sdcard "openrecovery/updates ", and update it in OpenRecovery

Ham, the uploading to Deposit Files is so slow today ... (67% now)
The same ROM ( only difference in build.prop language locacle setting) shared in Chinese forum (ztphone) has receieved several positive feebacks. Now I am pretty happty to see HD Recording and 720p video playback also work for other xt720 phone

Hi,
What languages are in the ROM (other than english and chinese) ?
Is there french ?

why not setup a github repo and put there configurations, sources, and even binaries ? (even free github will allow to upload at least 2 "rom updates" each of them around 92Mb
added:
i saw framework.jar has some stock goodies in it... i suppose you "decompile" cm7 one, added from stock and "compile" back (unsing smali) or i am wrong?

Sorry, this version has very limited language support and do not have French.

Yes, github is good to do such things.
Moto Camera need some reference from framework.jar, so I did some modfications in framework.jar. Also Camera.apk, MediaGallery.apk, MediaProvider.apk were also decompiled and modified to port to CM7.

Is there a way to translate into french ?
I can translate text from english to french.

anyone reupload plz.... unable to download... tq..

http://xt720.ru/Files/Mods/ShenqiV4-En.7z

Add framework-res.apk file to support multiple language. (See on 1st floor)
Download the file, and replace the old one in /system/framework/, then you could have multiple languagne, including French in the system.

will this work for the existing CM7 of fjfalcon.?

hhcat said:
Add framework-res.apk file to support multiple language. (See on 1st floor)
Download the file, and replace the old one in /system/framework/, then you could have multiple languagne, including French in the system.
Click to expand...
Click to collapse
Thank you very much.

Somebody has tested this ROM? How about the performance?
Sent from my XT720 using XDA App

Getting Boot loop on Milestone XT720. Any update to make it work?

After you install nandroid wipe all data.
Sent from my Milestone XT720 using xda premium

mchlbenner said:
After you install nandroid wipe all data.
Sent from my Milestone XT720 using xda premium
Click to expand...
Click to collapse
Had an issue while copying it for the first time onto SD card. Seems alright now. Thanks buddy!
---------- Post added at 09:12 PM ---------- Previous post was at 08:36 PM ----------
krishn said:
Had an issue while copying it for the first time onto SD card. Seems alright now. Thanks buddy!
Click to expand...
Click to collapse
The issue is still persistent. I do not think that the issue is with the boot loop, because the phone starts at times and then crashes into boot loop all of a sudden. Just curious if this happened only to me or did anybody else?

hhcat said:
Yes, github is good to do such things.
Moto Camera need some reference from framework.jar, so I did some modfications in framework.jar. Also Camera.apk, MediaGallery.apk, MediaProvider.apk were also decompiled and modified to port to CM7.
Click to expand...
Click to collapse
modifying framework.jar works, but will be hassle to support ...
may be you can consider using the following approach ...
as MediaGalery and MotoCamera have in its AndroidManifest.xml reference to external "libraries"
Code:
<library name="com.motorola.aui"
file="/system/framework/com.motorola.aui.jar"/>
<library name="com.motorola.android.camera"
file="/system/framework/com.motorola.android.camera.jar"/>
it will be easy to follow upstream, if you put the framework modifications is the above jars, instead of the framework (i have proof of concept that this works)
This way you want rely on decompiling framework, and putting all back together, e.g. it will be easy for you
Also if framework is odexed it can stay odexed
Then if everything is smooth, you just can "update" the upstream roms

Just flashed this ROM and from first looks it is pretty amazing!!! Little early to brag but wow everything seems to be working, still have to check fm radio. Thank you very much for sharing!

LibertyMonger said:
Just flashed this ROM and from first looks it is pretty amazing!!! Little early to brag but wow everything seems to be working, still have to check fm radio. Thank you very much for sharing!
Click to expand...
Click to collapse
Hi LibertyMonger, Could you please repeat the process on how you flashed this. I have tried thrice but failed.

krishn said:
Hi LibertyMonger, Could you please repeat the process on how you flashed this. I have tried thrice but failed.
Click to expand...
Click to collapse
I used RSDLite and flashed the CBW SBF to start from scratch. If you're not familiar with this process there are alot of info here for it. Then before flashing this I wiped data and everything before and after flash.
PS... Looks like I will need to replace the music.apk it is in chinese... if anyone has it for 2.3.7 that would be great!

Related

[ deodex script] deodexerious: all your base are belong to us!

Here's a script I've built for my own ROM cooking purpose
another purpose was to create a very easy to read script, so everyone can understand the magic of deodex
had some hard time figuring all the BOOTCLASSPATH and all the signing magic (if you want to do it manually, the secret is: don't pack and sign!, just add the classes.odex to the original jar or apk...whatever...
or use my script to automagically do all that)
after one brick and jtag reincarnation and a few bootloops
I present to you:
DEODEXERIOUS !! (the only spartan deodex script)
requirements:
Linux
zip
* tested on my Ubuntu 10.10
instructions:
1. extract the included script
2. put the content of system(including the system folder) inside the rom folder
actually you can create a folder named system inside the rom folder and copy framwork and app folder there, it does not require any other files from the rom
3. while in the console inside the extracted script directory execute from the console
Code:
./deodexrom.sh
4. wait and watch the console for errors (there shouldn't be any)
5. when it is done, you should find the deodexed files inside the deodexed folder
* if you want to start over just execute from the same place in the console
Code:
./cleanall.sh
tested and successfully deodexed:
I897 UCKB1
I9088 KP2
I9088 ZNKP5
I9000 XXJPY
I9000 XWJS3
I9000 XWJS5
I9000 ZSJPG
I9000 XWJV1 2.3.2, except email.apk
it does not support already deodexed rom's!!! (why should it?)
if you test other raw versions (even captivate ones) please inform the result, or problems found, I'll do my best to help
careful
the script is a very initial version
it does inform errors human readable so watch the console for them
oh! almost forgot , here's the script:
http://dl.dropbox.com/u/3595341/deodexerious/deodexerious_03.zip
change log:
04/03/2011 - deodexerius_03
added gingerbread XWJV1 2.3.2 - custom classpaths
smali and baksmali 1.2.6
case insensitive classpath helpers
note:
deodexerius can deodex all XWJV1 2.3.2, except email.apk
27/02/2011 - deodexerius_02
better support for the additional files in kp5 and kp2
good luck!!
To Be Continued
If someone could come up with one of these for windows they would be my hero
Sent from my GT-I9000 using XDA App
rob989_69 said:
If someone could come up with one of these for windows they would be my hero
Sent from my GT-I9000 using XDA App
Click to expand...
Click to collapse
kind of like this one?
http://forum.xda-developers.com/showthread.php?t=700904
omg
You saved my life man... thanks a billion! And add a donate link, I know I'd like to send a few bucks your way
Pirateghost said:
kind of like this one?
http://forum.xda-developers.com/showthread.php?t=700904
Click to expand...
Click to collapse
If this works you are my hero!!! LOL. I've found a number of different ones, either they don't work or I'm not using them correctly but this one is new to me. Thanks.
rob989_69 said:
If someone could come up with one of these for windows they would be my hero
Click to expand...
Click to collapse
sorry man no windows version.
ytt3r said:
You saved my life man... thanks a billion! And add a donate link, I know I'd like to send a few bucks your way
Click to expand...
Click to collapse
your'e welcome.
rob989_69 said:
If this works you are my hero!!! LOL. I've found a number of different ones, either they don't work or I'm not using them correctly but this one is new to me. Thanks.
Click to expand...
Click to collapse
oh it works....
Just used this on KP2, works great, thanks!
existz said:
Just used this on KP2, works great, thanks!
Click to expand...
Click to collapse
great news!
works great with xwjs3
This is great. Works on the new KB1.
I keep seeing this while the script is running
Compiling classes.dex from rom/system/framework/framework-tests
UNEXPECTED TOP-LEVEL EXCEPTION:
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.raiseBoundsError(libgcj.so.11)
at java.util.ArrayList.checkBoundExclusive(libgcj.so.11)
at java.util.ArrayList.get(libgcj.so.11)
at org.jf.dexlib.DexFile$2.placeAt(DexFile.java:783)
at org.jf.dexlib.DexFile.place(DexFile.java:659)
at org.jf.smali.main.fixInstructions(main.java:255)
at org.jf.smali.main.main(main.java:203)
Packing
Cleaning up
Done.
Cleaning up
Do I have to worry? I am going to try it again when it all completes, just want to make sure I am not missing anything
|OP|
it does not support already deodexed rom's!!! (why should it?)
Click to expand...
Click to collapse
what if you wanted to deodex a single new app? just redo the whole thing?
Trusselo said:
what if you wanted to deodex a single new app? just redo the whole thing?
Click to expand...
Click to collapse
To deodex a single app, you need to keep the deodexed framework files around. Then you can just do that app by pulling the code bits out of the framework.
Sent from my SAMSUNG-SGH-I897 using XDA App
Trusselo said:
what if you wanted to deodex a single new app? just redo the whole thing?
Click to expand...
Click to collapse
baksmali/smali + about 6 or 7 framework jars + cmd prompt = win!
How can I verify that the Deodex worked? I ran the script a couple times last night just to see what happens and then dropped the files in on my phone. Everything is working fine, just wanted to know how I can verify its deodexed.
nakedninja42 said:
How can I verify that the Deodex worked? I ran the script a couple times last night just to see what happens and then dropped the files in on my phone. Everything is working fine, just wanted to know how I can verify its deodexed.
Click to expand...
Click to collapse
do you see any .odex files named the same as your apks?
nakedninja42 said:
How can I verify that the Deodex worked? I ran the script a couple times last night just to see what happens and then dropped the files in on my phone. Everything is working fine, just wanted to know how I can verify its deodexed.
Click to expand...
Click to collapse
if you don't see errors like the one quoted bellow, then you should be fine.
nakedninja42 said:
I keep seeing this while the script is running
Compiling classes.dex from rom/system/framework/framework-tests
UNEXPECTED TOP-LEVEL EXCEPTION:
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.raiseBoundsError(libgcj.so.11)
at java.util.ArrayList.checkBoundExclusive(libgcj.so.11)
at java.util.ArrayList.get(libgcj.so.11)
at org.jf.dexlib.DexFile$2.placeAt(DexFile.java:783)
at org.jf.dexlib.DexFile.place(DexFile.java:659)
at org.jf.smali.main.fixInstructions(main.java:255)
at org.jf.smali.main.main(main.java:203)
Packing
Cleaning up
Done.
Cleaning up
Do I have to worry? I am going to try it again when it all completes, just want to make sure I am not missing anything
Click to expand...
Click to collapse
actually this is an error, it means it failed to deodex this file
please provide more information, the reason can be many things:
java version
base rom
did you provide the full rom or only the file you mentioned?
provide more information and ill see what can be done.
ih4ckback said:
This is great. Works on the new KB1.
Click to expand...
Click to collapse
awesome.
marcelo.waisman said:
if you don't see errors like the one quoted bellow, then you should be fine.
actually this is an error, it means it failed to deodex this file
please provide more information, the reason can be many things:
java version
base rom
did you provide the full rom or only the file you mentioned?
provide more information and ill see what can be done.
awesome.
Click to expand...
Click to collapse
I am use the same KB1 that hit the forums yesterday that i4ackback stated that works for him. I installed Ubuntu 10.10 and installed Java from the software manager, not sure if its the right one. I started copying the full system folder but ended up only extracting just app and framework just like the OP states. That message appears throughout the process but I end up with everything in the deodexed folder.
Sent from my SAMSUNG-SGH-I897 using XDA App

English version of miui

Here you guys go i made it more English friendly for you all. its pretty stable no problems really. except i cant get milestone overclock to work, but khal said he got it working. so hopefully he can make an update with his optimizations. There is also no apps2sd. and there is still a little Chinese. if anyone can get apps2sd working that would be awsome. Make sure you wipe dalvik cache and data.
http://www.megaupload.com/?d=Q2DQOZ82
Interesting. They seem to have yet another set of dsp libraries. I also don't recognize many of their motorola proprietary files. Does anyone know what device this MIUI originally targeted before it was ported to XT720?
Thanks for doing this. Probably just gonna wait for Khal to do his optimizations, but I've been looking forward to MIUI for a while.
Is it possible to upload this file to Multiupload, so there's more links to download it from, I'm having some issues download the file from megaupload..
Thanks in Advance
I can upload to multiupload later unless someone can do it soon. And I'm thinking this was ported from milestone. I could be wrong tho.
hi guys install system appremover put milestone overclock restore this to system app reboot that it.
Sent from my Milestone XT720 using XDA Premium App
Have you just translated every values-cn to values-en or just get language files from miui-english?
I just changed build prop and replaced apps with English version milestone apps. From there English pack
Good, will do same for russian version.
Have you changed framework-res?

[ROM Release] CyanogenMod 7.2 [Made by Genokolar] (Optimized By Moihack)

This is a ROM I made by cooking the latest Geno's CyanogenMod (4/06/2012) so it's Gingerbread 2.3.7
I tried to make the ROM as small I could (size is 60 MB only) and build the system around your needs by leaving only the essential apps there
I also applied some fixes to the ROM
Changes:
1) Home Button Works (Changed Geno's Kernel in the boot.img with an older one)
2) Soft Touch Buttons light properly (like number 1)
3) All Chinese Apps Removed
4) Added Some Apps(ZeamLauncher,Play Store,WallpapersChooser,Music)
5) Changed Default CPU Governor to SmartAssV2 and Default IO Governor to DeadLine
6) Added Some init.d tweaks
7) Removed Lots of Audio files from media folder to save space
8) Updated hosts file(no more ads in apps) and gps.conf(optimized for europe,although I didn't tested it)
9) Added Root Permissions
Known Issues:
ROM starts with GPS enabled by default,remember to turn it off after installation
Calculator scrolling is slow. This is a general AOSP gingerbread issue for stock calculator app. Even a nexus s lags when scrolling to advanced panel in calculator (tried this personally).
Theme Support is still there,but there is no extra theme included in order to save up space.Just install any .apk theme and then apply it from theme chooser/manager.
TV-OUT doesn't work.
Installation:
Do the following in any order
-------------------------------------------------
Wipe data/factory reset
Advanced->Wipe Dalvik Cache
Mounts & Storage-> Format system
--------------------------------------------------
Now flash the .zip file
Reboot
Enjoy!
Well test it out,and tell what you think!
Happy Flashing
Download:
http://www.mediafire.com/?yh71qb8hbmyancm
Thanks, im backing up to install it
Btw, did u compile cyanogenmod using geno's sources or just grab the geno zip and modify using dsxdia kitchen
fix..?
hello!.. great work! nice ROM! :good:
I'm Moding the original ROM of Geno too, can you tell me how you fix the ligth of touch buttons? thank you!..
grettings from Venezuela
sorry for my bad english xD!...
@sewa2k I am not that good to be able to compile a ROM from sources.Also that why I wrote the word "cooking" in bold in the description.I made it with dsxdia kitchen
@zchuxz3x I unpacked the boot.img in dsxdia kitchen of a previous geno's CM release(this one to be precise: sourceforge.net/projects/genoandroid/files/update-cm-7.2.0-RC0-u8800pro-Geno-120202-en-fixed.zip/download) and took the zImage of this release.I just added it to the boot.img of the 4/06 release and then home button & light of touch buttons started working again.
You are free to just copy,paste my boot.img to your mod if you want too
Moihack said:
@sewa2k I am not that good to be able to compile a ROM from sources.Also that why I wrote the word "cooking" in bold in the description.I made it with dsxdia kitchen
@zchuxz3x I unpacked the boot.img in dsxdia kitchen of a previous geno's CM release(this one to be precise: sourceforge.net/projects/genoandroid/files/update-cm-7.2.0-RC0-u8800pro-Geno-120202-en-fixed.zip/download) and took the zImage of this release.I just added it to the boot.img of the 4/06 release and then home button & light of touch buttons started working again.
You are free to just copy,paste my boot.img to your mod if you want too
Click to expand...
Click to collapse
Oh thank you very much!
PD: in Venezuela, we have is the u8800-51 (impulse 4g). We not have official update to Gingerbread u.u.. but thank to an experiment, changing some boot.img in official ron fou u8800pro, gingerbread run perfectly! We are testing and relasing some customs roms and all eorks fine (except all MIUI and ICS.. we not have data connection: 2g/3g/hspa.. wifi perfect)..
Later, I put boot.img from your rom to my mod rom to test the lights
Sorry for my english
CM rules!! :laugh:
any1 confirm that gps works? (and tether?)
Thanks in advance
Why i base random reboots after lock the phone, with this and all .35 kernel Rome
darklight112 said:
Why i base random reboots after lock the phone, with this and all .35 kernel Rome
Click to expand...
Click to collapse
Are you in 2.2 baseband? I think you first need to upgrade to gingerbread,root,install cwm and then install any .35 kernel rom.otherwise you will have the random reboots problem.
tnx, fixed.
Moihack , you have a p.m. on our greek foroum .....
If you like have a look ...
Sent from my U8800 Pro using xda premium
Guys , I make some changes to Moihack's CM7 rom ....
Changelog
Added in kitchen : data/app function , nano text editor , bash command shell
Added in rom : kickasskernel script ( from zeppellinrox ) , new init.d folder , battery fix mod , sqlite3 and zipalign in system/xbin and libhdr.so in system/lib
Changed : camera.apk ( modded by me )
Download , Moihack_CM7
http://www.mediafire.com/download.php?66136mni342i3xx
Tested by me , and works flawlessly ...
The only think I forgot to test before I restore my backup , is the modded camera.apk ... , so someone else will told us if it works better or not ...
Moihack , my friend
As I don't want to open a new thread for this rom because I respect your work and we don't need a new thread for almost the same rom , I would like to post it here if you like ....
If you don't want to post it here , just told me to delete the post ...
Regards
Ps
If you like to make more changes to this rom , just send a p.m. to discuss about other things we can do for this rom ....
Sent from my U8800 Pro using xda premium
gkalenis said:
Guys , I make some changes to Moihack's CM7 rom ....
Changelog
Added in kitchen : data/app function , nano text editor , bash command shell
Added in rom : kickasskernel script ( from zeppellinrox ) , new init.d folder , battery fix mod , sqlite3 and zipalign in system/xbin and libhdr.so in system/lib
Changed : camera.apk ( modded by me )
Download , Moihack_CM7
http://www.mediafire.com/download.php?66136mni342i3xx
Tested by me , and works flawlessly ...
The only think I forgot to test before I restore my backup , is the modded camera.apk ... , so someone else will told us if it works better or not ...
Moihack , my friend
As I don't want to open a new thread for this rom because I respect your work and we don't need a new thread for almost the same rom , I would like to post it here if you like ....
If you don't want to post it here , just told me to delete the post ...
Regards
Click to expand...
Click to collapse
Of course there is not a problem! Android is a free OS and everyone is allowed to make any modification to any existing rom and then share it
Only one thing.I couldn't find any changes in camera.apk
Maybe if you tell me what changed I can notice the difference easier
Moihack said:
Of course there is not a problem! Android is a free OS and everyone is allowed to make any modification to any existing rom and then share it
Only one thing.I couldn't find any changes in camera.apk
Maybe if you tell me what changed I can notice the difference easier
Click to expand...
Click to collapse
Thanks buddy ....
The changes in camera.apk you'll see them when you open application with 7zip ( added hdr settings.xml and I can't remember what else ... I told you later )
Did you found the rom good ?
Sent from my U8800 Pro using xda premium
The rom works pretty flawless, however when I launch it the first time I'm asked to give a "Sim Network Unlock Pin". I've read a little about it, and it looks like something confuses the phone to believe that it's locked to a certain mobile phone company (it's not)
Will this cause any problems later, if I keep using the rom without doing anything?
Vanatiq said:
The rom works pretty flawless, however when I launch it the first time I'm asked to give a "Sim Network Unlock Pin". I've read a little about it, and it looks like something confuses the phone to believe that it's locked to a certain mobile phone company (it's not)
Will this cause any problems later, if I keep using the rom without doing anything?
Click to expand...
Click to collapse
thanks for your kind words
I also get this message like you. I just press Dismiss and haven't got any problems so far. I think this is a CyanogenMod only message since I get this also in MIUI and MokeeOS (which are based on CM).
Anyway.I don't think it will cause any problems.
Man can i install this rom throught cwm 5.0.2.7?? Or which one do i need?
Sent from my U8800pro using xda app-developers app
Yes, this CWM version is good for that.
Sent from my ragelis
as broxnitas said yes you can. happy flashing
Contac
I could not sync contacts, which I've tried to make adjustments: account, and it does sync but my contacts are still missing?

TV-OUT in Stock GingerBread

Hello there
The last 2 days I'm working on a way to enable TV-OUT option in stock (B572G) GingerBread Settings.
User Gkalenis had the idea that tv-out option is well hidden in settings.apk
He was right! If you use the settings.apk from his Horse ROM you should get a tv-out option(if you don't get one write this line to your local.prop)
Code:
ro.config.hw_tv_out=true
Local.prop is located in cust/unicom/cn/prop (maybe yours doesn't have unicom but anyway )
The bad thing is that I'm stuck....I think I have found everything that has to be copied from froyo to gingerbread settings.apk and references to tv-out but I am not able to recompile my settings.apk with apk multitool(or similar tools available here in xda)
Because I can't recompile I also can't test the changes I made to see if TV-OUT option gets enabled in settings
The pack in the download links provides all my work/progress so far + a notes file that explains what's in there.
I hope that someone here will be able to recompile the apk so we can see if tv-out option can enabled in GingerBread settings.
Download
http://www.mediafire.com/?fqodp9oqbfj6s59
The settings.apk is signed from huawei like fmradio.apk and some others, that is why you cant recompile it. I was trying a few months ago but i didn't find any way to recompile it.
Maybe you sould try with settings.apk from other official firmwares B512, B540 and the russian B552.
The apk from froyo rom is signed to?
What's the point of TV-OUT, if I hadn't seen a single person knowing what kind of cables you would need for it. Or am I mistaking what TV-OUT does?
ninfernix said:
What's the point of TV-OUT, if I hadn't seen a single person knowing what kind of cables you would need for it. Or am I mistaking what TV-OUT does?
Click to expand...
Click to collapse
micro USB to HDMI for example
No, the TV-out from our phone works with a 3.5mm to Rca cabel (gkalenis have done it with a old cabel from a N95 if i remeber it right)
excuse me, our phone translate vedio signal through 3.5mm jack?
UPD: aha, I got it, may be ordered for $1.9 here
Yes, here you can see it:
(with gkalenis Horse rom of course)
Thanks for info. Now back to deal. What if we extract settings apk of some other rom that doesn't have specific signature and just paste there all we need for TV-out and compile?
I made apk files for Aurora and there were no problems with signature.
Filatov.p said:
Thanks for info. Now back to deal. What if we extract settings apk of some other rom that doesn't have specific signature and just paste there all we need for TV-out and compile?
I made apk files for Aurora and there were no problems with signature.
Click to expand...
Click to collapse
Well I would like to at least try this in a gingerbread rom. Aurora is ics so a lot of things changed and I think it won't be that easy. Maybe a cyanogenmod settings.apk is more suitable for this. Feel free to try it if you want to
Aurora was just for example of what I did, anyway you got what I ment
I got the same problem with recompiling settings.apk
TV out is able to work not only in official gb roms but in any custom rom based on .35 kernel , but we have to find a way to recompile the settings.apk ...
Anyway Moihack did a great job and I hope he make it , we work together in a greek forum for the best on our phones
Someone must help on this to find a solution for a workable TV out function on every rom , even on ics , because the files are on settings.apk so I thing that if someone find a way to recompile settings.apk then we can have TV out function in every rom ...
Sent from my U8800 Pro using xda premium
If you need to re-sign it, then it's not going to happen as Huawei's private keys are exactly that - private. It's also unlikely that the Settings.apk does all the work of enabling TV-out itself. My guess is that it sets a property somewhere that is read by the framework and the work is handled by the framework. Has anyone analysed the Gingerbread framework/services to see if support for TV-out is present and if so, what property is required to be set to enable it? You might not get a nice settings option but having to run setprop in a terminal isn't so hard, either (assuming that what I just said holds true)
Unfortunately I wasn't able to recompile Settings.apk although it was taken from CyanogenMod(the release I cooked and is available in xda,so apk is from geno's release).
I'm uploading my work with this apk in case someone wants to try recompile this one.Almost all changes needed are applied(apart from the changes in DisplaySettings.smali)
http://www.mediafire.com/?gdol18f7nli7mao
I tried also to recompile settings.apk but no luck ...
I search also framework and services on froyo ( as qwerty said ) , but I couldn't find anything according to TV out ...
I hope moihack found a way to enable tvout on gingerbread , cause he's a hard working guy ...
Edit
Moihack I made some changes to your CM rom
Deleted , zeam launcher and added launcher pro
Added , kickasskernel script on data folder and sqlite3 and zipalign on system/xbin
New , init.d folder
Some changes to media profiles.xml
But you have to try it first to told me if it works good or not ...
I send you a p.m. when I upload it ..
Sent from my U8800 Pro using xda premium
gkalenis said:
I hope moihack found a way to enable tvout on gingerbread , cause he's a hard working guy ...
Edit
Moihack I made some changes to your CM rom
Deleted , zeam launcher and added launcher pro
Added , kickasskernel script on data folder and sqlite3 and zipalign on system/xbin
New , init.d folder
Some changes to media profiles.xml
But you have to try it first to told me if it works good or not ...
I send you a p.m. when I upload it ..
Click to expand...
Click to collapse
Thanks for your kind words gkalenis
I'm waiting for a pm.Will flash and tell you if it runs better or not
Moihack said:
Thanks for your kind words gkalenis
I'm waiting for a pm.Will flash and tell you if it runs better or not
Click to expand...
Click to collapse
You're a guy who works a lot for our device and I have to told that ...
I'll send you the link when I upload it and I hope those changes works good for .35 kernel ( cause for .32 kernel works great but I don't know if they worked also for .35 kernel , so I have to wait you to try it )
Sent from my U8800 Pro using xda premium

[TUT] How to easily port CM7,CM9,CM10 Based ROMs to HTC Aria

Easiest and best way to port CM7,CM9,CM10 Based ROMs to HTC Aria/Intruder/Gratia
Code:
I do not guarantee any successful porting.
I am not responsible for [B]bricked devices, dead SD cards, or a broken device[/B].
[B]YOU[/B] are choosing to make these modifications,
and if you point the finger at me for messing up your device,
I will laugh at you.
->Copied from some xda thread.
*****
But a rom, no matter how bad should *not* do any physical non recoverable harm to your device,flashing a rom or restoring a nandroid backup via cwm *should* immediately fix any problems what so ever.
And I will try to help in any ways I can.​
I am NOT a developer, I can not code,compile,etc, I am only an android enthusiast with half a brain able to follow specific instructions.
This guide is actually somewhat a good combination of various "how to port roms"
guides found here on xda suited and very slightly modified for our beloved Aria.
Thanks to all of those threads and their writers.
Click to expand...
Click to collapse
Actual Tutorial starts here:
I will try to make this guide as straight forward as possible. ​
PORT ROM:
First you need to figure out what rom you are going to be porting.
For our Aria, The rom you want to port should belong to a device that has:
HTC brand (optional but recommended)
A ArmV6 CPU (VVVV important)
A HVGA Resolution (optional, any mdpi should do,if not just open the system apk files using 7zip and resize all the BIG images.)
The Rom needs to be:
CM7 BASED OR CM10 BASED OR CM9 BASED.
The full zip size less than 150MB(Recommended).
What Does Port Mean:
This simply refers to the rom you will be trying to port.
Recommended device to port from is the HTC Wildfire S a.k.a Marvel.
But any other device
BASE ROM:
What Does Based Mean:
It means that the rom should have similar sources and stuff,
Meaning you can only attempt to port a android 2.3 rom if you already have a 2.3 rom on the device.(In our case cm7).
So,
For porting 2.3 roms, chose cyanogenmod 7.2 as BASE.
For porting 4.0 roms, chose cyanogenmod 9 as BASE.
For porting 4.1 roms, chose cyanogenmod 10 as BASE.
ETC... I hope you get the point.
:fingers-crossed:
Thing you will need:
A good Zip extractor and compressor. (I use 7zip, its free. If you have winrar or something else,it will also do.)
Notepad++ (This thingy is awesome! And you need it for some stuff)
Android SDK(Not the whole thing, just adb zip from our sticky thread will do.)
Some Basic Android Knowledge, Root knowledge.
Mostly Common Sense.
Click to expand...
Click to collapse
Step 1:
Extract our device rom zip and name the folder AriaRom,
Extract our Port rom zip and name the folder PortRom.
Step 2:
Delete the following folders on the AriaRom/system folder:
App(You can keep some non conflicting indepent apps if you want)
Framework
Fonts
Media
Step 3:
Go to
Code:
PortRom folder/system
and copy:
App(You can keep some non conflicting indepent apps if you want)
Framework
Fonts
Media
and then paste them to AriaRom/system.
Step 4:
You need to open these two folders side by side(on windows, open both folders then right click on the task bar and click "Tile windows vertically").
The two Folders are:
Code:
[LIST]
[*]AriaRom/system/etc
[*]PortRom/system/etc
[/LIST]
In
Code:
etc/permission
folder copy all the permissions files in PortRom to your AriaROM folder except
Code:
platform
handheld_hardware
Then open init.d Folder in AriaRom and Delete Everything except
Code:
banner
and then copy all the files inside init.d folder of PortRom to init.d folder of AriaRom.
Step 5:
Now
Code:
AriaRom/system/buid.prop
and
PortRom/system/buid.prop
files using Notepad++
On AriaRom Build.prop make changes as you wish.
Code:
[LIST]
[*]ro.build.id=
[*]ro.build.display.id=
[*]ro.build.date=
[*]ro.modversion=
[/LIST]
Copy and replace these values from PortRom buildprop to Aria rom buildprop.
ro.config.ringtone=
ro.config.notification_sound=
ro.config.alarm_alert=
Also Copy anything you Find Extra and important-ish in ADDITIONAL BUILD PROPERTIES using common sense.(Not much major stuff, but if bootlooped, copy whole thingy.)
IMPORTANT Step of commons sense:
Open up both
Code:
META-INF/com/google/android/updater-script
using Notepad++.
Compare AriaRom AND PortRom line by line(on two tabs in notepad++ easily done).
Copy extra/additional lines from PortRom which are not present in AriaRom to aria roms updater script.
Step 6:
If You find any extra file or folder in system folder of PORTrom than copy them to your Ariarom system folder.
Finally, zip the
Code:
META-INF
system
boot.img
data(if exists).
folders/files togather and use "normal" compression if asked.
Name the zip to whatever you want, and walla you have successfully ported the rom!
:fingers-crossed:
Doing the above steps should land you a pretty solid rom, as solid as the base rom.
Still,Incase of problems:
If the ported rom does not boot:
Stuck at boot screen
Bootlooping
Then copy system/lib/
Code:
libandroid_runtime.so
libandroid_servers.so
libmedia_jni.so
files from PortRom to AriaRom system/lib.
It should boot, if it still doesnt, check the above steps and find out what you did wrong.
Common reasons could be:
Build.prop mess up
Updater Script mess up
Forgot to delete or copy file
After it boots,
Everything that worked on Base rom, should work on Ported.
Every problem on Base Rom will exist on Ported.
In case of root related problems(settings not being saved,system app FCs,etc), install a root app like titanium backup or something and check if it works,if it doesnt its surely root issue,just download and flash latest superuser zip.
If some FC,Port rom funciton not working,etc issues appear, you need to decompile framework-res.apk using apktool and change device specific xml files to ours.This is a part where I have the most trouble and suck at.
Just search xda for
How to Logcat,
Click to expand...
Click to collapse
this will help you to find the problems and search xda to solve them. Ask me if you want on this thread, & I will try to help, but I dont think I will be able to help much as I have very limited knowledge on compile De-compile stuff.
If someone is good at framework-res and framework decompile & recompile stuff, please help us.
Click to expand...
Click to collapse
Thanks for reading this,I hope you port over some awesome roms to our device.
:highfive:
I just tried to port the PACman ROM from Samsung Galaxy Ace to the Aria, but I am stuck at boot screen after following your tut, which is awesome by the way. Could you post a working build.prop and updater-script for this ROM? Maybe this will help me get it booting...
dansou901 said:
I just tried to port the PACman ROM from Samsung Galaxy Ace to the Aria, but I am stuck at boot screen after following your tut, which is awesome by the way. Could you post a working build.prop and updater-script for this ROM? Maybe this will help me get it booting...
Click to expand...
Click to collapse
That's an Armv7 device.
Still I'm gonna download it & try.
In the meantime take a look at bootclass path.
Why are SMARTphones soo... Freaking Dumb?
sifat3d said:
That's an Armv7 device.
Still I'm gonna download it & try.
In the meantime take a look at bootclass path.
Click to expand...
Click to collapse
I don't think so... the Samsung Galaxy Ace with device number S5830 should be Armv6, but in the Galaxy Ace Forums there is also a place for the Galaxy Ace II, which is Armv7. Maybe that's a bit confusing. But nims11 PAC-Man Rom is definitely for the Armv6 device.
hey man thnx for the tut but i tried porting the paranoid rom like you but i keep getting this error while flashing ( set_perm: some changes failed) i think it have something to do with the updater-script, could u upload the build.prop and the updater-script for me ? and btw why do we need the sdk ??
---------- Post added at 02:43 AM ---------- Previous post was at 02:03 AM ----------
actually now i tried not to change the updater-script and the rom flashed but stock at boot pleaaase help me i really want to try the paranoid rom (ive been trying to port the "pa_marvel-2.54-beta1-08NOV2012-164651" )
rami.ejle said:
hey man thnx for the tut but i tried porting the paranoid rom like you but i keep getting this error while flashing ( set_perm: some changes failed) i think it have something to do with the updater-script, could u upload the build.prop and the updater-script for me ? and btw why do we need the sdk ??
---------- Post added at 02:43 AM ---------- Previous post was at 02:03 AM ----------
actually now i tried not to change the updater-script and the rom flashed but stock at boot pleaaase help me i really want to try the paranoid rom (ive been trying to port the "pa_marvel-2.54-beta1-08NOV2012-164651" )
Click to expand...
Click to collapse
Here you go,
http://pastebin.com/62hbaQwL
on THAT ROM,
IF you follow the guide & use my posted script,
100% assurance rom will boot and work. except cm
The sdk is for getting the logcat when a problem occurs.
Why are SMARTphones soo... Freaking Dumb?
Nice tut very well done
XDA Moderator
dansou901 said:
I don't think so... the Samsung Galaxy Ace with device number S5830 should be Armv6, but in the Galaxy Ace Forums there is also a place for the Galaxy Ace II, which is Armv7. Maybe that's a bit confusing. But nims11 PAC-Man Rom is definitely for the Armv6 device.
Click to expand...
Click to collapse
In that case you'll need to unpack both boot.img aka the kernel , fix bootclass path in init.RC by replacing it with the value from port roms init.rc.
Ill try to port that rom soon and upload a fixed boot.img (if I can get it to boot),if you don't beat me to it. it looks cool.
Why are SMARTphones soo... Freaking Dumb?
Bootclasspath is the same on both roms. So there must be a mistake in updater-script and / or build.prop. I've just messed up my updater-script, I guess, so I'll make a new one and post it later together with the build.prop.
I got this pac rom booting & everything operational except per app dpi(exists in port rom).
This rom works with the guide.
http://forum.xda-developers.com/showthread.php?t=2118567
Why are SMARTphones soo... Freaking Dumb?
I'll try this and let you know if it worked.
Hi guys,
If you only want per app dpi,persistent apps,etc
Try this on winsuk bros cm10
http://forum.xda-developers.com/showthread.php?t=1574401
Its quite good.
...Devided by zero
dansou901 said:
I'll try this and let you know if it worked.
Click to expand...
Click to collapse
btw,
did it work?
...Devided by zero
Sadly, I didn't get any time to try so far. But on Sunday I lost my Gratia, so I won't continue this project; I've upgraded to the HTC Desire X.
dansou901 said:
Sadly, I didn't get any time to try so far. But on Sunday I lost my Gratia, so I won't continue this project; I've upgraded to the HTC Desire X.
Click to expand...
Click to collapse
That's a shame. Similar thing happened to me. I lost my Aria right before i had a chance to try this, and upgraded to the Nexus 4.
will this method work on cm10.1 and this http://forum.xda-developers.com/showthread.php?t=2297580 ??
Could work, just try... I would do it if I still had the phone...
dansou901 said:
Could work, just try... I would do it if I still had the phone...
Click to expand...
Click to collapse
rami.ejle said:
will this method work on cm10.1 and this http://forum.xda-developers.com/showthread.php?t=2297580 ??
Click to expand...
Click to collapse
It should pretty much work,
If it doesnt, just send me the
Updater script
Build.prop
files of BOTH roms, And I'll have a look.
I wouldve tried myself but my aria has no network and has random reboot issues due to falling hard.

Categories

Resources