yashsingh1/xdaforums huggingface dataset:
[HD2 Android NAND Development] Robbie P:
The gps libs work for me. I flashed mac2a over mac2, NativeSD, magldr, wipe dalvic only, gps not switching on. Put gps files in rom.zip and re-flashed, gps works, it took a minute to get fixes but got 8 in the end.

couldn't get a dmesg (empty) and the log (from terminal app, no adb) is a bit small, I can try and get a better log if you want, but don't want to post gps co-ords;)

Edit; Bluetooth is working on 2a, pairs with headset, track fw & bw works, not tried it before, no FCs on any app so far with new gps libs

Edit2; I did have a reboot to cyanogenmod animation after switching off BT from drop-down icon menu, tried to get last_kmesg but it didn't save, sorry. It did not re-occur on next boots. I did notice sound from speakers is low after switching off BT, same as occurs sometimes with tytung's rom, I wonder if lowsoundfixer might be needed. BTW, am still on mac2a X12 kernel for the above, trying new kernel (and module) now.....

Edit3; new kernel X12e seems a bit faster than X12

just been listening to music on bt headphones, there are occasional cutouts there were some with X12. took some pics with music on (big cutouts on soundtrack, especially when rendering panorama;))

checked gps, ok.

root seems better, it allowed me root access in terminal, superuser box appeared, it didn't with X12 btw I did check apps&adb in settings with X12.

no FCs yet

I did plug in usb when screen was off and had a black screen (would not wake) for a minute or so, but it is back to normal now without needing to reboot.

with nothing running, apart from settings (20mb),messaging(3mb),google services(23mb) and google keyboard(9.8mb), I have 212mb free ram

have attached log and dmesg
[HD2 Android NAND Development] Clamor:
Try this

package_extract_file("boot/add_six_mb.sh", "/tmp/add_six_mb.sh");
set_perm(0, 0, 755, "/tmp/add_six_mb.sh");
run_program("/tmp/add_six_mb.sh");
[HD2 Android NAND Development] Robbie P:
Installing cm11-mac2c removes old system.

in mount_NativeSD.sh the line "rm -rf /system/*" needs commenting out, also nand install "format("yaffs2", "MTD", "system");"

Edit; that is assuming it is meant to update the existing rom
[HD2 Android NAND Development] macs18max:
Tried it didnt work

It is suppose to delete older files when installing new ROM.

Anyways I have given up on the installer. Not that big deal, only each users have to download 21MB more (3 intitrd of 7MB)

[MENTION=382340]walter79[/MENTION] Which toolchain to you use to compile the kernel???
[HD2 Android NAND Development] -pixelfreak-:
re

i mean arm-eabi-4.4.3 for 2.x and 3.x to

i have test arm-eabi-4.4.3 and arm-eabi-4.7-linaro with the same result
[HD2 Android NAND Development] Mike_1996:
A dumb question: shouldn't the zip-algorithm detect those bunches of zeros and compress them into like a few bytes?

And will the new ROM contain the latest CM code? Well I'm just asking anyway... looking forward to using it but don't have time in the moment to dig into it, too busy with school stuffs...
[HD2 Android NAND Development] gilbert32:
exactly what i was gonna ask (and forgot to XD)
[HD2 Android NAND Development] macs18max:
May be, seems about right about zip algorithm.

and yes ROM will have the latest CM code.

I though I have a small graphic issue which RobbieP and pixelfreak mention (when animation set close to 0 in dveloper setting, dialer doesnt how sometime and after device is locked and unlocked there are some graphical glitches), which I had actually solved on my first release, but after accidently repo sync I lost the code (forgot to create a patch.) Now I just cant remember what I did?

Also another issue with kernel is now that I have 720p working in the kernel, The RAM is lowered, so without any gapps rom have no issues, but moment gapps is installed start getting force closes.

Still i dont know what is the real issue is. Is it cause of low ram or toolchain.

Yesterday I compile with toolchain saberod 10 seem ok. tried several of them from linaro, gcc. But the 4.7 gcc (one I normally use for compilation) definately have force close of apps even without gapps.

