About CM7 and MIUI - Streak 5 General

Hi, I'm hPa ' '; Before you read this thread, please understand my poor english... T T;
I haven't permission for external link. So i type url shortly.
I'm so surprised because i heard CM7 and MIUI are uploaded on xda.
It's seems that no one can translate korean. So i write some infomations for CM7 and MIUI.
Kernel is based on DSC Team's. Thanks to DSC Team so much!
If DSC Team doesn't want to use their's kernel, i will change kernel... T T;;;
Proprietary files are based on Olleh 407 stock rom.
# Common
CM7 and MIUI doesn't use firstboot partition. so you must do wipe data/factory reset. Factory reset in dell menu will not effect CM7 and MIUI.
Wifi sleep death problem fix patch only applies to Wifi module. So if you want to go before, just replace module from DSC 0.7. (not 0.71, 0.72, etc...)
Framerate is uncapped. (45fps - > 56fps) and It may consume more battery.
I will write thread about it.
# CM7
CM7 gapps file (mediafire vprpvsarlcic7m6) is for StreakMOD recovery.
Because normal gapps from CyanogenMod wiki is not installed correctly when use StreakMOD recovery.
you can install gapps from CM wiki if you use CWM.
mediafire 4f9q9491l4hi6sm <- CWM 5.5.0.4 for streak. Thanks for mistadman about firstboot problem!
mediafire dbzrp78zrsu4558 <- This is cm7dev file.
streak folder is for streak device setting. (on /device/dell/)
Modifed folder is a collection of files that were modified.
kernel diff file is also in it.
# MIUI
MIUI is based on Nexus one 2.2.17 US version. So if you compare miui for streak with miui for N1, you can see what is modifed.
MIUI's modified files for streak are from CM7. Because MIUI is based on CM7.
mediafire 33jrxu2g5slwerq <- MIUI Eng version.
MIUI can't rotate 180 degree. So i modify lcd driver register.
--- kernelcm7/drivers/video/msm_austin/mddi_auo.c 2012-02-23 16:02:11.917807000 +0900
+++ kernelmi/drivers/video/msm_austin/mddi_auo.c 2012-02-27 01:47:59.485999002 +0900
@@ -888,6 +888,8 @@
#if !defined(MDDI_FB_PORTRAIT)
mddi_queue_register_write(0x3600, 0x63, FALSE, 0);
#endif
+ //miui streak
+ mddi_queue_register_write(0x3600, 0x03, FALSE, 0);
mddi_queue_register_write(0x2C00, 0, FALSE, 0);
@@ -971,6 +973,9 @@
#if !defined(MDDI_FB_PORTRAIT)
mddi_queue_register_write(0x3600, 0x63, FALSE, 0);
#endif
+//miui streak
+ mddi_queue_register_write(0x3600, 0x03, FALSE, 0);
+
mddi_queue_register_write(0x3500, 0x0002, FALSE, 0);
mddi_queue_register_write(0x4400, 0x0000, FALSE, 0);
mddi_queue_register_write(0x4401, 0x0000, FALSE, 0);
@@ -1023,7 +1028,9 @@
#if !defined(MDDI_FB_PORTRAIT)
mddi_queue_register_write(0x3600, 0x63, FALSE, 0);
#else
- mddi_queue_register_write(0x3600, 0x00, FALSE, 0);
+// mddi_queue_register_write(0x3600, 0x00, FALSE, 0);
+//miui streak
+ mddi_queue_register_write(0x3600, 0x03, FALSE, 0);
#endif
mddi_queue_register_write(0x3500, 0x0002, FALSE, 0);
mddi_queue_register_write(0x4400, 0x0000, FALSE, 0);
mediafire cap0otpr062wxlr <- Datasheet.
See 170 page. ^^;
I don't have streak any moreby accident, So i can't develop any more for streak... T T; my streak... T T;;;

Seems like you were doing good work in Korea, I like CM7 a lot on my streak.
Hope you and the DSC guys can work together to improve the quality of the ROM even further, though I haven't noticed any big issues right now.
Well done indeed!
Btw: Is the MIUI ROM stable and usable on a dialy basis? Someone wrote it was kind of "experimental/unstable".

I patched hPakick MIUI kor 2.2.17 to MIUI 2.3.2
it boots but there is no data and apn
Hpakick can u help

Kolteabhiman said:
I patched hPakick MIUI kor 2.2.17 to MIUI 2.3.2
it boots but there is no data and apn
Hpakick can u help
Click to expand...
Click to collapse
I modify framework.jar for ril.
if you want to make ril work properly, baksmali framework.jar and compare your MIUI with my MIUI. (com/android/telephony/)

Wow HPa, thanks a lot for your awesome work!! I am loving everybit of CM7 myself. Sorry to hear your streak got ran over by bus
Sent from my Dell Streak using Tapatalk

Thanks for the reply
I will look after that
Btw thanks

Thanks a lot HPa. You are a legend- I've been wanting to run MIUI on my streak ever since I got it last year.
My only complaint is the battery. I have to keep wifi on all the time because I use it primarily as a voip phone with Groove IP. I have the governor set to ondemand with it being under-volted. Battery only lasts maybe 15 hours on standby or 12 with a couple hours of use.
Is it true that for the wifi to stay connected the streak can't go into deep sleep? Trying to squeeze more battery life out of the streak- can I reduce the fps back to 45? I keep all the radio's turned off while I'm on wifi but that is the most it will last is about 15 hours on standby.
Also thanks Kolteabhiman for picking up the torch

His roms are reusing the binary 40x drivers like all roms.
If it's an issue in the drivers it wont be fixed here until the drivers are reversed. Most of the battery issues are in those drivers.
hPa, can you post your makefiles for CWM 5.5.0.4? I am interested in looking at them.

