yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] ivop:
Just to let you know, I have run the 2011-10-13 release for weeks now on my Arnova 10 (resistive screen). I replaced TSCalibration with the stock one in system_x.img and added gapps, and everything works fine. I suggest locking the screen in landscape mode and increase the grid-size for more icons/widgets. Rotation is pretty slow. Market, sense analog clock, elixer 2 + widgets, e-book reader, mail, music player, tunein, wordfeud ;) no problems so far.

Next, when I have time again, I'll remove all telephony and bluetooth stuff. Also, I'd like a minimal market, probably just Vending.apk. But seeing birdiebnl's messages above, I guess I'll wait till this issue is resolved or base it on the October 13th release. Also, I'd probably link /etc/hosts to a user writable location.
[Android Software/Hacking General [Developers Only]] JDfense:
Invitation for discussion about video for gingerbread/cm7

If there is someone who is interested in video for cm7 and have any idea about it, feel free to come on the prestigio/odys/nextbook thread http://xdaforums.com/showthread.php?t=988740 and help to give the fun_stuff the final trick - hardware video.:)

This is not only a dev thing, but without devs it is a lost thing. Everybody with a hint in this case could maybe help. I'm not a dev, but I like to get a better rom for my lovely cheapo odys genesis.

Come on, the goal is to get a gingerbread/cm7 for Rockship2818 with video and wifi.:D
[Android Software/Hacking General [Developers Only]] fun_:
recently some people asked about USB serial and bluetooth support. I didn't have any answer so I tried them myself.

USB serial, at least pl2303.ko is working. USB GPS dongle can be used with Google Map (and any other GPS apps of course). I'll make new image with pl2303.ko and USB GPS support. (it's very primitive, don't expect so much)

USB bluetooth, driver can be compiled/loaded. it can be accessed from command line tools, but can't be used from android. I investigated a bit and understand it needs more time.

--

I'll investigate suspend/resume issue next.
[Android Software/Hacking General [Developers Only]] Raef1979:
what's new

hi fun_,

what's new about the files dated November 8, 2011 on files.androtab.info/rk2818/cm7/20111108/ folder, is that possible to have a change log?

thanks for all your work
[Android Software/Hacking General [Developers Only]] DaremoS:
You mean "... with video and wifi." at the same time... as we have wifi perfectly working in gb.2.3.7... and we have video acceleration working perfectly in gb.2.3.1.... that's the point!!! :D
[Android Software/Hacking General [Developers Only]] JDfense:
Yes, wise man the fun_stuff added with some extra video fun.
[Android Software/Hacking General [Developers Only]] fun_:
changelog is already provided. I always post news when it's ready.
[Android Software/Hacking General [Developers Only]] fun_:
20111108 is uploaded.

it's for development work. in this release USB mode is HOST on boot. if you don't need following functions, no need to use this release.

USB GPS dongle is supported. you need to insert it on boot. by default /dev/ttyUSB0 is used and its speed is set to 4800bps. if your dongle has different configuration, please set following properties via /data/local.prop

ro.kernel.android.gps=ttyUSB0
gps.serial.speed=4800

(please change values as you need)

currently only your location info is provided. another info e.g. satellite location is not provided. (gps module in android-x86 project can provide additional info and it works with minor modification)

modules for USB bluetooth dongle is added/loaded, but it can't be used from android. you can start dev work with them ;)

--

probably suspend/resume issue should happen but I can't reproduce it for now... hmm?
[Android Software/Hacking General [Developers Only]] birdiebnl:
That seems good news, because I've not succeeded in checking out the sources by date. It seems to work, but in the end it results in a strange mix of old source files (before a specified date) but also some newer source files. Of course that doesn't build at all :(

The command I've used:

git checkout "`git rev-list HEAD -n 1 --first-parent --before="2011-10-15"`"

Maybe some GIT expert knows what i'm doing wrong?
[Android Software/Hacking General [Developers Only]] spocky12:
Hi fun_,

No sure about what you call suspend/resume issue. I've got a archosht7v2, using the rom built by surfer63 (based on your october image). I experienced random wake up from the tablet. Some of them seemed to be linked to wifi activity (although I can't see why tweetdeck app would switch the screen on to update data...).

Anyway, as I had installed a few apps, I decided to reset everything and install the rom again, without installing any third party app to be sure the issue was in the rom.

