yashsingh1/xdaforums huggingface dataset:
[Desire Android Development] biggoof75:
Hopefully i can try the next days. Really busy at the moment but also very excited.
[Desire Android Development] chrrh:
I did and was able to boot up TWRP (3 out of 5 like you described)

But flashing never worked, everytime TWRP locked up after a few seconds. Tried about 10 times, and everytime it get stuckafter 5 to 60 Seconds without success.
[Desire Android Development] Spezi_Ist_Spitze!:
Didn't you go with swap-partition? Or is it the third one which is reported as a ext3 now?

I just tried with your layout but now flashing the rom doesn't finish anymore?

Maybe the creator of the rom can tell us what the needed layout is? It's not quite clear in the install-instruction for me.

It says:

1024mb, ext4 (sd-ext1 as sd-card i suppose?)

1536mb, ext4 (sd-ext2 as system i suppose?)

512mb, swap (as swap, for sure)

When I go with a bigger card (8 or 16GB for example) I just need to grow partition 1 for my need's right?

Not so easy.. not so easy :p
[Desire Android Development] spezi77:
Partition 1 is for system. Leave it at 1024 as it is restricted to this size by the ROM anyway. When using a bigger SD card you can grow 2nd partition which is for data.

Sent from my beanstalk'd & hellspawn'd N4.
[Desire Android Development] chrrh:
so you don´t need a Fat32-Partition at all?

There I have all my Install-Folders and media-files
[Desire Android Development] Spezi_Ist_Spitze!:
Trying with this right now.... let's see :fingers-crossed:

EDIT:

Going with this layout and heading to the next step in the install-guide:

* Toggle USB storage to copy the ROM from above to sdcard.

I get the first partition (system) with 1GB mounted. Is this the right behavior?

EDIT2:

Still didn't worked out. This time I also needed to use the shrinked boot.img otherwise flashing returned an error.

I never ever got an beanstalk boot-animation or something. Just endless green htc on white background or bootloops.... Tried at least 10 times now :(
[Desire Android Development] spezi77:
Woops, are your serious about 14GB for 2nd partition?

My recommendation is min: 1.5GB and max: 4GB.

If you decide to try out your own numbers, there could be a universe full of potential errors and traps you could fall into.. :P
[Desire Android Development] Spezi_Ist_Spitze!:
Thought to give this old baby some space...

Trying with "legacy" values right now:

EDIT: No luck... just bootlooping ;(
[Desire Android Development] spezi77:
Logcat?

Sent from my beanstalk'd & hellspawn'd N4.
[Desire Android Development] Spezi_Ist_Spitze!:
I know figured out... after flashing the rom, I have this layout/partitions filled (went with "legacy"-layout again but with a 8gb card this time):

Weird things I discovered:

Partition 2 was labeled "data" is know (after flashing the rom) labeled as "system" (so there is two system partitions now!)

When I flashed BeanStalk the install-script complained that it can't mount "data" in the end

---------- Post added at 21:13 ---------- Previous post was at 21:05 ----------

Oh YEAH! I have a BeanStalk Bootscreen!!!! :good::highfive::silly::silly::victory::silly::silly::victory::highfive::highfive::silly::silly::silly::highfive::silly::laugh::laugh::silly::victory::cowboy::highfive::cyclops::cyclops::highfive:

I guess it was the card (with 16gb) eventhoug it was detected mounted and everything else.....

Tried one time with the 8gb card and it worked "out of the box"

Now I will try beanstalk goodness :cowboy:

Thanks' to spezi! Du bist spitze! ;)
[Desire Android Development] spezi77:
Yeah, as mentioned several times before in k3 threads, she is very choosey about SD cards. [emoji6]

Enjoy!

Sent from my beanstalk'd & hellspawn'd N4.
[Desire Android Development] FaserF:
Finally I am also in the party. Had issues with my Win10 as the device hasnt been recognized correctly. But now I got it working.

Thanks to all guides and again a VERY BIG THANKS to spezi for his wonderfull work.

I mean I have an S6 and dont use my HTC desire that often anymore, but it is awesome to have a working Backup phone running all the goodies from android 6. I would have never thought that this is possible.

Really Spezi, you have done an awesome job!

I am having no other issues than mentioning in the first page. Installation is easy once I got fastboot working. Looking forward into it. A great hobby project.

Grüße aus Deutschland nach Deutschland ;) :)

