yashsingh1/xdaforums huggingface dataset:
[Gen9 Android Development] momojuro:
The last release is the one which is present in the OP, for an update we have to wait ! I didn't test the USB stick, sorry. ^^'

Exit CM File Manager, go to Settings, Developer Options and turn off the root permissions. Then, switch on again the root access to "ADB and applications" and try again :)
[Gen9 Android Development] ladalgigi:
Thank you very much ! It works !

Very great ROM

Ladalgigi

Envoyé de mon ARCHOS 101G9 en utilisant Tapatalk
[Gen9 Android Development] Knutselmaaster:
I uninstall the YouTube app from system apps and reinstalled it from play store and now it is working :)
[Gen9 Android Development] carefreeway:
[MENTION=5395959]Knutselmaaster[/MENTION], I tried to edit framework-res.apk with apktool from there: http://ibotpeaches.github.io/Apktool/ but it didn't help either to turn off telephony. What I did:

# adb pull /system/framework/framework-res.apk

# apktool if framework-res.apk

# apktool d framework-res.apk

# nano -w framework-res/res/values/bools.xml

And changed this values to false:

<bool name="config_voice_capable">true</bool>

<bool name="config_sms_capable">true</bool>

# apktool b -c framework-res

# adb push framework-res/dist/framework-res.apk /system/

# adb shell

# ls -l /system/framework-res.apk

Permissions are correct:

-rw-r--r-- root root 17760474 2016-02-26 17:29 framework-res.apk

# mv /system/framework-res.apk /system/framework/

# ls -l /system/framework/

-rw-r--r-- root root 17760474 2016-02-26 17:29 framework-res.apk

# reboot

But I still have "No SIM" message and crossed 3G sign. And also getprops are wrong. It looks like the only way to turn off telephony is by rebuilding firmware.
[Gen9 Android Development] carefreeway:
[MENTION=5395959]Knutselmaaster[/MENTION], I found a way to turn off telephony. Add this string to build.prop:

ro.radio.noril=1

According to init.cm.rc this option stops the following services at start:

# Disable ril services if noril prop is set

on property:ro.radio.noril=1

stop ril-daemon

stop qmuxd

stop netmgrd
[Gen9 Android Development] Knutselmaaster:
That is great news! Battery life should gain quite a bit like that!

I'm going to try it right away :)

Edit: [MENTION=6871320]carefreeway[/MENTION] that perfectly did the job.

No more simcart missing icons!

The system starts up way faster too.

Thank you, you're my hero of the day ;)
[Gen9 Android Development] momojuro:
Fixed final version

-

Installation process

Tuning files

Added zRAM suggested disksize's value by [MENTION=6871320]carefreeway[/MENTION] for 1GB versions. The one of 512MB boards will be very soon added !

Added [MENTION=6871320]carefreeway[/MENTION]'s build.prop line which turns off the telephony.

Removed the manual min_free_kbytes tunable's value calculation, the default one is the right choice.

Cleaned the init.archos_init.rc file from its duplicated lines.

Fixed the partitions remount script, now the mount options are correctly applied !

Thanks again for the great contributions [MENTION=6871320]carefreeway[/MENTION] ! :)

Best regards.
[Gen9 Android Development] Knutselmaaster:
Thank you for this update.

If I install this over the previous version, will it simply overwrite the values?

In other words, can I simply update with this?
[Gen9 Android Development] jawiler:
LOL, I just installed the last version 2 hours ago, figures

:laugh:
[Gen9 Android Development] momojuro:
It's a pleasure ! Yes, the files will be remplaced by the installer with the new ones.. :)

Best regards.
[Gen9 Android Development] carefreeway:
[MENTION=5670369]BlackGunZ[/MENTION], I found a small bug at the end of init.archos_init.rc:

setprop persist.wlan.ti.calibr

It should be:

setprop persist.wlan.ti.calibrated 1

I'll also add a few more modifications later (some of them do not want to be applied in init file and I need to get more statistics too).
[Gen9 Android Development] momojuro:
Thanks, it's now corrected ! :)

