[Oct. 20, 2013][ROM][JB][4.2.2][720p] NexusHD2-JellyBean-CM10.1.3 V2.7 [Kernel: tytung_jellybean_r2]

Android development for HTC HD2/Leo
Moderator: Forum Moderator

Re: [Jul. 7, 2013][ROM][JB][4.2.2][720p] NexusHD2-JellyBean-CM10.1 V2.4 [Kernel: tytung_jellybean_r2]

Postby agbommarito » Mon Jul 22, 2013 12:08 am

famewolf wrote:For the users asking about using swap space with their HD2 and this rom:


I've verified that the following script works with 2.4 and the HD2. It creates a swapfile on either /data or the external sd....I personally would recommend using the external sd...better to replace a $20 microsd than deal with bad blocks in the nand...IMHO......so no need for a special swap partition....and it appeared to speed up my hd2 nicely. The thread has more info......

http://forum.xda-developers.com/showthr ... ?t=2359182

What will this script do?

It will do three things: (1) it will create a swap file that is a size specified by the user [note: user also has two choices for swap file location]; (2) it will create an init.d script that enables ram swap and sets the swappiness level to a user specified value during each boot process; and (3) it will create 'shift' scripts so as to facilitate turning swap on/off and changing swappiness on the fly.

He provides a .zip that can be flashed (I chose this one...simple) or for those braver another file with just the needed scripts.

Contrary to this note: "Note: JB users will likely have to choose /data for their swapfile location so as to avoid swapon/swapoff errors." you do NOT have to use /data....microsd works fine. The user this referenced did not have a physical SD card card as it was all "internal storage" like the nexus 4 or nexus7 and had to use /data.

The op answers most anything you can think to ask in his first post but is also active in the thread.


The flashable zip seems to work only when the system folder is on NAND. Modifications would be needed for NativeSD. Is that correct?
Device: HTC HD2 US
HSPL: 2.08
Radio: 2.15.50.14
Bootloader: MAGLDR 1.13
Recovery: Extended TWRP 2.5.0.5
NativeSD ROM: Tytung NexusHD2-KitKat-CM11.0_V4.7
Partitions: 350 system / 15 recovery
SD Card: Patriot LX 32GB Class 10
agbommarito
Recognized Developer
 
Posts: 74
Joined: Wed Jun 26, 2013 8:44 pm
Has thanked: 18 times
Been thanked: 158 times

Advertisement
 

Re: [Jul. 7, 2013][ROM][JB][4.2.2][720p] NexusHD2-JellyBean-CM10.1 V2.4 [Kernel: tytung_jellybean_r2]

Postby NYLimited » Mon Jul 22, 2013 12:36 am

famewolf wrote:It creates a swapfile on either /data or the external sd....I personally would recommend using the external sd...better to replace a $20 microsd than deal with bad blocks in the nand...IMHO.


You are supposing /data in in NAND. With DataOnEXT it would be on the card in the ext4 partition.

Since either scenario keeps it on the card would you place the swap file on FAT32 or ext4? ^_^



---
Which is worse: ignorance or apathy? Who knows? Who cares?

Cheers!
Image


MY DEVICES: show
  • LG-H901 (V10) - Stock, rooted, TWRP
  • Google Nexus 4 - Stock 5.1.1, Franco kernel, TWRP - Retired
  • Google Nexus 7 - 2012 3G model, Stock 5.1.1, Franco kernel, TWRP - Retired
  • HTC HD2 - Retired
  • HTC P4350 (TMO Wing) - Retired


User avatar
NYLimited
Forum Moderator
 
Posts: 395
Joined: Mon Jun 24, 2013 5:01 pm
Location: 40.75659° N 73.98626° W
Country: United States (us)
Has thanked: 128 times
Been thanked: 255 times

Re: [Jul. 7, 2013][ROM][JB][4.2.2][720p] NexusHD2-JellyBean-CM10.1 V2.4 [Kernel: tytung_jellybean_r2]

Postby agbommarito » Mon Jul 22, 2013 1:01 am

NYLimited wrote:
You are supposing /data in in NAND. With DataOnEXT it would be on the card in the ext4 partition.

Since either scenario keeps it on the card would you place the swap file on FAT32 or ext4? ^_^



---
Which is worse: ignorance or apathy? Who knows? Who cares?