Worst part for me is testing which is really time consuming.
[HD2 Android NAND Development] -pixelfreak-:
Macs the Animation scale is in all Roms a Problem with 0... The min is 0.25...

Pixelfreak
[HD2 Android NAND Development] macs18max:
If I'm not mistaken this issue is not present in cm11_mac1. I had the issue and solve it, but don't remember what it was, (unless I didnt test it properly) . Also evervolv dont have this issue I beleive.
[MENTION=382340]walter79[/MENTION]. Could you test it in your evervolv rom if this happens

1. Boot the rom, set all animation to zero. open dialer app. Hit "dial" button. You should see the dial pad with numbers. (if it doesnt show the first time it is a bug).

2. go to recent panel and close the dialer app. Open the dialer app again. Hit "dial" and let us know if you see number one the first tap
[HD2 Android NAND Development] walter79:
normal 4.8 that not work and linaro 4.9
[HD2 Android NAND Development] walter79:
0 animation did not work. Tested on 4 devices with different roms. It is a known bug in Android.
[HD2 Android NAND Development] HypoTurtle:
Yea the 00's will be 100% compressed, it's more use to the dev (saves a few seconds) than the end user.

The only thing I noticed is the encoding of the add_6mb.sh, that might be the issue (should be UTF-8 w/o BOM).

Have attached, it this way if you wanna give it one last try.
[HD2 Android NAND Development] macs18max:
[MENTION=4056517]HypoTurtle[/MENTION]

That could be it but I havent tested it hypo-turtle. Yesterday when I was trying to fix it, I found a /boot directory in magldr even in NativeSD installation.

So I have this in the the script as I was under the impression the there wont be a /boot directory in NativeSD installation

if [ -d "/boot_romname" ]; then
cp /tmp/6MB /boot_romname/initrd.gz
fi
if [ -d "/boot_dir" ]; then
cp /tmp/6MB /boot_dir/initrd.gz
fi
if [ -d "/boot" ]; then
cp /tmp/6MB /boot/initrd.gz
fi

I dont know if this boot folder mounts nands boot partition. If so the the nativesd Initrd with flash the nand boot partition.

So now I have to do something like this.

if [COLOR="Blue"]#codes to detect nand or data2ext installation[/COLOR]
cp /tmp/6MB /boot_romname/initrd.gz
fi
if [COLOR="Blue"]#codes to detect nativesd installation[/COLOR]
cp /tmp/6MB /boot_dir/initrd.gz
cp /tmp/6MB /boot_dir/initrd.gz
fi

I dont know how I can do that.

I know that type of installation is store in /tmp/aroma/installtype.prop as selected 1,2 or 3.

May be you can come up with something.
[HD2 Android NAND Development] HypoTurtle:
Might do.
[HD2 Android NAND Development] macs18max:
frameworks/base/api/current.txt:21093: error 9: Removed public method android.provider.Settings.Global.getString

*******************************
You have tried to change the API from what has been previously approved.

To make these errors go away, you have two choices:
1) You can add [MENTION=278736]hide[/MENTION]" javadoc comments to the methods, etc. listed in the
errors above.

2) You can update current.txt by executing the following command:
make update-api

To submit the revised current.txt to the main Android repository,
you will need approval.
*******************************

prebuilts/sdk/api/19.txt:21061: error 9: Removed public method android.provider.Settings.Global.getString

******************************
You have tried to change the API from what has been previously released in
an SDK. Please fix the errors listed above.
******************************

after I performed make update-api and I have this

prebuilts/sdk/api/19.txt:21061: error 9: Removed public method android.provider.Settings.Global.getString
******************************
You have tried to change the API from what has been previously released in
an SDK. Please fix the errors listed above.
******************************

We may have to add or remove [MENTION=278736]hide[/MENTION] somwhere but where??
[HD2 Android NAND Development] walter79:
Do not update API !!

