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
Related
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!
How to port Sense.
Source: http://forums.androidcentral.com/optimus-v-rooting-roms-hacks/164989-guide-how-i-port.html (second post)
This is NOT my guide, just posting it here!
This is a very difficult process that I hope you'll understand.
First step is to find a device that is preferably VERY similar to your device, in this instance I guess we would use the htc thunderbolt, which I've been told multiple times that it is used for the MT.
You're going to want to use CM7 for parts. Simple enough.
I will be referring the Sense ROM to SENSE and CM7 as BASE to simple things up. So remember that.
When I say replace, I would recommend deleting from one and adding it with the other
Open up Sense and Base in different windows.
Put in the boot.img from Base into Sense (make sure you put the original boot.img in some other place that you'll remember)
go into /system/usr on both
replace keylayouts and keychars from Base into Sense (this is just your keys)
download dsixda's kitchen (http://forum.xda-developers.com/showthread.php?t=633246)
Get the ROM you have so far set up in it and what not (I'm a little fuzzy at this part)
Once you get done with that, run the menu in terminal and navigate your way to decompile the boot.img (action key- "a") and then run the same thing except run the action key "w" to decompile the original boot.img. So the key here is to decompile both boot.img's.
Go into the ramdisk on both and go into init.rc
THE MOST IMPORTANT PART IN THIS (THE MATTER OF BOOT AND BOOTLOOP) IS THE LINE
"export BOOTCLASSPATH" near the top. It will have a bunch of lines after it. Now in the Base's boot.img, delete this whole line. Replace it with the lines from Sense's boot.img.
Now you can add anything else you want that looks like it belongs (preferably anything sense related)
Don't recompile the boot.img yet.
Now we add a2sd. To do this, just follow this guide (https://www.facebook.com/note.php?note_id=158823170833688)
The only thing you do in there is the edits to the init.rc, don't listen to the decompiling/recompiling mentions. Now you can go back into the menu for the kitchen and recompile the boot.img (action key - "b"). Now don't compile the WHOLE ROM, just take the new boot.img in working_** and put it into the Sense zip.
Now you're going to want to download my ROM (sorry, just don't feel like uploading each individual file) http://gannon5197.blogspot.nl/2012/03/got-sense-booted.html
And go into the /system/bin on both
these are the files you're going to need: a2sd, bash, apps2sd.hlp, busybox.a2sd, chka2sd, jita2sd, launcha2sd, starta2sd, and maybe possibly sh (try once without it)
And you're going to want to set permissions for each one of these in the updater-script (look at mine for references)
Now also look at my zip and you'll see move_cache_sd. Put that in yours and set permissions for it in updater-script (use mine for references)
After that, the other stuff is mainly just getting rid of all the bloatware, (look in /system/app and /system/media) I wouldn't delete any libs as of right now. If you try to flash it and it reboots recovery then it is too big.
If it is too big, you're probably going to want to move a lot of the apps to data. To do this, just make a file called data/app/put_your_apps_here on the root of the zip. You're going to have to set permissions for it in the updater-script, but use the test.zip I sent you in the original.
This will most likely get you booted. Nothing will likely work. Which is expected. If you have any problems, just use logcat. It will be your bestfriend. Have fun porting
Click to expand...
Click to collapse
reserved
Thanks for reopening it bro...
Sent from my LG-P500 using Tapatalk 2
No problem :thumbup:
Don't know how this above awesome thread is so blank
Have u tested if this way works
Sent from my LG-P500 using Tapatalk 2
great guide, gonna try out soon
hmm this one's new for me. saved
should come in handy sometimes
someone has to do this for the Galaxy S2.
Will it also work for ICS ROMs?
I must do this. Anybody know where I can get the firmware for the One S?
Can i use a Gingerbread ROM as a base instead of cm7?
Hello for lg p500 there is 2 sense rom but data and mic not working in both rom can you help to solving that problems????btw great tutorial.
in fact sensse porting is differnet from the tutorial showed it is a little bit more difficult and there are some libs needed that there is only for the devices you are porting to. so a general tread will not really work
QuBe2 said:
in fact sensse porting is differnet from the tutorial showed it is a little bit more difficult and there are some libs needed that there is only for the devices you are porting to. so a general tread will not really work
Click to expand...
Click to collapse
Well this is not my tutorial just found it on the internet so I don't know if it works
Lord Inglip said:
Well this is not my tutorial just found it on the internet so I don't know if it works
Click to expand...
Click to collapse
why sharing things on the internet
QuBe2 said:
why sharing things on the internet
Click to expand...
Click to collapse
Because it's the internet. This guide was the only thing I could find.
Well you ported a htc sense One x rom to the Nexus S, so can you show us how you did it?
Lord Inglip said:
How to port Sense.
Source: http://forums.androidcentral.com/optimus-v-rooting-roms-hacks/164989-guide-how-i-port.html (second post)
This is NOT my guide, just posting it here!
Click to expand...
Click to collapse
Similar phone means the same chipset,processor and gpu??
a2441918 said:
Similar phone means the same chipset,processor and gpu??
Click to expand...
Click to collapse
Yes it's better if the phones have the same hardware
Lord Inglip said:
Yes it's better if the phones have the same hardware
Click to expand...
Click to collapse
I have an xperia x10.. will the nexus one and HTC desire be suitable??
My cm7 rom which i downloaded doesn't have a boot.img file.. So how to get it?? Is it the system.img got from a nandroid backup?? and the sense rom which the post refers to is the stock sense rom of the phone in a zip format or a modded one??
Not working..stuck at boot logo
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?
The prebuilt android.policy.jar ZIP attached is only for MIUI v2.7.20 for the Arc S (and unofficial ports based on that build, as long as the porter didn't already mess with that jar file). If you want it for other devices, get the 'Source Info' file and port it yourself.
You all know it. Roots in Cyanogenmod, ported to MIUI Gingerbread and many other ROM's over time... but new MIUI4 ROM's have missed out for too long. So here it is. Hold Volume-Up to skip forward a track, Down for back. Only works while music is playing and while screen is off and locked. Apparently it will also change FM channel if playing Radio, don't know and don't care.
It is based on MIUI UK's MIUI v2.7.20 for the Arc S, with the source info it should be easy to port to any other device. Might work on older/newer versions of MIUI too, don't know. This took me half an hour to do, it wouldn't have been possible without 7OH's original mod for Xperia's on Stock ICS. I just ported it to MIUI.
This is not a flashable ZIP, sort it out yourself. Extract, push android.policy.jar to /system/framework/ (overwrite old one) and optionally chmod it to 644.
Integrate it in your ROM if you wish, credit would be appreciated. Don't be an ass and claim it as your own. Just say "Volume+ Mod by CosmicDan and 7OH" in the credits.
Also attached is some info on the smali changes (a unified diff and two new files).
Bye!
i tried this on my galaxy siii but i just get bootloops
daniel9522 said:
i tried this on my galaxy siii but i just get bootloops
Click to expand...
Click to collapse
Galaxy S III is an unofficial MIUI device, contact your ROM developer to make the changes or try a different port. Also tell us which MIUI version it is and where you downloaded it from so others know. Thank you.
daniel9522 said:
i tried this on my galaxy siii but i just get bootloops
Click to expand...
Click to collapse
Just fyi, now that miui is based on stock firmwares, this will only work on devices it comes from (I.e the arc s). Miui gb was compiled from source, which is why stuff like this worked on all roms. Now they just patch some miui stuff into the original jar file, so the chances of a one-jar-fits-all are non-existant. The same patch will work, just that it needs to be done specifically for each rom. Too many framework changes between e.g. sense, touchwiz, Xperia etc.
lenny_kano said:
Just fyi, now that miui is based on stock firmwares, this will only work on devices it comes from (I.e the arc s). Miui gb was compiled from source, which is why stuff like this worked on all roms. Now they just patch some miui stuff into the original jar file, so the chances of a one-jar-fits-all are non-existant. The same patch will work, just that it needs to be done specifically for each rom. Too many framework changes between e.g. sense, touchwiz, Xperia etc.
Click to expand...
Click to collapse
Ahhhh OK fair enough, thanks for the info! I guess I will post in the Arc S section then. I will leave this here though because the other ZIP has a diff of the smali changes. and the MIUI port maintainers can take care of it. Still relevant for this section, also this is a first (at time of writing, no other site/ROM has it in MIUIv4 except for mine).
First post updated.
and this probably works for Neo V also thanks I try that later
Dan can you please provide me any information about how to use the diff file?
_polimorph_ said:
Dan can you please provide me any information about how to use the diff file?
Click to expand...
Click to collapse
Pretty sure you can't. It's for devs and users who want to integrate this feature into other roms. (Unless diff is associated with miui or somthing else then ignore me)
_polimorph_ said:
Dan can you please provide me any information about how to use the diff file?
Click to expand...
Click to collapse
With a program like WinMerge or patch binary compiled for win32. But you will need to edit variables, labels and line numbers where necessary. If you don't know how, don't bother. Basically if it's v0 on mine it might be v1 on yours, you can compare similar code around my changes to get an idea of what it should be.
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.