EDIT: After first boot my Desire completely freezed. Had to take out the battery. But I think thats normal, isnt it? As the device is so old.

EDIT2: After the second reboot my phone freezed again. Had took off the battery and now I am always getting: "Unfortunately the process com.android.phone has stopped."
[Desire Android Development] Saf98:
I am going to put my desire back to stock as i don't use it anymore...
[Desire Android Development] macs18max:
Hey spezi77. I just got a new hard drive and installed ubuntu 16.04, tried to compile cm13, I had error regarding compiler "segmentation fault"

I tried with Java 7 and 8. Both have same issues. I even tried ubuntu 15.04 and still the same. I think it has something to do with the recent jack compiler or my environment setup.

Have you lately compiled marshmallow for bravo?

Are you facing the same issue?
[Desire Android Development] spezi77:
Hey bro, I didn't compile for more than 2 months for bravo. Sorry, if I remember anything related I will let you know. I thought that you wanted to quit deving. Something changed your mind?

Sent from my beanstalk'd & hellspawn'd N4.
[Desire Android Development] macs18max:
Had some free time so just playing around.
[Desire Android Development] HardStyl3r:
I've just bought HTC Desire 620G, so how can I install it and is it even possible?

If yes, what is bugged here?
[Desire Android Development] senseii:
This thread is for the original HTC Desire (bravo), I suggest you check the forum search.
[Desire Android Development] chrrh:
Maybe this Desire 620G-thread is a good start for you.

Kindest regards,

chrrh...
[Desire Android Development] Gultak:
Hey there!

Can you please elaborate how to install the GAPPS?

The ROM works on my desire (with k2 Kernel or minmized k3 without problems - although without WiFi - for this I have to boot via fastboot...)

But I can't get the GAPPS to work...

The errors indicate missing system binaries... (something like /sbin/grep and /sbin/awk and others not found)...

...would love to have M running on my alarm clock (aka HTC Desire) ;)

BTW: congrats to Spezi77 for getting this all to work!

Now if only WiFi and GAPPS would work, it would be perfect :)

---------- Post added at 06:50 PM ---------- Previous post was at 06:44 PM ----------

First: Great work - got everything running without problems on my Desire as soon as I was able to connect USB to my Win 10 box :)

...but only with K2 or minimized K3 Kernel, so sadly no WiFi...

(I circumvent that by booting via fastboot atm....)

The attached kernel module sadly didn't work either...

Any possibility for a WiFi enabled but small enough kernel?

(or an updated WiFI module...)

I could live without other devices... (camera, GPS, Gyro, even GSM)...

(my Desire is used as an alarm clock with build in calendar support)
[Desire Android Development] DJ-Singh:
Hello Everyone,

Kindly advise if this forum is for HTC Desire 828 dual SIM. I want to install CM13. Need Marshmallow.

If not, then kindly suggest some forums for HTC Desire 828 dual SIM.

Thanks in advance.
[Desire Android Development] senseii:
Hi, this thread is for the original HTC Desire (bravo)

I suggest using the forum search to find threads for your HTC Desire 828.
[Desire Android Development] thinhx2:
7.0

