yashsingh1/xdaforums huggingface dataset:
[Miscellaneous Android Development] trekker99:
I finally gave in to upgrading to Shendu and flashed to the latest dev. The first thing I noticed is that many apps couldn't detect the internal sd card when the external sd card is not inserted. As I need to be able to use the phone without external sd cards, I did some poking around and figured out what was the problem.

The default setting in Shendu (and maybe CM10 in general?) is to mount the external in /storage/sdcard0 and the internal in /storage/sdcard1. This means if the external is missing, there is no filesystem in sdcard0 and applications will not attempt to check if there is one in sdcard1. Very annoying as things like ringtones and notifications settings also has this behaviour.

The first thing I did was to modify /system/etc/fstab.vold. Shendu uses a vold based approach to managing file systems for sd cards. The original values are this:

dev_mount sdcard /storage/sdcard0 auto /devices/platform/msm_sdcc.4/mmc_host
dev_mount emmc /storage/sdcard1 14 /devices/platform/msm_sdcc.2/mmc_host

I changed it to this:

dev_mount sdcard /storage/sdcard1 auto /devices/platform/msm_sdcc.4/mmc_host
dev_mount emmc /storage/sdcard0 14 /devices/platform/msm_sdcc.2/mmc_host

Unfortunately, the internal sd card was still stuck at sdcard1. After doing a few strange stuff which mostly resulted in boot loops, I turned to the init scripts and finally found some hard-coded values in /init.huawei.rc. Near the start of the file has this bunch of commands:

export EXTERNAL_STORAGE /storage/sdcard0
export INTERNAL_STORAGE /storage/sdcard1
# Backwards Compat - XXX: Going away in G*
symlink /storage/sdcard0 /sdcard
symlink /storage/sdcard1 /emmc

I changed it to this:

export EXTERNAL_STORAGE /storage/sdcard1
export INTERNAL_STORAGE /storage/sdcard0
# Backwards Compat - XXX: Going away in G*
symlink /storage/sdcard1 /sdcard
symlink /storage/sdcard0 /emmc