I didn't even set a wifi connection or synchronize with my google account. What I did was a full install, a screen calibration, a reset, and then in cyanogenmod parameters, I disabled dithering, fullscreen and added extra buttons in the power menu. I didn't launch/install any app. I didn't change any other parameter. But the problem persists.

I tried to look at adb, but I found nothing relevant in there (sorry, I'll try to write it down next time, but during the wake up, I had something like "unable to find itelephony interface", "switching screen to on" and a few others, but nothing related to the cause of the issue). To be more precise, the "itelephony" message is each time the first message in adb just after the screen is turned on. Don't know whether it's a cause or a consequence of the issue.

What I found interesting after the reinstall is that the wake up happens regularly : each hour and half hour, it goes 4 times on/off (I didn't remove the lockscreen, so the screen goes off very quickly, 2s or so). Exemple, at 23:00, the screen went on, the 2s later off, and it repeated it 4 times. Finally, it stayed off until 23:30. As I didn't change anything in my install, I suppose anybody could see the same behaviour as I did.

To be complete, note that surfer63's roms have some apps updated :

- Includes Google apps.

- Updated Titanium to latest version 4.5.1

- Updated Superuser.apk and su to latest 3.0.2 version.

- Updated Market to latest version 3.1.5.

- Updated Gmail to latest version.

So if you don't experience this issue, it might be related to the apps above...

If I can do anything to help fixing this, do hesitate to ask. I'll try to take a further look at it when I have time.
[Android Software/Hacking General [Developers Only]] ntnlzr:
sry i'm noob of tablet i've cube u9gt 2 , there is a way to root it? There is same chipset rk2918

tnx u
[Android Software/Hacking General [Developers Only]] fun_:
sorry, I should say "black screen on resume" issue.

random wakeup is another issue, it may happen. probably it can be fixed(workaround) by using app something like "disable deep sleep" "keep wifi on suspend" etc.

(screen is off but wifi is on so power is consumed more than real suspend)
[Android Software/Hacking General [Developers Only]] fun_:
sorry, here is CM for RK2818 thread. no rooting info nor rk2918 info are available.

as far as I know, adding any file e.g. su/superuser.apk to system is easy. but please find another place about it.
[Android Software/Hacking General [Developers Only]] ntnlzr:
ops sry man, i've wrong rk2818 instead rk2918 so sry

tnx u anyway
[Android Software/Hacking General [Developers Only]] JDfense:
I know this problem on my odys genesis, too. I have "fixed";) this by playing around with the display settings and I don't know which button really helps. I can say, google apps were not the cause, because I have tested my rom version with or without gapps.
[Android Software/Hacking General [Developers Only]] birdiebnl:
_Fun, i made a new build today, but still the black screen on resume issue.

Then I flashed your boot.img and system.img (20111108) and the problem was gone. After that, I flashed my fresh build system.img and your boot.img, and problem was still gone.

Searched for the differences, and found that the line:

write /sys/bus/platform/drivers/dwc_otg/force_usb_mode 1

in init.rk28board.rc makes the difference, with this line included i cannot reproduce the black screen on resume issue....
[Android Software/Hacking General [Developers Only]] ivop:
birdiebnl, I have experienced problems (different, wifi related), too, when I flashed a new boot.img and system.img without flushing the rest of the tablet (i.e. userdata, etc...). This was when I upgraded from the august images to the october ones. I tried debugging the issue at first and there were a lot of permission and uid/gid troubles with files located in /data/.... Instead of trying to fix those, I wiped the whole tablet and reflashed the new images and everything was fine. I wasn't able to reproduce the errors afterwards either.
[Android Software/Hacking General [Developers Only]] birdiebnl:
When i try a new build i reflash everything, just to be sure. That's not the problem. When i flash an image without the line mentioned in my previous post the problem is back. I'm happy that this line fixes the problem, but unfortunately i don't know why it fixes the problem.
[Android Software/Hacking General [Developers Only]] fun_:
thank you for your report. that's the point I'm checking...

probably, with that line, and changing 1 to 0 after boot, still problem is gone, right?

I'll try with "write force_usb_mode 0" in init.rk28board.rc.

I'm not sure it's the problem, or just reveal/hide bug in another place...
[Android Software/Hacking General [Developers Only]] fun_:
hmm.

to update new CM7 from old one, flashing boot.img and system.img without wiping should work. I'm doing it in most cases.
[Android Software/Hacking General [Developers Only]] birdiebnl:
It's just a kind of workaround, i notice that now the lockscreen doesn't come up. So probably by disabling the lockscreen the problem should also disappear.
[Android Software/Hacking General [Developers Only]] wetware05:
Hello.

Sorry for my English poor.

I am working on this ROM in my BQ Verne. But Cause are the music players bad when they have to look for the music in the card SD? They do not find all albums, or do not believe well the library. I have tried many and of better and they all create problems. I think that the problem in in the creation NAND and sdcard, since of predetermined way pickups look up in /mnt/sdcard and mysteriously finds it vacuum. If gets on nand like "internal storage" then something better makes it, but with other types of problems Cause?

Shouldn't he develop her ROM toward the script Darktremor's a2sd?, It is far better than NAND.

Another theme. How does disable lockscreen in the build.prop file?

Thank you for the good development of this ROM.
[Android Software/Hacking General [Developers Only]] birdiebnl:
I rest my case, my build of today doesn't have the black screen on resume problem anymore. Very strange.

Lock screen come's up after resume, and no problem at all.
[Android Software/Hacking General [Developers Only]] fun_:
my English is not good so I can't understand some point. sorry if I misunderstood something.

it may be different thing, but there is no ringtones in my CM7. there are ogg files, but they are not picked up in setting menu.

I can see ogg files in File Manager. I can hear sound directly from files. so I think there is issue around media scanner/extractor.

(I remembered some ringtones were detected when I added all ringtones in CM)

sorry, I'm not sure what is the point about "NAND".

standard apps2sd feature in CM7 doesn't work? I can use it on my ONN N2, but it may not work if your kernel doesn't have device-mapper.

see Tablet tweaks in CyanogenMod settings.
[Android Software/Hacking General [Developers Only]] fun_:
really strange... btw I can see lockscreen on my images.
[Android Software/Hacking General [Developers Only]] wetware05:
To what do you refer with "but it may not work if your kernel doesn't have device-mapper"?: Do I have to add any module (*.ko) to kernel?, what?

The problem of screen in black or blockade it is because "CyanogenMod Setting, Display, Screen-off animation", is activated. In off no problem.

Gracias!!!
[Android Software/Hacking General [Developers Only]] fun_:
well, did you already confirm standard apps2sd function in CM7 doesn't work?

what I asked is "Move to SD card" button in app detail page in "Manage applications" in Settings.

sorry if you feel I'm rude. but I always get many questions, from beginners and from experts. I need to ask what you did with detail to answer correctly.

few days ago I made dm-mod.ko and dm-crypt.ko for this purpose. but I didn't try them because apps2sd is working on my tablet. (I didn't check protected app yet)