Hello bro. Now bro have plan bring android 7.0 to htc desire?
[Desire Android Development] spezi77:
Hey there, currently I don't have a plan. I am deving for the google nexus 4, which consumes most of my spare time..
[Desire Android Development] thinhx2:
Thank bro reply
[Desire Android Development] 000001a:
is it EOL now?
[Desire Android Development] koyo:
Is this compatible with the Desire 626S
[Desire Android Development] FaserF:
No. Only the HTC Desire Bravo
[Desire Android Development] amitsraut:
Did your problem got solved? I am also having same issue and on restart it remains on beanstalk 6.0 logo :(.
[Desire Android Development] spezi77:
Assuming that you have read the OP and followed the installation instructions step by step, at which point did you boot up the ROM and got stuck?

P.s.: I've seen your PM, but I don't reply to support inquiries via PM.
[Desire Android Development] amitsraut:
After installation the apps are updated without error (75 apps), then it hangs when trying to start the apps, waited for 30 mins then I removed battery and restarted phone but not it remains on beanstalk 6.0 logo.

I followed all the steps of the installation guide without any errors, and 8 GB SD Card partion as ext4-partitions( sd-ext1 at 1GB and sd-ext2 at 1.5GB) and a swap partition at 512mb.
[Desire Android Development] spezi77:
Could you take a logcat from the boot sequence?
[Desire Android Development] k3lcior:
You kidding ? I heard HTC will being to roll out Android O for HTC Desire soon. :good:
[Desire Android Development] ze7zez:
del
[Desire Android Development] spezi77:
Please don't spam this thread with fake news.. :eek:
[Desire Android Development] amitsraut:
Not sure how to get that. searched on google and found to use command "adb -d logcat" but "adb devices" is not available once I reboot from recovery-bravo-twrp-k2.img. Can you please help me into this?
[Desire Android Development] amitsraut:
Could not get logcat with BeanStalk-6.14-20160410-bravo so I tried your pa_bravo-5.0-ALPHA2-20150531, which too had same issue but it gave me logcat (attached). Then I installed your LS-KK-v3.2-2016-07-22-bravo which is working fine. My mobile camera is not working and same issue is mentioned in logcat, not sure how can I skip that to install BeanStalk-6.14-20160410-bravo.
[Desire Android Development] spezi77:
As described in my ROM threads, Android versions > 4.4 are not fully working and only for enthusiasts. They are just a result of my experiments and never meant to run on your phone as daily driver.
[Desire Android Development] amitsraut:
Ok, Is there anyway i can make BeanStalk 6.14 work on my mobile?
[Desire Android Development] spezi77:
Get a newer phone.
[Desire Android Development] Hoomanjavadi:
Hi,

I tried it.

after rebooting it says "Encryption unsuccessful" reset phone

any way to fix it?

Thanks,

Hooman

Update Oct,11

I reinstalled it and this time came up but wifi is not functional and strangely wifi mac is reported 02:00:00:00:00:00

Already tried BeanStalk-4.4 and wifi was quite normal

any solution to fix this issue?

Thanks,

Hooman
[Desire Android Development] VanEphson:
I have HTC Desire 628
[Desire Android Development] paulove:
This Rom is only for the original Desire codenamed Bravo.
[Desire Android Development] Savnp:
Can use for 728 ultra edition
[Desire Android Development] paulove:
No, this ROM is only for the original Desire BRAVO. And you would know that if you read my post above yours.
[Desire Android Development] javedakhterak:
Need Custom Rom for Htc Desire 728 Ultra Edition

Please help me to find Custom Rom for Htc Desir 728 Ultra Edition, I have searched a lot but didn't find any rom.

Please help, I really want to change the stock rom
[Desire Android Development] paulove:
There probably is no custom ROM, and I would recommend against using custom ROM if you can't figure out how to. It is easy to brick the phone.
[Desire Android Development] spezi77:
TWRP has a screensaver, which gets active after 10sec of screen inactivity. Try to keep the screen alive during flashing.. *fingers-crossed*
[Desire Android Development] spezi77:
[MENTION=1244844]nickleby[/MENTION] [MENTION=3710206]chrrh[/MENTION] [MENTION=4239010]biggoof75[/MENTION]

Hey there,

I have made a new build of TWRP. You can get it from the OP.

I tested it, and on my end it just worked without any issue at the first go.

Have a nice day! ;)
[Desire Android Development] chrrh:
For me the new TWRP-build is as unstable as the old one :(

Which kernel do you use in TWRP? May exchange the kernel stabilize it?

Kindest regards,

chrrh...
[Desire Android Development] nickleby:
I'll test it later tonight because I didn't had luck with the 4ext recovery either :good:
[Desire Android Development] nickleby:
Definitely not luck for me. It won't pass the blue screen. And the other 4ext recovery give me error 7 when installing the ROM.
[Desire Android Development] spezi77:
In both twrp builds I use k3. When I put k2 into it, it will bring error 7 at rom installation.

I believe that the issue comes from k3, it still has a few instabilities.
[Desire Android Development] spezi77:
[MENTION=1244844]nickleby[/MENTION] [MENTION=3710206]chrrh[/MENTION] [MENTION=4239010]biggoof75[/MENTION]

Hey there,

I made a new build of TWRP recovery incl. K2. Also it was required to rebuild the BS ROM and kernel.

This time, I am confident that it will work on your end!

Have a nice day! ;)
[Desire Android Development] chrrh:
Looks much better now. A few moments ago I flashed the ROM and there was not a single hiccup. Even the screensave-mode in TWRP is working as it should.

