yashsingh1/xdaforums huggingface dataset:
[Miscellaneous Android Development] surfer63:
What he does in his script is "if pg systemui". He feeds systemui as a parameter in the function pg. If pg has no error, it means that the pg function has found the process systemui.

The action "busybox ps | busybox grep "$@"" is therefore actually "busybox ps | busybox grep systemui".

ps shows all system processes. grep is a "search binary". The output of ps is led into grep and grep searches for the search phrase systemui.

If it has found it, the systemui is obviously running.

Now when doing a "ps | grep <whatever>", it shows the real process <whatever> (if running) and the process "grep <whatever>. To get rid of the second one "grep <whatever>" the command does another grep on the first one.

To display the "active part" of the first script:

while : ; do
if pg systemui; then
$BB sleep 10
sleeperlog "system loaded."
log -p i -t boot "Executing $FBSCR script"
sleeperlog "Running FirstBoot init"
$FBSCR

break
fi
sleeperlog "WAITING FOR SYSTEM SERVICE: sleeping for $SLEEP s..."
$BB sleep $SLEEP

done

It's an never ending loop (tricky).

If the function pg with parameter systemui doesn't generate an error, it calls the install script and does it work and "break"s out of the while loop. If it generates an error "if=false" it sleeps for 3 seconds and starts the while loop again.

As such this script is fine for direct use.

BUT: I tried this script and commands more or less in the terminal and I can't find a process "systemui" or anything that is like it. I also used "grep -i" systemui, as the -i is for case-insensitive search so finding both uppercase and lowercase combinations.

Then I did a "ps | more" which displays all process page by page (click more to continue): Nothing even close to systemui or SystemUi or whatever.

So if I run this script on my RK2818 it will indeed stay in the "never ending" loop as it will never find the phrase systemui.

Processes that do run are com.android.settings, android.process.media and /system/bin/servicemanager.

As far as I know these processes are running after system-server which starts "everything".

I'm not sure so I will test myself. I wanted already to give you the information to play with.

---------- Post added at 08:06 PM ---------- Previous post was at 07:57 PM ----------

A benchmark wouldn't help. A benchmark is always running as a foreground process and I assume everyone would kill as many apps as possible to give the benchmark full focus.

zeppelin's scripts are trying to find a good mix of "complete" multitasking versus focussing on some aspects.

It's indeed what you say: The general resposinsiveness of the tablet should improve selecting the profile of the user you are: a true multitasker, a gamer, a heavy app user, etc.

Note though that a number of settings like the mentioned "perceptible_app_mem" and "perceptible_app_adj" are only valid as of gingerbread with it's much improved memory management.
[Miscellaneous Android Development] JDfense:
@surferwolf,

I like the concept to make different user profiles. Everbody could switch from one profile to another profile.

Btw my darwin froyo from nauj666 has updated to google play store (market 3.47). The performance is not so bad as 3.44 in gingerbread.
[Miscellaneous Android Development] heart_crafter:
who woudnt ;)
[Miscellaneous Android Development] JDfense:
Don't know this app, but install it from the market and then find out.:rolleyes:

If not uninstall the app.:cool:
[Miscellaneous Android Development] Tony66:
I wanted to know whether the German language is contained in the files, eg. in

"JDfense's Darwin froyo Edition for genesis, next3 and pmp3084b"?

Files are multilingual?

Sorry for my english!:rolleyes:

Tony
[Miscellaneous Android Development] stevemp:
There are two versions of Newtuxflashtools, original is german second is english translated I think by perichel.

stevemp
[Miscellaneous Android Development] heart_crafter:
intresting... and sad false positive... what av you use.

Sent from my rockchip device.
[Miscellaneous Android Development] heart_crafter:
if you are talking about the roms... all of them have an option to change locale/language

Sent from my rockchip device.
[Miscellaneous Android Development] Tony66:
yes, that was my question! Thank you

Tony
[Miscellaneous Android Development] stevemp:
Next2

Next2 Specification:

Processor Type:2808 Display Resolution:800x480 Android Version:1.5 Donut