You can delete code in lines with error. (current.txt)
[HD2 Android NAND Development] Robbie P:
Does this help?
[HD2 Android NAND Development] macs18max:
Thanks walter79

I haven't tried RobbieP method but I did delete it from current.txt in base/api

Still got an error in prebuilt/sdk/api/19.txt

Delete that did compile the rom successfully.

But my question is. Won't removing these api make some apps requiring that api fail?

the code that caused error in 19.txt and current.txt is the same in class : public static final class Settings.Global extends android.provider.Settings.NameValueTable

This is the line

method public static java.lang.String getString(android.content.ContentResolver, java.lang.String);
[HD2 Android NAND Development] macs18max:
K guys I have compile the same kernel with different tool chains. And I have attached them.

Just use each one at least half hour and let me know suggestion.

This kernel may perform slower than the previous kernel I have published but this is not cause of toolchain but low RAM as I have assigned large memory to ADSP.

Also I have revert back to previous battery code, as marcs never htc battery code didnt to any good so extended battery should work fine.

If you r planning not to use wifi during the test no need to use the bcmdhd.ko module

Let me know each if it is booting.

And also if you find one perform better than the other. Remember to not change any settings during test and also wipe dalvik cache when u switch to a different kernel.

Also remember which kernel you are flashing.

EDIT: Kindly give ur setup info too. Recovery and type of installation so that I can keep track
[HD2 Android NAND Development] -pixelfreak-:
i have the same problem with DU... can not compile with lunch leo..must compile with brunch leo and this works

pixelfreak

---------- Post added at 06:24 PM ---------- Previous post was at 06:24 PM ----------

this not help me in DU

Pixel
[HD2 Android NAND Development] Robbie P:
linaro and sabermod 4.7 both boot, both seem smooth and similar speed. sabermod 4.7 seems to break wifi & BT (did not test BT on linaro 4.7), they don't switch on.

could not get dmesg even after reboot with both builds, was empty.

trying sabermod 4.10 now...

Edit; it boots (with extended battery), wifi works (switched itself on after booting), bt not switching on. Gonna have to try linaro 4.7 bt I guess.

difficult to say which is faster. I think a good test is usually scrolling between app drawer and widget screens by swiping. They all seem pretty fast. App loading times are similar to what I normally get with my sdcard on NativeSD roms.

Edit2; OverClockable >998? :)

Edit3; ooh, got a dmesg after second boot on sabermod 4.10, attached
[HD2 Android NAND Development] macs18max:
Thanks RObbie. Overclocking will be done after I fix the kernel fully. Now just working on the basic functions

btw What type of hd2 and what bootloader are you using?
[HD2 Android NAND Development] Robbie P:
Eu and magldr (see sig, although I haven't changed it in a while;)), I edited my last post with a dmesg btw
[HD2 Android NAND Development] philipped346:
good morning , i have tested linaro 4.7 with clk 1.5 on hd2 europe and system on nand and dataonext .

wifi ok

bluetooth ok

data ok

gps ok (with mac2c, 8/8 1.15 minutes in my house)tested with gps status apk

camera ok (camcorder no records)

sounds ok

very smooth , now i look for batterie drain .;)
[HD2 Android NAND Development] philipped346:
batterie seems good , the rom is good for daily use . :)
[HD2 Android NAND Development] macs18max:
Good news. I have managed to compile ROM full ROM with GPS, camcorder and 720p. No ported files. Off course credits to tytung without he doing it first, we would never think of trying to get 720p playback and camcorders working. I have clean wiped again and ROM is compiling right now. Hopefully no other issues pops up. Source codes will be shared once cyanongen team stops updating cm11, (android L is near) so that I don't have to update/merge my git again or if I manage to compile evervolv for bravo and commit to them. Whichever comes first. :)
[HD2 Android NAND Development] pirlano:
Congrats!
[HD2 Android NAND Development] Robbie P:
Have you thought of "importing" this thread into DevDB http://http://www.xda-developers.com/announcements/introducing-the-xda-devdb/