Now I´m trying to get back in fastboot mode to flash the kernel.

Edit: After flashing kernel, it is now hanging at bootlogo. Does not start at all.
[Desire Android Development] spezi77:
Try to make a "reboot". Go! :D
[Desire Android Development] nickleby:
This time worked at the first try! The ROM looks good and performance is OK. Sadly since the WiFi is not working I cannot try more. Thanks for bring Android 6.0 to our Desire! :good:
[Desire Android Development] macs18max:
[MENTION=5091819]spezi77[/MENTION] did you try using WiFi from my boardconfig . also WiFi related overalay in config.xml
[Desire Android Development] chrrh:
Tried again this weekend and was able to use TWRP and install the ZIP without a single problem.

I was even able to boot up from Fastboot using 'fastboot boot boot.img' :)

But what is not working for me right now is flashing the kernel from fastboot.

When I try 'fastboot flash boot boot.img' I get the following:

sending 'boot' (3122 KB)...

OKAY [ 0.531]

writing 'boot'...

FAILED (remote: image update error)

finished. total time: 0.536

Is there another way for me to flash the kernel?

Kindest regards,

chrrh...
[Desire Android Development] spezi77:
Strange, it could be that there is insufficient space in your Desire for permanently saving the kernel image.

[MENTION=3710206]chrrh[/MENTION] Please give this kernel image a shot (2.8mb): https://www.androidfilehost.com/?fid=24391638059059736
[Desire Android Development] spezi77:
Hi bro,

Yes, I have looked into your boardconfig and also checked the overlays in leo device tree. Still didn't work on htc bravo. It can connect to wifi router, but it miserably fails to establish a real internet connection.

However, I have great news for you, and Desire folks as well: I managed to get CAMERA working with the code from OpenDesireProject. Big thanks to Mustaavalkosta for his brilliant work! See my github: https://github.com/spezi77/android_device_htc_qsd8k-common/commits/cm-13.0

I am currently using SnapCamera in my builds, which is a replacement for AOSP Camera, optimized for Snapdragon CPU

- doesn't reload the activity when you rotate the screen

- all in all many more options to improve the picture quality

- very well developed panorama mode

- more options of taking pictures

Have a nice day!

;)

P.S.: the camera preview is as always a little distorted. But actually who cares.. :P
[Desire Android Development] macs18max:
Gr8.... camera working is good news.

Regarding wifi I would advice you to try the following (Make a backup of device folder and )

Remove the following from boardconfig.mk

BOARD_LEGACY_NL80211_STA_EVENTS := true

Also add the following packages to qsd8k.mk

# Wifi
PRODUCT_PACKAGES += \
libnetcmdiface \
dhcpcd.conf \
hostapd \
libwpa_client \
wpa_supplicant.conf \
wpa_supplicant

