yashsingh1/xdaforums huggingface dataset:
[Gen9 Android Development] momojuro:
Very interesting ! I will play with the Low Memory Killer parameters and some VM settings (dirty_background_ratio & dirty_ratio). I'll let you know. ;)

[MENTION=2268917]hackwerk[/MENTION] I did what you asked me before, I'm sorry for your bootloop by the way.

Edit : After my test about this on my 80S Turbo tablet with different values than the ones suggested by Kernel Adiutor, it works great. I had 624MB of free RAM after the boot process ! I will share it very soon, the script will include an automatic chmod command to give the permissions. Thanks a lot in advance, [MENTION=4544860]osm0sis[/MENTION] & the Franco's Dev Team for all that you've done !
[Gen9 Android Development] momojuro:
Here it is ! I will update have updated the ZIP package of my previous post too. Feedbacks and/or a little thankie (if you want to of course) will be really appreciated.

Changelog :

Added : The new LMK and VM parameters which I mentioned about.

Added : A chmod command which gives automatically the correct permissions for the init.d folder's files.

Added : A mount command which changes automatically too at boot the tablet to RW mode.

Updated : The debugging disable part (LMK debug_level is set to 0).

Updated : The mounting part of the script, I added the /data/system directory in.
[Gen9 Android Development] schwatter:
Thx for adding auto RW :)
[Gen9 Android Development] momojuro:
Hello [MENTION=4636351]Quallenauge[/MENTION],

I wish that you're fine, you have left a big void on our subforum ! I seen on your github's kernel repository that our G9 tablet supports the F2FS filesystem. But can we really use it ? Thanks in advance. :)

By the way guys, please, if you're having a feedback about my latest contributions don't hesitate to share it with me ! That will be helpful.
[Gen9 Android Development] hackwerk:
[MENTION=5670369]BlackGunZ[/MENTION];

I am back from vacation, on which I didnt have to use the tablet a lot, but I did a Qual clean install of his latest version just before leaving. So I am clean / working again now.

Maybe an idea to write a guide/tutorial how to do your build.prop and 99 scripts etc. (complete and simple and universal) which you post with a Show Me button every post you do with 2 extra fields; the 99 and the build lines (first the complete one, then the added ones since last post)?

Isnt it possible to make an APK or zip with install script (sh) to do all? It is too complicated/unsafe/ununiversal now maybe.

Thanks man!
[Gen9 Android Development] momojuro:
When I will have time for, I will do that with screenshots ! No problem at all. :)

Best regards.
[Gen9 Android Development] momojuro:
The guide will be soon posted ! I'm trying to make the steps easy as such as I can, every important one will be joined with a screenshot. :)

Best regards.
[Gen9 Android Development] hackwerk:
Youre the best.

For me personally most steps are clear / doable, but still.

Even better would be a more automatic approach like with an APK / Zip / script (sh), so we can just download (even when it is an update) and run it! :D
[Gen9 Android Development] momojuro:
Thanks ! Don't worry, I understood it. :)

You gave me an idea ! I will join directly the edited files and everyone will be able to do everything easily ! Also, for sure, I will precise how to do that with screenshots and I will tell how to identify each tablet model.

Best regards.
[Gen9 Android Development] momojuro:
Greetings,

I know that I didn't share any announcement about it, but I written a shell script (thanks [MENTION=2268917]hackwerk[/MENTION] for idea) to make the installation process of my previous changes very easy. If it helped you, don't hesitate to share your impressions and/or a little thankie, that will be appreciated ! :)

First, enable the Developer options.

Go to Settings > About phone > Build number and tap on this section 7 times. After two taps, a small pop up notification should appear saying "you are now X steps away from being a developer" with a number that counts down with every additional tap. After the 7th tap, the Developer options will be unlocked and available.

Then, enable the Terminal app like the screenshot below :

After that, download the necessary ZIP package regardless your tablet model (all of them are attached) and extract everything in your tablet storage by connecting it via USB on your computer.

Finally, open Terminal and write the following lines one by one to launch the installer :

su
mount -o remount,rw /
cp /sdcard/Installer /Installer
chmod 755 /Installer
bash /Installer