There has been at least 5 mainboard revisions for RK 2808 devices.

You will need tools to install. http://www.mediafire.com/?f767thlaw1txymm

Try this one first.

special thanks to delimeat52 NEXTBOOK 2 ROM ONLY http://www.mediafire.com/?rd5zoladeyf4tlv

Try looking here, I don't have one so cannot test.

http://www.androidtablets.net/forum/rockchip-rk2808-tablets/

http://forum.archosfans.com/viewtopic.php?f=81&t=49470

Info about Next2

http://www.android-tablet-comparison-world.com/tablets/Nextbook-Next2.php

Review of Next2

http://www.the-digital-reader.com/2010/12/13/review-next2-e-reader/

If anybody has RK 2808 tablet, maybe they can help.

stevemp
[Miscellaneous Android Development] JDfense:
Hallo Tony66,

das froyo enthält auch das deutsche Paket. Das ist übrigens fast immer so. Nur bei einigen chinesischen roms, kann es sein, dass nur chinesisch und englisch installiert sind.

Ob alle Anwendungen komplett in Deutsch sind, habe ich nicht so genau erinnerlich.

JDfense
[Miscellaneous Android Development] Tony66:
@JDfense

Danke!!!

Tony
[Miscellaneous Android Development] stevemp:
RK2818 tablets

2818 info: http://en.wikipedia.org/wiki/Rockchip#Rockchip_2818

Next3 info: http://www.android-tablet-comparison-world.com/tablets/Nextbook-Next3.php

Next3 is RK2818 tablet, they have wrong info on www.android-tablet-comparison-world.com

Anyone have information on their tablets, curious as to why kernels are different.

stevemp
[Miscellaneous Android Development] JDfense:
Hey Steve the archive,

you have saved the original next2? I heard the rom was broken. When the kernel is okay, someone could made more roms with our system and boot files from the other roms.

Here comes my offer to next 2 tablet users. If stock rom works, than I can brew another rom. At first I would take the voltaire system, but I need tester first.

Steve, I take your information and the stock rom in our thread collection?

Next 3 is a rk2808, too. :confused:This is a mistake in the description, maybe. I thougt it is a rk2818, too.
[Miscellaneous Android Development] stevemp:
I just have eclair delimeat52 update.img and froyo birdiebnl A7HTV2_22.11 update.img. I too have no way of testing, maybe if tester report back you can make a good rom for next2.

---------- Post added at 04:36 PM ---------- Previous post was at 04:31 PM ----------

Wrong info on www.android-tablet-comparison-world.com, sorry bout that.:o
[Miscellaneous Android Development] stevemp:
root read write

Bloated but can be cooked into good rom. What I used to build my roms. Have fun.:D

removed

stevemp :cool:
[Miscellaneous Android Development] stevemp:
Next2

rk2808 Next2 Froyo http://www.mediafire.com/?3kdpaa27hw00mr5

If delimeat52 rom worked for you, try this one.

stevemp
[Miscellaneous Android Development] upNsmokeAllDay:
Do any of these next2 froyo roms have working flash?

Swyped from my Samsung Galaxy S Captivate running Saurom Projekt Rom using XDA Premium.
[Miscellaneous Android Development] BigSplit:
Can anyone tell me why half of the Ebook reader apps available fail to install on every ROM for Next3 that is listed here?
[Miscellaneous Android Development] stevemp:
Which Ebook reader?

stevemp

---------- Post added at 11:25 PM ---------- Previous post was at 11:23 PM ----------

Flash does not work on Rockchip tablets.

stevemp
[Miscellaneous Android Development] BigSplit:
Most I try, Aldiko, Laputa and etc.

Edit:

I'm getting a 'Application Not Installed' when I install them.
[Miscellaneous Android Development] heart_crafter:
Try removing the sd card and install...

or plugin the usb to pc... and mount sdcard to pc... then install

or do: adb install -f appfilename.apk
[Miscellaneous Android Development] stevemp:
Aldiko has bug about the sdcard mount on some roms, remove sdcard when installing.