Make the following changes in init.bravo.rc

service wpa_supplicant /system/bin/wpa_supplicant \
-iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \
-e/data/misc/wifi/entropy.bin \
-g@android:wpa_wlan0

Remove this

-on post-fs-data
- mkdir /data/misc/wifi 0770 wifi wifi
- mkdir /data/misc/wifi/sockets 0770 wifi wifi
- mkdir /data/misc/dhcp 0770 dhcp dhcp
- chown dhcp dhcp /data/misc/dhcp

Also make this changes remove bnep_0 and add the following (althought this is bluetooth tether related)

# bluetooth
service dhcpcd_bt-pan /system/bin/dhcpcd -ABKL
class main
disabled
oneshot

Also add this file https://github.com/maniacx/android_device_htc_leo/tree/cm-13.0/proprietary/etc/wifi

PRODUCT_COPY_FILES += \
device/htc/leo/proprietary/etc/wifi/wpa_supplicant_overlay.conf:system/etc/wifi/wpa_supplicant_overlay.conf

(change path to bravo instead)

Try using defaults CM system/core and framework_opt_net_wifi (I have seen you have made some changes regards to this before, could be these too)

And try using bcm firmware from my repo fw_bcmdhd.bin and fw_bcmdhd_apsta.bin You will need to remove below so that it doesnt overwrite those firmwares

$(call inherit-product-if-exists, hardware/broadcom/wlan/bcmdhd/firmware/bcm4329/device-bcm.mk)

Also compile bcmdhd in kernel and not as module.

you may move bcm firmware to system/etc/firmware instead of vendor firmware. if you do this in device do not forget to do it in kernel also

https://github.com/maniacx/android_...mmit/49c66069bd48adf4c5b25ffa69ed8de08765a757

Remove these from overlay

<bool name="config_wifi_background_scan_support">false</bool>

Change this

<bool translatable="false" name="config_wifi_dual_band_support">true</bool>

Lot of changes but worth a try once.
[Desire Android Development] spezi77:
Ya, that's really a lot.. Only one point to be clarified about the changes in init.bravo.rc.

Do you mean to remove both services and to add that single entry from your code sample instead or to change in both cases the name from 'bnep0' to 'bt-pan'?

# bluetooth
service dhcpcd_bnep0 /system/bin/dhcpcd -aABKL
class main
disabled
oneshot

# bluetooth
service iprenew_bnep0 /system/bin/dhcpcd -n
class main
disabled
oneshot
[Desire Android Development] spezi77:
And another point for clarification, pls. ;)

You meant to remove both properties, or just the first one, and change the second one into true?
[Desire Android Development] macs18max:
Change in both case

---------- Post added at 11:22 PM ---------- Previous post was at 11:21 PM ----------

Remove the first one

Change second to true
[Desire Android Development] chrrh:
Even if you are already working on the problem, here are my findings:

Wifi is already working, but the default-gateway and DNS is not set at all.

If you manually add default-route and DNS-Servers then internet connection is fine on todays build.

I used:

setprop net.dns1 8.8.8.8

setprop net.dns2 8.8.4.4

busybox route add default gw <YOUR-GATEWAY-IP>
[Desire Android Development] spezi77:
However, you don't have to manually set DNS as it is already present in init.bravo.rc:

# Set Google DNS
setprop net.dns1 8.8.8.8
setprop net.dns2 8.8.4.4

Maybe there is something messed up with default gateway.. thanks for mentioning this! :)
[Desire Android Development] spezi77:
[MENTION=3710206]chrrh[/MENTION], could you please make a test on your device?