If everything worked, you will have messages which will appear and your tablet will be rebooted !

Best regards.
[Gen9 Android Development] hackwerk:
Thanks man, great work.

However, not working and needs some tweaking!

1a) You cannot execute on the external storage or internal sdcard directories. These are mounted as noexec I guess, and are thus not capable of executing script. But because of your /sdcard/ directory in the script we MUST put it there (or edit this to ./, which I tried in Windows which ****ed up the whole script!). The solution is to only move the Installer script to / and then do the bash Installer.

2a) We must run the mount line of your script to be able to do 2b I guess;

2b) We still have to chmod 755 the Installer to be able to execute (chmod +x is not working btw)(or maybe not because we run it in bash?);

Situation below was my mistake, by editing and saving the script in Windows editors;

New problems:

A) All files are copied but do not replace the originals but make an EXTRA file next to it. So I will see TWO files with the same name in target map! (like build.prop and build.prop^M (found that by Tabbing/autocomplete))! Makes a real mess, I have to delete them all and do all your commands by hand :(

B) I can (only!) run it with the bash command, but still gives a strange output;

root@A101:/BlackGunZ # bash Installer.sh

Installer.sh: line 2: $'\r': command not found

1.Mounting the tablet as RW.

Usage: mount [-r] [-w] [-o options] [-t type] device directory

2. Copying the files and giving them the right permissions.

3. Removing /dalvik-cache folder files.

Now reboot your device !

Best regards, BlackGunZ.
[Gen9 Android Development] momojuro:
Thanks a lot for your feedback !

I use Notepad++ for editing and writing my scripts, Windows editor like you said isn't the right one for that ! In all the cases, I will fix that tomorrow bro. :)

Best regards.

Edit : It's now fixed [MENTION=2268917]hackwerk[/MENTION] ! For those who already tried my installation script, please retry everything with the new updated steps and its new ZIP packages.
[Gen9 Android Development] hackwerk:
More (really) bad news:

I am running all (since yesterday) on a clean install. The clean install was running perfectly till yesterday (speedy, no hickups, no reboots etc).

Since install of your script/files (and after a fresh boot) yesterday I have random freezes, had 1 reboot.

Even worse, the SD card (external, so /storage/sdcard1) is not working anymore?! When I browse to it it seems empty (which it isn't), and even pulling it out or inserting it (again) is NOT giving the warning of removal anymore like it used to do!?

I am AGAIN very frustrated, because I still (need to) use this tablet daily, and I AGAIN (stupid me) use it as a testblet ;)

I now (stupid me) have no backup/originals :(

Suggestion 1: Maybe also put in your script 4 extra lines. A line of cp the original file to /sdcard/FILENAME.bak before every copy (and overwrite) operation?

Anyone about the SD?!?

PS. What did you exactly fix btw since yesterday? You mean the extra lines of Installer copy?

Suggestion 2: Maybe change the default location to /storage/sdcard1 so we can use Windows/external SD card to do all?

Suggestion 3: And maybe add a version number in comments within your script, and an URL to this topic? Maybe add a dated changelog file too?
[Gen9 Android Development] momojuro:
Are you sure that you used the right ZIP package for your tablet ? Retry again with the one which is specific your model (for example, flashed the SDcard model for your tablet which has a HDD instead). :)

"PS. What did you exactly fix btw since yesterday? You mean the extra lines of Installer copy?"

Yes, the extra lines which I added for changing the location of the Installer file to the root (/) directory and giving it the right permissions (755) for the launching. Also, I added the "-r" prefix to the "cp" command which erases the original file with the modified one.

Suggestion 1 : I will soon.

Suggestion 2 : No problem at all. :)

Suggestion 3 : Alright ! ;)

Best regards.
[Gen9 Android Development] hackwerk:
Just downloaded your zip again (my version is the 101S Turbo, no HDD)(3rd time, 2nd time after you updated it) and again deleted all and ran the Installer.

Rebooted.

It (SD) works! Very strange but I am happy! :D

Hope I will also not encounter freezes or reboots anymore! :)
[Gen9 Android Development] momojuro:
I knew that this was the heck ! Before going to the lycee, I understood that I forgot to change this line of your model fstab file :