After rebooting, the internal sd card is now sdcard0. The init script did reset back to the previous version, but rebooting the phone again proved to me that this new setting still holds. I am pretty sure I am missing something (ie where the settings the init script is picking are stored), but I hope sharing this information will help anyone else who might face this problem. I must add that you might need an external sd card inserted in the phone (I didn't have one initially, but I had one when I tried the init hack) to get this to work.

One side-effect is that the external storage is now labelled internal and vice-versa.

PS I did try

persist.sys.vold.switchexternal=1

to switch between the two and it doesn't seem to do anything.

---------- Post added at 04:07 AM ---------- Previous post was at 04:05 AM ----------

As I have decided to try out shendu, I can confirm that deleting the recovery.img is sufficient to prevent your own recovery from being replaced. I didn't edit the script as 7z didn't like the way the ROM was packed, and refused to repack it.
[Miscellaneous Android Development] DreamVidz:
what do you think about these? anybody tried yet ?

http://www.teamandroid.com/2013/02/...or-android-421-jelly-bean-miniz-custom-rom/2/
[Miscellaneous Android Development] Alex_R3CONN3R:
AW: Huawei U8860 Honor / Honour / Glory - Index

It is the same like tuanshung already posted.

Gruß Alex

SERVICE TEMPORARILY UNAVAILABLE ?
[Miscellaneous Android Development] trekker99:
Anyone still getting random reboots with the latest shendu devs build? I get it about once a day. I leave my BT off; is leaving it on still a valid workaround to reduce the freq of reboots?
[Miscellaneous Android Development] limzm:
Bluetooth doesnt help in stopping the random reboots. If you read my posts a few back. I managed to have my system running for a week without reboots.

What I've changed for that matter is the VM settings.
[Miscellaneous Android Development] oL00No:
I never meant BT as a definite workaround - it did however affect the frequency of reboots. Disabling JIT in dalvik, as I stated earlier, has even more effect. What other tweaks can you recommend?
[Miscellaneous Android Development] vierri:
I had a look at pimp-my-rom and JIT seems to be disabled by default ... (I checked it after 2 installations of different shendu dev)
[Miscellaneous Android Development] limzm:
I didn't just change jit, I've changed settings like dirty writeback, swappiness and many more of those you see when you type in

sysctl -a | grep vm

I took those values from the IceColdJelly ROM that I was using on my HTC One X
[Miscellaneous Android Development] oL00No:
Pimp My ROM might not always read values right. I'd enable, disable, then reboot.
[Miscellaneous Android Development] trekker99:
I did see your posts but you weren't using shendu except for an older version of shendu kernel. I will take a closer look to the tweaks you have made anyway.

I am interested if anyone using the latest shendu devs encounter these random reboots, especially feedback from people who faced these problems in previous builds.
[Miscellaneous Android Development] oL00No:
Could you list the changes for other users?
[Miscellaneous Android Development] limzm:
Copy paste this and make it into an init.d script

#!/system/bin/sh

chmod -R 777 /system/etc/sysctl.conf

busybox sysctl -e -w vm.drop_caches=1;
busybox sysctl -e -w vm.drop_caches=3;
busybox sysctl -e -w vm.oom_kill_allocating_task=0;
busybox sysctl -e -w vm.panic_on_oom=0;
busybox sysctl -e -w vm.dirty_background_ratio=5;
busybox sysctl -e -w vm.dirty_ratio=90;
busybox sysctl -e -w vm.vfs_cache_pressure=20;
busybox sysctl -e -w vm.overcommit_memory=1;
busybox sysctl -e -w vm.overcommit_ratio=50;
busybox sysctl -e -w vm.min_free_order_shift=4;
busybox sysctl -e -w vm.laptop_mode=0;
busybox sysctl -e -w vm.block_dump=0;
busybox sysctl -e -w vm.oom_dump_tasks=1;
busybox sysctl -e -w vm.swappiness=30;
busybox sysctl -e -w vm.dirty_writeback_centisecs=500;
busybox sysctl -e -w vm.dirty_expire_centisecs=200;
busybox sysctl -e -w vm.min_free_kbytes=1925;
[Miscellaneous Android Development] trekker99:
Just wanted to point out you have repeated drop cache setting. I guess 3 should be the correct one?
[Miscellaneous Android Development] CharlotKnightII:
I'm on latest shendu dev. At the start I got about 1-2 reboots a day. Then after a few days it slowed down and I got lesser reboots. But however, lately I'm getting reboots quite often. About 1-2 times a day sometimes even more.

I feel that this version is very laggy. Many of my apps always crash and the screen always freezes.

Is something wrong w this 3G or is it my network provider? Cause when I'm on data I get this 'authentication via the proxy server is unsuccessful' but up on the notification bar I get the H and G sign. Whatsapp, viber and the browser cannot load. However I did manage to connect before.
[Miscellaneous Android Development] trekker99:
Other than the random reboots, I don't get any of the other symptoms you have described. Did you do a fresh install?

I believe the reboots are memory related, which is why I have started using limzm's vm settings. If I find the time, I want to understand each setting better to see if it can be improved further.
[Miscellaneous Android Development] limzm:
Yup the final value is 3. The script was this way when I took it out from PIMP MY ROM. I believe there are 2 instances for a reason.

I know that the value of 3 is to clear cache in the memory. Not sure what 1 does.
[Miscellaneous Android Development] CharlotKnightII:
Thanks. Been busy with the new year so I dont intend to mess up with my phone now. I was actually planning to wait for new release or get 4.2.1 but there arent much review about it here. So I'll just hold 1st.
[Miscellaneous Android Development] xjerlzx:
the stock gp rom is awesome! just need root!
[Miscellaneous Android Development] trekker99:
I believe shendu's 4.2.1 rom is still in closed beta but I think they are close to a formal release. We should get some update after they are back from the lunar new year break.
[Miscellaneous Android Development] speedyg0nz:
I tried the Anzhi CM10.1 rom (Android 4.2.1) but switched back to the ShenDu Dev rom a day later. The dealbreaker for me was the broken bluetooth. Couldn't search for devices and pair with them. Another minor annoyance is the cropping of the display at the bottom of the screen, which has been somewhat fixed in the latest ShenDu Dev rom.
[Miscellaneous Android Development] CharlotKnightII:
The copping of the bottom display has been there in many versions (Shendu) even the latest DEV version. Well or at least for me.
[Miscellaneous Android Development] trekker99:
I did notice if you let the display rotate 90 deg and rotate back, the cropping goes away, so a small annoyance at best for me.
[Miscellaneous Android Development] Jaxke:
Bugs of Dolmatov's latest cm10?

So I'm wondering: Which bugs exactly are still not yet fixed on Dolmatov's cm10 0.9.5?

I can look up which ones are fixed, but even that isn't CLEARLY mentioned anywhere, so..

if you know the answer;

Big thanks for those 3 minutes of your time!
[Miscellaneous Android Development] Alex_R3CONN3R:
AW: Huawei U8860 Honor / Honour / Glory - Index

Not fixed are:

Problems with Chrome

Third party cam apps do not work

Random reboots

Black border at bottom screen

Gruß Alex

SERVICE TEMPORARILY UNAVAILABLE ?
[Miscellaneous Android Development] CharlotKnightII:
It's the 18th! Hows 4.2.1 going?
[Miscellaneous Android Development] trekker99:
According to Shendu forum, the next update is 22nd Feb.
[Miscellaneous Android Development] CharlotKnightII:
What happened to the 18th update? Wasn't it mentioned earlier it was expected for realase on the 18th?
[Miscellaneous Android Development] oL00No:
The put it on a flash drive and sent it to the moon with a worm and a donkey. Or they postponed it, like the nice man above wrote.
[Miscellaneous Android Development] trekker99:
It didn't happen or the update they meant was news update. The 22nd Feb dev update should be pretty certain sonce the thread for it is up with the tentative changlog.
[Miscellaneous Android Development] CharlotKnightII:
I'm getting this when I try to download today's update. "{"error":"E404"}'

Also isnt the update suppose to be 4.2.1? It's still 4.1.2.

BTW mind sharing the link to the development forum.
[Miscellaneous Android Development] trekker99:
They never gave a concrete release date for 4.2.1, so they are still releasing bug fixes for 4.1.2. There was a some thread I came across which stated they still had some issues to work out before it was stable enough for a general release.

Please remember that you are not paying for a product, and hence you should be patient for releases. Many companies can't keep to promised deadlines.

The thread to today's release is here: http://bbs.shendu.com/forum.php?mod=viewthread&tid=2436308

---------- Post added at 12:03 PM ---------- Previous post was at 11:05 AM ----------

Just to add. If you are going via the OTA route, the chinese recovery is included in this update. You cannot simply delete the recovery.img from the zip file as the updater-script will delete the recovery.img from the internal memory. I replaced the recovery with the one I have been using and that works.

Also, if you modify any system files, you might need to revert those files, as the ota uses a patching mechanism rather than storing the whole file (makes sense as it keeps the ota download small).
[Miscellaneous Android Development] limzm:
I only wish that Shendu could release their kernel source code or something.

Or maybe just fix bugs in kernels instead of 'beautifying' their UI and the adding more bloated codes.
[Miscellaneous Android Development] CharlotKnightII:
Guys, today I was using last Shendu DEV 130201 and suddenly I just got into a bootloop for no reason. I have been using it well. Despite the fact of increasing numbers of reboots even twice in a row. What happened? I reverted back to Stable version temporarily.

Also I've been facing with an issue with the SMS. I wasnt able to receive many SMS although the other party has sent it. Has this got something to do with the ROM or is it my network provider's fault?

I'm sticking to stable version for now. Too many problems I face with DEV version.
[Miscellaneous Android Development] oL00No:
Short update as I'm heading out for a pint, but I haven't had reboots since I installed snapdragon battery saver. It's in beta and can be downloaded from market.
[Miscellaneous Android Development] sjj1991:
can anyone confirm this?
[Miscellaneous Android Development] trekker99:
Why dont you try? It is from Qualcomm so it should be good. I just installed it too.
[Miscellaneous Android Development] limzm:
In my case I didn't have any more reboots after using my own sysctl tweaks and CrossBreeder.
[Miscellaneous Android Development] myfriend901:
im Using emotion ui.

Just sharing
[Miscellaneous Android Development] trekker99:
Unfortunately I still am getting reboots even after using yout tweaks although at a slower rate. I also tried some variations of your tweaks without much success.

I will take a look at CrossBreeder.
[Miscellaneous Android Development] rj2k:
Can't install on my Honor. Play Store says it's incompatible.

How did you installed it? :eek:
[Miscellaneous Android Development] limzm:
Anyway people, I got hold of the kernel source that this ivan guy put up on github. However the kernel source is for CM10.1

I have added smartmax governor from HTC One X developer maxwen and also ROW I/O scheduler.

So far I am still testing it out and performance wise slightly better (hopefully not placebo).

Thing is since this kernel source is for CM10.1 and I am using the kernel on CM10, only WiFi isn't working.

So if anyone knows how to fix such problem like bcm4329 related, please do let me know.
[Miscellaneous Android Development] trekker99:
Thru google play... Which rom are you using?

---------- Post added at 12:33 PM ---------- Previous post was at 11:54 AM ----------

Do you mean this user? https://github.com/ivan19871002 It looks like this is one of the shendu's developer's account.

I am guessing you checked out this? https://github.com/ivan19871002/android_kernel_huawei_honor It looks like they just released it through github.

I have no idea what you have tried to get wifi working, but at the very least you need to copy the binary blob from the rom itself.

---------- Post added at 12:45 PM ---------- Previous post was at 12:33 PM ----------

I can't say I have experienced this (the SMS problem).
[Miscellaneous Android Development] limzm:
Yes, that's the github source I am using.. well, at least the only one which compiles nicely and works well enough for almost a normal usage.

Hmm, by binary blob you mean those in /system/lib/modules or /system/bin?

By the way, I am assuming the CM10 uses a different WiFi driver as it loads dhd.ko instead of bcm4329.ko which was compiled from that ivan's kernel.
[Miscellaneous Android Development] rj2k:
B928 Speed
[Miscellaneous Android Development] trekker99:
I am referring to the one in /system/vendor/firmware. I believe the wireless driver requires the binaries there to work (if it is anything like the Intel wireless drivers). I browsed through the bcm4329 sources in \drivers\net\wireless\bcm4329 and there is code there to load those firmware.

As for dhd.ko, my guess is that the dhd.ko file might have come from a stock ROM. It is possible Huawei did some customization which prevents us from using the one compiled from source.

---------- Post added at 04:15 PM ---------- Previous post was at 03:49 PM ----------

I have no idea why this ROM doesn't support the app, but there must have been some changes made to it preventing correct detection of the cpu. You might have to change to a different ROM. It you can contact the creator, you could also ask why the app is not supported.

You can find the apk here: http://xdaforums.com/showthread.php?t=2156470. You could try your luck.
[Miscellaneous Android Development] Jaxke:
haha it's seems that wathever you guys try, there is still no custom ROM out there anywhere that actually makes your phone still able to be used for normal daily use, whether it's because of a problem with WIFI, 3g, sms, calling, the front camera,... or even a random reboot 3 times a damn day. So my opinion is just that it's pretty ridiculous installing custom ROMs on this phone by now. :thumbdown:

Sent from my U8860
[Miscellaneous Android Development] limzm:
Hmm do you mean I have to use a version corresponding to the kernel module built?

If so how do I find out which?

Also, the real problem is actually that the WiFi is not even loaded at init. I checked dmesg and it doesn't even state an error or so regarding the loading of WiFi driver.

Surely not the ramdisk problem right?

You sure sound pessimistic. Random reboot doesn't mean unusable. And besides I don't even get that anymore on the CM10 I am using.
[Miscellaneous Android Development] CharlotKnightII:
Do you have any idea what's going on?

BTW guys, serious issue here. Remembering me saying my phone went into a bootloop a few days ago? I then tried with Stable version and it keeps rebooting every few min. So I update to Stock ICS B919 and about 1 day and a half later, the same thing happened. It keeps rebooting every few minute. So now I've been using GB 2.3.6 B865 since last night. No reboots so far.

But I was wondering what is happening to my phone? It isn't hardware problem right? Is my B919 file corrupted? Cause I've been using the same file for a few flashes now and only now it gives this problem.
[Miscellaneous Android Development] kaefert:
Well I think my phone is quite usable thank you very much, no reboots, working wifi, 3g, working everything, only one small thing is that the fm-radio doesn't work quite well, it sometimes messes up the sound system, but when I need other sound to work I just listen to internet-streaming radio instead.

I'm currently running:

dolmatov94 CM 10 (Android 4.1) Version 0.9.5 (2013-01-13)

http://narod.ru/disk/65420916001.46a66712219a88f3cb237493f037db69/9,5.zip.html

I've also tried out this one:

CM 10.1 (Android 4.2) from 4PDA (posted here by user tuanshungf 8th February 2013)

http://disk.yandex.com/public/?hash=DPNNMmeWDeC+oclOMHKpMDLEipjwYxEJTWhA8P0PDns=

but its quite laggy and has a quite low amount of RAM left for user applications.
[Miscellaneous Android Development] trekker99:
No, if the bcm4329 firmware is anything like the intel firmware, it is independent of the kernel. It is something that needs to be loaded into the hardware by dhd.ko (according to KConfig, the file created when compiling bcm4329 is called dhd) at boot time for the wireless driver to work.

You should create a /system/vendor/firmware/ directory in your rom and copy the two bin files from a cm 10 rom. This directory is hardcoded in dhd_common.c (/drivers/net/wireless/bcm4329/).

Does BT works? It is the same module, so if it works and not wifi, I am pretty confident that it is the firmware not being loaded.
[Miscellaneous Android Development] trekker99:
Argh, the boot image for shendu is in rather sad shape. I did a dmesg soon after boot and managed to grab the boot messages from the start.

An interesting snippet:

<3>[1, init] [ 5.093811] init: /init.huawei.rc: 161: invalid command 'cp'
<3>[1, init] [ 5.093872] init: /init.huawei.rc: 191: invalid command 'am'
<3>[1, init] [ 5.094116] init: /init.huawei.rc: 377: ignored duplicate definition of service 'ril-daemon'
<3>[1, init] [ 5.094573] init: could not import file '/system/etc/init.local.rc' from '/init.rc'
<4>[1, init] [ 5.094665] init (1): /proc/1/oom_adj is deprecated, please use /proc/1/oom_score_adj instead.
<6>[1, init] [ 5.218444] EXT4-fs (mmcblk0p12): mounted filesystem with ordered data mode. Opts: barrier=1
<4>[96, e2fsck] [ 5.385131] do_exit: exit code=1024
<3>[1, init] [ 5.385406] init: exec: pid 96 exited with return code 4: Unknown error: 1024
<4>[1, init] [ 5.392547] EXT4-fs (mmcblk0p13): warning: mounting fs with errors, running e2fsck is recommended
<6>[1, init] [ 5.393737] EXT4-fs (mmcblk0p13): mounted filesystem with ordered data mode. Opts: noauto_da_alloc
<6>[1, init] [ 5.402374] EXT4-fs (mmcblk0p6): mounted filesystem with ordered data mode. Opts: barrier=1
<6>[1, init] [ 5.403350] block2mtd: mtd0: [/dev/block/mmcblk0p7] erase_size = 4KiB [4096]
<6>[1, init] [ 5.430297] EXT4-fs (loop0): recovery complete
<6>[1, init] [ 5.430328] EXT4-fs (loop0): mounted filesystem with ordered data mode. Opts: (null)
<3>[1, init] [ 5.600341] init: cannot find '/system/etc/install-recovery.sh', disabling 'flash_recovery'
<3>[1, init] [ 5.613586] init: service 'console' requires console
<3>[1, init] [ 5.623382] android_usb: already disabled
<6>[1, init] [ 5.623535] nluns_store: nluns = 2
<6>[1, init] [ 5.623565] cdrom_index_store: no cdrom
<6>[1, init] [ 5.623596] functions_store: mass_storage,adb
<6>[1, init] [ 5.623657] adb_bind_config

Igoring the fact that my data partition seems corrupted and can't be fixed (need to find time to back it up and restore after a format), it is interesting to see some errors from the huawei init script. Whoever added the 'cp' and 'am' commands to the rc script obviously doesn't understand what they are doing. If anyone has a copy of the boot.img from an ics rom and can send it to me, I will appreciate it.

As for the failure to import init.local.rc, this is a cyanogenmod bug which is fixed (https://github.com/CyanogenMod/android_system_core/commit/943dba184eb5c0f46dc70a5db140c5b5ceb4b7a0). The failure to import this means compcache is not started. I tried starting it manually, but an error returned. it is supposed to attempt to load the zram module via modprobe, but it fails. Not sure what is happening at the moment.
[Miscellaneous Android Development] Jaxke:
and what about the black border on bottom of the screen?

Sent from my U8860
[Miscellaneous Android Development] speedyg0nz:
I'm currently on ShenduOS Dev Rom 20130201 and have gone 45 hours without a random reboot. Not quite sure what's keeping it going but I did install the sysctrl tweaks, Crossbreeder zip and Qualcomm BatteryGuru app, as recommended by other users.
[Miscellaneous Android Development] mercurysnake:
guys.!! right now i'm on shendu latest 4.1.2 130118 n i flashed unlimited booster v6 to my rom now i wanna flash Crossbreeder ,

can i flash directly or have to remove the previous unlimited booster??? if so how can i remove.. :) plz help me!! will ya!
[Miscellaneous Android Development] Kevxify:
Is there any ways to increase the reception, eg the updating of radio?

cause I am using shendu and the signal is kinda bad compare to before rooting...
[Miscellaneous Android Development] kaefert:
I have not noticed any problems in signal quality, but I'm not using shendu, though its quite similar to those CM10 builds I think (except the UI).
[Miscellaneous Android Development] trekker99:
I use shendu and dont find it to be worse. What is the baseband version you have on the phone?
[Miscellaneous Android Development] limzm:
Ok I have updated the fw_bc4329.bin to the newest and it still does not work.

After changing to old kernel and playing with dhd.ko, I figured that the new kernel is 'missing' the main module itself.

How do I know which path and which file does the kernel load (dhd.ko or bcm4329.ko and the path)?
[Miscellaneous Android Development] rj2k:
Hi,

Can't download Cyanogenmod dolmatov94 CM 10 Version 0.9.5 (2013-01-13) from

http://narod.ru/disk/65420916001.46a66712219a88f3cb237493f037db69/9,5.zip.html

Can anyone send an alternative link?

Is there a kernel available for B928 Speed with smartassV2 governor?

Thanks.

---------- Post added at 12:43 PM ---------- Previous post was at 11:54 AM ----------

Got it:

https://depositfiles.com/files/6zsq29f53
[Miscellaneous Android Development] trekker99:
I am a bit stumped here too. Typically ko files should be located in /lib/modules. I am not sure why it has to stored elsewhere.

Also, I have not found the location in the scripts where the module is loaded. In any case, you could try

insmod /system/wifi/dhd.ko

in bash and see if it loads.