Did you try the one I uploaded? It has Aldiko in it. removed

stevemp
[Miscellaneous Android Development] stevemp:
speed

Performance boost depends on the launcher, plus Loopy Smoothness, depends on how many apps are locked in memory. Look at 97loopy in system/bin to see. I think a different launcher was used in each version, there are 4 or 5 versions of ICS launcher. Some have more settings and wallpapers that slow it down. I was just learning about building roms and could do a much better job now.

stevmp
[Miscellaneous Android Development] surfer63:
Yes, that's the idea. I already had a very basic ScriptManager script but ScriptManager doesn't run in my froyo, only in the Gingerbread roms. ScriptManager can be used interactively. My script had some inputdialogs and spinnerdialogs but for the time being it's a "stalled prject". ScriptManager would allow for one script with multiple profile options.

That was another script I'm after. I removed the MarketUpdater.apk from my roms so market stays at 2.36. MarketUpdater.apk needs to be in /system/app. With a aufs.ko writable /system we could either copy (hopefully) or install the MarketUpdater.apk inside /system/app. As the script would run from GScript(Lite) or (hopefully) ScriptManager it could use the "pm install MarketUpdater.apk /system/app/MarketUpdater.apk" as the ui is running followed by a scripted reboot. In that case the user can choose for him/her self. :cool:

Another project I want to dive into but did not find the time yet;).

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

On second (third, fourth, ..) thought: The calibration service (if you have it in your rom) is always started on boot and only runs after the (g)ui is started. That could be a good checkpoint as well.
[Miscellaneous Android Development] stevemp:
logcat

16:52:53.618 Debug installd 721 DexInv: --- BEGIN '/system/app/Settings.apk' ---

This is the point where installd begins, good place to check if system is up.

Or check in /data/data/ for com.android.packageinstaller, if it's there system should be running.

stevemp
[Miscellaneous Android Development] stratus2772:
That's a nice ROM, thank you!

Finally my PMP3084 does 2.3 with calibrated screen, the only reason I haven't used 2.3 before.
[Miscellaneous Android Development] zeppelinrox:
if [ "`pgrep systemui`" ]; then echo "systemui is running"; fi

So you must know that the script you attached doesn't loop.

BulletProofing apps does tho.

Something like PowerShift Scripts to quickly switch between minfree settings? ;)
[Miscellaneous Android Development] stevemp:
rk2818 Froyo does not have a SystemUI.apk, maybe that's the reason scripts aren't working. SuperCharger has never worked on Froyo for me, nauj666 script is for a Froyo rom is the reason I said it was better. SuperCharger with Loopy Smoothness works really well on Gingerbread roms the way I use them. I went for the middle settings, not the aggressive one, maybe I should try running it a few times and see what happens. :D

stevemp
[Miscellaneous Android Development] surfer63:
That works very well. I simply copied the MarketUpdater.apk via a script to /system/app and rebooted the tablet (but you could do the same from a rooted file manager of course). About 1-2 hours later (I wasn't paying attention), I had the new market now called Google Play Store V3.4.7.

It's not as fast as the 2.3.6 but it's much smoother than the 3.0.x and 3.1.y series.
[Miscellaneous Android Development] surfer63:
Installing Apps during boot

I finally got it working. The creation of the /data/data/com.android.packageinstaller is still too early, so I simply checked for /data/system/packages.xml. That file (together with packages.list) is created during boot when scanning for installed apps by the package manager (or something alike). (These files are of course updated when installing an apk during runtime.)

Please find attached my (complete) script. I tried to make the comments as "self explanatory" as possible. Copy&paste what you need.

Note (and tip): As the install.sh inside the zip is a unix file with unix based line ends, you can't open it in notepad, but you need to open it in wordpad or better (that is: for those on windows :eek:)

When you go back to your linux (virtual) box, you should do a "dos2unix <file>" command which will change the by windows introduced carriage returns/line breaks back to unix linefeeds. Android (or any unix/linux) will normally handle dos linebreaks correctly, but it's better to make it completely unix.
[Miscellaneous Android Development] stevemp:
CyanogenMod

CyanogenMod is adding three new build boxes, 12-core Xeon machines with 32GB of RAM, to their Jenkins build system. http://jenkins.cyanogenmod.com/ I am really jealous now. :p

stevemp
[Miscellaneous Android Development] stevemp:
ScriptManager..1.8.2

ScriptManager..1.8.2 works in Froyo and Notepad++ (handles Unix files) works in windows, plus you can open two files and compare them. :)