devices/platform/omap/usbhs_omap/ehci-omap.0/usb1/1-1/1-1.1/1-1.1:1.0/ auto auto defaults voldmanaged=sdcard1:auto

to :

/devices/platform/omap/omap_hsmmc.0	auto auto	defaults	voldmanaged=sdcard1:auto

Because the first one is specific for the HDD models ! Working on all the versions of our Archos G9 tablet knocked my head. :laugh:

Best regards.
[Gen9 Android Development] OberQuaker:
Hi BlackGunZ,

i have problems with your script. This is from my Terminal (answers from commands in cursive):

su

root@A80:/ #

cp /sdcard/Installer /Installer

cp: /Installer: Read-only file system

chmod 755 /Installer

Unable to open /Installer: No such file or directory

bash /Installer

bash: /Installer: No such file or directory

I extracted all five files directly in the root directory, where also this folders are located: Alarms, Android, DCIM, Download, Movies, etc.

I have also another problem. Perhaps someone have a solution.

AdAway isn't working. After downloading the files, the app stops with the error message "Can't write hosts file".

I had this problem also with Quallenauge's CM11, but i've found an AdAway 2.8 APK version which was working (perhaps it was a modified version). Is anyone able to get AdAway working with build 16_12_2015-16_26_24?
[Gen9 Android Development] carefreeway:
[MENTION=2257284]OberQuaker[/MENTION], have you forgot to remount partition in rw mode?
[Gen9 Android Development] momojuro:
Greetings, thanks for your useful feedback ! You're right [MENTION=6871320]carefreeway[/MENTION].

Before typing this line cp /sdcard/Installer /Installer, try first to mount your device as RW (read-write mode) with this following one and retry the installation of my script from the begining (I will add that to the steps !) :

mount -o remount,rw /

Also, after its installation, your tablet will be automatically mounted as RW at each boot and your AdAway's problem will be fixed ! :)

Best regards.
[Gen9 Android Development] OberQuaker:
Now it works, thank you very much!

I'll try, if AdAway is working also now.

Edit: The old AdAway version 2.8 which i used for CM11 is working now - perfect!

I'll try now also an actual version of AdAway. Thanks a lot again!

Edit 2: Last version 3.1 is working.
[Gen9 Android Development] momojuro:
I'm glad that everything worked for you [MENTION=2257284]OberQuaker[/MENTION] !

Well guys, I will update my installer with [MENTION=2268917]hackwerk[/MENTION]'s suggestions within the following days and I will update too my performance script with some changes before my exams. Of course, the changelog will be posted. :)

Best regards.
[Gen9 Android Development] momojuro:
Pre-final version

-

Installation process

Installer (thanks a bunch [MENTION=2268917]hackwerk[/MENTION] for the suggestions)

Added a new automatic step which backups the original files of your tablet in a created "Backup" folder.

Added an another new automatic step which detects if you have put the ZIP package's files in your SDcard or your internal storage, and makes the installation process according to their location.

Added a new pause between every finished step. It means that there will be a break of 1 second before that the script begins a new one.

Added a new command which reboots the device at the installation's ending.

Tuning files

Added the missing read_ahead_kb tuning in the tablet init's file for speeding both of the internal storage and the SDcard reads and writes.

Changed vm.swappiness value to 85 instead of 100. Our tablet doesn't use all of its 512MB of RAM (and the Turbo models don't use all of their 1GB of RAM too), decreasing it helped me to have a better responsive multitasking. Feedbacks about it will be appreciated !

Updated the VM settings with a min_free_kbytes value's calculation based on the tablet's memory (thanks a lot [MENTION=5514152]Paget96[/MENTION]), so that it will be suitable for both of the models (Normal & Turbo) users.

N.B : The ZIP packages of my previous post are updated too ! I did all my possible until now, a feedback and/or a little thankie will be really appreciated.

Best regards.
[Gen9 Android Development] schwatter:
thx will look the next days. Just cosmetic, maybe add

reboot

in script for autoreboot.
[Gen9 Android Development] momojuro:
Thanks, it's now added ! ZIP packages and the changelog are updated again. :)