It seems it would be better to have the swap file on ext4. The developer's OP talks about a restriction if the swap file is on the FAT32 SD card. If you want to turn on USB mass storage with a PC, you must first manually turn off the swap file, then reenable it when USB mass storage is turned off. If the file is on ext4, I don't think this restriction would apply.
Device: HTC HD2 US
HSPL: 2.08
Radio: 2.15.50.14
Bootloader: MAGLDR 1.13
Recovery: Extended TWRP 2.5.0.5
NativeSD ROM: Tytung NexusHD2-KitKat-CM11.0_V4.7
Partitions: 350 system / 15 recovery
SD Card: Patriot LX 32GB Class 10
agbommarito
Recognized Developer
 
Posts: 74
Joined: Wed Jun 26, 2013 8:44 pm
Has thanked: 18 times
Been thanked: 158 times

Re: [Jul. 7, 2013][ROM][JB][4.2.2][720p] NexusHD2-JellyBean-CM10.1 V2.4 [Kernel: tytung_jellybean_r2]

Postby NYLimited » Mon Jul 22, 2013 1:29 am

agbommarito wrote:
It seems it would be better to have the swap file on ext4. The developer's OP talks about a restriction if the swap file is on the FAT32 SD card. If you want to turn on USB mass storage with a PC, you must first manually turn off the swap file, then reenable it when USB mass storage is turned off. If the file is on ext4, I don't think this restriction would apply.


That is just what I did. Took 91.44 seconds to create the file in ext4.
We shall see what it does. :)

Cheers!
Image


MY DEVICES: show
  • LG-H901 (V10) - Stock, rooted, TWRP
  • Google Nexus 4 - Stock 5.1.1, Franco kernel, TWRP - Retired
  • Google Nexus 7 - 2012 3G model, Stock 5.1.1, Franco kernel, TWRP - Retired
  • HTC HD2 - Retired
  • HTC P4350 (TMO Wing) - Retired


User avatar
NYLimited
Forum Moderator
 
Posts: 395
Joined: Mon Jun 24, 2013 5:01 pm
Location: 40.75659° N 73.98626° W
Country: United States (us)
Has thanked: 128 times
Been thanked: 255 times

Re: [Jul. 7, 2013][ROM][JB][4.2.2][720p] NexusHD2-JellyBean-CM10.1 V2.4 [Kernel: tytung_jellybean_r2]

Postby tytung » Mon Jul 22, 2013 5:41 am

famewolf wrote:@tytung

On one of my other devices I changed the adb device id on bootup via a script in /etc/init.d because it conflicted with the hd2 one....at that time I noticed the path /sys/devices/virtual/android_usb/android0 does not exist on the hd2 rom. Is the information such as iSerial stored somewhere else?

