[Sep. 7, 2014][ROM][KK][4.4.4][720p] NexusHD2-KitKat-CM11.0 V4.7 [Kernel: tytung_jellybean_r2]

Android development for HTC HD2/Leo
Moderator: Forum Moderator

Re: [Jan. 1, 2014][ROM][KK][4.4.2][720p] NexusHD2-KitKat-CM11.0 V4.2 [Kernel: tytung_jellybean_r2]

Postby agbommarito » Fri Jan 17, 2014 1:50 pm

Donal wrote:Hello,

first of all thank you very much Tytung for this great ROM. After Booting and filling up all the caches the ROM is very fast. Sometimes tasks are getting stuck and draining the battery. After rejecting the task it is OK. But that is a minor issue.
Im using HD2 form Deutsche Telekom - low RAM. Therefore I would like to activate the linux swap partition. The method with fstab on etc and 05userinit on intit.d is working up to Android 4.3 - on kit kat it is not working. Swapon manually ist possible, but I would like to automate it after reboot.

Does anyone have an idea, what has changed?

Thx


I use this method, which works fine for me:

1) Create the file data/local/userinit.sh, with these contents:

Code: Select all
#!/system/bin/sh
mkswap /dev/block/mmcblk0p3
swapon /dev/block/mmcblk0p3


2) Make sure the file permissions are set to allow it to be executed.

At boot, the shell script system/etc/init.d/90userinit checks for the existence of the userinit.sh file and executes it if found.

This code assumes that the third partition on your SD card exists and uses it in entirety for swap.
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: AW: [Jan. 1, 2014][ROM][KK][4.4.2][720p] NexusHD2-KitKat-CM11.0 V4.2 [Kernel: tytung_jellybean_r2]

Postby Elveneleven » Fri Jan 17, 2014 3:51 pm

Olof wrote:
I myself also have Windows Phone 6.5 in nand, and use 4ExtRecoverly and Haret to boot my NativeSD roms (at the moment three different versions of Tytung's roms). NativeSDMultiBoot works fine in this setting, too. Basically, the only thing that this app does is to replace the current versions of "zimage" and "initrd.gz" in the directory "NativeSD" on the sd-card with the appropriate versions of these files, which are found in the appropriate subdirectory of NativeSD. You can also do this replacement by hand, if you want, by using a file manager.


Or write yourself a Mortscript which do this. It's easier than you can think of? ;)

sent with Tapatalk Pro
User avatar
Elveneleven
Junior Member
 
Posts: 50
Joined: Fri Jun 28, 2013 10:10 pm
Has thanked: 67 times
Been thanked: 15 times

Re: [Jan. 1, 2014][ROM][KK][4.4.2][720p] NexusHD2-KitKat-CM11.0 V4.2 [Kernel: tytung_jellybean_r2]

Postby bid » Fri Jan 17, 2014 4:22 pm

tytung wrote:
Android 4.4 KitKat is SDK version 19.
I didn't use the xposed framework. Is it compatible with KitKat? From your screenshot, it's not compatible with KitKat.


compatible indeed. i have been using its multiple modules. some dont work as supposed, though. but many of them work :)
bid
Junior Member
 
Posts: 14
Joined: Tue Oct 22, 2013 5:16 pm
Country: Nepal (np)
Has thanked: 2 times
Been thanked: 3 times

Re: [Jan. 1, 2014][ROM][KK][4.4.2][720p] NexusHD2-KitKat-CM11.0 V4.2 [Kernel: tytung_jellybean_r2]

Postby PoJD001 » Fri Jan 17, 2014 4:43 pm

Donal wrote:Hello,

first of all thank you very much Tytung for this great ROM. After Booting and filling up all the caches the ROM is very fast. Sometimes tasks are getting stuck and draining the battery. After rejecting the task it is OK. But that is a minor issue.
Im using HD2 form Deutsche Telekom - low RAM. Therefore I would like to activate the linux swap partition. The method with fstab on etc and 05userinit on intit.d is working up to Android 4.3 - on kit kat it is not working. Swapon manually ist possible, but I would like to automate it after reboot.

Does anyone have an idea, what has changed?

Thx

I described my setup few pages back (somewhere around page 25 I think). Swapon is doable to be automated.
PoJD001
Junior Member
 
Posts: 15
Joined: Tue Oct 22, 2013 10:32 pm
Country: Czech Republic (cz)
Has thanked: 5 times
Been thanked: 11 times

Re: [Jan. 1, 2014][ROM][KK][4.4.2][720p] NexusHD2-KitKat-CM11.0 V4.2 [Kernel: tytung_jellybean_r2]

Postby PoJD001 » Fri Jan 17, 2014 4:49 pm

agbommarito wrote:I use this method, which works fine for me:

1) Create the file data/local/userinit.sh, with these contents:

Code: Select all
#!/system/bin/sh
mkswap /dev/block/mmcblk0p3
swapon /dev/block/mmcblk0p3


2) Make sure the file permissions are set to allow it to be executed.