it may work for you, but please check apps2sd function in CM7 before trying these modules.

interesting. actual effect doesn't happen by "BOARD_HAS_LIMITED_EGL". SurfaceFlinger::electronBeamOffAnimationImplLocked()/electronBeamOnAnimationImplLocked() return INVALID_OPERATION with it.

but calling these function may have bad effect.

I really don't have enough time for now. I'll check it when I get time...
[Android Software/Hacking General [Developers Only]] birdiebnl:
Well, still had the problem when connected USB to PC. I've "fixed" the problem by changing com_android_server_PowerManagerService.cpp:

static void android_server_PowerManagerService_nativeStartSurfaceFlingerAnimation(JNIEnv* env,
jobject obj, jint mode) {
sp<ISurfaceComposer> s(ComposerService::getComposerService());
>> if ( gScreenOn ) {
>> s->turnElectronBeamOn(mode);
>> }
>> else
>> {
s->turnElectronBeamOff(mode);
>> }
}

New lines are marked with >>. Probably not the real solution, but it seems to work. (Otherwise always turnElectronBeamOff was called)

That's not exactly what happens if BOARD_HAS_LIMITED_EGL is set. See the code:

#ifndef HAS_LIMITED_EGL
if (!GLExtensions::getInstance().haveFramebufferObject())
return INVALID_OPERATION;
#endif

So, if HAS_LIMITED_EGL is set, the haveFramebufferObject method is not called.

What happens is that the call to renderScreenToTextureLocked in electronBeamOnAnimationImplLocked() returns an error.
[Android Software/Hacking General [Developers Only]] fun_:
oops. my brain must be broken ;)

actually, with BOARD_HAS_LIMITED_EGL, following lines are not executed at all

#ifndef HAS_LIMITED_EGL
if (!GLExtensions::getInstance().haveFramebufferObject())
return INVALID_OPERATION;
#endif