The Leo is on the list of DevDBable devices, and this would be the first project to be DevDBised for this device.

It also gives you control over whether a q&a thread is created for the rom, since as it stands, it just takes a user with <10 posts to ask a question on the dev thread for that post to be automatically moved to a newly spawned q&a thread.

Just a thought:)

Well done
[HD2 Android NAND Development] walter79:
macx can easy convert thread in devDB.
[HD2 Android NAND Development] macs18max:
New ROM posted

720p and camcorder are fixed but kinda slow as compared to 4.2.2

gps is fixed.

latest cm sources

Still not working usb tether. adb in windows (may be but works in linux)

Also I have disable some usb unused modules but havent checked MTP/PTP after that

However to fix 720p I had to dedicate/sacrifice 20MB more of RAM. Without gapps the ROM seemed quite better, but with gapps kinda slow. at least 15mins after setup to get it working freeze free
[HD2 Android NAND Development] -pixelfreak-:
you can test the rom with my last LS build.prop... and your rom is faster :)

and for adb you can test this in your BoardConfig:

# ADB Fix

ADDITIONAL_DEFAULT_PROPERTIES += ro.adb.secure=0

ADDITIONAL_DEFAULT_PROPERTIES += ro.secure=0

TARGET_WANTS_UNSECURE_ADB=true

can you write me in Hangouts ...?

Pixelfreak
[HD2 Android NAND Development] macs18max:
adb is working on linux. I havent tested on windows but last time Robbie mentioned that adb still doesnt work in windows. And I haven't made any changes or fix regarding usb/adb yet.

Could you share your build.prop tweaks. That can speed up things. You always find the right tweaks to make the build faster in all your previous ROMs. However I dont have the time to test these.

This ROM has almost no tweak. (No build.prop mod , No read_ahead_kb buffer set, also no low memory tweaks)

If you can post your findings here, it can help other users improve the ROM.

Thanks.

I am no longer a member in g+ hd2 group.
[HD2 Android NAND Development] -pixelfreak-:
i have not write in hd2 group.. i have write to you...

my question is i can work in my LS with your kernel and i can see your device repo thats i can see what is in my repo the mistake for gps and camcorder..

i am at work i will write later my tweaks

pixelfreak
[HD2 Android NAND Development] yasiek69:
the download link isn't working (404 not found), can you post another one? thanks
[HD2 Android NAND Development] philipped346:
First test = super :)
[HD2 Android NAND Development] macs18max:
Man I am a git noob and really struggling with this but I have updated the gps lib on my github.
[MENTION=382340]walter79[/MENTION] [MENTION=263062]pixelfreak[/MENTION] In reply to your g+ message

A remove all gps related commits on boardconfig.mk and device_leo.mk(or anything you have named it)

Remove commit such as once shown below or any other gps related codes

TARGET_QCOM_GPS_VARIANT := legacy, or any other
BOARD_VENDOR_QCOM_AMSS_VERSION := 3200
BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE := htcleo
BOARD_VENDOR_QCOM_GPS_LOC_API_AMSS_VERSION := 3200

NOW add in Boardconfig.mk

# GPS
BOARD_USES_GPSSHIM := true
BOARD_GPS_LIBRARIES := libgps

in device_leo.mk add

# GPS
PRODUCT_COPY_FILES += \
device/htc/leo/configs/gps.conf:system/etc/gps.conf

PRODUCT_PACKAGES += \
gps.htcleo \
libgps \
librpc

in local_manifest

<project path="hardware/leo/libgps" name="maniacx/android_hardware_leo_libgps" remote="github" revision="cm11" />
<project path="hardware/gpsshim" name="maniacx/android_hardware_gpsshim " remote="github" revision="cm11" />

Although you walter has a different approach on walters repo (which seems better as they are in device repo) but I did it this way and it works

Pixelfreak you can use a compiled version of kernel from my ROM no issue.
[HD2 Android NAND Development] mosi hd2:
Congratulations!

I want to thank u and thx xda devs for keeping our hd2 alive.
[HD2 Android NAND Development] walter79:
Good work and thanks for charing it.

