yashsingh1/xdaforums huggingface dataset:
[Miscellaneous Android Development] stevemp:
No, it's just old rom stripped of apps so people can make their own custom setup. Plus Titanium Backup for backing up, and ADW Launcher so you can download themes and change wallpapers. Few people want to do all that but now have option.

It has bqkernel with settings for Next3.

# Parameters patched by fun_

sensor.accelerometer.flip_xy=0

sensor.accelerometer.invert_x=1

sensor.accelerometer.invert_y=0

sensor.accelerometer.invert_z=1

stevemp
[Miscellaneous Android Development] JDfense:
Hi surfer63,

thanks for your complete workshop for the non system\app apk installation.

Do you think the mobo player would run without loop to the codecs over the market with your code?

JDfense
[Miscellaneous Android Development] Quadliese:
gingerbread please
[Miscellaneous Android Development] stevemp:
test first

You can test by trying (you must be su or chmod 777 /data/app) pm install myapp.apk from terminal or shell, if it installs then you are good to go. Only way to know is by testing app you wish to install. Most of the ones I tried worked fine.

stevemp
[Miscellaneous Android Development] heart_crafter:
last time i tried to figure out about this sh and busybox...

i made the attached scripts... ( put them here /system/usr/customize/scripts/)

all of them uses busybox...

put this in boot.img\inti.sh file

#!/system/bin/sh
busybox mkdir -p /data/sysrw
busybox mount -t aufs -o br:/data/sysrw:/system=ro none /system
toolbox log -p I -t boot "=============For any scripts to run from /system/usr/customize/scripts folder...=============="
if [ -d /system/usr/customize/scripts/ ];then