then, ... what happen? ;)

anyway, I can reproduce "black screen on resume" with 20111108 by removing init.rk28board.rc (= no "write force_usb_mode 1" line) and connecting USB cable.

then, I confirmed issue is gone by disabling "Screen-off animation".

I'll continue to investigate this issue...

anyway, wetware05, thank you for your info!
[Android Software/Hacking General [Developers Only]] fun_:
hmm. I wonder why there is no issue on other device...

actually "On" animation is NOT working on my other tablets. only "Off" is working. so your fix may change something on other devices.

anyway I'll check your fix carefully. thanks!

thank you for clarifying! ;)
[Android Software/Hacking General [Developers Only]] fun_:
in SurfaceFlinger::handleConsoleEvents(),

// this is a temporary work-around, eventually this should be called
// by the power-manager
SurfaceFlinger::turnElectronBeamOn(mElectronBeamAnimationMode);
}

in SurfaceFlinger::turnElectronBeamOff()

// work-around: when the power-manager calls us we activate the
// animation. eventually, the "on" animation will be called
// by the power-manager itself
mElectronBeamAnimationMode = mode;

"black screen on resume" issue happen when

USB is connected

or

power is connected AND "Stay awake" is enabled in Development settings

it seems SurfaceFlinger::turnElectronBeamOn() is called only from handleConsoleEvents(). then, handleConsoleEvents() is not called above 2 cases.
[Android Software/Hacking General [Developers Only]] fun_:
I think there are 2 different things.

1. about "/mnt/nand" and "/mnt/sdcard"

when you connect PC and your tablet with USB cable, you can see 2 disks. one is internal storage "/mnt/nand" and another is SD card "/mnt/sdcard". it's normal. you need to identify carefully which is SD card.

if you used independent SD card reader/writer to "install music", music files should be detected in "/mnt/sdcard". ("/sdcard" is same as "/mnt/sdcard")

2. about function to search media files on my CM7

it seems broken. installed music files may not be detected properly.
[Android Software/Hacking General [Developers Only]] davidzwb:
I've tested the port on my Cube U3 the whole day but failed, after flashing it counts down 3.2.1 and then the screen turns black and there's no response any more, the device is 4.3'' with 480*272 resolution and of course is rk2818 based, I've followed the routine to make the update.img and I think I did it correctly because I also followed the routine to try to use other ROM(from n3net's 2.1 ROM) to run on my device, and it succeeded(but wifi and roration doesn't function properly), is my device supported or should I do something? Thanks a lot!
[Android Software/Hacking General [Developers Only]] fun_:
there is no wait_for_fb_sleep/wait_for_fb_wake under /sys, so console output is used to wake up screen. probably it causes random wake up issue.

it may need more investigation, but birdiebnl's fix and removing work-around seems to be reasonable.
[Android Software/Hacking General [Developers Only]] fun_:
I think it will work... did you erase user data(factory reset) when flashing update.img? can you explain "the routine" more specifically?

how long you waited on black screen?
[Android Software/Hacking General [Developers Only]] davidzwb:
I did erase the user data, "the routine" I mean follow your instructions(unpack,replace boot & system.img, configurate the build.prop, according to my screen resolution I change the density to 120, is it right? then repack, I also use a tool to erase the IDB(?), then use RKAndroidBatchUpgrade.exe to flash),how long is it supposed to wait on black screen?(the black screen is quite abnormal ,cause every other ROM will start with the manufacturer's Cube logo, so I thought there's something wrong and didn't wait too long) I don't quite remember, maybe up to 10 minutes.
[Android Software/Hacking General [Developers Only]] fun_:
I see. "manufacturer's Cube logo" should be displayed within few seconds if kernel.img is fine.

no idea about dpi=120. for CyanogenMod boot anim start/end, it needs few minutes(but probably less than 10min). but, anyway, "manufacturer's Cube logo" should be displayed really soon.
[Android Software/Hacking General [Developers Only]] wetware05:
Hello fun_

I continue with the topic of the directories inside from "/ mnt", I think that so that the means searcher should work well, the directory "/mnt/sdcard" should be sheltered inside "/ nand", this way: "/mnt/nand/sdcard" and to do the pertinent changes in of directory creation in "init.rc"

It tries and you will see the changes.

(Hola fun_

Sigo con el tema de los directorios anidados en "/mnt", pienso que para que funcionase bien el buscador de medios, el directorio "/mnt/sdcard" debería estar anidado dentro de "/nand", así: "/mnt/nand/sdcard" y hacer los cambios pertinentes en la creación de directorio en "init.rc"

Prueba y verás los cambios.)

Un saludo y que estés bien ;) !!!
[Android Software/Hacking General [Developers Only]] fun_:
oops. finally I can see HQ youtube videos...!

http://files.androtab.info/rk2818/cm7/20111108_video/

I have no time to run full build for now(4AM now here). it has "black screen on resume" issue so please disable "Screen-on/off animation" in CyanogenMod settings. (it may happen without USB... it happens when screen off but not in deep sleep)

EDIT:

for now not well tested e.g. local file, other codecs, etc...

changes will be pushed to github but I'm really sleepy...
[Android Software/Hacking General [Developers Only]] ny-hardcore:
:)