Did you make any changes on your kernel?

Your latest commit is from 2014-10-21?

For compiling a good rom devs need fully kernel source.

(header files needed)

I added some build.prop tweaks by pixelfreak and your rom runs a lot smoother.
[HD2 Android NAND Development] walter79:
Can you keep CM keyboard in your next build?
[HD2 Android NAND Development] -pixelfreak-:
re

many thanks...

720p an camcorder is a kernel bug or change in the divice?

pixelfreak
[HD2 Android NAND Development] walter79:
Install nativeSD with tboot on Tmobile leo not working. Reboot on boot. Works well with sboot
[HD2 Android NAND Development] -pixelfreak-:
re

install DataExt on my TmoUs kernel header problem ...

many FC with kernel in my rom

Pixel
[HD2 Android NAND Development] gujiangjiang:
I have tried the latest ROM today.

WIFI OK

BT OK

GPS OK

DATA OK

CAMCORD OK

720 PLAYBACK OK but not smoothly

BATTERY Seem perfectly

ART can boot but can't use (Setting.apk FC Email.apk FC File.apk FC)

GooleSearch.apk doesn't work and there is no search bar on the desktop.

At he last,i give a suggestion:

The Density should be 240 better then 200.

ro.sf.lcd_density=200 the icon & word are all small and read difficulity.

ro.sf.lcd_density=240 this is the perfect density for leo.you can try to use it.

The kernel 3.0 is more and more better,i hope our leo can be boot with Android L!

Thanks For All the people for the leo development.

regards!
[HD2 Android NAND Development] aazzam16661:
[MENTION=2473151]macs18max[/MENTION]

The absence of Google search, apollo and other google apps is because all apk in /data doesn't install

*Eu,clk, nsd
[HD2 Android NAND Development] Mike_1996:
It's a widely applied tweak in cooked ROMs, such as Slim (almost a prerequisite), to lower the density and include more elements in the screen. I personally change it to 240 because icons aren't designed for 200 and are stretched from 160 resources (blurred). But most people wouldn't mind that. So if you want you may change it as you like even before flashing (in the zip archive).
[HD2 Android NAND Development] gujiangjiang:
Yes,i changed it by myself.

Low density can show more elements in the screen but the icon and word are not clearly and read it not comfortable,my eye felt dry and badly.

so i suggest the author to change this option to 240.like tytung's NexusHD Series still use the density 240 and nerver changed.
[HD2 Android NAND Development] macs18max:
I have always prefered 200, so it is set to 200;)
[HD2 Android NAND Development] gujiangjiang:
Ooh.

You can try 240 and you will find it show the better then 200.

regards.
[HD2 Android NAND Development] -pixelfreak-:
re

yes [MENTION=2065912]aazzam[/MENTION] i have the same problem... all apps from data have problem..

Tmo,clk,DataExt or nand

pixelfreak
[HD2 Android NAND Development] macs18max:
I will take a look at the installer tonight
[HD2 Android NAND Development] Mike_1996:
Mine worked perfectly as I manually kept the /data/app/ folder (and cleaned up all other files/folders from /data). All apps got installed automatically at first boot. TW LEO512 w/ latest Black LK, installed DataOnExt.
[HD2 Android NAND Development] -pixelfreak-:
Yes you can switch the apps from data to System....This is not good for other User...Macs will see the installer and This have a mistake :confused:
[HD2 Android NAND Development] Mike_1996:
The thing is that I cleared everything except /data/app and everything gets installed as expected. I didn't bother moving anything to /system. Anyway there's no Apollo because macs didn't include it.

Apart from that, battery still doesn't work. It gets identified as Li-ion but shows 0.0003V and produces inaccurate readings (I had 14% reading from system but in TWRP it became 5%). Also GPS doesn't find satellites at home, could be a problem of my iwn device anyway.
[HD2 Android NAND Development] -pixelfreak-:
for gps you can test my gps.conf