Packed up some apps, wallpapers, superuser, busybox-1.19.4, RKCooking for people to use. http://www.mediafire.com/?r2a213bo5tjip9q

stevemp
[Miscellaneous Android Development] surfer63:
Hmmm, this version doesn't run either in my rom. As all these versions are the "ads" versions I thought at first I that it might be due to my hosts file (/etc/hosts) which blocks 99,99% of ads. Probably that is why ScriptManager doesn't run: It waits unendlessly for an ad to show up.

That's not correct though because when I switch of WiFi it still doesn't work.

:confused::confused:
[Miscellaneous Android Development] stevemp:
Froyo

Strange Days :confused:, Aldiko and Mobo Player don't like my Froyo and Adobe Reader doesn't like JDFense's Froyo. Plus SuperCharger doesn't recognize my su and busybox. :(

stevemp
[Miscellaneous Android Development] JDfense:
The market is the last exit for all unforceable apps.;):D

@stevemp and surferwolf

Your work is released in post 3.:)

A lot of things to learn for me.:cool:

Is there someone who knows where our Recognized Developer heart_attack is hanging around?

http://www.youtube.com/watch?v=YYjBQKIOb-w&feature=related
[Miscellaneous Android Development] heart_crafter:
Im alwayz readin... I did post some thing couple dayz ago but no one seems to be interested lol or what I posted was something everyone knows already... I hope u were asking about me lol
[Miscellaneous Android Development] zeppelinrox:
I made SuperCharger on froyo first :D

And nope of course froyo has no systemui.

Any android process will do though ie. if [ "`pgrep android`" ]; then blah; fi
[Miscellaneous Android Development] JDfense:
Congratulations heart_crafter,

I miss your your big shot, because I'm the copy and paste cook. Sorry. Let me see your code, maybe with some explanations in full english, so that I and some interested others can follow your good work in detail.

Well done, captain.:cool:

JDFense:)
[Miscellaneous Android Development] stevemp:
Froyo

I still can't get SuperCharger to work on my Froyo. :eek:

When I type busybox at prompt> BusyBox v1.19.4-wraithdu blah.

When I type id> uid=0(root)gid=0(root)

SuperCharger tells me I have wrong busybox and am not root. :confused:

Any ideas why it's not working?

stevemp

---------- Post added at 10:42 PM ---------- Previous post was at 10:22 PM ----------

I am like you, more cut and paste than script writer. Most of the time I Google commands in scripts to see what they do. :D My Mother had a quote on the refrigerator, "Better to remain silent and be thought a fool, than to speak up and remove all doubt." :D

stevemp
[Miscellaneous Android Development] zeppelinrox:
Using RC6.9?
[Miscellaneous Android Development] stevemp:
Yes, latest everything, updated last night.

Problem seems to be here.

+ [ ! -f /system/xbin/busybox ]