Best regards.
[Gen9 Android Development] hackwerk:
Back where I was :(

Lots of freezes, not responding to touch (to get it out of lock screen), and when playin a video it sometimes suddenly skips some seconds (up to 30).

I am looking for a newer/faster tablet now, but will use this one till then, and as secondary/backup.
[Gen9 Android Development] momojuro:
That's so weird, it works perfectly fine with my 80S Turbo. :/

Did you have this only with the latest update ?

Best regards.
[Gen9 Android Development] hackwerk:
I do not know. It was working fine since your last script and before that.

A few factors can be the problem;

1) My tablet is fysically broken (big chunk of the corner and two large cracks) for a year now;

2) Deterioration of the flash memory (MMC) liek previously suggested (but it seems hard to move all internal storage to an SD);

3) Your scripts or other customization (or even basic Quallenauge setup).

Lemme try to use your (newest) script again... Update in a minute.
[Gen9 Android Development] carefreeway:
[MENTION=5670369]BlackGunZ[/MENTION], I think he has a hardware problem for a while.
[Gen9 Android Development] hackwerk:
Probably :(

Well its old and outdated anyways, and used the hell out of it :)

Same problem as before; No reaction (or very lagged) on swipes/touches when on lock screen. Sometimes reboots when touching.

Any suggestions? How to find the problem?

I will order something new soon :D
[Gen9 Android Development] carefreeway:
I sometimes have lagged touch screen reactions after long using tablet without reboots. But on 4.4.4 firmware. It happens about half-minute or maybe minute after unlock of the screen after long sleep. Turning tablet off and then on usually helps me in that case.
[Gen9 Android Development] hackwerk:
No this is way more serious/severe.

No reaction at all trying to start using. Sudden reboot on touch. Etc. Not usable. :(

Maybe try goin back to original Archos ROM or early Q ROM, but I think it is hardware. I had a lot of speedy very nice use in all last ROMs (also with Black's scripts).

Edit 01: Tried it all again, and really NOTHING seems to help but 1 thing only; Keep on/off button pressed for 10 sec (turns off) then turn on again (reboot or software turn off will NOT help).
[Gen9 Android Development] biggoof75:
Had something similar. But not with this software version. No response to touches. Twisting the tablet - but not cracking it ;) - helped. The hardware might be a bit sensitive i think.

Will try the newest Software and the script the next days.
[Gen9 Android Development] momojuro:
Thanks [MENTION=6871320]carefreeway[/MENTION] ! Because I was really surprised that my script could have caused those issues, and I think too that's a hardware problem. In all the cases, I'm sorry [MENTION=2268917]hackwerk[/MENTION] for not being able to help you more about this, and I thank you too [MENTION=4239010]biggoof75[/MENTION]. I'm waiting for your feedback !

I will have my exams within the next days, so I will not be such active as I was for a period of time. :)

Best regards.
[Gen9 Android Development] hackwerk:
Yes I really think it is my hardware.

Any suggestions how to scan my MMC or SD or RAM for errors and stability etc? Like Chkdsk in Windows or Memtest etc?

PS. TWIST your tablet?! How?! :P
[Gen9 Android Development] OberQuaker:
I whish you good luck for your exams and i hope you will come back as soon as possible. :good:

Thanks so far.
[Gen9 Android Development] momojuro:
Final version

-

Installation process

Tuning files

Removed the automatic min_free_kbytes tunable value's calculation and put manually the result instead (for both of the models), as it was buggy.

Added new build.prop lines which disable more the debugging :

debugtool.anrhistory : Disables the ANR history that would output the debuginfo to data partition.

profiler.debugmonitor - profiler.launch - profiler.hung.dumpdobugreport : Disable the profiling tools which are useful for debugging purposes (measuring the method execution time, monitoring the full heap space, tracking the memory allocations in real time...).

logcat.live : Disables logcat logs creating.

Thanks again for the support [MENTION=2257284]OberQuaker[/MENTION] ! :)

Best regards.
[Gen9 Android Development] OberQuaker:
I'm not realy sure if the tablet is now running much smoother or not with your new version, but it's working fine without any problems. Thanks :good:
[Gen9 Android Development] nikos1671:
How can I run this script I have only windows pc. Any step by step guide please.