pixel
[HD2 Android NAND Development] Clamor:
Hi there! I have such bug. When I try to turn off gps on my HD2 with working wifi it reboots (soft reboot) and after that wifi is trying to turn on, but it can't, untill I make full reboot.

-- If wifi is off, gps is turning off and on without any reboots.

-- If wifi was turned off befor a soft reboot, it turns on after normally.

-- If wifi was turned on befor a soft reboot, it is trying to turn on, but with no result.

-- battery drain is ok, but battery indication is a little bit broken

P.S. I use T-Mobile, cLK, DataOnExt (900mb+4gb on data), mac3
[HD2 Android NAND Development] philipped346:
no problem with europe hd2 clk 1.5 nand dataonext . the only thing is i have not 720p on camcorder :crying:
[HD2 Android NAND Development] Mike_1996:
I don't think there's 720p camcorder anyway. Decoding and camera processing are two different stuffs. If the hardware doesn't support there's no way to do it. ;)
[HD2 Android NAND Development] aazzam16661:
Our HD2 actually can record video in 720p, works before in gingerbread but 15-20fps
[HD2 Android NAND Development] -pixelfreak-:
browser

net browser keyboard is slow and google search is slow and make FC and reboot

pixelfreak
[HD2 Android NAND Development] macs18max:
Dev host site is down???

Any other site for download so that every one can access?
[HD2 Android NAND Development] -pixelfreak-:
re

two days ago devhost site down to... this time devhost work..

pixel
[HD2 Android NAND Development] walter79:
Do i need ashmen true in Boardconfig?
[HD2 Android NAND Development] macs18max:
Yes. What r u trying to fix?
[HD2 Android NAND Development] Dhruna:
pixelfreak, can we say that you are able to use DATA on RMNET?

---------- Post added at 10:02 AM ---------- Previous post was at 10:00 AM ----------

Hi, i have installed the new rom on NativeSD and after first boot the camera application is not visible, is there any solution of this?

I cleared the data of camera and reinstalled it but still not visible ?
[HD2 Android NAND Development] Leggera_RUS62:
build.prop

Put build.prop from pixelfreak. The phone starts up and immediately reboot.
[HD2 Android NAND Development] -pixelfreak-:
re

not insert my build.prop ...only the tweaks ;)

[MENTION=4424765]Dhruna[/MENTION] i have not test...
[HD2 Android NAND Development] Leggera_RUS62:
Where there tweaks? Or is there still tweaks? Never did this :C

I am noob.

Did not notice the changes.
[HD2 Android NAND Development] Robbie P:
Sorry, I have had little time to test this last build:o. I did install over the last version, so had /data intact, all seems fine. NativeSD, magldr.

Regarding pixeltweaks (:D) it does need merging the two build.props and posting, if I have time tonight I will try it, but it will be mainly guesswork on my part as to which ones to use in case of doubles.

Regarding walter79 tboot problem, I was looking at aroma config

"Do not flash boot image",
"I will flash boot image later", iif((getvar("clkboots") == "1"), 0, 0),
"Flash boot image on boot",
"Install NativeSD Kernel on boot", iif((getvar("clkboots") == "1"), 0, 1),
"Flash boot image on sboot",
"Install NativeSD Kernel on sboot", iif((getvar("clkboots") == "1"), 1, 3),
"Flash boot image on tboot",
"Install NativeSD Kernel on tboot", iif((getvar("clkboott") == "1"), 0, 3),
"Flash boot image on vboot",
"Install NativeSD Kernel on vboot", iif((getvar("clkbootv") == "1"), 0, 3),
"Flash boot image on wboot",
"Install NativeSD Kernel on wboot", iif((getvar("clkbootw") == "1"), 0, 3)
);

I am a bit confused about the numbers on the right and the input into updater-script and the inline iifs. Might be causing it, I'm not an expert though;)
[HD2 Android NAND Development] -pixelfreak-:
re

you can see with notepad in Windows my build.prop and macs build.prop.. you can insert all CM lines in my build.prop and delete all LS lines ;)

pixelfreak