[: not found

+ busybox

+ + head -n 1

head: not found

awk {print $1}

awk: not found

+ test1=

stevemp
[Miscellaneous Android Development] zeppelinrox:
Oh just use wraithdu's busybox then (in my OP)

Seems that too many 1.19.4 builds are a tad crippled.

It's great how they brag about it being a small size... not so great that they leave out **** you need.

Seriously, how the HELL can you leave out AWK? What the AWK indeed.
[Miscellaneous Android Development] heart_crafter:
u need to install busybox with all its symlinks...

square brackets used in "if" and other commands needs them...

in android terminal try "busybox --install"

Sent from doubleshot.
[Miscellaneous Android Development] heart_crafter:
lol i have alwayz know the part not in [] "Better to remain silent [and be thought a fool], than to speak up [and remove all doubt.]"

lol i guess it's explained a bit more :D
[Miscellaneous Android Development] stevemp:
oops

My bad! :o I didn't use your install script for busybox. :o

Works great now! :D

Thanks for your help. It makes a big difference in the speed of the launcher!

stevemp

---------- Post added at 11:11 AM ---------- Previous post was at 11:06 AM ----------

This is a stock rom, no init.d or xbin, learning how to build from stock.

/system/xbin/busybox --install -s /system/xbin worked for me, still not sure if init.d is working. Do you just make a directory or is there more to it?

stevemp
[Miscellaneous Android Development] DaremoS:
Sorry if I'm not in scripts area :o

But how I check if SuperCharger is running in my tablet?

I've installed all from Stevemp rom (anyway I've noticed that this script is changing from time to time). It's a project in evolution? beta?

What is the relation of install and 97loopy with SuperCharger?

Guys, remember that we want to solve basic problems of users. Maybe lots of user aren't participating in the forum because its has turned into a script oriented forum which is very hard to follow (at least it's so for me)