Big thanks to you dude, just one question, if u can get DS replacement will u continue to develope for DS. If so, make a donate link so me and I believe most DS user will donate to u.
Sorry for my bad English.
I wish u can work together with all the good dev in XDA.
Props to all DS dev =)
Sent from my Dell Streak using Tapatalk

I use the rom from miui, it seems all went well
, change the dpi to 160, and launcer pro .. but the change launcer of rom, often FC,
because I did not like the launcer of rom
sorry my bad english

advant1985 said:
I use the rom from miui, it seems all went well
, change the dpi to 160, and launcer pro .. but the change launcer of rom, often FC,
because I did not like the launcer of rom
sorry my bad english
Click to expand...
Click to collapse
Yes the default launcher of miui is FC more and more, so i replace it with a version that is not FC. I simple replace the Launcher i had with this one and i don't have no more FC.

_2bad4u_ said:
Yes the default launcher of miui is FC more and more, so i replace it with a version that is not FC. I simple replace the Launcher i had with this one and i don't have no more FC.
Click to expand...
Click to collapse
thanks , i will try it
Sent from my Dell Streak using XDA

I really liked the hpa version of miui after editing the build.prop and changing it to english it was one of the most stable miui versions I have tried nothing didn't work. I don't know how to replace the dialer to one that is in english when you want to add a contact from the dial pad other than that it was fine.

Many thanks to ALL international contributors and NEW RULE: No more apologies for "Bad English." All constructive comments are helpful, and all the work to translate into a common medium of expression is greatly appreciated. Please keep up the good work.

Hello,
FM Radio not working in MIUI Rom........

custom roms are not happy with my streak5
1st post and i luv these roms ...Miui 2.3.. is very nice my problem is i get a good launch then after an update or app download i get a crash then can't boot past clouds (boot animations). This appears to also happen with cm7 and longhorn 2.5...
hope this is a good place to post

985hPaKicK said:
Hi, I'm hPa ' '; Before you read this thread, please understand my poor english... T T;
I haven't permission for external link. So i type url shortly.
I'm so surprised because i heard CM7 and MIUI are uploaded on xda.
It's seems that no one can translate korean. So i write some infomations for CM7 and MIUI.
Kernel is based on DSC Team's. Thanks to DSC Team so much!
If DSC Team doesn't want to use their's kernel, i will change kernel... T T;;;
Proprietary files are based on Olleh 407 stock rom.
# Common
CM7 and MIUI doesn't use firstboot partition. so you must do wipe data/factory reset. Factory reset in dell menu will not effect CM7 and MIUI.
Wifi sleep death problem fix patch only applies to Wifi module. So if you want to go before, just replace module from DSC 0.7. (not 0.71, 0.72, etc...)
Framerate is uncapped. (45fps - > 56fps) and It may consume more battery.
I will write thread about it.
# CM7
CM7 gapps file (mediafire vprpvsarlcic7m6) is for StreakMOD recovery.
Because normal gapps from CyanogenMod wiki is not installed correctly when use StreakMOD recovery.
you can install gapps from CM wiki if you use CWM.
mediafire 4f9q9491l4hi6sm <- CWM 5.5.0.4 for streak. Thanks for mistadman about firstboot problem!
mediafire dbzrp78zrsu4558 <- This is cm7dev file.
streak folder is for streak device setting. (on /device/dell/)
Modifed folder is a collection of files that were modified.
kernel diff file is also in it.
# MIUI
MIUI is based on Nexus one 2.2.17 US version. So if you compare miui for streak with miui for N1, you can see what is modifed.
MIUI's modified files for streak are from CM7. Because MIUI is based on CM7.
mediafire 33jrxu2g5slwerq <- MIUI Eng version.
MIUI can't rotate 180 degree. So i modify lcd driver register.
--- kernelcm7/drivers/video/msm_austin/mddi_auo.c 2012-02-23 16:02:11.917807000 +0900
+++ kernelmi/drivers/video/msm_austin/mddi_auo.c 2012-02-27 01:47:59.485999002 +0900
@@ -888,6 +888,8 @@
#if !defined(MDDI_FB_PORTRAIT)
mddi_queue_register_write(0x3600, 0x63, FALSE, 0);
#endif
+ //miui streak
+ mddi_queue_register_write(0x3600, 0x03, FALSE, 0);
mddi_queue_register_write(0x2C00, 0, FALSE, 0);
@@ -971,6 +973,9 @@
#if !defined(MDDI_FB_PORTRAIT)
mddi_queue_register_write(0x3600, 0x63, FALSE, 0);
#endif
+//miui streak
+ mddi_queue_register_write(0x3600, 0x03, FALSE, 0);
+
mddi_queue_register_write(0x3500, 0x0002, FALSE, 0);
mddi_queue_register_write(0x4400, 0x0000, FALSE, 0);
mddi_queue_register_write(0x4401, 0x0000, FALSE, 0);
@@ -1023,7 +1028,9 @@
#if !defined(MDDI_FB_PORTRAIT)
mddi_queue_register_write(0x3600, 0x63, FALSE, 0);
#else
- mddi_queue_register_write(0x3600, 0x00, FALSE, 0);
+// mddi_queue_register_write(0x3600, 0x00, FALSE, 0);
+//miui streak
+ mddi_queue_register_write(0x3600, 0x03, FALSE, 0);
#endif
mddi_queue_register_write(0x3500, 0x0002, FALSE, 0);
mddi_queue_register_write(0x4400, 0x0000, FALSE, 0);
mediafire cap0otpr062wxlr <- Datasheet.
See 170 page. ^^;
I don't have streak any moreby accident, So i can't develop any more for streak... T T; my streak... T T;;;
Click to expand...
Click to collapse
Hi hPa;
Which language is the main language of CWM 5.5.0.4?
Thank you.
Best regards.

Related

[CODE] Detect the NK.EXE version (6.1 or 6.5)