chown system.system /system/usr/customize/scripts
chown root.root /system/usr/customize/scripts/*
chmod 777 /system/usr/customize/scripts/*

for i in /system/usr/customize/scripts/* ; do
toolbox log -p I -t boot "running $i"
$i
done

fi

toolbox log -p I -t boot "=============Done executing sripts from /system/usr/customize/scripts folder...==============="

check out the logcat on startup...
[Miscellaneous Android Development] stevemp:
Does not work on my Froyo rom, busybox on that rom don't support if statements. :eek:

stevemp

---------- Post added at 01:36 PM ---------- Previous post was at 12:49 PM ----------

7htv2_froyo.19_normal.img modified to run on Next3. Very nice Froyo by surfer63. :)

LinPack 1.2.8> 5.68

AnTuTu 2.54> Ram=82, CPU integer=199, CPU float=16, 2D graphics=237, 3D graphics=42, DB I/O=60 Total Score=636

http://www.mediafire.com/?utdhzq2x7abtq6v

stevemp
[Miscellaneous Android Development] surfer63:
I have been trying very hard this afternoon and for some reason what worked on Monday/Tuesday (pm install ..) now bricks my tablet time and again, even though every apk installs fine from a terminal, because that's what I did this afternoon to check why my tablet bricks. All apks install fine from the terminal but not from the boot script anymore :confused:

Maybe the combination or sequence?

I will now starting to check the logcat to see what happens.

All in all: this pm install thing during boot is more tricky then I expected (or I do something completely wrong now but simply don't see it yet).

---------- Post added at 09:08 PM ---------- Previous post was at 08:47 PM ----------

Very nice work. The only thing I don't understand is the necessity of the "01_SuperUserPermissions.sh" script. I already set the 06775 attributes just before creating the cramfs disk image, like.

sudo chmod 6775 newsystem/bin/su
sudo chmod 6775 newsystem/bin/sh
sudo chmod 6775 newsystem/bin/toolbox
sudo chmod 6775 newsystem/bin/busybox
<snip>
sudo mkcramfs newsystem system-temp.img
sudo rkcrc system-temp.img system.img

Do you work on windows?

The script will only work if you have a writable /system, e.g. with aufs.ko or with an ext3/ext4 /system.

---------- Post added at 09:11 PM ---------- Previous post was at 09:08 PM ----------

You could change the if [] / fi statements with case/esac statements.

Recently read something about it in this thread if I remember well.;)
[Miscellaneous Android Development] JDfense:
7htv2_froyo.19_normal.img modified to run on Next3. Very nice Froyo by surfer63.

LinPack 1.2.8> 5.68

AnTuTu 2.54> Ram=82, CPU integer=199, CPU float=16, 2D graphics=237, 3D graphics=42, DB I/O=60 Total Score=636

@steveamp

you mean the screen works now on our 8,4'' tablet. Let me see...:)

636 total score, I will get a nervous breakdown. And btw I test the next 3 kernel on odys genesis. How bad could that be. Hopefully TScalibration helps.

It works, but not very responsive like darwin froyo. I have to take better the genesis kernel. Special thanks for the zeam launcher. I'm missing complete gsync. Okay fine, that is a modding job for tomorrow.

Thanks steve.
[Miscellaneous Android Development] heart_crafter:
you can always get the latest busybox.. can't you?
[Miscellaneous Android Development] heart_crafter:
Thanks

Yes i only use windows... so i don't set permissions beforehand :D plus this will be helpfull(i think) if you update su again from market.

I use aufs... i like full system rights :D i would make root writable if i could... :P

let me know if someone figures out what do we need to run the "chownto" command :P
[Miscellaneous Android Development] stevemp:
busybox

Just replacing busybox breaks all the links to it, just gave up on that rom. Some of these roms are messed up anyway. One has three different busyboxs in it. :eek:

stevemp
[Miscellaneous Android Development] heart_crafter:
last i was woking on this couple weeks ago... http://www.sendspace.com/file/j9l280

JDs rom..
[Miscellaneous Android Development] surfer63:
Can you explain what you mean. If the busybox binary is exactly called (named) the same like the previous then the symlinks should remain working, but note that linux/android is case sensitive.

some are messed up indeed. However, if you check the init.rk28board.rc (or init.rc), you see as one of the first lines the PATH statement a line like

export PATH /sbin:/system/sbin:/system/bin:/system/xbin

The PATH is followed from the first path statement, so the first busybox in the PATH is always the one that get's started (same as on windows). busybox binaries "later" in the PATH, or not at all in the PATH, are never started unless specifically called for with a complete path statement like /bin/some_weird_path/busybox.

So don't worry about the other busyboxes. For your scripts only the first is important. You'd better leave the others in in case the rom itself somehow uses one of the others.

---------- Post added at 10:50 PM ---------- Previous post was at 10:39 PM ----------

:confused:

You already use the chown command in your 02_InstallFromSD.sh and 02_Install.sh. Can you elaborate on your question? I don't understand it (and the chwonto command doesn't exist).
[Miscellaneous Android Development] heart_crafter:
some of my scripts with sdcard directory doesnt work on the rom i just posted cuz sd card isnt loaded when the scripts runs...

they work fine on gb...

Sent from doubleshot.
[Miscellaneous Android Development] heart_crafter:
chownto not busybox chown

edit:

chownto is a command that copies permissions from one file to another

ok i forgot its a toolbox command on my phone...

Sent from doubleshot.
[Miscellaneous Android Development] surfer63:
Paths on froyo are mostly different from gingerbread.

/mnt/sdcard/external_sd is mostly symlinked to /sdcard on froyo

and /mnt/scard is mostly symlinked to /flash on froyo (see also the init.rk28board.rc).

On Cyanogenmod it is different but Daremos kept the froyo paths in his gingerbread daremos roms.

When you want to run the scripts from boot from an sdcard you need to do something else. The sdcard is only mounted at the very last moment by the Gui, e.g. after you boot scripts have run.

In one of my boot scripts I have the following to copy scripts to sdcard but you can use the same procedure to mount and run the scripts from sdcard.

# Copy scripts to sdcard
# sdcard is mounted at the very latest when the gui is already running. That's too late for my script
# so create temp sdcard folder, mount sdcard, do the copy work and then unmount
mkdir /data/tmpsdcard
vfat_options="rw,dirsync,nosuid,nodev,noexec,uid=1000,gid=1000,fmask=0111,dmask=0000,shortname=mixed,utf8"

mount -t vfat -o $vfat_options /dev/block/vold/179:1 /data/tmpsdcard

# Copy gscript scripts to correct position
cp -r /system/extra_stuff/gscript /data/tmpsdcard

# now unmount and remove temp folder
umount /data/tmpsdcard
rmdir /data/tmpsdcard
### End of sdcard mount/copy/umount part ####

The line "/dev/block/vold/179:1" can differ in your case, but I don't think so as you also have an RK2818 all running the same kernel (more or less).

You can check that by simply typing "mount" in a terminal and find the line that mentions /mnt/sdcard/external_sd. mount without options displays all mounted file systems.

---------- Post added at 11:18 PM ---------- Previous post was at 11:14 PM ----------

OK, now I understand. On unix/linux that is

chmod --reference <reference-file> <target-file>

EDIT: and when copying files on unix/linux/android use

cp --preserve <source files> <target>
[Miscellaneous Android Development] stevemp:
path

export PATH /sbin:/system/sbin:/system/bin:/system/xbin

The busybox that I wanted to use is in /system/xbin and the old one is in sbin. I was being lazy and tried doing it in windows and broke the links. One of these days I'm dumping windows completely. I use Xubuntu in vmware player which is fine for a while, then Windows quits working and I have to reboot. When building a rom I do everything in Linux except flash the img and I could use rkflashtool to do that.

stevemp
[Miscellaneous Android Development] surfer63:
Mac OS X is my main system since 2007. My server runs Ubuntu, my old laptop runs Lubuntu. Using linux since 1993. My children run windows. (You can't be perfect in all aspects :D)
[Miscellaneous Android Development] heart_crafter:
use vmbox by oracle... u can use same virtualhd that u use in vmplayer... i think vmbox is much stable...

when you link in windows put full paths... for example

if you want a sh symlink in xbin... make a new link and add full path /system/bin/sh

if u just do /bin/sh it looks like it is right but its not...

see my last rom...

Sent from doubleshot.
[Miscellaneous Android Development] heart_crafter:
o wow it was that easy :O grr

i hope chmod copies the ownership also...

thanksss

Sent from doubleshot.

Sent from doubleshot.
[Miscellaneous Android Development] stevemp:
Thanks for the info about vmbox, but it's worse than just Linux. Notepad++, usb, adb, seems like the drivers for my motherboard/cpu/gpu have bugs. :( I have one of the new amd/gpu low power chips, 75 watts total. Low power usage but drivers are not stable yet. Maybe it gets sorted out when the drivers get more mature. :)

http://en.wikipedia.org/wiki/Chmod chmod [''references''][''operator''][''modes''] ''file1''

stevemp
[Miscellaneous Android Development] heart_crafter:
market is now "play store" :S

Sent from doubleshot.
[Miscellaneous Android Development] stevemp:
Twk pm install script

#!/system/bin/busybox sh

# Install any addon .apks that need "real" installation.

#

# Todo: Automatically find and loop through any .apks rather than

# hard coded like now. Also, investigate if we can make "pm" terminate

# gracefully rather than just forking and waiting "for a while" :p

#

# /Twk

#

if [ -f /system/.twk ]; then

if [ -f /system/twkdata/Betterterm.apk ]; then

/system/bin/busybox sleep 30

/system/bin/busybox echo "`/system/bin/busybox date` Beginning apk installation..." > /data/twk-install.log

while [ ! -f /data/app/com.magicandroidapps.betterterm.apk ]

do

/system/bin/busybox sh -c "/system/bin/pm install /system/twkdata/Betterterm.apk" >> /data/twk-install.log 2>&1 &

/sbin/busybox sleep 20

done

/sbin/busybox sleep 20

/sbin/busybox mount -o "rw,errors=continue,data=ordered,noatime,remount" /dev/block/mtdblock4 /system

rm /system/twkdata/Betterterm.apk

/sbin/busybox mount -o "ro,remount" /dev/block/mtdblock4 /system

fi

/sbin/busybox echo "`/system/bin/busybox date` Installation complete," >> /data/twk-install.log

fi

Twk copies system to an ext3 partition, so may not work on aufs.

twk.m7-series.007-beta4-jit-N3.img> http://www.mediafire.com/?z5j39n41gvv79uz

Modified to work on Next3.

stevemp
[Miscellaneous Android Development] surfer63:
The system copying of ro cramfs to ext3 rw system is an old trick which I used some roms ago and I think you got it also in your roms. I still don't see an added benefit for a completely rw system partition. It also brings security issues and reflashing issues if you use the RK2818 reflash method (which reminds of the gingerbread recovery.img. I'm getting old I think)

I'm impressed though the way twk tweaked the rom. He does a lot of extra things in the init.rk28board.rc. Really something to use from now on (proudly stolen elsewhere as the saying goes).

His standard unix redirecting / error catching for the pm install is something I should have used myself:o

Thanks for sharing this with us!
[Miscellaneous Android Development] bobsoe:
market bewilderment

so, my NEXT3 adventures continue.

I've got another NEXT 3 that I've flashed for a friend. I get the gmail account associated and then I run the market and that's were my troubles begin.

The market will work on all the roms I've tested, my problem is that he market selection is nil.:confused::confused::confused:

The free games section show 2 games for download and that's it.

Is there something I'm missing here?
[Miscellaneous Android Development] DaremoS:
sysinit

I was checking if this Supercharger really work as it should, and I found out that we have had a problem in my rom from some time ago.

Probably is the reason for this disgusting issue of USB Mass Storage screen. BTW the solution provided by surfer63 AKA hvdwolf (froyo adbd) still have such problem.

In system/bin in some moment disappear the module sysinit. So the following instruction is never executed

# Run sysinit
exec /system/bin/sysinit

class_start default

:o:o:o:o:o

Maybe that's why is needed to execute a reboot to activate above mentioned screen.

Let me know if the issue is solved adding enclosed file in mentioned directory.

God bless you all (Pope Marcial maciel)
[Miscellaneous Android Development] heart_crafter:
can anyone make "Draw Something apk" work on anyof the roms :( :P

I get an error... does not support SW rendering or HW :(...
[Miscellaneous Android Development] JDfense:
I don't know which roms you mean, I have seen this problem sometimes.

1. update some apk over the market except fileexpert app or

2. delete data cash from framework and stop file, then delete cash from market an stop too,

finally reboot.
[Miscellaneous Android Development] surfer63:
Hmm, Are you sure? In all my Archos roms starting from eclair, but also froyo and the gingerbread/cyanogenmods, this sysinit binary is missing.What's more: my init.rk28board.rc doesn't contain this command set and I found out that not one single Archos/Arnova rom (eclair/froyo/GB) contained this binary or command set in the init.rk28board.rc. USB mass storage on the other hand always worked in eclair and froyo.

My trick to use the froyo adbd in (CM7) GB always works for me: no reboots or whatever necessary. Did you use the adbd from one of your own tablet froyos?

Never the less: If your solution works for others than that's nice.:)
[Miscellaneous Android Development] Jostey:
I'm guilty of that has disappeared sysint (I removed it) haha ...

I removed it because I did not see utility, now has utility for new scripts.

A greeting!
[Miscellaneous Android Development] surfer63:
Yes, you are missing something here.

Use the by now world known market fix:

[1] start the market and wait till everything is synched. (wait for the sync icon to disappear in the status bar).

[2] go to settings->applications.

[3] Clear the cache of the Market, not the data! Then stop the Market.

[4] Clear the data of the Google Framework Services. Then stop the Google Framework Services.

[5] reboot immediately and go to Market, it should now fully work.

When you are too fast (not synced completely) you sometimes have to repeat step 3,4,5.

---------- Post added at 02:18 PM ---------- Previous post was at 02:14 PM ----------

No it doesn't. chmod changes the file/folder attributes.

chown changes the owner:group attributes.
[Miscellaneous Android Development] DaremoS:
I'm not sure :) there is such instruction in init.rc so I insert back the binary (from last fun_image).

BTW such instruction is present in your rom: I've been using it for comparisons in my 7" RK2818.

I load your rom in the tablet and it work fine... but... the damn issue of elusive USB Mass Storage is still present.

Was very nice to find your rom for comparisons in my 7" tablet. ;)
[Miscellaneous Android Development] DaremoS:
It will not run in our devices (like many other apps) mainly because it needs some app called Marmalade.

Surely Marmalade was written for armv7... we have armv5.xx or armv6

It's a matter of generations of processors

That's also the reason why I've blocked thousands times my tablet trying HC or ICS

:D:D:D:D:D:D:D:D:D:D:D:D:D
[Miscellaneous Android Development] heart_crafter:
very sado :( hehe

i tried to make hc lol but i had no luck booting it up.. i had no idea what i was doing...

anywayz thanks for the info

Sent from doubleshot.
[Miscellaneous Android Development] JDfense:
@the codemakers,

have you got a working result for the forced app installation from ROM?

I'm not shure how your discussion ended.

I like to collect needful thing in thread.:rolleyes:

JDfense:)
[Miscellaneous Android Development] surfer63:
Little over two weeks ago I promised to write something about "easy flashing your RK2818 tablet and what does this recovery image actually do".

So I finally did this morning: Check my signature or simply click RK2818: The flashing mechanism and recovery images.

If relevant please let me know your comments/remarks/found typos.
[Miscellaneous Android Development] JDfense:
@surfer63

I took it to post 3 as basics.

The forced app installation seems to be a hard trick and different for every rom. Perhaps the market is the non elegant solution - so far.:o

Off topic:

Right now I'm on ICS with my hannspad. Fast and with a very smooth handling, only 108 MB rom, but I still come back to our rk2818 cheapos.:)
[Miscellaneous Android Development] stevemp:
surfer63

Need to check if systemui is up.

up () {

busybox ps | busybox grep "$@" | busybox grep -v "$( echo busybox grep $@ )"

}

if up systemui; then

Something like that, not good at writing scripts.

First-Boot App Install> http://xdaforums.com/showpost.php?p=21310963&postcount=1

stevemp
[Miscellaneous Android Development] stevemp:
UiForUpdate

If only I hadn't deleted UiForUpdate.apk from all of my roms. :o:(

stevemp
[Miscellaneous Android Development] heart_crafter:
also setting up wrong data ownership/permission can freeze the system also and not let you boot... :D

im out now :P
[Miscellaneous Android Development] heart_crafter:
need translation :P http://wenku.baidu.com/view/2d33b4c5bb4cf7ec4afed007.html
[Miscellaneous Android Development] surfer63:
I have a question about these Supercharger settings. I finally did some analysis of this (super complex) supercharger script and I do seem some advantages, but zeppelinrox make it sound as if it's world changing and has a post with all the whistles and bells you can imagine. As far as I can see you can, depending on your use of the tablet, gain "some" performance on "some" things you do.

And especially @Stevemp and @JDfense: Did you test some of his settings and did you do some performance evaluations?

My evaluation (for what its worth):

- On normal day to day work: some e-reading, some browsing, some "one application at a time" work it doesn't matter at all which settings you use.

- In situations where you have one foreground app running and one running in the background (like a music player), you can by tweaking the "perceptible_app_mem_adj" prevent an active background app from being swapped out at the cost of others.

- In case you want to game on your RK2818 (who actually would want this), you can really adjust the settings, do the game, and set it back to normal settings. This is the only situation where I can imagine that tweaking your RK2818 to the optimal game settings would result in improved game play for example in Angry Birds, which is dead slow with normal settings. I already did some tweaking there in the past and that really helps, but as I don't game I don't want to profile a complete tablet only for a game.

Why am I asking: I thought this supercharger script would be useful also based on the reactions, so I wanted to create a few scripts that could be called from GScript(Lite) or ScritpManager, for example for "gamers". A "default" script would be called from init.rk28board.rc from /data (for example). By selecting one of the other "setting scripts" from GScript(Lite) the default script would be overwritten, the tablet rebooted, and voila: you have a differently acting tablet. When done you execute the "default" script that activates the default boot script, your tablet gets rebooted and you have a normal acting tablet.

As you can deduct from above comment: I have my doubts about this supercharger script.

Please share you experience with me in this.
[Miscellaneous Android Development] stevemp:
make menuconfig

http://marakana.com/forums/android/examples/111.html

Android Kernel Configure, Compile & Install> http://www.youtube.com/watch?v=IV4jhXWc7AE&feature=related

stevemp
[Miscellaneous Android Development] JDfense:
Have you tried google chrome as translater?
[Miscellaneous Android Development] stevemp:
SuperCharger helps people who know nothing about tweaking settings, since then as I learn more not using it. nauj666 has a much better script for our tablets.

stevemp
[Miscellaneous Android Development] JDfense:
@surfer63,

for the details of the zeppelin improvement you have to ask Steve the Archive. He implemented the code. If you ask about performance, I would say 30-50 % with Daremos third edition, but that is only a feeling. It gives the rom a good boost. In Daremos second edition I found that there is only a small effect, but the second edition is faster in my opinion.

Could a benchmark prove the more speed?

I like the more responsive launcher with the zeppelin extra speed and he has really a good marketing.:p:D
[Miscellaneous Android Development] heart_crafter:
i usually use IE Aceleator... but it didnt work cuz the doc is embeded... :P