It would be great to have such excellent tool in our tablets, as seems to be this SuperCharger script, but give simple instructions to implement it, or include it a rom that we can cut and paste (Especially for me that I'm a simple cook)

God is inside of each human being. :rolleyes:
[Miscellaneous Android Development] heart_crafter:
im not sure what you are asking about...

making xbin dir or init.d dir ?

to make init.d work you need either

service sysinit /system/bin/logwrapper /system/bin/busybox run-parts /system/etc/init.d
disabled
oneshot

in boot.img/init*.rc

or

#!/system/bin/busybox sh
echo "===== In init.sh ====="
echo "====== adobe drm init check ======"
adobedevchk

echo "====== mount system as rw ======"
chown -R root root /bin
busybox mkdir -p /data/sysrw
busybox mount -t aufs -o br:/data/sysrw:/system=ro none /system

log -p I -t boot "For any scripts to run from /ect/init.d folder..."
if [ -d /etc/init.d ];then
for i in /etc/init.d/* ; do
echo running $i
busybox chmod +x $i
$i
done
fi
log -p I -t boot "Done executing sripts from /ect/init.d folder..."

in boot.img/init.sh file

edit: if you use this then make sure you have a symlink system.img/system/etc in boot.img/etc
[Miscellaneous Android Development] surfer63:
That's exactly what I want to do. Either create one script for ScriptManger (with gui pull down spinnerdialog) or a set of separate scripts for GScript(Lite). It should be a grab&go zip for builders, and a user friendly interface for users.

---------- Post added at 07:40 PM ---------- Previous post was at 06:58 PM ----------

In your init.sh script you use

if [ -d /etc/init.d ];then
for i in /etc/init.d/* ; do
echo running $i
busybox chmod +x $i
$i
done
fi

As /etc/init.d is not in the PATH I'm afraid the scripts can't be run. Either you need to add in the top of your script something like "export PATH /etc/init.d:$PATH" or you need to use, instead of just $i, /etc/init.d/$i or ./$i

Unix is not like windows that it find "something" automatically if you are in the same folder.
[Miscellaneous Android Development] heart_crafter:
i forgot to mention to make a symlink system.img/system/etc in boot.img/etc

edit: i have used this code and it worked...
[Miscellaneous Android Development] surfer63:
I'm very sorry. My fault :o

You use "for i in /etc/init.d/* ; do", so $i will contain "/etc/init.d/<somescript.sh>" which means that you have the complete path.

That's exactly why I used (some time ago)

for i in /system/HvdWdata/apkinstall/*.apk;
do
apkonly=`busybox basename $i`

to get rid of the path.

:o
[Miscellaneous Android Development] heart_crafter:
no prob :D

i used basename but then i thought its better to have full paths since i was just debugging and playing around...had no intentions to release any of this code like this...
[Miscellaneous Android Development] stevemp:
/etc/init.d

If you have a working /etc/init.d then put 97loopy_smoothness_tweak in it and it runs at boot, along with whatever scripts are there. 97loopy_smoothness_tweak keeps systemui and launcher (plus other apps) in memory so there is no lag when using those apps (the apps are hard coded in the script so you must edit yourself, if you change launcher or apps it no longer works). SuperCharger needs to be run on your tablet because it makes a folder on the sdcard for scripts and puts a script in /etc/init.d to run at boot. This is some of the changes it made on your rom.

# V6 SuperCharger, OOM Grouping & Priority Fixes created by zeppelinrox.
#
# DO NOT DELETE COMMENTS. DELETING COMMENTS WILL BREAK UNINSTALL ROUTINE!
#
# BEGIN OOM_MEM_Settings
ro.FOREGROUND_APP_MEM=1536
ro.VISIBLE_APP_MEM=2048
ro.PERCEPTIBLE_APP_MEM=1024
ro.HEAVY_WEIGHT_APP_MEM=6656
ro.SECONDARY_SERVER_MEM=6656
ro.BACKUP_APP_MEM=7168
ro.HOME_APP_MEM=1024
ro.HIDDEN_APP_MEM=7168
ro.EMPTY_APP_MEM=8192
# END OOM_MEM_Settings
# BEGIN OOM_ADJ_Settings
ro.FOREGROUND_APP_ADJ=0
ro.VISIBLE_APP_ADJ=4
ro.PERCEPTIBLE_APP_ADJ=2
ro.HEAVY_WEIGHT_APP_ADJ=5
ro.SECONDARY_SERVER_ADJ=7
ro.BACKUP_APP_ADJ=6
ro.HOME_APP_ADJ=1
ro.HIDDEN_APP_MIN_ADJ=12
ro.EMPTY_APP_ADJ=15
# END OOM_ADJ_Settings
# Miscellaneous Tweaks!
persist.sys.purgeable_assets=1
wifi.supplicant_scan_interval=180
windowsmgr.max_events_per_sec=200
pm.sleep_mode=1
# 3G TurboCharger Enhancment!
net.tcp.buffersize.default=6144,87380,1048576,6144,87380,1048576
net.tcp.buffersize.wifi=87380,1048576,2097152,87380,1048576,2097152
net.tcp.buffersize.lte=87380,524288,1048576,87380,524288,1048576
net.tcp.buffersize.hsdpa=6144,87380,1048576,6144,87380,1048576
net.tcp.buffersize.evdo_b=6144,87380,1048576,6144,87380,1048576
net.tcp.buffersize.umts=6144,87380,1048576,6144,87380,1048576
net.tcp.buffersize.gprs=6144,87380,1048576,6144,87380,1048576
net.tcp.buffersize.edge=6144,87380,524288,6144,16384,262144
net.tcp.buffersize.hspa=6144,87380,524288,6144,16384,262144
# End of V6 SuperCharged Entries.

But you still need to run SuperCharger to see full results.

The new install scripts are because some apps must be installed by Package Manager to work, just copying to /data/app does not work. Some scripts are to change settings rather than modifying apk, you could teach us how to change apk.:D I have read some of your posts on other forums.:)

stevemp
[Miscellaneous Android Development] JDfense:
@the codemarkers,

I like the refreshing discussion about your lines, but I can't follow complete.

Could you explain your results after a discussion, so that the interested visitors(advanced android user) have a chance to understand it.

What I understand is, that we have only a part of zeppelinrox_stuff in our thread roms? This means there is more need for speed to add?:)

Has someone analyzed the nauj666 improvements in his Darwin rom version 4. We have there language problem to ask. Only DaremoS could ask directly without translator.:rolleyes:

@Stevemp,

what do you think about the idea to take the nauj666 extra PS into the last Prestigio 3.04 rom - your favourit froyo? Or we built it in the hvdwolf froyo, the benchmark winner of the first test.;)

Soon rk2818 will be a gamer pad.:eek:

http://www.youtube.com/watch?v=NEh5yS0ZjJE&feature=related