The path /sys/class/android_usb/android0 is created by the kernel 3.0.
The path /sys/class/usb_composite is created by the kernel 2.6.x.
But I'm not sure if you can modify iSerial or not.
Paste your logcat to GitHub Gist or any similar websites, and link it in your post if you need any help. (Don't forget to tell us your HD2 setup/configuration.)

Device: HTC HD2 (LEO512)
HSPL: 2.08.HSPL
Radio: Leo_RADIO_2.15.50.14
Bootloader: MAGLDR v1.13
Recovery: ClockworkMod Recovery 5.0.2.6

My work for Android on HD2:
Image
User avatar
tytung
Site Admin
 
Posts: 588
Joined: Sun Jun 09, 2013 2:12 pm
Country: Taiwan (tw)
Has thanked: 204 times
Been thanked: 1349 times

Re: [Jul. 7, 2013][ROM][JB][4.2.2][720p] NexusHD2-JellyBean-CM10.1 V2.4 [Kernel: tytung_jellybean_r2]

Postby famewolf » Mon Jul 22, 2013 7:03 am

tytung wrote:
No. I have my own android_frameworks_opt_telephony git.
I didn't pull the latest source code from CM this time.
So SMS middleware patches were not included.

If you would like to test PushSMS, please flash telephony-common.jar_SMS_middleware_patches_for_CM-10.1_updater.zip and report back. Thanks.



I tested this and it appeared to work fine. I think he made some additional code changes on July 12th's nightly but the current version seems fine.


I found out...the version tytung provided is meant to be used with babel-2.....if you use a device with cyanogenmod nightly July 12th or newer that apk will break and you will need the beta3 apk. Neither works with the other so you have to match them.
famewolf
Junior Member
 
Posts: 20
Joined: Tue Jun 25, 2013 3:57 am
Has thanked: 8 times
Been thanked: 18 times

Re: [Jul. 7, 2013][ROM][JB][4.2.2][720p] NexusHD2-JellyBean-CM10.1 V2.4 [Kernel: tytung_jellybean_r2]

Postby tytung » Mon Jul 22, 2013 5:39 pm

famewolf wrote:

I tested this and it appeared to work fine. I think he made some additional code changes on July 12th's nightly but the current version seems fine.


I found out...the version tytung provided is meant to be used with babel-2.....if you use a device with cyanogenmod nightly July 12th or newer that apk will break and you will need the beta3 apk. Neither works with the other so you have to match them.


Thanks for the feedback.
The patch has been added into source code.

Actually, I have already built a new ROM. But I won't release it so far.
To solve the false virus warming, I have removed Settings.apk's source code and downloaded clean source code again from GitHub, but Settings.apk was still detected as a virus by Avast. Not by other companies this time.
https://www.virustotal.com/en/file/02de ... 374510864/
No idea so far.
Paste your logcat to GitHub Gist or any similar websites, and link it in your post if you need any help. (Don't forget to tell us your HD2 setup/configuration.)

Device: HTC HD2 (LEO512)
HSPL: 2.08.HSPL
Radio: Leo_RADIO_2.15.50.14
Bootloader: MAGLDR v1.13
Recovery: ClockworkMod Recovery 5.0.2.6

My work for Android on HD2:
Image
User avatar
tytung
Site Admin
 
Posts: 588
Joined: Sun Jun 09, 2013 2:12 pm
Country: Taiwan (tw)
Has thanked: 204 times
Been thanked: 1349 times

Re: [Jul. 7, 2013][ROM][JB][4.2.2][720p] NexusHD2-JellyBean-CM10.1 V2.4 [Kernel: tytung_jellybean_r2]

Postby symbuzzer » Mon Jul 22, 2013 5:55 pm

tytung wrote:
Thanks for the feedback.
The patch has been added into source code.

Actually, I have already built a new ROM. But I won't release it so far.
To solve the false virus warming, I have removed Settings.apk's source code and downloaded clean source code again from GitHub, but Settings.apk was still detected as a virus by Avast. Not by other companies this time.
https://www.virustotal.com/en/file/02de ... 374510864/
No idea so far.


You can try to send source code and compiled apk them. Maybe they will remove some definetions which cause wrong alert in their virus database.

Can you share changelog? :D
symbuzzer
Forum Moderator
 
Posts: 320
Joined: Mon Jun 24, 2013 7:05 am
Country: Turkey (tr)
Has thanked: 176 times
Been thanked: 168 times

Re: [Jul. 7, 2013][ROM][JB][4.2.2][720p] NexusHD2-JellyBean-CM10.1 V2.4 [Kernel: tytung_jellybean_r2]

Postby MarkAtHome » Mon Jul 22, 2013 10:10 pm

tytung wrote:The path /sys/class/android_usb/android0 is created by the kernel 3.0.

Hmm... ;)
Image
User avatar
MarkAtHome
Forum Moderator
 
Posts: 97
Joined: Mon Jun 24, 2013 10:17 pm
Has thanked: 60 times
Been thanked: 65 times

Re: [Jul. 7, 2013][ROM][JB][4.2.2][720p] NexusHD2-JellyBean-CM10.1 V2.4 [Kernel: tytung_jellybean_r2]

Postby De11 » Mon Jul 22, 2013 10:14 pm

When I try to look translations with Twitch.tv (using the app from Google Play) instead of the image - the black screen.
Whether it is possible to correct it somehow?
On Android 2.3 of such problem isn't present.
Thanks.
De11
Newly Registered Member
 
Posts: 1
Joined: Mon Jul 22, 2013 10:11 pm
Country: Russia (ru)
Has thanked: 2 times
Been thanked: 0 time

PreviousNext

Return to HD2 Android Development

Who is online

Users browsing this forum: No registered users and 0 guests

cron