If you need help about them, don't hesitate to send me a private message or to write a post here !

Best regards.
[Gen9 Android Development] carefreeway:
[MENTION=5670369]BlackGunZ[/MENTION], I found several strange behaviours inside init in this version of CM 12.1. And I think that they may be bugs.

# dmesg |grep "Cannot open"

<3>[ 7.134704] fs_mgr: Cannot open file /fstab.${ro.hardware}

# dmesg |grep init |grep expand

<3>[ 6.914184] init: property 'ro.serialno' doesn't exist while expanding '$ro.serialno'

<3>[ 6.914459] init: cannot expand '$ro.serialno' while writing to '/sys/class/android_usb/android0/iSerial'

Also I found out that swapon_all is started earlier than write to /sys/*. Even if you place write to sys in init and swapon_all in boot triggers accordingly. The last bug seems to me like bug in CM 12.1 probably.

P.S. [MENTION=5670369]BlackGunZ[/MENTION], I've just inspected your changes and found the following issues:

1. init.archos_init.rc:

mkdir /mnt/shell/emulated 0700 shell shell

mkdir /storage/emulated 0555 root root

^ This strings were used twice on init action.

2. This string doesn't work at all:

init.archos_init.rc:

# activate zram

swapon_all fstab.${ro.hardware}

I need to think how to rewrite that properly. (see the problem above with swapon and write to /sys/).

3. Is there any sense to place "/proc/sys/vm/dirty_ratio" in 99Performance instead of init.archos_init.rc?

4. You can remove this string completelly, because it's default value:

init.archos_init.rc:

write /proc/sys/vm/min_free_kbytes 2792

5. Add newline at end of init.archos_init.rc file. Diff won't complain in this case.

6. 99Performance:

# Partition mount options

for x in $(busybox mount | grep ext4 | cut -d " " -f3);

This cycle gives me the following results for ${x} from command line (may be a bit different from inside shell script):

/mnt/system

/data

/

/mnt/system

/data

I feel some kind of overwork there. Have you tried to run "/etc/init.d/99Performance" from command line?
[Gen9 Android Development] carefreeway:
[MENTION=5670369]BlackGunZ[/MENTION], I couldn't make auto-start inside init of 2 streams for ZRAM swap. swapon_all is started always earlier than write to "/sys/block/zram0/max_comp_streams". I removed broken "swapon_all fstab.${ro.hardware}" from init.archos_init.rc and added this 2 strings there inside "on init" application.

# Setup ZRAM swap parameters

write /sys/block/zram0/comp_algorithm lz4

write /sys/block/zram0/max_comp_streams 2

Only the first one has taken effect. Second one doesn't work due to swapon_all happening earlier. I will test LZ4 algorithm of compression and compare it with my stats for LZO anyway. Be careful, do not try to mess with init or with scripts without backup of system partition. It may be easily done with:

- reboot into SDE menu and under Developer Edition Menu -> "Export Data Partition"

- mount this usb drive

- copy local/archos.ext4 to your backup disk

as Quallenauge described in the installation manual. It's also easy to just mount local/archos.ext4 partition from tablet and to fix wrong string there:

mount -o loop /run/media/someuser/data/local/archos.ext4 /mnt/usb/

nano -w /mnt/usb/init.archos_init.rc

sync

umount /mnt/usb/.

But the second way is the only option if you know wrong string and how to fix it. Otherwise it's easier to copy backuped local/archos.ext4 file (1 GB in size).
[Gen9 Android Development] momojuro:
[MENTION=6871320]carefreeway[/MENTION]

1. Thanks, alright !

2. swapon_all fstab.${ro.hardware} was already present in the init file, and I never check it before ! Also, I always thought that the LZ4 was the used compression, wow. I did some researches, and apparently LZ4 is faster than LZO. I will test it too !

3. No no it doesn't change anything ! If you want to add it in init.archos_init.rc simply use the following : write /proc/sys/vm/dirty_ratio 20

4. I had doubts about it that's why I let it, alright ! :)

5. It's weird but when I use the mount command with ADB, I get twice /data and /mnt/system partitions in the list ! The old way of the mount options adding didn't work, that's why I changed it.

Best regards.
[Gen9 Android Development] Knutselmaaster:
Since I updated with the latest install script from [MENTION=5670369]BlackGunZ[/MENTION] I witness somekind of memory leak (noob language sorry)

The tablet gets slower and touch reactivity gets worse, until the tablet freezes and sometimes reboots.

When it freezes, the power button still works, quite quickly even.

I just checked a few times in the terminal emulator with the "free" command and free memory is almost 0 when the tablet gets slow.

I close all apps before the "free" command and even clean the "recents", but no memory seems to be freed by that.

If I can be helpful by providing more info, please ask (in noob language :D )

Oh, I should add that I did not update to the "fixed" version after the "cut short line" bug found by [MENTION=6871320]carefreeway[/MENTION]
[Gen9 Android Development] momojuro:
[MENTION=5395959]Knutselmaaster[/MENTION] If any, do the update then removes the following line from the init.archos_init.rc that you can found in the root directory (/, which is the CM File Manager's home in Root Mode)

write /proc/sys/vm/min_free_kbytes 2792

Best regards.
[Gen9 Android Development] carefreeway:
[MENTION=5395959]Knutselmaaster[/MENTION], free field in free command isn't useful much to see how well your RAM is wasted. Better use procrank command and watch its Pss and Uss fields. It's normal that kernel (Linux) tries to use almost maximum of available RAM except some margin for fast allocations (I'm not Linux memory guru, so better read its sources). But it's pretty normal situation on any Linux I've ever observed.

As for "tablet gets slower and touch reactivity gets worse". So, it's better to connect tablet to PC and in adb shell watch "top -m 10" command during freezes. It's normal that power button works during freezes. It doesn't depend on OMAP4 SoC much. For me, freezes are mostly during waking up or right after booting due to big IOWait, probably. The cause of the huge IOWait may be investigated with recompiled kernel with the flags for "iotop" utility. Faster RAM with ZRAM swap may be with 2 streams of LZ4 too. Another option would be to test external sdcard speeds with AndroBench and compare it to results of internal eMMC card.
[Gen9 Android Development] spyroz540:
hi could anybody tell me which archive for this rom is the latest version there are alot of archives
[Gen9 Android Development] momojuro:
This one ! :)

Best regards.
[Gen9 Android Development] spyroz540:
thanks :good:

---------- Post added at 02:20 PM ---------- Previous post was at 02:02 PM ----------

i need help guys when im in sde menu and i do export data partition i connect to the pc and it says you need to format the drive before i can use it

and when i format there is no folders and i have to do reset android and storage again and then when i do export data partition i get the same thing again i am on windows 8.1 pro and i have tried on windows 10 too
[Gen9 Android Development] carefreeway:
[MENTION=7045631]spyroz540[/MENTION], I think it was really bad idea to format this device. Installation manual in topic was for Linux'es. Have you read a message inside this topic's many messages about how to properly do the same in Windows??? You should only format INSIDE SDE menu, not from Windows. Have you read Quallenauge installation manual properly? Also find message with the description for Windows install. It has many paragraphs. Read carefully paragraph after paragraph.
[Gen9 Android Development] spyroz540:
oh yeah i totally forgot about the ext4fsd application!! last time i was on windows 7 and i had that application and everything was working fine
[Gen9 Android Development] momojuro:
[MENTION=7045631]spyroz540[/MENTION]

Like [MENTION=6871320]carefreeway[/MENTION] said ! Follow those steps one by one :

Best regards.
[Gen9 Android Development] spyroz540:
yeah i forgot that application i used to have it but after the factory reset i did and its been like 6 months since i have been on the archos i forgot about it
[Gen9 Android Development] bigrammy:
New lease of life.

Hi,

BIG THANKS [MENTION=4636351]Quallenauge[/MENTION] awesome work bro :highfive:

All working fine on my Archos-101-G9-250gb-HDD version except the camera which has already been reported.

I had pretty much forgotten about this tablet but was cleaning out my Man Drawer and thought I would take a look to see if any development had happened in the last few years and boy was I surprised to see this :D

I have not done much reading up on this tablet :o but is it possible to flash this ROM to the actual system partition instead of it sitting in /data/local taking up almost all the space of my pathetic 1.5gb internal sd of which I have 143mb left for apps :laugh:
[Gen9 Android Development] carefreeway:
[MENTION=3924647]bigrammy[/MENTION], what's your RAM and internal eMMC card memory? There are 2 theoretical ways to move system partition from internal eMMC: hardware (modification of startup mode of OMAP4 SoC) and software (modification of bootloader). The only sense to do this would be if there are more speed or maybe more space on some devices. Have you measured speed on SD card or your SSD/HDD in comparison with the speed of internal eMMC card (using AndroBench, for example)? This speed will be dependent/limited on Phison 7000 Controller speed or whatever you have there.
[Gen9 Android Development] bigrammy:
Hi thanks for the reply.

I have the HDD model and did wonder if it would be possible to repartition the HDD and extend the /data partition maybe :eek:

Seems like I have a total of 1gb ram.

Some outputs of partitions and df

root@A101:/ # cat /proc/partitions
major minor #blocks name

7 0 1048576 loop0
253 0 131072 zram0
179 0 1912832 mmcblk0
179 1 51200 mmcblk0p1
179 2 292991 mmcblk0p2
179 3 7840 mmcblk0p3
179 4 1560672 mmcblk0p4
179 16 1024 mmcblk0boot1
179 8 1024 mmcblk0boot0
8 0 244198584 sda
8 1 244197560 sda1

root@A101:/ # df
Filesystem Size Used Free Blksize
/ 1007.9M 682.4M 325.5M 4096
/dev 482.4M 44.0K 482.3M 4096
/mnt/system 277.1M 176.0M 101.1M 1024
/data 1.5G 1.3G 159.3M 4096
/ 1007.9M 682.4M 325.5M 4096
/dev 482.4M 44.0K 482.3M 4096
/sys/fs/cgroup 482.4M 8.0K 482.4M 4096
/mnt/asec 482.4M 0.0K 482.4M 4096
/mnt/obb 482.4M 0.0K 482.4M 4096
/mnt/rawfs 31.8M 19.2M 12.5M 512
/mnt/system 277.1M 176.0M 101.1M 1024
/data 1.5G 1.3G 159.3M 4096
/mnt/shell/emulated 1.5G 1.3G 159.3M 4096
/mnt/media_rw/sdcard1 231.0G 1.9G 229.2G 4096
/storage/sdcard1 231.0G 1.9G 229.2G 4096
[Gen9 Android Development] carefreeway:
I have found out that your device doesn't have SD card. Do you know how Archos implemented (in hardware) HDD connection on your device? The first thing you need to do is properly backup your whole eMMC card.

# mount -o remount,ro /

# mount -o remount,ro /mnt/system

# mount -o remount,ro /mnt/rawfs

# mount -o remount,ro /data

# adb pull /dev/block/mmcblk0 tmp/4/mmcblk0.raw

You may also archivate this file to save space:

# XZ_OPT="${XZ_OPT} -9ev -T0" tar --xz -cSpvf /home/youruser/tmp/4/mmcblk0.raw.tar.xz tmp/4/mmcblk0.raw

Some of the partitions (/dev/block/mmcblk0p1 /mnt/rawfs) has special device information to properly boot your device and setup its hardware config (see, for example ATAGS/FTAGS inside /mnt/rawfs/tags). You can analyze partitions on your eMMC raw image with testdisk utility (see http://www.dflund.se/~jokke/androidfilerecovery/ as an example, but do not use "cat" to backup your partitions or total cards/drives). Then you should recreate the same structure of partitions with the same content on your new disk (maybe dd utility or other methods). Then you should change boot sequence to boot from your new device (IDK if it's possible for HDDs but I think it's possible to change boot from eMMC to SD card or USB). But you can try.

P.S. Android 6.0 CM 13.0 also has a method to extend your partition as well as any other Linux. But this method won't help in case of internal eMMC corruption.
[Gen9 Android Development] momojuro:
Hello guys !

I need your help about a problem that I'm having right now, and I thank you in advance for the reading : Well, I was very busy the previous days and I left my tablet which was still ON all of this period. The result is that my battery is now overdischarged, and I'm not able to charge (I almost tried everything). I tried also the device reset suggested by Archos, but my device boot and shutdown immediately after the startup of the ROM. :/

Best regards.
[Gen9 Android Development] St4mi:
Did you let it charge for many hours and the LED blinks for short time?
[Gen9 Android Development] momojuro:
Thank you for the suggestion ! I tried now to charge it, and the LED finally blinks like you said. I left the tablet for a while and it booted itself, the battery level is displayed at "0%" and then it turns off automatically. The LED doesn't blink anymore, I'll letting it connected to the charger for a long moment and I will see !

Edit : My brother removed the tablet from the charger, I retried again to charge it and the same thing happens again. I don't know what to do actually !

Edit 2 : I downgraded the tablet to the Archos stock firmware and it's charging now ! I will switch back to CM 12.1 later. :)

Best regards.
[Gen9 Android Development] jawiler:
Glad you got it working, I had this happen to me before and what fixed it for me was to boot into SDE and leave it on the charger in this mode and it started to charge completely again.:good:
[Gen9 Android Development] cot_al:
Does it works for turbo version? In many cases we have problem because the hard drive of the turbo version is not mounted as SD card...
[Gen9 Android Development] carefreeway:
[MENTION=7428463]cot_al[/MENTION], yes, this firmware does work for Turbo version. I personally have Turbo version of the device, but without HDD. The firmware has different configs for modifications of the tablet with HDD or without it.
[Gen9 Android Development] cot_al:
Yes indeed, I could install it perfectly!

The bad news, is that the HDD is identified as SD card, That is fine. The problem is tha it is is mounted as read only... we cannot use it for anything...:(
[Gen9 Android Development] carefreeway:
[MENTION=7428463]cot_al[/MENTION], try to use "mount -o remount,rw /" or "mount -o remount,rw /yourdisk". Also take a look at configs inside "/'.
[Gen9 Android Development] cot_al:
Please can you suggest me what config file should I change in / ?
[Gen9 Android Development] carefreeway:
[MENTION=7428463]cot_al[/MENTION], "ls -la /". Then "cat fstab.*hboard". You can also look inside "init.archos*hboard.rc" etc.
[Gen9 Android Development] cot_al:
Thanks, but in fact it looks like this ROM is not rooted. No SU, no ROM mamnager installed, and have so few space remaining that I cannot install them from android market :(

In fact the ext4 file occupy all the RAM, and the HD is read only so we cannot use this cyanogen on the G9 turbo..
[Gen9 Android Development] carefreeway:
[MENTION=7428463]cot_al[/MENTION], this firmware is "rooted". And su worked OK for me. I have enough space on 16GB SD Turbo version of the device. About 13-14GB of internal eMMC card is free with installed a lot of programs and books. Ext4 doesn't occupy RAM. Ext4 partition occupies space on internal eMMC card or maybe HDD (IDK, have never used HDD version of the tablet). If you don't want to use it do not tell others not to use it.
[Gen9 Android Development] cot_al:
I appology if it sounds negative, but really on my 250Go Turbo, I was not event able to install a terminal emulator. I understand that it probably works fine on your version and I thank you for the effort. but really for the 250Go HD turbo version, i oculd install it easily, but I cannot instll anything, no room available... probably because the HD that is detected as SD card ir read only... I could not fix it.... I will Have to try an other ROM, a pitty, this one looks fine.
[Gen9 Android Development] carefreeway:
[MENTION=7428463]cot_al[/MENTION], you don't need to install terminal emulator on this firmware. You can activate it inside Developers menu in Settings. I also personally prefer to use ADB shell from PC instead of using terminal emulator on the tablet. You can try to see mounted partitions and their options with "mount" command.
[Gen9 Android Development] carefreeway:
Do you have overheating on your devices? You can check, for example in case of OMAP4460 using the following command through ADB:

while true ; do sleep 0.5; adb shell cat /sys/bus/platform/devices/omap_temp_sensor.0/temp1_input; done

Also you can check output of "dmesg|grep thermaldaemon" after start of the device. Also check "dmesg|grep thermal" and "dmesg|grep hot". I think that black screens and bad responsiveness may be caused by overheating.
[Gen9 Android Development] janschrik:
Archos g9 80 H

Is there any difference for the G9 version with a harddisk? I see that it is represented as a SD card.

The problem I meet is that there is almost no room for extra apps an anoing situation
[Gen9 Android Development] carefreeway:
[MENTION=854345]janschrik[/MENTION], IDK, I don't have an H version of the tablet. But I think there are possibilities to expand system partition or it's file to hard disk partition in that case.
[Gen9 Android Development] mlogeard:
Hi and thanks, i run this rom on my g9 101 turbo and i don't have Developers menu in Settings and su don't work for me.

Any idea ???
[Gen9 Android Development] carefreeway:
Hi [MENTION=5706738]mlogeard[/MENTION], read this earlier post http://xdaforums.com/showpost.php?p=62550548&postcount=49
[Gen9 Android Development] mlogeard:
many thanks for the solution, it works.
[Gen9 Android Development] JanS1953@:
:cowboy::cowboy:
[Gen9 Android Development] mlogeard:
Hello, is somebody arrive to run modem archos G9 key under this version?

With me it does not work. (An error occurred during the research for networks).

Thank you
[Gen9 Android Development] carefreeway:
[MENTION=5706738]mlogeard[/MENTION], unfortunatelly I don't have 3G modem stick from Archos. But I think Huawei modem did work somewhere. You can investigate a problem using "dmesg" to read messages from kernel and "adb logcat -v time *:E" to see errors from Android. You can use this commands in "adb shell" or inside Terminal.
[Gen9 Android Development] mlogeard:
I think that part of this problem is that the internal usb is not powered with this rom.

Led on 3g key not flash when i connect it.

I test on official rom, it work.
[Gen9 Android Development] carefreeway:
Did you use Archos control panel app to turn on 3G?
[Gen9 Android Development] mlogeard:
yes, i also try to connect on mini usb on the side but the tablet don't recognized the 3g stick.
[Gen9 Android Development] carefreeway:
cat /sys/class/rfkill/rfkill0/state

cat /sys/bus/usb/devices/usb1/power/control
[Gen9 Android Development] mlogeard:
Hi,

when i writte in a terminal in su

cat /sys/class/rfkill/rfkill0/state

tablet answer : not found

if i try

sys/class/rfkill/rfkill0/state

it say : can't execute : Permission denied

when i try

cat /sys/bus/usb/devices/usb1/power/control

same thing

I try

sys/bus/usb/devices/usb1/power/control

tablet answer : can't execute : Permission denied

any ideas?
[Gen9 Android Development] carefreeway:
[MENTION=5706738]mlogeard[/MENTION], did you install kernel correctly according to topic's instructions? What model of the tablet do you have?

grep rfkill /*.rc

ls -l /sys/class/rfkill/

ls -l /sys/bus/usb/devices/

Also you can check dmesg and adb logcat -v time *:E right after tablet (re)start.
[Gen9 Android Development] djiwome:
Is there any way to install these ROM without GAPPS?
[Gen9 Android Development] mlogeard:
Finally, I decided to change tablet.

Thank you for your help.
[Gen9 Android Development] carefreeway:
[MENTION=7036509]djiwome[/MENTION], I think it's possible, but I haven't tried this yet. One way is to rebuild the firmware from sources. The other possible way is to turn off/remove gapps from the available firmware. Have you tried to turn off all Google apps in Settings -> Apps?

[MENTION=5706738]mlogeard[/MENTION], it's nice decision. Tablet is too old. It's RAM and CPU aren't very good according to present days. BUT, it has free firmware to hack!!! ;)