Thanks
[Gen9 Android Development] Deepcrasher:
#117 on this thread is exactly step by step guide.

Отправлено с моего ARCHOS 80G9 через Tapatalk
[Gen9 Android Development] gonzo1963:
For my work is indispensable the connection with the 3G stick.

Does it works OK with this new final version?

Enviado desde mi Aquaris E5 usando Tapatalk 2
[Gen9 Android Development] momojuro:
The final version is about the one of my tuning files unfortunately, the ROM still has the 3G stick issue. :/

Best regards.
[Gen9 Android Development] carefreeway:
[MENTION=5670369]BlackGunZ[/MENTION], can you tell me why does "init.archos_init.rc" file have the following duplicates twice?

Also why has dhcpcd_bt-pan service been removed?
[Gen9 Android Development] momojuro:
I used the init.archos_init.rc file from Quallenauge's github as base, I didn't notice about these. :)

Best regards.
[Gen9 Android Development] carefreeway:
[MENTION=5670369]BlackGunZ[/MENTION], I also found more duplicates in 99Performance file:

# VM tweaks

echo 5 > /proc/sys/vm/dirty_background_ratio;

echo 20 > /proc/sys/vm/dirty_ratio;

echo 1450 > /proc/sys/vm/min_free_kbytes;

This ones are set in "# Memory management" section of init.archos_init.rc file on boot. 2 of them have the same values, and the 3rd one hasn't. Is there any sense to do this?

I'm trying this latest firmware with your optimisations ATM. I'm reading manuals and documentation about them. I also have some additional optimisation ideas which I wanna try first.
[Gen9 Android Development] mikibou:
So the installation went fine, running CM now. But there is one thing I haven't figured out yet. I can't install apps from the playstore, I alway get the insufficient storage error. This can be fixed by letting android install the apps to the sd card automatically (I believe this is the HDD of the archos in this case). I've tried few different methods for enabling this, but none of them worked. Can anybody help me out with this ?

Thanks in advice !
[Gen9 Android Development] silver_surfer30:
Hi

I have just install the new update but have issue connecting to encrypted wireless network.

Connect fine to not crypted wireless network.

Can anyone help me to fix that issue ?
[Gen9 Android Development] momojuro:
Thanks a lot [MENTION=6871320]carefreeway[/MENTION], you did an awesome work ! I will push your suggestions within the next days as I'm having health problems. :/

Best regards.
[Gen9 Android Development] hackwerk:
We wish u the best man! Get well soon!!
[Gen9 Android Development] mikibou:
Right after the installation of CM, I've got like 180 MB of free space on the internal card. On the external HDD I've still got all space available.

So you've got any suggestions ?

Thanks for replying !
[Gen9 Android Development] carefreeway:
[MENTION=7284943]mikibou[/MENTION], if you still have INSTALL_FAILED_INSUFFICIENT_STORAGE problem, lets try to investigate the cause of the problem. Show the results of the following commands in either "adb shell" or terminal on your device:

# pm get-install-location

# ls -la /data/local/tmp/

# df

# du -d1 -h /data/

# ls -la /data/app/

# mount

It may be caused by two instances of the same installing app in /data/app. Like badapp-1 and badapp-2 (when Android installs an app it first saves it as /data/app/app-1.apk, than on another update of the app it saves it as /data/app/app-2.apk and then deletes /data/app/app-1.apk, than again saves as -1 and deletes -2 and so on). In this case you need to do the following:

# pm uninstall full.package.name.of.bad.app.there

# rm -rf /data/app/full.package.name.of.bad.app.there-*

Be careful with "rm -rf" command. Or you just need to clear some more space by deleting useless stuff.

P.S. I was trying to investigate my problem with massive IOwait. Android doesn't have iotop, but it has it's analog there: http://xdaforums.com/android/software-hacking/script-iotop-android-t2910428 . Unfortunatelly, our kernel doesn't have the support for iotop (see /proc/config.gz or /proc/self/io). Those config options were off during build of the kernel. I will try to investigate it further. Maybe it's Wifi start and all network-depended apps start to do massive IO, maybe it's smth else.