At boot, the shell script system/etc/init.d/90userinit checks for the existence of the userinit.sh file and executes it if found.

This code assumes that the third partition on your SD card exists and uses it in entirety for swap.

I think this has an unnecessary extra step. You are effectivelly formatting the partition as swap each time this script is invoked. Without mkswap is better, also Leo will have less stuff to do after boot. I described the same few pages back...

Od course I assume the partition is swap formatted. But this can be an adhoc action using some software on PC or using recovery. Then saving time on each boot.
PoJD001
Junior Member
 
Posts: 15
Joined: Tue Oct 22, 2013 10:32 pm
Country: Czech Republic (cz)
Has thanked: 5 times
Been thanked: 11 times

Re: [Jan. 1, 2014][ROM][KK][4.4.2][720p] NexusHD2-KitKat-CM11.0 V4.2 [Kernel: tytung_jellybean_r2]

Postby agbommarito » Fri Jan 17, 2014 4:56 pm

PoJD001 wrote:I think this has an unnecessary extra step. You are effectivelly formatting the partition as swap each time this script is invoked. Without mkswap is better, also Leo will have less stuff to do after boot. I described the same few pages back...

Od course I assume the partition is swap formatted. But this can be an adhoc action using some software on PC or using recovery. Then saving time on each boot.


You are correct, mkswap usually isn't needed. I put it there because I change SD cards quite often, and many times the SD card has been newly formatted and partitioned. Having mkswap in the shell script keeps me from having to remember to swap format the third partition by hand.

Sent from my Nexus 7 using Tapatalk
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: [Jan. 1, 2014][ROM][KK][4.4.2][720p] NexusHD2-KitKat-CM11.0 V4.2 [Kernel: tytung_jellybean_r2]

Postby famewolf » Fri Jan 17, 2014 6:11 pm

bid wrote:
compatible indeed. i have been using its multiple modules. some dont work as supposed, though. but many of them work :)



Ok that matches my experience...some modules work...others act like they are not even enabled.
famewolf
Junior Member
 
Posts: 20
Joined: Tue Jun 25, 2013 3:57 am
Has thanked: 8 times
Been thanked: 18 times

Re: AW: [Jan. 1, 2014][ROM][KK][4.4.2][720p] NexusHD2-KitKat-CM11.0 V4.2 [Kernel: tytung_jellybean_r2]

Postby nalanickal » Fri Jan 17, 2014 8:05 pm

reply below
Last edited by nalanickal on Fri Jan 17, 2014 8:07 pm, edited 1 time in total.
nalanickal
Junior Member
 
Posts: 16
Joined: Thu Oct 24, 2013 10:24 am
Country: India (in)
Has thanked: 0 time
Been thanked: 0 time

Re: AW: [Jan. 1, 2014][ROM][KK][4.4.2][720p] NexusHD2-KitKat-CM11.0 V4.2 [Kernel: tytung_jellybean_r2]

Postby nalanickal » Fri Jan 17, 2014 8:06 pm

Elveneleven wrote:
Or write yourself a Mortscript which do this. It's easier than you can think of? ;)

sent with Tapatalk Pro


TODAY I CREATED TWO PROGRAM NAMED "KITKAT" AND "JELLYBEAN" AND INSTALLED IN MY WM 6.5 and created shortcut on homescreen

CREATED TWO FOLDER ON SD CARD VIZ KITKAT AND JELLYBEAN and copies respective builds "zimage" and "initrd.gz"
and basic files on that directory .

Now just a click on KITKAT ICON or JELLYBEAN ICON.
nalanickal
Junior Member
 
Posts: 16
Joined: Thu Oct 24, 2013 10:24 am
Country: India (in)
Has thanked: 0 time
Been thanked: 0 time

Re: [Jan. 1, 2014][ROM][KK][4.4.2][720p] NexusHD2-KitKat-CM11.0 V4.2 [Kernel: tytung_jellybean_r2]

Postby g0ldb3rg » Fri Jan 17, 2014 9:42 pm

I'm experiencing a strange problem. I can't finish the initial setup.

I choose Italian as my language, then the app just crashes. I installed it on NativeSD and used EXTENDED TWRP, what could i be doing wrong?

Edit: Tried to proceed with "english" language, but it still says that Setup Wizard has stopped after checking for my sim card.


Edit2: I think i figured out the problem... My "Settings" icon is missing, and it's as if the program itself is missing!!! How is this even possible??? O_O
i'll explain briefly: If you press the 4 corners of the screen clockwise you can bypass the setup wizard. So i did, and i noticed that i cannot access the Settings tab, so i browsed all programs and the setting icon/program is just missing! I tried long pressing the wifi button to access it, but to no avail.


Edit3: Reinstalled for the third time, now it works o_o ah, the wonders.
g0ldb3rg
Junior Member
 
Posts: 7
Joined: Fri Aug 02, 2013 7:58 pm
Country: Italy (it)
Has thanked: 1 time
Been thanked: 0 time

PreviousNext

Return to HD2 Android Development

Who is online

Users browsing this forum: No registered users and 0 guests

cron