With enabled Wifi, go to mobile connection settings and disable mobile data, and then let me know if you are still connected to Internet.
[Desire Android Development] chrrh:
desire is Not my main device. so no sim is inserted and there should be no mobile data at all. but I will check when I'm at the device again
[Desire Android Development] spezi77:
Alright, then it is clear now! :D
[Desire Android Development] kuskro:
Hi [MENTION=2473151]macs18max[/MENTION], could you help to build a workable tun.ko and VPN system? Thanks in advance.
[Desire Android Development] spezi77:
Which kernel do you use now?
[Desire Android Development] chrrh:
The one from 31.01.2016, but I´m still not able to flash it. Have to boot from fastboot every time.
[Desire Android Development] spezi77:
Ha-ha, that's crazy, and you are the best!

I plan to continue 2morrow with this project.. Have a nice evening. ;)
[Desire Android Development] spezi77:
Anyone else for whom this trick is working to fix wifi?
[Desire Android Development] Momen Rezq:
Hi
[Desire Android Development] nickleby:
Yes, it's working just using busybox route add default gw <YOUR-GATEWAY-IP>
[Desire Android Development] nickleby:
[MENTION=5091819]spezi77[/MENTION] is there a way to disable soft keys? I don't know how they got enabled, adding qemu.hw.mainkeys=1 to build.prop is not working to disable them :confused: Camera does work and it takes pictures (preview image is not working). Sound is not working either. Can't test phone/data since is not my main device and my SIM card won't fit the Desire SIM slot. Torch turns on but it's impossible to turn it off. As you stated there's some problem to access the SD card. Haven't tested anything else.
[Desire Android Development] spezi77:
Are you able to enter the developer options in the most recent build?

In my Desire it says: "Developer options are not available for this user."
[Desire Android Development] nickleby:
Yes I'm able to enter/use developer options.
[Desire Android Development] spezi77:
You can find this options in Settings > Buttons > Navigation Bar > Enable.
[Desire Android Development] spezi77:
Could you do me a favour? Please check whether switching the option under "Settings > Developer options > Use legacy DHCP client" has any effect for you? I hope that this will fix the wifi problem, and could make the manual set-up of a gateway obsolete..

Edit:

After re-installing the rom, I was able to access developer options. However, switching legacy DHCP client didn't make any difference.

Now, I have discovered the exact steps to enable WIFI. My previous attempt by using the internal terminal console of the ROM have miserably failed for me. It is REALLY important to set up the default gateway from an external computer via ADB over USB. :D

Here is a noob-friendly guidance on how to set up your default gateway. I have also put it into post #2.

First off, you require the ADB tool which is part of the Android SDK tools.

Connect your phone via USB cable to your computer.

Look up what is your default gateway of your router and use it instead of the IP in my example (however, in many cases a router uses the 192.168.0.1 as in my example below).

Start a terminal console and enter the following commands.

adb shell
su
busybox route add default gw 192.168.0.1
[Desire Android Development] spezi77:
Hi [MENTION=2473151]macs18max[/MENTION]

Thanks again for your hints, but somehow the WIFI problem on the HTC Desire has a completely different root cause, as to the findings of chrrh and nickleby: only the default gateway was not properly configured!

At the moment I don't know why this occurs. Maybe an issue with DHCP client. Have you heard about similar problems, by chance?

Cheers! ;)
[Desire Android Development] nickleby:
Will it work if static IP is configured in the phone? I was trying to configure static IP for the WiFi, but my phone got stuck and is a pain to boot it again...

Edit: not, is not working. I thought it might be since you can configure the gateway there... So, we have to configure the gateway everytime we reset the phone until you can find what's wrong with the WiFi.
[Desire Android Development] spezi77:
Until today I couldn't find out what is causing the WIFI problem in the OS / device configuration yet. Currently, I could only imagine a "workaround" like writing a small APP or adding an option into the ROM Settings which allows to set up a static IP configuration for default gateway in the phone, so that it can be applied at every start up.

What are your thoughts about this?
[Desire Android Development] YaSsIN225:
thanks

first off all

thank you for this rom

i followed every step but when i flash the boot.img for th kernel the phone stuck on htc logo

Does not want traffic to the rom

-------------

Thank you very much for your efforts