Code:
public static bool IsKernelNative(string NKS000File)
{
int[] pattern = new int[] { 0x0C, 0x00, 0x94, 0xE5, 0x1F, 0x03, 0x50, 0xE3 };
int lookingfor = 0;
using (FileStream input = new FileStream(NKS000File, FileMode.Open, FileAccess.Read))
{
for (int i = 0; i < input.Length; i++)
if (input.ReadByte() == pattern[lookingfor++])
{
if (lookingfor == (pattern.Length - 1))
break;
}
else lookingfor = 0;
}
return (lookingfor == (pattern.Length - 1));
}
Barin will probably be happy to have this (and probably be even happier to replace the code with a File.ReadAllBytes and a LINQ array search if he didn't chose to use NET 2.0 like I did).
very interesting. what does this array (0x0C, 0x00, 0x94, 0xE5, 0x1F, 0x03, 0x50, 0xE3) mean? i.e. what code does it contain? it really can be found in new kernels only.
airxtreme, thanks for the info
But why should i be happy? When i build a rom i know exactly which kernel i use
Anyway i'll add the code to show info about kernel in log window.
PS I don't use .ReadAllBytes method to search a pattern. Sometimes i use it when i need to keep something in memory.
Check your decompiler
l2tp said:
very interesting. what does this array (0x0C, 0x00, 0x94, 0xE5, 0x1F, 0x03, 0x50, 0xE3) mean? i.e. what code does it contain? it really can be found in new kernels only.
Click to expand...
Click to collapse
I don't remember what it exactly does since it's stuff from several months ago but it should be code that is related to the new slots allocation that can be found only on windows mobile 6.5 kernels.
-=Barin=- said:
airxtreme, thanks for the info
But why should i be happy? When i build a rom i know exactly which kernel i use
Anyway i'll add the code to show info about kernel in log window.
Click to expand...
Click to collapse
You certainly do but for first-time users it's not so immediate understanding that each device requires its own native kernel, that the kernel is specifically compiled for the windows mobile version it came with and that even though an old kernel may work on newer windows mobile builds the kitchen needs to know the version of the native kernel to do the proper slots allocation and if it's not chosen correctly the ROM could not work. If you auto-detect the kernel and remove the kernel selection option (that in the case of your kitchen being only labeled WM6.1/WM6.5 I think may confuse users into thinking the option has to do with the windows mobile version rather than the native kernel version) you can remove a considerable burden from beginners.

PPTP VPN problem TyphooN CyanogenMod 7 RC2+ v2.7.4 [tytung r7]

Hello,
I have upgraded my HTC HD2 to 2.7.4 CM7 [tytung r7] but now I am having problems with VPN connection which I didn’t have before (2.4.4). It can’t connect already.
Is there any fix about this problem?
Thank you in advance.
anyone whit the same problem ?
Please can someone help me?
I have tried to upgrade to 1VPN but this didn't help me
Same here. Could be Gingerbread related, works just fine with 2.2 builds.
ivangs1 said:
anyone whit the same problem ?
Click to expand...
Click to collapse
I have the same problem with many version of android.I read that a problem is a file ,ppdp,from recompiling.But it seems that only 2 people use the vpn ...
macchese said:
I have the same problem with many version of android.I read that a problem is a file ,ppdp,from recompiling.But it seems that only 2 people use the vpn ...
Click to expand...
Click to collapse
I think this is very important feature because now i can't connect to my office from phone.
Can you send me please a post where the problem with a file ,ppdp is described.
I would try to replace file "/system/bin/pppd" with such from version without this problem.
The other possibility is to search for old version of NAND ROM in which VPN is working and install it, but this will take me a lot of time to downgrade.
ivangs1 said:
I think this is very important feature because now i can't connect to my office from phone.
Can you send me please a post where the problem with a file ,ppdp is described.
I would try to replace file "/system/bin/pppd" with such from version without this problem.
The other possibility is to search for old version of NAND ROM in which VPN is working and install it, but this will take me a lot of time to downgrade.
Click to expand...
Click to collapse
I am writing as evidenced in another post
http://forum.xda-developers.com/showthread.php?t=769026&page=863
It seems like tunnel and session is established but then it gets aborted while creating socket. A similar issue was reported at the end of 2009 but resolved quickly with an update. It was due to a kernel-option which got disabled (see this link: http://code.google.com/p/cyanogenmod.../detail?id=855). Maybe it can give you an idea. The VPN works correctly for instance with Tytung's _r6 kernel.
macchese said:
I am writing as evidenced in another post
http://forum.xda-developers.com/showthread.php?t=769026&page=863
It seems like tunnel and session is established but then it gets aborted while creating socket. A similar issue was reported at the end of 2009 but resolved quickly with an update. It was due to a kernel-option which got disabled (see this link: http://code.google.com/p/cyanogenmod.../detail?id=855). Maybe it can give you an idea. The VPN works correctly for instance with Tytung's _r6 kernel.
Click to expand...
Click to collapse
Thank you for the information.
When i have 2.4.4 with Tytung's _r6 kernel i noticed that PPTP VPN only works correctly with wi-fi connection and was very slow when using 3G connection (in fact it was unusable).
I just saw that the new version of tytung is released - tytung_r8.
I will test latter this week if the problem still exists in new kernel
I have upgraded to v2.8.0-MAGLDR + tytung_r8.1, but still can not connect with PPTP VPN
Can someone else try this.
ivangs1 said:
I have upgraded to v2.8.0-MAGLDR + tytung_r8.1, but still can not connect with PPTP VPN
Can someone else try this.
Click to expand...
Click to collapse
I installed TyphooN CyanogenMod 7 RC2+ v2.8.1[2.3.3][A2SD][tytung r8.1] and does not work. It's a kernel Tytung problem.With this,Incredible Sense v1.0 - CAM FIXED! [HTC Vivo][K:Raf1.9OC],it's all ok.In the forum are the only ones who use the vpn and not angry bird ....
am in the same sh**
I'm using this ROM since a while, and each time I update hoping that the VPN issue would be solved but it doesn't
I posted a couple of times asking about VPN issue but never got an answer from "tyween"...which is surprising!! cz I see him answering all the posts in the thread better than any other Developer on XDAm but it seems he hates VPN
wbsoul said:
I'm using this ROM since a while, and each time I update hoping that the VPN issue would be solved but it doesn't
I posted a couple of times asking about VPN issue but never got an answer from "tyween"...which is surprising!! cz I see him answering all the posts in the thread better than any other Developer on XDAm but it seems he hates VPN
Click to expand...
Click to collapse
I am also badly surprised than nobody answers the questions about VPN (including Google).
Did someone have tried to configure Open VPN and test it ?
I will try this but i first must to get SSL certificate.
Installed TyphooN CyanogenMod 7 RC2+ v2.8.2, replaced kernel with Rafpigna's 1.9 OC GB, but still a no go
i have the same problem,i installed typhoon 2.81,vpn is not work,it's important for me.but nexushd gingerbread 2.3 or 2.4 works well,i don't know how about 2.5.
Now i have this,NexusHD2-Gingerbread V2.5 [Android2.3.3][Kernel: tytung_r8.3],and VPN PPTP works fine.
macchese said:
Now i have this,NexusHD2-Gingerbread V2.5 [Android2.3.3][Kernel: tytung_r8.3],and VPN PPTP works fine.
Click to expand...
Click to collapse
May be the problem is solved in kernel tytung_r8.3.
I should test it with TyphooN ROM.
Nope, VPN wont work. With alocat I see lines like --> I/mtpd Creating PPPoX Socket and then F/mtpd Socket() Protocol not supported ??
lines from pptp.c -->
...
static int create_pppox()
{
int pppox;
log_print(INFO, "Creating PPPoX socket");
pppox = socket(AF_PPPOX, SOCK_DGRAM, PX_PROTO_OPNS);
if (pppox == -1) {
] log_print(FATAL, "Socket() %s", strerror(errno));
exit(SYSTEM_ERROR);
} else {
struct sockaddr_pppopns address = {
.sa_family = AF_PPPOX,
.sa_protocol = PX_PROTO_OPNS,
.tcp_socket = the_socket,
.local = local,
.remote = remote,
};
if (connect(pppox, (struct sockaddr *)&address, sizeof(address)) != 0) {
log_print(FATAL, "Connect() %s", strerror(errno));
exit(SYSTEM_ERROR);
}
}
return pppox;
}
malaa said:
Nope, VPN wont work. With alocat I see lines like --> I/mtpd Creating PPPoX Socket and then F/mtpd Socket() Protocol not supported ??
lines from pptp.c -->
...
static int create_pppox()
{
int pppox;
log_print(INFO, "Creating PPPoX socket");
pppox = socket(AF_PPPOX, SOCK_DGRAM, PX_PROTO_OPNS);
if (pppox == -1) {
] log_print(FATAL, "Socket() %s", strerror(errno));
exit(SYSTEM_ERROR);
} else {
struct sockaddr_pppopns address = {
.sa_family = AF_PPPOX,
.sa_protocol = PX_PROTO_OPNS,
.tcp_socket = the_socket,
.local = local,
.remote = remote,
};
if (connect(pppox, (struct sockaddr *)&address, sizeof(address)) != 0) {
log_print(FATAL, "Connect() %s", strerror(errno));
exit(SYSTEM_ERROR);
}
}
return pppox;
}
Click to expand...
Click to collapse
Do know who can help to solve this problem ?

My development files and About donation for me

I uploaded my dev files on some threads. but for the convenience, I write this thread for streak developer.
CM7 dev file -> mediafire dbzrp78zrsu4558
CM9 dev file -> mediafire s3dvjw58kpw9by2
CWM dev file -> mediafire q3f9zo3ny5z6i2n
MIUI US ver. -> mediafire 33jrxu2g5slwerq
Below is my opinion about the donation for me.
First of all, thank you so much for your thought of donation for me.
and I say result first that I will not receive donation.
I just develop something for enjoyment. (likely play the game.)
When my codes were working successfully, I couldn't contain my joy.
But if I receive donation, I think that I will have sense of duty because of my personality.
(I will think that I must repay for your donation. and development wil be not my enjoyment any more...)
Then I will develop something quickly for you, but It could bring disappointing only.... T^ T;;
Thank you very much to you again, I don't receive any donation... I think I'm so weird... hehe.... ;;
Finally, I don't think i'm not a man deserving of donations. ;;;;
Because there are a lot of good people than me... I think... ;;;;;;;;
All of my dev files are posted above. and You can develop awesome thing than I developed!
you are not weird, just not mainstream
985hPaKicK said:
I just develop something for enjoyment. (likely play the game.)
When my codes were working successfully, I couldn't contain my joy.
Click to expand...
Click to collapse
Thank you for sharing the products of your enjoyment with us. I like your work and like your opinion on this. Stay indpendent as long as you could. No obligation, no demands. Working for fun, gets the best results. I take my hat of to you.
@ 985hPaKicK:
Great work. Great words.
@ 985hPaKicK
Respect and admiration.
985hPaKicK said:
I uploaded my dev files on some threads. but for the convenience, I write this thread for streak developer.
CM7 dev file -> mediafire dbzrp78zrsu4558
CM9 dev file -> mediafire s3dvjw58kpw9by2
CWM dev file -> mediafire q3f9zo3ny5z6i2n
MIUI US ver. -> mediafire 33jrxu2g5slwerq
Below is my opinion about the donation for me.
First of all, thank you so much for your thought of donation for me.
and I say result first that I will not receive donation.
I just develop something for enjoyment. (likely play the game.)
When my codes were working successfully, I couldn't contain my joy.
But if I receive donation, I think that I will have sense of duty because of my personality.
(I will think that I must repay for your donation. and development wil be not my enjoyment any more...)
Then I will develop something quickly for you, but It could bring disappointing only.... T^ T;;
Thank you very much to you again, I don't receive any donation... I think I'm so weird... hehe.... ;;
Finally, I don't think i'm not a man deserving of donations. ;;;;
Because there are a lot of good people than I am... I think... ;;;;;;;;
All of my dev files are posted above. and You can develop awesome thing than I developed!
Click to expand...
Click to collapse
These kinda developers can build a windows 7 for a 256MB RAM 1.2GHz System. Hats off to you sir! Due to you only I can show off my streak5 to a galaxy note owner with full confidence and comparable performance! Now I started believing that streak5 is the most optimum device to run ANY Android build successfully! though I don't like the iPhone interface and hence MIUI, m on CM7 and more than happy with what I had ever expected for!
Sent from my Dell Streak using Tapatalk
Thanks again for your work. How can I download the mediafire links you posted
Thank you for sharing your passion with others.
Miui streak english
h t t p : / / w w w . m e d i a fir e . c o m / ? 3 3 jrxu2g5slwerq
thanx to XDA-Developers,hPA,sbdolphine
always wanted to try
rightnow i m enjoying CM7 but MIUI would be better
somepeople asked mediafire links so updating
riteshsoni said:
h t t p : / / w w w . m e d i a fir e . c o m / ? 3 3 jrxu2g5slwerq
thanx to XDA-Developers,hPA,sbdolphine
always wanted to try
rightnow i m enjoying CM7 but MIUI would be better
somepeople asked mediafire links so updating
Click to expand...
Click to collapse
I didn't do anything.
I just contact the developers and write some post about ROMs before hPa come here. That's what I did it so I didn't do anything about ROM.
Just tanks to XDA-Developers and hPa. I think's that's right.
Hi hPa!
Thank you for your work!
Do i get it right that this patch:
diff -urN kernel/arch/arm/mach-msm/include/mach/auo_touch.h kernelcm7/arch/arm/mach-msm/include/mach/auo_touch.h
--- kernel/arch/arm/mach-msm/include/mach/auo_touch.h 2011-10-06 12:07:08.000000000 +0900
+++ kernelcm7/arch/arm/mach-msm/include/mach/auo_touch.h 2012-02-15 23:29:36.270076997 +0900
@@ -46,6 +46,8 @@
#if USE_AUO_5INCH
+#define TOUCH_FB_PORTRAIT 1 //cm7
+
#if defined(TOUCH_FB_PORTRAIT)
#define AUO_X_MAX 480
#define AUO_Y_MAX 800
--------------------------------------------
--- kernel/drivers/input/touchscreen/auo_touch.c 2011-10-06 12:07:45.000000000 +0900
+++ kernelcm7/drivers/input/touchscreen/auo_touch.c 2012-02-15 23:28:00.100076997 +0900
@@ -353,6 +353,13 @@
point.x = rawCoord[4*i+1]<<8 | rawCoord[4*i];
point.y = rawCoord[4*i+3]<<8 | rawCoord[4*i+2];
+//cm7 streak
+ if( 0 != point.x ){
+ point.x = AUO_X_MAX + 1 - point.x;
+ }
+ if( 0 != point.y ){
+ point.y = AUO_Y_MAX + 1 - point.y;
+ }
#else
point.y = rawCoord[4*i+1]<<8 | rawCoord[4*i];
point.x = rawCoord[4*i+3]<<8 | rawCoord[4*i+2];
----------------------------------------------------------------
and changing rotation prop is enough to make kernels cross-compatible?
yes agree
@ 985hPaKicK:
Great work. Great words.
Hi HPA,
Actually its not all about donation, its about we want to help ourselves by helping you, so you can buy a new streak and continue its development. you will be free, no one will going to ask you or force you about anything.
so i dont see anything wrong in it....
Cheers!!!
_n0p_ said:
Hi hPa!
Thank you for your work!
Do i get it right that this patch:
diff -urN kernel/arch/arm/mach-msm/include/mach/auo_touch.h kernelcm7/arch/arm/mach-msm/include/mach/auo_touch.h
--- kernel/arch/arm/mach-msm/include/mach/auo_touch.h 2011-10-06 12:07:08.000000000 +0900
+++ kernelcm7/arch/arm/mach-msm/include/mach/auo_touch.h 2012-02-15 23:29:36.270076997 +0900
@@ -46,6 +46,8 @@
#if USE_AUO_5INCH
+#define TOUCH_FB_PORTRAIT 1 //cm7
+
#if defined(TOUCH_FB_PORTRAIT)
#define AUO_X_MAX 480
#define AUO_Y_MAX 800
--------------------------------------------
--- kernel/drivers/input/touchscreen/auo_touch.c 2011-10-06 12:07:45.000000000 +0900
+++ kernelcm7/drivers/input/touchscreen/auo_touch.c 2012-02-15 23:28:00.100076997 +0900
@@ -353,6 +353,13 @@
point.x = rawCoord[4*i+1]<<8 | rawCoord[4*i];
point.y = rawCoord[4*i+3]<<8 | rawCoord[4*i+2];
+//cm7 streak
+ if( 0 != point.x ){
+ point.x = AUO_X_MAX + 1 - point.x;
+ }
+ if( 0 != point.y ){
+ point.y = AUO_Y_MAX + 1 - point.y;
+ }
#else
point.y = rawCoord[4*i+1]<<8 | rawCoord[4*i];
point.x = rawCoord[4*i+3]<<8 | rawCoord[4*i+2];
----------------------------------------------------------------
and changing rotation prop is enough to make kernels cross-compatible?
Click to expand...
Click to collapse
If rom can rotate screen 180 degree by build.prop (ro.sf.hwrotation=180), above patch will work properly. but If not(maybe most roms...), you will need MIUI's added kernel patch.
So for more compatibility, you will need MIUI's patch too.
It seems that Dell Streak's LCD been rotated 180 degree. and touch driver source's default setting is for landscape.
So first, I define TOUCH_FB_PORTRAIT for portait touch. then second, I rotate touch 180 degree. (because touch panel been rotated 180 degree with LCD.)
Finally I rotate screen use ro.sf.hwrotation option in build.prop.
(and because miui doesn't support ro.sf.hwrotation=180, I modified some lcd registers.)
... I'm so sorry about many message sent to you. I think it doesn't sent properly....;;;;;
Thank you for reply!
You've great job breathing new life to Streak.
Though my experience is no match to yours, i'll try.
Hi, Can someone please tell me how to use the CM9 files provided in the post by hPA?
@ sergei & HPA
u 2 are like fresh air & bright sky that blink up our 5treak
i think will be very fantastic if u 2 work together
awesome!!! amazing!!! fantastic!!!
nitin1978 said:
Hi HPA,
Actually its not all about donation, its about we want to help ourselves by helping you, so you can buy a new streak and continue its development. you will be free, no one will going to ask you or force you about anything.
so i dont see anything wrong in it....
Cheers!!!
Click to expand...
Click to collapse
+100 for this opinion
rebski said:
@ 985hPaKicK
Respect and admiration.
Click to expand...
Click to collapse
+1
I've not been so exited about my Streak5 in a long time!
ap030993 said:
Hi, Can someone please tell me how to use the CM9 files provided in the post by hPA?
Click to expand...
Click to collapse
Do you know how to compile cyanogenmod? if you do those files are to be slotted in the relevant product and vendor locations
Thanks.
Nice. One humble man. Too few of'em out there...
The MuIu rom is full of bugs when running on the streak 5

[GUIDE] - █ How to port MIUI v4 to the Galaxy S II █ -

How to port MIUI v4 to the Galaxy S II:
This guide is pretty much this guide but more changed for the SGS2.
Note: This guide isnt complete yet and will be updated regularly!
Also, check out my port here: M1UI​
STEP A:
1. First off youre going to want to choose base rom. I recommend official CM10!
2. Delete these folders from base and add them from MIUI:
- app (Delete NFC.apk, rom wont work if you dont delete this. And LegacyCamera.apk, add Gallery2.apk from base for camera.
- fonts
- framework
- media
3. Add these files from MIUI LIB folder to base:
- content-types.properties (Themes wont work without this)
- liblbesec.so (For LBE Guard - MIUI superuser)
- liblocSDK_2.5OEM.so (For baidu location service, prevents network location provider FC)
4. Add these files from MIUI ETC folder to base:
- yellowpage.db (Phone call ability)
- telocation.td (If your porting for Nexus S, telocation.db in others) (Location provider dependency)
5. Add these files from MIUI ETC/permissions folder:
- com.nxp.mifare.xml (I dont think its needed for the SGSII though since we dont have NFC)
- miui-framework.xml (Activates MIUI framwork, very important]
- com.google.android.media.effects.xml (For the gallery)
- com.google.widevine.software.drm.xml (Needed for Google apps)
- com.google.android.maps.xml (For Google Maps)
6. Add these files from MIUI XBIN folder to base:
- su (Superuser)
- invoke-as (Binary with near busybox and toolbox functionality. Needed everywhere in system, mostly in themes and SU]
7. Add these lines anywhere in build.prop:
ro.build.id=MIUI
ro.build.display.id=MIUI
ro.build.version.incremental=2.x.x <-- Change this to the android version of your base rom
ro.config.ringtone=MI.ogg
ro.config.notification_sound=FadeIn.ogg
ro.config.alarm_alert=GoodMorning.ogg
ro.config.sms_received_sound=FadeIn.ogg
ro.config.sms_delivered_sound=MessageComplete.ogg
8. Add these lines in your updater-script in META-INF/com/google/android:
set_perm(0, 0, 06755, "/system/xbin/invoke-as");
set_perm(0, 0, 06755, "/system/lib/liblbesec.so");
set_perm(0, 0, 0755, "/system/addon.d/70-gapps.sh");
# Add these lines under all other "set_perm" lines.
9. Now download GApps (http://goo.im/gapps/gapps-jb-20121011-signed.zip) and copy over /system folder from it to your rom. (Or else Google Now etc might not work)
STEP B (Framework changes to make the rom boot):
I'll make an guide for specific changes for the SGS2 later, until then take a look at this post:
http://forum.xda-developers.com/showpost.php?p=28885450&postcount=2
A "Thanks" for my effort?
Thanks to:
* Lens_flare for original guide
* The android community for all knowledge
Click to expand...
Click to collapse
If you have issues/questions/anything to say then post in the thread and get help by the SGS2 community.
Reserved
I will finish it later, I dont have time atm! I think I will also make an automatic bash script that does everything for you.
LETS KEEP MIUI OWNING ON THE GALAXYYYYYY S2!
wow great job buddy, but I do not want to be bothered with it, was quite satisfied with the rom you are on me. sorry but i like :good:
pedro.coba said:
wow great job buddy, but I do not want to be bothered with it, was quite satisfied with the rom you are on me. sorry but i like :good:
Click to expand...
Click to collapse
No problems! I made this guide on my computer to make my porting abit easier so I though why not just upload it here?
a1exander said:
No problems! I made this guide on my computer to make my porting abit easier so I though why not just upload it here?
Click to expand...
Click to collapse
hahahaha I understand your point mate, btw when you Multilang rom version out?? I can not wait

[Q] File "st" downloads by itself .....

Hey,
So I've just noticed my Nexus 4 running CM 10.2 seems to automatically download a file named "st", I think just about everytime I go to yahoo answers, after the file downloads my phone reboots.
I pasted the content of said file below .... can ANYBODY tell me wtf this is or why its downloading it?
Thank Yall!
HTML:
<html><head></head><body><script type="text/javascript">/* All portions of this software are copyright (c) 2003-2006 Right Media*/var rm_ban_flash=0;var rm_url="";var rm_pop_frequency=0;var rm_pop_id=0;var rm_pop_times=0;var rm_pop_nofreqcap=0;var rm_passback=0;var rm_tag_type="";var rm_enable_supply_transparency=0;var rm_st_referrer="";var rm_md_purl_det_top=0;var rm_md_purl_det_if=0;var rm_md_purl_det_nif=0;var rm_enable_ck_mp=0;var rm_ck_mp_cu="";rm_enable_supply_transparency = 0; rm_st_referrer = "http://answers.yahoo.com/question/index?qid=20121015092323AAaicj9"; rm_md_purl_det_top = "1"; rm_md_purl_det_if = "2"; rm_md_purl_det_nif = "3"; rm_enable_ck_mp = 0; rm_tag_type = "iframe"; rm_url = "http://ad.yieldmanager.com/imp?Z=300x50&cb=1378955811.398703&x=http%3A%2F%2Fclicks%2Ebeap%2Ebc%2Eyahoo%2Ecom%2Fyc%2FYnY9MS4wLjAmYnM9KDE1djVmZ29ubihnaWQkMFo3M1FqazRMakU4Rk1wdlVpejhPZ0I4TmpZdU1sSXhNaVBfampXSSxzdCQxMzc4OTU1ODExMzcxOTY3LHNpJDQ5MDI1NTEsc3AkOTU0MDA2NzY2LGNyJDM2NjU5MzUwNTEsdiQyLjAsYWlkJHNJNFUuV0tMNEhVLSxjdCQyNSx5YngkRXR2aVhSWE00N3MyRUl0Q3hyWWt3USxiaSQxNzk0MzE4NTUxLHIkMSxyZCQxNmllMTV0YWIpKQ%2F2%2F%2Ahttp%3A%2F%2Fglobal%2Eard%2Eyahoo%2Ecom%2FSIG%3D15j408i6d%2FM%3D999999%2E999999%2E999999%2E999999%2FD%3Dmobile%2FS%3D954006766%3AWP%2FY%3DYAHOO%2FEXP%3D1378963011%2FL%3D0Z73Qjk4LjE8FMpvUiz8OgB8NjYuMlIxMiP%5FjjWI%2FB%3DsI4U%2EWKL4HU%2D%2FJ%3D1378955811398703%2FK%3DGM4UO%5FjkBYEW4EvomQxI8Q%2FA%3D7540457405187064449%2FR%3D1%2FX%3D6%2F%2A%24&u=&P=pri%3ayahoo_mobile_us_web%3bsec%3ayahoo%3bcrr%3aUS-UNKNOWN%3b%7C0Z73Qjk4LjE8FMpvUiz8OgB8NjYuMlIxMiP_jjWI%7C954006766%7CWP%7C1378955811.398703&S=2658015051&i=1542970&D=smpv%3D3%26ed%3DzAomdEK4k1NDvJ5__oyLCdlumPoxa3FYwZ0cRfRJq0aHrw--&T=3&_salt=2529253075";var RM_POP_COOKIE_NAME='ym_pop_freq';var RM_INT_COOKIE_NAME='ym_int_freq';if(!window.rm_crex_data){rm_crex_data=new Array();}if(rm_passback==0){rm_pb_data=new Array();if(rm_crex_data.length>0){rm_url+="&X=";for(var i=0;i<rm_crex_data.length;i++){rm_url+=rm_crex_data[i];if(i!=rm_crex_data.length-1){rm_url+=",";}}}}else{rm_pb_data.push(rm_crex_data.pop());rm_url+="&X=";for(var i=0;i<rm_pb_data.length;i++){rm_url+=rm_pb_data[i];if(i!=rm_pb_data.length-1){rm_url+=",";}}rm_url+="&Y=pb";}var flash=new Object();flash=flashDetection();if(cookiesEnabled()){rm_url+=(flash.installed?"&B=10":"&B=12");}else{rm_url+=(flash.installed?"&B=11":"&B=13");}if(!flash.installed||rm_ban_flash==1){rm_url+="&m=2";}if(rm_url.indexOf("&u=")==-1){var url='';try{if(rm_tag_type=="ad"){if(top==self){url=encodeURIComponent(top.location.href);url=url.substr(0,256);rm_url+="&u="+url;}}else if(rm_tag_type=="iframe"){url=encodeURIComponent(document.referrer);url=url.substr(0,256);rm_url+="&u="+url;}}catch(e){}}if(top==self){rm_url+="&r=1";}else{rm_url+="&r=0";}if(rm_enable_supply_transparency==true){var durl='';if(top==window){durl=encodeURIComponent(top.location.href);durl=durl.substr(0,256);rm_url+="&H="+durl;rm_url+="&M="+rm_md_purl_det_top;}else if(top==window.parent){durl=encodeURIComponent(rm_st_referrer);durl=durl.substr(0,256);rm_url+="&H="+durl;rm_url+="&M="+rm_md_purl_det_if;}else{durl=encodeURIComponent(rm_st_referrer);durl=durl.substr(0,256);rm_url+="&H="+durl;rm_url+="&M="+rm_md_purl_det_nif;}}var rm_tag_src="";if(rm_enable_ck_mp==true){rm_tag_src+='<SCRIPT TYPE="text/javascript" SRC="'+rm_url+'"><\/SCRIPT><SCRIPT TYPE="text/javascript" SRC="'+rm_ck_mp_cu+'" ><\/SCRIPT>';}else{rm_tag_src+='<SCRIPT TYPE="text/javascript" SRC="'+rm_url+'"><\/SCRIPT>';}if(rm_pop_frequency){if(rmCanShowPop(rm_pop_id,rm_pop_times,rm_pop_frequency)||rm_pop_nofreqcap){document.write(rm_tag_src);}}else{document.write(rm_tag_src);}function cookiesEnabled(){var cookieEnabled=(navigator.cookieEnabled)?true:false;if(typeof navigator.cookieEnabled=="undefined"&&!cookieEnabled){document.cookie="testcookie";cookieEnabled=(document.cookie.indexOf("testcookie")!=-1)?true:false;}return cookieEnabled;}function rmGetCookie(Name){var search=Name+"=";var CookieString=document.cookie;var result=null;if(CookieString.length>0){offset=CookieString.indexOf(search);if(offset!=-1){offset+=search.length;end=CookieString.indexOf(";",offset);if(end==-1){end=CookieString.length;}result=unescape(CookieString.substring(offset,end));}}return result;}function flashDetection(){var flash=new Object();flash.installed=false;flash.version='0.0';if(navigator.plugins&&navigator.plugins.length){for(x=0;x<navigator.plugins.length;x++){if(navigator.plugins[x].name.indexOf('Shockwave Flash')!=-1){flash.version=navigator.plugins[x].description.split('Shockwave Flash ')[1];flash.installed=true;break;}}}else if(window.ActiveXObject){for(x=2;x<10;x++){try{oFlash=eval("new ActiveXObject('ShockwaveFlash.ShockwaveFlash."+x+"');");if(oFlash){flash.installed=true;flash.version=x+'.0';}}catch(e){}}}return flash;}function rmReplace(myString,toReplace,replaceBy){return(myString.replace(new RegExp(toReplace,'gi'),replaceBy));}function writeCookie(ckName,ckVal){var numdays=14;var today=new Date();var expires=new Date();expires.setTime(today.getTime()+(1000*60*60*24*numdays));var cookieText=ckName+"="+ckVal+";expires="+expires.toGMTString()+";path=/;";document.cookie=cookieText;return null;}function rmCanShowPop(rm_pop_id,pop_times,pop_frequency){var countCookieName=RM_POP_COOKIE_NAME+rm_pop_id;var expireCookieName=RM_POP_COOKIE_NAME+"_expiration"+rm_pop_id;var shownTimes=rmGetCookie(countCookieName);if(shownTimes==null){rmWriteExpirationCookie(expireCookieName,pop_frequency);shownTimes=0;}else{shownTimes=Number(shownTimes);}if(shownTimes<pop_times){shownTimes=1+shownTimes;var expiration=rmGetCookie(expireCookieName);rmWritePopFrequencyCookie(rm_pop_id,shownTimes,expiration);return_value=true;}else{return_value=false;}return return_value;}function rmWritePopFrequencyCookie(rm_pop_id,shownTimes,expiration){var cookieName=RM_POP_COOKIE_NAME+rm_pop_id;var cookieText=cookieName+"="+shownTimes+";"+"expires="+expiration+";path=/;";document.cookie=cookieText;}function rmWriteExpirationCookie(cookieName,frequency){var today=new Date();var expires=new Date();expires.setTime(today.getTime()+(1000*frequency));var cookieText=cookieName+"="+expires.toGMTString()+";"+"expires="+expires.toGMTString()+";path=/;";document.cookie=cookieText;}</script><noscript><img border="0" src="http://ad.yieldmanager.com/imp?Z=300x50&cb=1378955811.398703&x=http%3A%2F%2Fclicks%2Ebeap%2Ebc%2Eyahoo%2Ecom%2Fyc%2FYnY9MS4wLjAmYnM9KDE1djVmZ29ubihnaWQkMFo3M1FqazRMakU4Rk1wdlVpejhPZ0I4TmpZdU1sSXhNaVBfampXSSxzdCQxMzc4OTU1ODExMzcxOTY3LHNpJDQ5MDI1NTEsc3AkOTU0MDA2NzY2LGNyJDM2NjU5MzUwNTEsdiQyLjAsYWlkJHNJNFUuV0tMNEhVLSxjdCQyNSx5YngkRXR2aVhSWE00N3MyRUl0Q3hyWWt3USxiaSQxNzk0MzE4NTUxLHIkMSxyZCQxNmllMTV0YWIpKQ%2F2%2F%2Ahttp%3A%2F%2Fglobal%2Eard%2Eyahoo%2Ecom%2FSIG%3D15j408i6d%2FM%3D999999%2E999999%2E999999%2E999999%2FD%3Dmobile%2FS%3D954006766%3AWP%2FY%3DYAHOO%2FEXP%3D1378963011%2FL%3D0Z73Qjk4LjE8FMpvUiz8OgB8NjYuMlIxMiP%5FjjWI%2FB%3DsI4U%2EWKL4HU%2D%2FJ%3D1378955811398703%2FK%3DGM4UO%5FjkBYEW4EvomQxI8Q%2FA%3D7540457405187064449%2FR%3D1%2FX%3D6%2F%2A%24&u=&P=pri%3ayahoo_mobile_us_web%3bsec%3ayahoo%3bcrr%3aUS-UNKNOWN%3b%7C0Z73Qjk4LjE8FMpvUiz8OgB8NjYuMlIxMiP_jjWI%7C954006766%7CWP%7C1378955811.398703&S=2658015051&i=1542970&D=smpv%3D3%26ed%3DzAomdEK4k1NDvJ5__oyLCdlumPoxa3FYwZ0cRfRJq0aHrw--&T=3&_salt=2529253075&t=2"></img></noscript></body></html>
So you guys know as much about this as me, huh?
thatguy188 said:
So you guys know as much about this as me, huh?
Click to expand...
Click to collapse
I'm on to something.... This file only downloads if I'm on a yahoo answers website on chrome or chrome beta...
Edit: Uninstalling Adaway /ad blocker seems to have stopped it from downloading on yahoo answeres/yahoo ads websites
Why do you have 2 threads with the exact same question?
http://forum.xda-developers.com/showthread.php?t=2445889
I guess you really are... "that guy" lol

Categories

Resources