You are God!

Confirmed working on a yarvik tab 210 :D
[Android Software/Hacking General [Developers Only]] birdiebnl:
Hey _fun, great news!

I'm very interrested in how you did it, watching GitHub ;)
[Android Software/Hacking General [Developers Only]] fun_:
http://files.androtab.info/rk2818/cm7/20111115/ is uploaded.

built with latest CM source. now 7.2.0-RC0.

"Screen-off animation" is disabled by default as workaround for "black screen on resume" issue. (if you changed this setting, please disable manually)

add initial support for hardware codecs. I'm not sure all supported codecs are enabled. please test & report about file URI, format detail, status, etc.
[Android Software/Hacking General [Developers Only]] fun_:
thank you!

something may be wrong, but I believe better than nothing :)

pushed. please check latest change in frameworks/base/. it seems rockchip devs didn't change API so much. it's quite simple ;) I'm lucky.

thank you for your cooperation!
[Android Software/Hacking General [Developers Only]] ziksiver:
USB is not working anymore after the update

Hi, I updated my Archos 7 HTV2 to the new 2.3.7 with your CyanogenMod7 port and everything is working so far, but the USB!

USB is not working at all, it doesn't show up in any computer.

Also there is no USB under settings and "the green guy" that should say "turn on usb storage" doesn't appear.

It's a shame since no cables work, and I tried everything already, from mounting to unmounting sdcard and so on.

Can you help me? :(:(:(
[Android Software/Hacking General [Developers Only]] fun_:
this issue sometimes (e.g. just now, oops) happens for me too.

no idea for now, sorry.

EDIT:

ah, I forgot that default USB mode is changed to host from previous release. please change USB mode to device after boot, or comment out "write /sys/bus/platform/drivers/dwc_otg/force_usb_mode 1" line in init.rk28board.rc in boot.img.

my brain is really dead ;)
[Android Software/Hacking General [Developers Only]] ny-hardcore:
i think fun_ enabled hostmode by default in boot.img (for the usb gps?)

Try turning it off by doing

echo 0 > /sys/bus/platform/drivers/dwc_otg/force_usb_mode
</code]
in a terminal (on the tablet itself or with adbwireless)
[Android Software/Hacking General [Developers Only]] ny-hardcore:
Gscript lite and script does the trick for me
[Android Software/Hacking General [Developers Only]] fun_:
random notes

about USB mode,

I'll revert default USB mode to device in next release. I guess it's major. or I made another boot.img e.g. boot_usbhost.img.

current limitation for USB GPS (need to be inserted on boot) should be fixed separately.

about hardware accelerated video,

currently PV_PLAYER is default but probably it's not good idea and may have issue. it should be limited to supported codecs.

I have interest to use OMXPVCodecsPlugin but I need to learn more about stagefright...

EDIT: hmm... it also looks like simple...
[Android Software/Hacking General [Developers Only]] destilant:
Honeycomb sources released today...any chances to build it for rk2818 tablets?
[Android Software/Hacking General [Developers Only]] tikiglio:
No, It's Ice cream-sandwich

but ... yet a cyanogenmod release ?
[Android Software/Hacking General [Developers Only]] surfer63:
Simple work around would be to add the line

echo 0 > /sys/bus/platform/drivers/dwc_otg/force_usb_mode

to the init.rc or another startup file.

EDIT: Sorry, was already mentioned for the init.rk28board.rc
[Android Software/Hacking General [Developers Only]] destilant:
I dont mean ICS, Honeycomb is finally released too
[Android Software/Hacking General [Developers Only]] hanschke:
any reason fun why you dont create an update.img :confused: