[BOOT IMAGE][GT-P31XX] KK-Boot - Custom boot image for stock 4.1.1/4.1.2 ROM - Galaxy Tab 2 7" Android Development

ROOTING, TWEAKING, NEW GPU DRIVER, CPU AND/OR GPU OVERCLOCK​
Using CyanogenMod kernel source from https://github.com/kumajaya/android_kernel_samsung_espresso10/tree/cm-10.1-blackhawk for both P31xx and P51xx target, from codeworkx and heavily modified by me
CPU clock: 300MHz, 600MHz, 800MHz, 1.008GHz, 1.2GHz, 1.35GHz, 1.42GHz, 1.48GHz, and 1.52GHz, locked @ 1.008GHz on boot, thanks to cmenard
CPU voltage control, thanks to cmenard. You can use Android Tuner or System Tuner to set CPU voltage
GPU clock: 153.6MHz, 307.2MHz, 384MHz, and 512MHz, 384MHz as the default maximum clock, thanks cmenard
The ramdisk base on JB 4.1.2 ramdisk, thanks to Google and Samsung
Using newer PowerVR SGX 540 kernel modules and binaries blob build [email protected], thanks to omapzoom.org
row (thanks to gokhanmoral), sio, and vr scheduler support
Governor bug fix, replace Samsung's interactive governor with default OMAP4 3.0.31 interactive governor from omapzoom.org, pegasusq and lulzactive governor from gokhanmoral
ntfs read-only (not loaded by default), exFAT, NFS (not loaded by default) and CIFS/samba (loaded by default) filesystem support
LZO compressed kernel and initrd, bigger but faster
swap support
kernel config, insmod configs.ko and then you can access /proc/config.gz
external modem support, for PPP Widget (not loaded by default, P31xx need powered USB hub for external modem)
Some tweaks from gokhanmoral's siyahkernel for S3
Remove a lot of debug message from touchscreen driver, display, mmc, modem, etc
linaro arm-linux-gnueabihf- cross compiler
SuperSU v1.25 by Chainfire
No-frills CPU Control v1.26 by hrk
BusyBox v1.20.2-cm9 bionic (2012-07-14 01:52 +0200) in /sbin, will overwrite busybox in /system/bin or /system/xbin and save it as busybox.backup
nano and bash from CyanogenMod 9, sysrw and sysro from dsixda Android Kitchen
Early boot scripts support (/system/etc/init.d, /data/local/userinit.sh, and /data/local/userinit.d)
Post boot script support (/system/etc/init.post_boot.sh), use it to swap between external SD card and internal media
Custom boot animation support (/data/local/bootanimation.zip or /system/media/bootanimation.zip if exists, Samsung boot animation as a fallback). If a bootanimation.zip found, the boot sound will be turned off as well as the shutdown animation.
Modified mount options
adb mode in charge state, thanks to codeworkx
adb insecure
Advanced TCP congestion support, westwood as the default congestion (recommended by someone but I forgot)
No /system/etc/hosts patch, you can install one of ads blocker form Google Play (i.e. AdAway)
KNOWN BUGS/UNSUPPORTED FEATURES:
Youtube HD bug WiFi driver update fix this issue, thank to paraiso-san since this solution is achieved because his cooperation and "pressure" as well
Using this boot image, you will lose exFAT filesystem kernel support
In certain situations (MTP transfers, wireless transfers), CPU frequency sometimes exceeds maximum frequency setting Finally, I managed to fix it :victory:
INSTALL:
There are 2 choices of installation: without overclock (*core* filename) and overclock version (*addon-oc* filename). All *addon* require the *core* package, otherwise your device will be soft brick because the graphics subsystem will fail to start. Confused? Do not download any package! Flash this using the latest CWM recovery at your own risk.
For GPU overclock, change:
Code:
echo 0 > /sys/devices/system/cpu/cpu0/cpufreq/gpu_oc
to:
Code:
echo 1 > /sys/devices/system/cpu/cpu0/cpufreq/gpu_oc
in /system/etc/init.d/00boot or run above command on "Terminal Emulator" or "adb shell" as root every boot
To set your external SD card as internal SD card, over "adb shell" or Terminal Emulator:
Code:
su
setprop persist.customboot.sdcard external
and then reboot your device.
To restore SD card default mount point:
Code:
su
setprop persist.customboot.sdcard internal
and then reboot your device.
BIG FAT WARNING: If you set your external SD card as internal media, always turn off your device first before ejecting your card!
To set your preload partition as swap partition, over "adb shell" or Terminal Emulator:
Code:
su
setprop persist.customboot.swap true
and then reboot your device.
To disable preload partition as swap partition:
Code:
su
setprop persist.customboot.swap false
and then reboot your device.
This kernel has driver and filesystem modules are not enabled by default, edit /system/etc/init.d/01modules to enable NFS filesystem, NTFS filesystem (read-only), and USB GSM & CDMA modem driver for PPP Widget or to change TCP congestion
DOWNLOAD:
kkboot-0.6.0-core-p31xx.zip (10.4 MB)
kkboot-0.6.0-addon-oc-p31xx.zip (5.3 MB)
kkboot-0.6.0-addon-exfat-p31xx.zip (5.7 MB)
kkboot-0.6.0-addon-oc-exfat-p31xx.zip (5.7 MB)
CREDITS:
Linux, Google, Samsung, Texas Instruments/omapzoom.org, CyanogenMod developers, Chainfire, dsixda, cmenard, gokhanmoral, hrk, imoseyon, coolbho3k, Faux123

Discontinued, for historical purpose only!
---------- KK-Boot for stock 4.0.4 ROM ----------
ROOTING, TWEAKING, and GPU BOOSTER​
CONFIRMATION NEEDED:
Is external as internal sdcard solution break MTP support? My Ubuntu 12.04 MTP support is broken and still have no time to solve this problem
Base on P3100XXBLE3_P3100OLBBLE2_XSE boot image, stock kernel 3.0.8-583493-user including kernel modules ("stock-espresso" version)
Base on codeworkx's CyanogenMod samsung_espresso10 kernel source ("cw-espresso" and "cw-maguro" version)
Using stock 4.0.4 GPU binaries, build [email protected] ("stock-espresso" and "cw-espresso" version)
Using Galaxy Nexus 4.0.4 GPU binaries, build [email protected] ("cw-maguro" version)
SuperSU v0.96 by Chainfire
BusyBox v1.20.2-cm9 bionic (2012-07-14 01:52 +0200) in /sbin, will overwrite busybox in /system/bin or /system/xbin and save it as busybox.backup
Scripts support (busybox run-parts /system/etc/init.d, /system/bin/customboot.sh, /system/xbin/customboot.sh and /data/local/customboot.sh)
Post boot script support using /system/etc/init.post_boot.sh
Custom boot animation (/data/local/bootanimation.bin, /data/local/bootanimation.zip, /system/media/bootanimation.zip, or /system/bin/samsungani). Galaxy Nexus 4.0.4 factory images boot animation included in /data/local
Enable/disable boot sound
Enable/disable external sdcard as internal sdcard. /data/media mounted to /mnt/media using a modified sdcard binary
/sbin/propset and /sbin/propget scripts as a simple persistent property writer and reader
/system/lib/modules/cifs.ko kernel module for samba share support (all version, including dns_resolver.ko and md4.ko for "stock-espresso")
/system/lib/libion.so and /system/lib/libtiutils.so taken from stock 4.0.3 GT-P3100 firmware to enable hardware accelleration video ("cw-espresso" and "cw-maguro")
Remount all ext4 partition (except /efs) with noauto_da_alloc,barrier=1,noatime,nodiratime options (new in KK-Boot 0.2)
adb insecure
No /system/etc/hosts patch, you can install one of ads blocker form Play.
TIP:
SuperSU have a strange force close issue in 4.0.4, disable notification in SuperSU settings resolve the problems!
DOWNLOAD:
Stock 4.0.4 kernel and stock 4.0.4 GPU binaries: kkboot-0.2-stock-espresso-p3100.zip
Samsung epresso10 kernel source from codeworkx, GPU and video driver revert back to Samsung GT-P3100 kernel source and stock 4.0.4 GPU binaries: kkboot-0.2-cw-espresso-p3100.zip
Samsung espresso10 kernel source from codeworkx, GPU driver and video revert back to epresso10 ics branch and Galaxy Nexus ("maguro") GPU binaries: kkboot-0.2-cw-maguro-p3100.zip = 3D performance booster without overclocking!
Samsung espresso10 kernel source from codeworkx, Galaxy Nexus ("maguro") 4.1.1 GPU binaries: kkboot-0.2-cw-maguro_jb-p3100.zip = 3D performance booster without overclocking! 2D transition feel slower than "cw-maguro" (confirmation needed)
KK-Boot update, "cw-maguro" for now: kkboot-0.3-cw-maguro-p3100.zip
CREDITS:
Google, Samsung, codeworkx, Chainfire
A modified Google Gears Boot Animation from ZeroXtreme, attached here as bootanimation.zip
To disable boot sound:
Code:
# propset customboot.bootsnd disabled
# reboot
To enable boot sound:
Code:
# propset customboot.bootsnd enabled
# reboot
Link /mnt/sdcard to /mnt/extSdCard:
Code:
# propset customboot.sdcard external
# reboot
Link /mnt/sdcard to /mnt/media (/data/media):
Code:
# propset customboot.sdcard internal
# reboot
Flash this using CWM recovery at your own risk!
Click to expand...
Click to collapse

Again - reserved !

How to modify Google Gears Boot Animation from ZeroXtreme for KK-Boot:
Edit desc.txt to:
Code:
600 600 60
p 0 0 part2
Resize to 600x600 and rotate -90 degrees, have to manually rename part2/*.jpg before zip:
Code:
$ convert -resize '600x600^' -gravity center -crop 600x600+0+0 +repage -rotate -90 part0/anim*.png part2/anim.jpg
$ rm bootanimation.zip
$ zip -0 -r bootanimation.zip desc.txt part2
$ adb push bootanimation.zip /data/local/

thanks gan..
its so glad to see you here... :thumbup:

Nice!!! I'll give it a try ,,,, does it automatically mounts ,the ext SD card, as main sdcard? Thanks
Sent from my GT-P3100 using xda app-developers app

Have Have you tried this on p3100??
NEOHACK

No I haven't,,, I don't even know, which ROM , to be on..
Sent from my GT-P3100 using xda app-developers app

CXENTE said:
Nice!!! I'll give it a try ,,,, does it automatically mounts ,the ext SD card, as main sdcard? Thanks
Sent from my GT-P3100 using xda app-developers app
Click to expand...
Click to collapse
Yes, propset settings persistent. Internal sdcard mounted on /mnt/media, /mnt/sdcard linked to /mnt/media or /mnt/extSdCard on boot depend on customboot.sdcard value.

CXENTE said:
No I haven't,,, I don't even know, which ROM , to be on..
Sent from my GT-P3100 using xda app-developers app
Click to expand...
Click to collapse
Tested on stock 4.0.4 P3100.

OK,, I'm going too try it ,,. report back...
Flash it.. sdcard still they same.. is there a script, or something? Thats suppose too be ran?
Sent from my GT-P3100 using xda app-developers app

This is off-topic, but can you help me out? I'm trying to unpack the CM10 boot image, but the only instructions I can find are here. When I do these, I get the following error upon running "perl unpack-bootimg.pl boot.img":
Code:
cpio: default.prop: Function not implemented
gunzip: ../boot.img-ramdisk.cpio.gz: invalid compressed data--format violated
cpio: premature end of file

@Macadamia
You can use my helper script:
[DEVELOPERS TOOLS] Unpack, repack boot.img, and editing boot logo

CXENTE said:
OK,, I'm going too try it ,,. report back...
Flash it.. sdcard still they same.. is there a script, or something? Thats suppose too be ran?
Sent from my GT-P3100 using xda app-developers app
Click to expand...
Click to collapse
Open Terminal Emulator or "adb shell" and type:
Code:
su
propset customboot.sdcard external
Reboot.

ketut.kumajaya said:
Open Terminal Emulator or "adb shell" and type:
Code:
su
propset customboot.sdcard external
Reboot.
Click to expand...
Click to collapse
Oh snap!!!!... I should have known
Sent from my GT-P3100 using xda app-developers app

ketut.kumajaya said:
@Macadamia
You can use my helper script:
[DEVELOPERS TOOLS] Unpack, repack boot.img, and editing boot logo
Click to expand...
Click to collapse
So, I'm trying these, but whenever I try to execute unpackbootimg I get a "No such file or directory" error. I have verified I am in the right directory and all the files are in place.

Macadamia Daze said:
So, I'm trying these, but whenever I try to execute unpackbootimg I get a "No such file or directory" error. I have verified I am in the right directory and all the files are in place.
Click to expand...
Click to collapse
Make sure you are in the root of blackhawk-tools:
Code:
chmod 755 unpackbootimage.sh
chmod 755 repackbootimage.sh
chmod 755 tools/*

Is this only for stock, or will it work on AOKP JB ?
Thanks.

ketut.kumajaya said:
Make sure you are in the root of blackhawk-tools:
Code:
chmod 755 unpackbootimage.sh
chmod 755 repackbootimage.sh
chmod 755 tools/*
Click to expand...
Click to collapse
I did that, but it turned out to be a different issue. I had just installed 64-bit Ubuntu, so I had to download ia32-libs in order to execute these files. Now it works. Thanks!

It seems KK-Boot need a new cool boot animation, any ideas? Now I have 2 version of KK-Boot, one with improved 3D performance. The kernel base on codeworkx's code, tuna pvr driver, and maguro (Galaxy Nexus) blob. Hardware acceleration video works!
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}

Related

CIFS support

I have not seen this mentioned over here in the Vibrant sections at all, and sort of wonder why...
I found this thread by darkbyt3 while searching for cifs support a while back. I have tried the froyo module originally designed for the I9000 and it does work on the Vibrant. I am using the Stock + Voodoo kernel with Nero 3. You can use these modules (needs cifs.ko and slow-work.ko) along with Cifs Manager to mount your network shares.
Update:
Mount Manager (shameless plug) has been released and supports the loading of multiple modules. See the link for full details.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Astro file manager can sort of do this without the cifs module using its SMB plugin, but I've never been able to open anything directly using the Astro SMB. I have to copy it to the device first. With CIFS, I can open anything just like it is already on the device.
To use these modules you have to load them. I copied them to a folder called modules on my internal sdcard.
Code:
$ su
# insmod /sdcard/modules/slow-work.ko
# insmod /sdcard/modules/cifs.ko
You can check that the cifs module is loaded
Code:
# lsmod | grep cifs
cifs 257211 0 - Live 0xbf29c000
slow_work 12113 1 cifs,[permanent], Live 0cbf0bd000 (P)
Then you create the mount (or you can use cifs manager)
Code:
# busybox mount -t cifs //192.168.222.1/shares /sdcard/network/shares
The only thing I haven't figured out yet (haven't really looked either) is how/where to put the insmod commands so these modules automatically load when the device boots. Since slow-work.ko has to be loaded before cifs.ko, cifs manager cannot be used to load the cifs module since it only supports loading one module.
camalot said:
I have not seen this mentioned over here in the Vibrant sections at all, and sort of wonder why...
I found this thread by darkbyt3 while searching for cifs support a while back. I have tried the froyo module originally designed for the I9000 and it does work on the Vibrant. I am using the Stock + Voodoo kernel with Nero 3. You can use these modules (needs cifs.ko and slow-work.ko) along with Cifs Manager to mount your network shares.
Astro file manager can sort of do this without the cifs module using its SMB plugin, but I've never been able to open anything directly using the Astro SMB. I have to copy it to the device first. With CIFS, I can open anything just like it is already on the device.
To use these modules you have to load them. I copied them to a folder called modules on my internal sdcard.
Code:
$ su
# insmod /sdcard/modules/slow-work.ko
# insmod /sdcard/modules/cifs.ko
You can check that the cifs module is loaded
Code:
# lsmod | grep cifs
cifs 257211 0 - Live 0xbf29c000
slow_work 12113 1 cifs,[permanent], Live 0cbf0bd000 (P)
Then you create the mount (or you can use cifs manager)
Code:
# busybox mount -t cifs //192.168.222.1/shares /sdcard/network/shares
The only thing I haven't figured out yet (haven't really looked either) is how/where to put the insmod commands so these modules automatically load when the device boots. Since slow-work.ko has to be loaded before cifs.ko, cifs manager cannot be used to load the cifs module since it only supports loading one module.
Click to expand...
Click to collapse
Thanks a ton for the write up
As for the insmod commands on startup, I wonder if you can put them into init.rc, but I guess you need to create an update.zip like file to mod it and flash it via recovery.
Nero V3 will run /system/bin/userinit.sh on startup... you could put the commands in there.
Will this also work for NFS? I followed the steps in the OP, and the cifs modules are live, but I still cannot mount. I created the mount target directory as root with permissions set to all (777). It works on my computer. I tried typing these command into better term emulator:
busybox mount -t nfs 192.168.2.1:/my/mount /mnt/network
busybox mount -t nfs 192.168.2.1/my/mount /mnt/network
mount -t nfs 192.168.2.1:/my/mount /mnt/network
mount 192.168.2.1/my/mount /mnt/network
but I got this error for all of them:
mount: mounting 192.168.2.1:/my/mount on /mnt/network failed: No such[the
terminal gets cut off and I can't read the rest!]
CifsManager has this error:
mount:Invalid Argument
I'm running Axura 2.1 which uses JK6. Does the cifs.ko need to be compiled for specific kernels?
kslays said:
Will this also work for NFS? I followed the steps in the OP, and the cifs modules are live, but I still cannot mount. I created the mount target directory as root with permissions set to all (777). It works on my computer. I tried typing these command into better term emulator:
busybox mount -t nfs 192.168.2.1:/my/mount /mnt/network
busybox mount -t nfs 192.168.2.1/my/mount /mnt/network
mount -t nfs 192.168.2.1:/my/mount /mnt/network
mount 192.168.2.1/my/mount /mnt/network
but I got this error for all of them:
mount: mounting 192.168.2.1:/my/mount on /mnt/network failed: No such[the
terminal gets cut off and I can't read the rest!]
CifsManager has this error:
mount:Invalid Argument
I'm running Axura 2.1 which uses JK6. Does the cifs.ko need to be compiled for specific kernels?
Click to expand...
Click to collapse
AFAIK nfs is different then cifs. I don't think cifs will work with nfs shares.
lqaddict said:
Thanks a ton for the write up
As for the insmod commands on startup, I wonder if you can put them into init.rc, but I guess you need to create an update.zip like file to mod it and flash it via recovery.
Click to expand...
Click to collapse
ttabbal said:
Nero V3 will run /system/bin/userinit.sh on startup... you could put the commands in there.
Click to expand...
Click to collapse
Couldn't you also add them to init.d if you are running nero or using voodoo?
one more step in making the Mobile Phone a True Computer
Thanks for posting this CIFS Support, one more step in making the Mobile Phone a True Computer
Whitehawkx said:
Couldn't you also add them to init.d if you are running nero or using voodoo?
Click to expand...
Click to collapse
I got it to work by adding it to init.d but I had to move the two .ko files to a folder I created in /data. I think it is because the sdcard doesn't mount until late in the boot process. Other than that it works perfectly and I can read my NAS.
What is the slow work module for?
Sent from my SGH-T959 using XDA App
in which folder and which file?
grendel905 said:
I got it to work by adding it to init.d but I had to move the two .ko files to a folder I created in /data. I think it is because the sdcard doesn't mount until late in the boot process. Other than that it works perfectly and I can read my NAS.
Click to expand...
Click to collapse
roffee said:
in which folder and which file?
Click to expand...
Click to collapse
Doesn't matter, just point point the insmod cmd to where it is located in /data
roffee said:
in which folder and which file?
Click to expand...
Click to collapse
I just created a folder name CIFs in /data and put the two .ko files in it. Then in init.d I created a file that looked like :
#!/system/bin/sh
insmod /data/CIFs/slow-work.ko
insmod /data/CIFs/cifs.ko
But, just as dasunsrule32 stated, it doesn't matter what folder you use as long as your file points to the one you are using.
Awesomeness. Worked out great. Just as grendel905 stated I threw the .ko modules into a folder in /data and threw a script into init.d. They now load at boot. Just an fyi for ppl this method will not work if you are using a stock 2.2 kernel. You either need to be using voodoo or one of TW's kernels with the modified init.rc.
I've released Mount Manager on the android market that will allow you to load these modules on your device automatically (without having to edit any files). It can load them when the device boots, or when the app starts.
It also can manage your cifs/nfs shares too. Allowing you to mount/unmount them. You can also set them to auto mount when the device boots, when the application starts or when connected to wifi.
For more info you can see the thread for the app where I will maintain the changelog.
You have just become a friend to vibrant users everywhere!
So here's the problem im having. Both modules load fine and I've confirmed they are loaded, but when I try and mount anything, mount says cifs is an invalid argument for type.
Sent from my SGH-T959 using XDA App
What are you using to mount? An app or from the shell?
Sent via my Samsung Galaxy S
First I tried mount manager and when that failed I did it myself from a term.
Double checked that slow-work and cifs modules are loaded...
Here is terminal...
mount -t cifs //192.168.1.12/d /mnt/sdcard/sd
mount: Invalid argument
#
Doesn't matter where I try to mount to...
Chris
Nm, wasn't paying attention to case for my share name.. works. Thanks
Sent from my SGH-T959 using XDA App
hololight said:
First I tried mount manager and when that failed I did it myself from a term.
Double checked that slow-work and cifs modules are loaded...
Here is terminal...
mount -t cifs //192.168.1.12/d /mnt/sdcard/sd
mount: Invalid argument
#
Doesn't matter where I try to mount to...
Chris
Nm, wasn't paying attention to case for my share name.. works. Thanks
Sent from my SGH-T959 using XDA App
Click to expand...
Click to collapse
you should be able to do this and not have to worry about the case of your shares:
Code:
mount -t cifs //192.168.1.12/d /mnt/sdcard/sd -o nocase
nfs.ko
has anyone been able to create a nfs.ko module?
Thanks to the directions here I was able to create a loading cifs.ko for the Firebird SGS / GT-I9010 Kernel, but my nfs.ko built with the same process wouldn't load.

[ROM & Kernel] Aurora 1.0.0 Beta - Tutorial now included

Please note that this ROM is intended for the S5830i only! Flash at your own risk!
If you like Aurora just press the thanks button!
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Contents
Quote 1: Introduction
Quote 2: Features and Credits
Quote 3: Download Link and Installation Instructions
Quote 4: Known Issues
Quote 5: Screenshots
Quote 6: Other Information
2nd Post: Android Shell Environment Information and Tutorial​
1. Introduction
I've been working on this for a couple of months now and this is a very stable ROM that I hope you will agree, has some great features (see below). It doesn't try to act like any particular later version of Android, I've just gone for what looks best in each individual case. I am experiencing almost no force closes whatsoever and no forced reboots at all. Hopefully others will confirm the same. I have declared this first version a beta as I haven't tested it on every firmware and one person can only test for and eliminate so many bugs. It should run fine on all firmwares. I would be grateful if you could report any bugs or issues in this thread.
Click to expand...
Click to collapse
2. Features and Credits
Core System Features
Prerooted with su binary and Supersu root access management tool
BusyBox v1.20.2-linusyang - Fully working - the latest and best version.
ROM deodexed by me
Rafael.Baugis kernel E3 rev. 201212101860
Android (Bash) Shell Environment (original thread) with many great features including:Bash shell v4.1.11(2)
Custom login screen
Multi-session command history
Tab auto-completion
Colour coded ls output
Nano text editor - fully working!
Dropbear secure shell (ssh) server
adbwifi script - surprisingly it allows you to connect to adb over wifi
reboot script - reboot, reboot recovery, soft/hot reboot, power off device
remount script - easily remount /system as re-writable / read-only​AdAway hosts file - blocks advertisements - install Adaway to remove/update
ROM based on XXLI1 - Was thinking of upgrading it to latest firmware but there has been issues with that particular firmware
Apps Features
Bloatware deleted
Chrome as default browser
Total Commander as default file manager
ICS Gallery as default gallery
No-Frills CPU Control
DroidWall firewall
Latest Play Store
Slightly modded Terminal Emulator included with Bash as default shell (Hacker's Keyboard recommended)
Zipaligned all apps for optimized performance
Still 62.3MB free on /system
Theming Features
Xperia S Launcher
SkyRaider boot animation
15 Toggles and 6 Lockscreens Mod
Lidroid Preferences
Almost all icons of all apps changed for custom hand-picked ones
1% Battery Mod
Light blue right-hand status bar icons - personally redesigned some of the icons
Light blue status bar clock
Themed status bar drop-down
Jellybean menu sound
Aurora-coloured overscroll
Aurora landscape wallpaper
Other minor theming stuff
Credits
Rafael Baugis for his excellent kernel
SenseiSimple for Android Shell Environment
Alucard1989pl for 15 Toggles and 6 Lockscreens
bijoy91 for camera settings small fonts fix
UOT kitchen for some of the theming
dsixda's Android Kitchen to deodex the ROM
Anybody else that I've accidently missed out!
Click to expand...
Click to collapse
3. Download Link and Installation Instructions
Download Link (Click Here)
1. Download Aurora's zip file.
2. Put Aurora's zip file in "/sdcard".
3. Reboot into recovery.
4. If you have stock recovery, select "apply update from sdcard" and use this zip file (put it in /sdcard) to open CWM recovery.
5. Once in CWM recovery, select "wipe data / reset" > "Yes"
6. Now select "install zip from sd" > "choose zip from sd card" > "aurora<version>.zip" > Yes
7. Wait for installation to finish, press the back button and select "reboot system now"
The phone will now reboot into Aurora. The first boot will take around two minutes, during which the screen will go blank for around one minute, so no need to panic! Subsequent boots will be much quicker.
Note: When you install this ROM, you will get e3 (stock) recovery. If you need the permanent version of CWM (because and only if you have an ext4 filesystem), then simply flash Rafael's CWM boot.img after flashing Aurora's zip file.
Click to expand...
Click to collapse
4. Known Issues
An icon of an app that is stored on the SD card that has been placed on the home screen / desktop occasionally dissapears after rebooting. This is a bug in the Xperia S launcher and there is not an awful lot I can do about this personally. There are a couple of workarounds however.
Workaround 1: The obvious, move the app to the phone's internal memory
Workaround 2: Place apps stored on the SD card in a folder on the home screen / desktop and they will not dissapear after reboots.
Click to expand...
Click to collapse
5. Screenshots
Click to expand...
Click to collapse
6. Other Information
You may use and/or redistribute my work but please give me credit. If redistributing this ROM, please link to this thread.
By the way this is my first ROM, thought I'd sneakily leave that until last
Click to expand...
Click to collapse
Android Shell Environment Information and Tutorial
Android Shell Environment Information and Tutorial
You may want to read through the original thread first.
Android Shell Environment Aurora Specific Information
​
The main difference between the original version of Android Shell Environment and the one included in Aurora is that all files are stored on the /system partition except for a couple of configuration files.
Take a look in /system/sbin for the useful utilities mentioned in the original thread
Scripts are in /system/bin (along with a lot of other Android system files).
Most of the configuration files are in /system/etc although a couple are in /data/local
In Aurora, unlike the original version, there is no option to make Bash the default shell. Firstly, this causes a bootloop on the S5830i and secondly it is pretty pointless anyway because Bash doesn't load its configuration files when set as the default shell which removes much of its functionality.
The binaries htop, scp, ssh and vim have been removed because they do not work. For all of these, there are working alternatives. For htop, use top instead, for scp use rsync, for vim use nano, for ssh use adbwifi. The text editor Joe does not work properly but has been included. Either use Nano instead or if you can get it working then please tell me how you did it!
Click to expand...
Click to collapse
Android Shell Environment Tutorial​
How To Use Bash​To start Bash:
ADB: From your PC command line, type 'adb shell' <enter>, then type 'bash' <enter>. Do not type 'adb shell bash' all in one go, this will cause problems.
Terminal Emulator: Bash loads automatically.​
Command History - Press the <UpArrow> and <DownArrow> keys to scroll through your command history. Use Hacker's Keyboard to do this in Terminal Emulator.
Auto Completion - Start typing the name of a file, folder or command, then press <Tab> to have Bash automatically complete the rest of the text. If nothing happens when you press <Tab>, then there may be multiple options, double press <Tab> to see the multiple options.
For auto-completion in Terminal Emulator, I have set a default preference so that when the phone's back key is pressed it send's out the keyboard <Tab> key. Note that this means that you cannot close Terminal Emulator using the back key, you have to enter the 'exit' command. You can change this preference in the app's settings.
To leave Bash: - Enter the command 'exit'
Click to expand...
Click to collapse
How To Use Nano Text Editor​
Nano is a user friendly command line editor. To start nano and create a new file simply type 'nano'. To start nano and open a specific file for editing type, e.g. 'nano /system/build.prop'.
If you are editing on the system partition then make sure you enter the command 'remount rw' before starting nano to mount /system as re-writable.
When you are finished editing, to exit nano enter the key combination <Ctrl>+<X>. If you have modified the file, nano will ask you if you wish to save it and request that you enter a file name.
That's basically all there is to it when it comes to the basics of this program.
Click to expand...
Click to collapse
How To Use the Reboot Command​I have rewritten the original reboot script to include a couple more parameters. Reboot now accepts the following options:
reboot - normal reboot
reboot recovery - obvious
reboot hot - hot/soft/quick reboot, restarts the Android runtime
reboot off - powers off the device, alternatively you can use the command 'halt' to acheive this
Click to expand...
Click to collapse
How To Use The Sudo Command​sudo is a well known Linux feature that runs a single command as root, useful if you generally want to work as a normal user for safety/security.
An example of this would be 'sudo adbwifi on'
Click to expand...
Click to collapse
How To Enable/Disable ADB Over WiFi​Do NOT do this from ADB shell, do this from Terminal Emulator.
Enter the command 'adbwifi on'
Follow the prompts on-screen, it tells you the rest.
To disable use 'adbwifi off'
Click to expand...
Click to collapse
How To Demote Yourself To Normal User In ADB Shell​Note: Do not do this from Bash because it doesn't work, either run it before you start bash or type 'exit', run the command, then start Bash again.
By default, ADB shell logs you in as root because Rafael's kernel has an ADB 'root mod'. This is generally very handy but sometimes, working as root is not ideal because it's very easy to brick your phone. Thankfully it is actually possible to be demoted to normal user status with the following command:
'su shell'
If you wish to return to root user, enter the command 'exit'
Click to expand...
Click to collapse
How To Use DropBear Secure Shell Server​
Dropbear allows you to login to your phone's shell (i.e. like adb shell / terminal emulator) from another device such as a PC or phone using, for example, WiFi.
To start Dropbear with the password 'pickledjelly' enter the command:
/system/sbin/dropbear -A -N root -U 0 -G 0 -C pickledjelly -r /system/etc/dropbear_rsa_host_key -b /system/etc/.dbbanner
To login from another Android device you can use e.g. Connect Bot,
use ssh protocol and in the text box enter [email protected]
Replace x and y with your phone's IP address from your WiFi router (you can get this with the command 'ifconfig')
To login from a PC running Linux enter the command:
ssh 192.168.x.y
To stop the Dropbear server issue the command 'killall Dropbear'
Click to expand...
Click to collapse
gud work man......i think this rom can have great future.....
make it final.
great job dude..:good:. now trying to combined with cronmod script by styrke...(only this way to solve our internal memory issue)
well done... all working with cronmod...
Glad some like it, cheers :good:
your rom sounds great! but is there really no way to get it based on xxlk3 (ins) ?
HeathenMan said:
your rom sounds great! but is there really no way to get it based on xxlk3 (ins) ?
Click to expand...
Click to collapse
Hi HeatherMan, I have held back on upgrading the ROM to XXLK3 so far because there were issues with IMEI numbers going awol when combining XXLK3 ROMs with custom kernels. I'll look at this again at some point though.
Aurora does work perfectly fine on XXLK3 firmware though, I currently have XXLK3 UK myself.
hi. why u don't use hell_lock kernel? thats might be better.i guess so.
SemBoyHehe said:
hi. why u don't use hell_lock kernel? thats might be better.i guess so.
Click to expand...
Click to collapse
hell_lock? wtf it is pre alpha and not stable with less features, what kind of better is THAT ?!?
HeathenMan said:
hell_lock? wtf it is pre alpha and not stable with less features, what kind of better is THAT ?!?
Click to expand...
Click to collapse
hey bro. u se ' I GUESS SO' u see that many people have trouble on that ketnel like dont have imei, earphone prob n etc. that why i guesd so
I chose Rafael's kernel because it has the most features and is currently quite stable. Hells Fusion does not presently have full IP tables needed for firewalls and has no governors or schedulers other than the standard ones.
When testing the XXLK3 IMEI issue I found that it occurred in Hells Fusion kernel as well as Rafael's. I also encountered the headphone problem at one point and found that it was because I'd flashed the boot.img but did not have the kernel modules installed.

Ubuntu Touch 13.10 Saucy on the HP Touchpad DUAL BOOT ANDROID

Ubuntu Touch 13.10 SAUCY Rom Triple Boot WebOS, Android, Ubuntu Touch (Or Quad if you need to)
09-27-2013 is the RootFS Date with apt-get dist-upgrade to 9-29-2013
Download Links Updated 09-29-2013 5:44 am central time
http://gdurl.com/d6Qn cm-10.1-20130929-UNOFFICIAL-tenderloin.zip (Install First Kernel\Ramdisk\System Partition)
http://gdurl.com/EnW8 saucy-preinstalled-touch-armhf.zip (Install Last Ubuntu Touch RootFS\Data Partition)
PARTITION CREATOR AND UNINSTALLER (From ACMEInstaller3 and ACMEUninstaller) Thanks Green!
http://www.gdriveurl.com/?idl=813809797536&out=2 UbuntuTouch_Partition_Creator
http://www.gdriveurl.com/?idl=613809797926&out=2 UbuntuTouch_UbuntuDesktop_Partition_Creator
http://www.gdriveurl.com/?idl=513809798298&out=2 UbuntuTouch_Uninstaller
http://www.gdriveurl.com/?idl=413809798725&out=2 UbuntuTouch_UbuntuDesktop_Uninstaller
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
HOW TO INSTALL!
You will need a little over 2 GB of space on your sdcard to devote to the new LVM Partiitons! This assumes you HAVE installed CyanogenMod (Android), ClockworkMod Recovery, MoBoot and still have WebOS. WebOS is a prerequisite for Audio. ALSO, you need novaterm. http://www.webos-internals.org/wiki/Accessing_Linux_Using_Novaterm AND it's good to have adb as well.
NOTE! If you have Ubuntu 11.04 - 13.XX Desktop Version
The Ubuntu Desktop LVM needs to be Uninstalled and Recreated. I have provided uImage files and Novacom to do this, or you can change the /etc/fstab file to have the correct device mapper paritition number.
Dealing with a small boot partition! It cannot hold all the uImages for WebOS, Android, Ubuntu Desktop, Ubuntu Touch, andClockworkMod at the same time. What I usually do is move the Ubuntu Touch kernel off of /boot to /sdcard (/media/internal in webos) before installing Ubuntu Touch, then move ClockworkMod to the /sdcard after installing Ubuntu Touch, and of course move the Ubuntu Desktop uImage file back to the /boot partition for Quad-Booting. You should only do this, if you know what you are doing, as having ClockworkMod on boot is handy. Know what you are doing or don't do it. (Which is why I should probably stay away from rom building!, haha) https://github.com/jshafer817/Ubunt...mportant files after compiling/data/etc/fstab
*IF YOU HAVE ALREADY INSTALLED THE ROM THAT WAS NOT DUAL-BOOT CAPABLE, YOU SHOULD REINSTALL ANDROID FIRST SINCE WE WIPED IT OUT
*Since we are dual-booting, we need to create 3 LVM Partitions that will use 2 GB of space from the sdcard*
1. Copy the RootFS.zip and the cm-10.zip file to the sdcard
2. Reboot into WebOS Recovery
3. novacom boot mem:// < UbuntuTouch_Partition_Creator
OR
novacom boot mem:// < UbuntuTouch_UbuntuDesktop_Partition_Creator (Requires 6.2 GB of Space, for Ubuntu Desktop 11.XX - 13.XX)
4. Reboot into ClockWorkMod to install the cm-10-*.zip FIRST and the RootFS zip LAST
5. Reboot and chose uImage.UbuntuTouch
Wait 3 minutes, while the touchpad boots. At some point adb will start to run. Eventually you should see a Unity Session..
If you didn't see a session!
a) reboot!
b) Eventually the backlight on the screen will shut off.. Touch the screen or hit the power button or home button some builds to turn the screen on. Still no session? Can you run android-chroot when you get into adb? When you login to adb it should say [email protected] and not BusyBox? You can also run /system/bin/logcat. Hold down the power button for 2 or 3 seconds and Ubuntu Touch will shutdown.
TO FORMAT UBUNTU TOUCH LVM PARTITIONS (in case your wondering create-partition.sh does this.. but what if you want to format after you install to do a reinstall??
novaterm into webos!
mkfs.ext4 /dev/store/ut-data
mkfs.ext3 /dev/store/ut-system
mkfs.ext3 /dev/store/ut-cache
TO REMOVE UBUNTU TOUCH LVM's AND KERNEL
novacom boot mem:// < UbuntuTouch_Uninstall
TO REMOVE UBUNTU TOUCH AND UBUNTU DESKTOP LVM's AND KERNEL
novacom boot mem:// < UbuntuTouch_UbuntuDesktop_Uninstall
Having problems installing WebOS Applications????
https://developer.palm.com/support/applicationupdate WebOS UpdateManager Certificate Fix
http://forum.xda-developers.com/showthread.php?p=42317438
There is an update to WebOS.. If you wipe your device after July 23rd 2013.. Then you must do this.
Ubuntu Touch Notes!
NOTE! If you have Ubuntu 11.04-13.10 NON-TOUCH installed, you will need to:
novacom boot mem:// < UbuntuTouch_UbuntuDesktop_Uninstall
*Built from Milaq's CM 10.1 Source WITHOUT JCSullins Bluetooth fixes
*Bluetooth and Sound come from the Ubuntu 11.04-13.10 Non touch. Mainly the upstart and executables. WebOS does get mounted for sound to get initialized. udev and pulse were patched.
*First Ubuntu Touch device running Saucy (Flipped Image) but with LVM Partitions. For this to work I had to compile lvm and e2label statically and use them in the ramdisk for Ubuntu.
How Saucy Works!?
Kernel is loaded with an Ubuntu Touch Ramdisk (Like normal Linux). Then the data partition is mounted as root, the system partition is mounted as /system. The LXC containter loads android based off of /system, then Ubuntu Touch Session loads. This is not a chroot like quantal.
What works:
*Camera
*Wifi
*Bluetooth
*Sound
*Accelerometer
Bugs and Beta\Alpha Stuff:
1. PulseAudio\GStreamer\Music App is not tied to the Media Service, so the music does not play with the screen turned off. GStreamer keeps playing, but you cannot hear sound unless powerd has turned the screen on and.. ??? Not worth changing until Ubuntu Touch becomes more.. finalized. Sometimes the music does not come back on after a long sleep?
Workarounds:
sudo service powerd stop (with the backlight turned on)
2. Bluetooth only works in terminal
a) this is because Bluetooth Settings has not been written to Ubuntu Touch
3. Camera App only works one time. Needs to be mirrored.. Again. Long story!
4. Brightness or Backlight settings???
as root!
echo "0-255" > /sys/class/leds/lcd-backlight/brightness
to set the screen brightness. 0-255 is a range of values you should use.
0 will turn off the backlight
255 is full birghtness
and of course.. service powerd stop while the screen is on will stop powerd from turning off the backlight if idle.
5. Touchscreen finger liftoff does not always get detected at boot correctly. Need to talk to ubunu-devel about that.? CM-TEAM?? Hmm.. Reboot and try again!
6. Browser cannot download files. Browser cannot play videos because the latest gstreamer "has not landed yet"..
7. 720P H.264 is choppy? 480p plays fine.. Waiting for more updates.
APPARMOR NOTE: Since 2.6.35 Kernel does not have apparmor, we are using /usr/bin/aa-strip with crontab to run every minute. So if you install a click app and cannot run it, wait a minute! sed -i "s/aa-exec.*-- //g" /home/phablet/.local/share/applications/*.desktop
OPEN-SSH NOTES:
Recently they did something to openssh. Do this to install.
apt-get install --reinstall openssh-server
service ssh start (every boot?)
If powerd turns off the backlight, it suspends your ssh session. There is some code in the wifi modules that I believe is causing it. Work on that later.. or disable powerd and turn the lights off to save battery power or backlight by reading brightness notes above.
MTP-SERVER NOTE
mtp-server has been disabled.. want to enable it? As root!
cd /etc/init
mv ../mtp* .
cd /usr/share/upstart/sessions
mv ../mpt* .
reboot
When you do, don't expect adb to work... In Ubuntu 13.10 Desktop, you see the /home/phablet get Mounted on the filesystem via mtp.. I haven't messed with the Windows Driver.. I messed with the google one and changed the pid and vid, and.. no device was found when I ran adb.. so.. perhaps mtp shuts down adb on the touchpad.. I think that was in the upstart file though.. mtp-server-bootup.conf, etc.
MORE USEFUL NOTES
How to copy files with novaterm?
cat filename | novaterm put file:///put/full/destination/path/filename (push example) tested
novaterm get file:///full/destination/path/filename (pull example) untested
novaterm get file:///full/destination/path/filename > filename (pull example) untested
How do I compile uimage-extract to extract a kernel.img and ramdisk.img from a uImage file (boot.img)?
git clone https://github.com/jcsullins/moboot
cd moboot/tools
gcc -o uimage-extract uimage-extract.c -lz
How do I extract the kernel image and initramfs from a uImage file?
./uimage-extract uImage.filename (from inside moboot tools folder)
How to unpack and repack gzip ramdisk images?
mkdir newramdisk
cd newramdisk
gunzip -c ../your-ramdisk-file | cpio -i
make changes, next command is to pack a new ramdisk.img
find . | cpio -o -H newc | gzip > ../newramdisk.img
How to unpack and repack lzma ramdisk images? (I used lzma)
mkdir newramdisk
cd newramdisk
lzma -dc ../newramdisk.img | cpio -i
make changes, next command is to pack a new ramdisk.img
find . | cpio -o -H newc | lzma > ../your-ramdisk-file
How to create a moboot compatible kernel?
mkimage -A arm -O linux -T kernel -C none -a 0x40208000 -e 0x40208000 -n "Kernel" -d kernel.img uImage
mkimage -A arm -O linux -T ramdisk -C none -a 0x60000000 -e 0x60000000 -n "Image" -d ramdisk.img uRamdisk
mkimage -A arm -O linux -T multi -a 0x40208000 -e 0x40208000 -C none -n "multi image" -d uImage:uRamdisk uImage.CyanogenMod.new
How to connect to an open-wifi network without Unity as root?
adb shell
sudo su
service network-manager stop
iwconfig wlan0 essid "essid-you-want-to-connect-to"
ifconfig wlan0 192.168.X.X netmask 255.255.255.0 up
route add default gw 192.168.X.X
sed -i '$ a nameserver 8.8.8.8' /etc/resolv.conf
you should be on the net.
How can I create my own saucy-preinstalled-touch-arm.tar.gz to go into the .zip? (from a runnng device)
adb shell
cd /data/ubuntu
sudo tar --preserve-permissions -zcvf /sdcard/saucy-preinstalled-touch-armhf.tar.gz *
exit
adb pull /sdcard/saucy-preinstalled-touch-armhf.tar.gz .
now put that file in the .zip.
How do I untar the saucy-preinstalled-touch-armhf.tar.gz file?
place saucy-preinstalled-touch-armhf.tar.gz in the folder you want to be in, and go to that folder in terminal
mkdir rootfs
cd rootfs
sudo tar --preserve-permissions -zxvf ../saucy-preinstalled-touch-armhf.tar.gz
sudo make your changes as root, be mindful of permissions.
How do I swap my kernels to quad-boot? (With webOS)
a)Before you install Ubuntu Touch, move a kernel from /boot to /media/internal
novaterm
mount -o remount,rw /boot
mv /boot/uImage.Ubuntu13 /media/internal (or uImage.Ubuntu)
mount -o remount,rw /boot
b) After you install Ubuntu Touch, move it back, but remove ClockworkMod (know what you are doing are don't do this)
novaterm
mount -o remount,rw /boot
mv /boot/uImage.ClockworkMod /media/internal
mv /media/internal/uImage.Ubuntu13 /boot
sync
mount -o remount,ro /boot
How can I run webOS Doctor after all this and just start all over factory clean?
http://forum.xda-developers.com/showthread.php?t=1564938 3rd post but I would skip the creation of /dev/store/cm-* partitions. Be sure to delete cm-data, cm-system, cm-cache, ut-data, ut-system, ut-cache, and ubuntu-store if you have it. Delete them all! Then recreate the lvm. If you need to recreate Android partitions do that with AcmeInstaller ie the usual way to install Android. You must start with WebOS 3.0.0 and then you can do 3.0.5. Be sure to say thanks on that post.
Thanks to:
Ogra (ubuntu-touch, huge thanks!), castrwilliam (ubuntu desktop rom), CalcProgrammer (ubuntu desktop rom), crimsonredmk (archlinux rom), Flemmard (cm team "resizing the boot partition would be stupid", yep), Mystikal57 (sound fixes in desktop that really helped get it going), JCSullins (moboot, cm team, all sorts of stuff), Dorregray (camera fixes I need to reimplement), w-flo (ubuntu-touch), drmarble (ubuntu-touch, cyanogenmod-touchpad, big thanks to him).. and others from the #ubuntu-touch irc channel and Ubuntu 11.04-13.10 threads, cyanogenmod team, etc... "I stand on the shoulders of giants"
Look at the old Ubuntu Touch thread I started around page 17 for more in depth notes on what I did.
OR
https://github.com/jshafer817/UbuntuTouch
I am NOT a developer!!!!
Wow this is exciting news for my little tablet... Been messing around with 13.04f so this will be a blast.
Sent from my Galaxy Nexus using Tapatalk 2
Once you release your build I'll try to iron out some of the bugs.
Sent from my LG-LS970 using xda app-developers app
blmvxer said:
Once you release your build I'll try to iron out some of the bugs.
Sent from my LG-LS970 using xda app-developers app
Click to expand...
Click to collapse
Thanks! I am going to work on the camera being mirrored and flipped for the next 3 hours or so.. after that.. oh well! =)
Just be sure to post your fixes.
Will do! good luck!! Can't wait to boot this up and get to work!
Sent from my LG-LS970 using xda app-developers app
Any update on the camera bug... Get that baby squashed yet
Sent from my Galaxy Nexus using Tapatalk 2
kicker22004 said:
Any update on the camera bug... Get that baby squashed yet
Sent from my Galaxy Nexus using Tapatalk 2
Click to expand...
Click to collapse
Honestly.. a little bit.. Spent all day trying to figure out what file makes the change.. as this has to be done in cm10.1 not ubuntu.
camera.msm8660.so
About 1 try left before giving up.. In the meantime I created a github... Will be very soon. Before I go to sleep again.. Brewing Coffee..
Took a 5 hour nap today though! Sweet!
I found a line for CameraHAL.cpp and I swapped 3/2 to 2/3 and got an ugly green screen. I am trying to swap previewWidth and Height now.. If nothing happens.. I give up and will start to package. FAILED.
The last try will be just telling it to be a front facing camea, as that would explain the mirror, flipping??? New Idea sounds better!
if (read_mode_from_config("preview_mode") == 1) {
info->facing = CAMERA_FACING_BACK;
}
to (remove the if)
info->facing = CAMERA_FACING_BACK; OR?
info->facing = CAMERA_FACING_FRONT;?
Testing both then packaging. dmesg seems to say we are using preview mode 2 so maybe add the 2?
First try:
info->facing = CAMERA_FACING_FRONT; if no change occurs in image (NO CHANG OCCURED), then perhaps Ubuntu Touch thinks the camera IS front facing.. so the next try will be facing back hard coded.. look for a change, if it does.. try adding the 2 with the if statement. Or just keep it this way... as a change would be GREAT.
from dmesg:
msm_camio_set_perf_lvl: S_PREVIEW rc = 0
VFE opertaion mode = 0x2, output mode = 0x5
http://developer.android.com/reference/android/hardware/Camera.html !
android::HAL_getCameraInfo(camera_id, &cameraInfo);
info->facing = cameraInfo.facing;
info->orientation = cameraInfo.orientation;
info->facing = CAMERA_FACING_BACK;
info->orientation = 90;
vs
info->orientation = 180;
Going to try this now.. as the camera WAS being a front camera. Image is no longer mirrored incorrectly. Now we just have to find the right orientation.
:good:
Nice work. Power naps are the best for figuring out problems
Sent from my Galaxy Nexus using Tapatalk 2
Alright.... will be releasing today...
Got the rotation better with... compass\accel.. not the camera...
Going to try a couple more things....
jshafer817 said:
Alright.... will be releasing today...
Got the rotation better with... compass\accel.. not the camera...
Going to try a couple more things....
Click to expand...
Click to collapse
I'm ready!!!!
Sent from my LG-LS970 using xda app-developers app
And I'm charging my tablet lol
Sent from my Galaxy Nexus using Tapatalk 2
Okay... I think we will need to recompile the camera app to change to portrait\landscape correctly...
So.. Rom Released!
I will be testing within an hour once I doctor my tablet and resize the partitions.
Sent from my LG-LS970 using xda app-developers app
---------- Post added at 09:40 PM ---------- Previous post was at 09:34 PM ----------
When you compile your next kernel for your ROM, if you do, will you add fstrim?. As I read there is slow graphics. Trimming the partitions should speed up things.
Sent from my LG-LS970 using xda app-developers app
I'm away from the house...dang!!
Sent from my Galaxy Nexus using Tapatalk 2
Camera App Info!
VideoOutput {
id: viewFinder
property bool shouldBeCentered: device.isLandscape
property real anchoredY: viewFinderGeometry.y * (device.isInverted ? +1 : -1)
property real anchoredX: viewFinderGeometry.x * (device.isInverted ? +1 : -1)
x: viewFinder.shouldBeCentered ? 0 : viewFinder.anchoredX
y: viewFinder.shouldBeCentered || device.naturalOrientation === "landscape" ?
0 : viewFinder.anchoredY
width: parent.width
height: parent.height
source: camera
/* This rotation need to be applied since the camera hardware in the
Galaxy Nexus phone is mounted at an angle inside the device, so the video
feed is rotated too.
FIXME: This should come from a system configuration option so that we
don't have to have a different codebase for each different device we want
to run on */
orientation: device.naturalOrientation === "portrait" ? -90 : 0
/* Convenience item tracking the real position and size of the real video feed.
Having this helps since these values depend on a lot of rules:
- the feed is automatically scaled to fit the viewfinder
- the viewfinder might apply a rotation to the feed, depending on device orientation
- the resolution and aspect ratio of the feed changes depending on the active camera
The item is also separated in a component so it can be unit tested.
*/
Ah HA!!!
Is a Doctor a must? all i'm getting is a black screen right after CID changes faces. I've let it sit for 10 minutes and still same results, Reformatted system,data,cache and re installed in order...same?
A few questions
Been using Ubuntu on my Laptop and liked it. I'm looking to try it out on my TouchPad now but I have a few questions.
Does this replace Android? Or does this create new partitions for Ubuntu and allows triple boot from moboot?
I've notice a few installation instructions saying this is 'based on CM10'. Is this Ubuntu on top of the Android core or a pure Ubuntu installation?
Thanks for clarifying this for me in advance.
Fr3nZy said:
Been using Ubuntu on my Laptop and liked it. I'm looking to try it out on my TouchPad now but I have a few questions.
Does this replace Android? Or does this create new partitions for Ubuntu and allows triple boot from moboot?
I've notice a few installation instructions saying this is 'based on CM10'. Is this Ubuntu on top of the Android core or a pure Ubuntu installation?
Thanks for clarifying this for me in advance.
Click to expand...
Click to collapse
This replaces Android. Backup is your friend!
Thanks to the op for continued development of this rom.
---------- Post added at 08:49 AM ---------- Previous post was at 07:53 AM ----------
kicker22004 said:
Is a Doctor a must? all i'm getting is a black screen right after CID changes faces. I've let it sit for 10 minutes and still same results, Reformatted system,data,cache and re installed in order...same?
Click to expand...
Click to collapse
Same issue here ....
Edit: success! Booted up after a couple of minutes after a reboot.
However, some issues - rotation not working and keyboard is messed up. It comes up in the top left hand corner of the touchpad when in landscape mode, see attached pictures.
Thanks
Well tomorrow I'll give it another try
Sent from my Galaxy Nexus using Tapatalk 2

[ROM] [4.3.1] CyanogenMod 10.2

Hi, if anyone would like to run a 4.3.1 Google OS on a Archos G9 80S device (and currently only this), download and extract this file:
19_01_2014-13_32_32
Installation (tested only with linux) :
- reboot into SDE menu and under "Format System" perform a "Reset Android & Storage" to clear all data of previous installations (this is really important!).
- reboot into SDE menu and under Developer Edition Menu -> "Export Data Partition"
- mount this usb drive
Code:
sudo mkdir <Mount_Path>/local
sudo cp archos.ext4.update <Mount_Path>/local/archos.ext4
sudo sync
sudo umount <Mount_Path>
- wait until the unmount process is done
- reboot into SDE menu and under Developer Edition Mernu , Flash Kernel and Initramfs : copy zImage and initramfs.cpio.lzo on the new driver that appears on desktop/laptop
- Wait for reboot your devices : after reboot you can see Android prepares the system for a while .....be patient !
What's new ?
------------ since 19_01_2014-13_32_32 -------------
Last attempt to satisfy "H" model users. Wrong fstab definition file was used.
ArchosControlCenter: Alternate command for enabling disabling 3G service activation/deactivation.
------------ since 17_01_2014-20_17_32 -------------
KSM (Kernel samepage merging) support. (Enable it in CM performance options).
HDMI enable for 101 models too.
WLAN MAC address taken from device. Until now in my releases, the MAC address where the same for all devices. (gave some conflicts, when two devices are used in parallel).
------------ since 22_12_2013-13_29_20 -------------
Deactivated PCB temperature sensor. It is not part of the devices, and (my) default setting gives the cpufreq
module a wrong view of the situation. Now it should reduce the reboot which is caused by critical temp, by reducing core speed.
------------ since 19_12_2013-23_43_36 -------------
Using CPUFreq from 3.0.31 omapzoom reference kernel
Included app from @mordesku (modified by me) -> 3G should work!
Note that if you only pushed the image as update, please make sure to delete the /data/data/com.android.providers.telephony/databases/telephony.db
(adb shell rm /data/data/com.android.providers.telephony/databases/telephony.db) and reboot the device to rebuild.
I forgot to include the apns-conf.xml so there are no APN's available (as result no data connection can be established).
Removed my Widget to not affect the archos control center app
Some kernel changes.
Enabled zram and init.d
Initial support for H models (testing and patches are welcome).
Newest CM Updates: Changes since last release
------------ since 02_12_2013-22_56_07 -------------
Removed clicks when audio driver is closed
Reduced the volume a little bit to avoid scratches
Removed default dpi setting on build
Newest CM Updates: Changes since last release
------------ since 21_11_2013-21_45_53 -------------
Using new pvr library SGX-BIN: DDK binaries and KM source [email protected]
HWComposer 1.1 interface
No ICS audio blob anymore. Adapted omap upstream audio HAL.
Some internal audio extensions by TI (omap_enhancement)
Kernel audio sources updated to 3.0.31 omap upstream release.[/INDENT]
------------ since 08_11_2013-22_14_52 -------------
CM10.2
Upstream init.rc
TI Openlink WLAN driver R5.SP6.01
Temporary disabled ClockworkMod Recovery
A widget "Archos Control Center" where the user can activate the deep sleep behavior. Warning: If you use the archos as alarm clock you will oversleep! (It only will wake up, when pressing the power button).
Also the 3G port can be activated with this widget. I discovered some hangs, which can only solved by removing and re-adding the widget on the screen. If someone can help me with this widget, please have a look at: github It's my first app ever... so it is very ugly =)
Initial A101s support.
Something I've not tried...
3G USB Stick is working.
Issues:
- GPS not reliable (as usual for every release....) -> After complete new system ("Reset Android & Storage") the GPS is working very good. Subsequent boots later it gets worse at my device(s):
My Workaround: Go into Settings->Apps->All->Google Service Framework and delete data and cache. Then reboot and GPS should e working. Also I get sufficient results with the GPS Toolbox App.
21_11_2013-21_45_53:
Microphone as degraded sound quality compared to the stock rom.
Some sound clicks here and there when system sounds are turned on.
Audio sound is a little bit quiet compared to the stock rom. (Needs to be adjusted by myself).
Can't test HDMI (both audio/video). (It's also not an use case for me). If someone would like to help....
HDMI scaling issues
"H" models doesn't seem to work.
Rebuild: All used revisions for this release are stored in a separate folder in the archive.
Additions:
Archos Control Panel App from @mordesku: http://forum.xda-developers.com/showpost.php?p=47789812&postcount=88
Archive:
17_01_2014-20_17_32
22_12_2013-13_29_20
19_12_2013-23_43_36
02_12_2013-22_56_07
21_11_2013-21_45_53
08_11_2013-22_14_52
07_11_2013-22_53_33
Archos CM10.2 - 26_10_2013-23_26_11
Thanx for your work now i'm bakcig up my data and will test as soon as possible. Is this build run from disk images or it replace original archos system?
mordesku said:
Thanx for your work now i'm bakcig up my data and will test as soon as possible. Is this build run from disk images or it replace original archos system?
Click to expand...
Click to collapse
As usual for the custom Android releases for this archos device , they don't replace the original partitions. But it is not possible to run both in parallel. So practically yes, it replace the original system.
Quallenauge said:
- Wait for reboot your devices : after reboot you can see Android prepares the system for a while .....be patient !
Click to expand...
Click to collapse
Hi again. My tab is displaying archos logo for long time (about 10-15 minutes) now is this normal. I have question where exacty i should put the update file. In debian i put it to /media/data/data/local where /media/data is my mount point.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
mordesku said:
Hi again. My tab is displaying archos logo for long time (about 10-15 minutes) now is this normal. I have question where exacty i should put the update file. In debian i put it to /media/data/data/local where /media/data is my mount point.
Click to expand...
Click to collapse
Sorry, my fault.....
Can you please rename the file while you copy? (I have corrected my first post).
Code:
sudo mkdir <Mount_Path>/local
sudo cp archos.ext4.update <Mount_Path>/data/local/[B]archos.ext4[/B]
Quallenauge said:
Sorry, my fault.....
Can you please rename the file while you copy? (I have corrected my first post).
Code:
sudo mkdir <Mount_Path>/data/local
sudo cp archos.ext4.update <Mount_Path>/data/local/[B]archos.ext4[/B]
Click to expand...
Click to collapse
(Just for reference, when using the update mechanism the file has to placed here:
Code:
sudo cp archos.ext4.update <Mount_Path>/data/[B]media[/B]/archos.ext4.update
)
Quallenauge said:
Sorry, my fault.....
Can you please rename the file while you copy? (I have corrected my first post).
Code:
sudo mkdir <Mount_Path>/data/local
sudo cp archos.ext4.update <Mount_Path>/data/local/[B]archos.ext4[/B]
Click to expand...
Click to collapse
Renamed file as you said but still tab is stuck on archos logo.
--- edit
My bad . Got to many data directories. Rom boots form /media/data/local/archo.ext4 before was /media/data/data/local/archos.ext4
mordesku said:
Renamed file as you said but still tab is stuck on archos logo.
--- edit
My bad . Got to many data directories. Rom boots form /media/data/local/archo.ext4 before was /media/data/data/local/archos.ext4
Click to expand...
Click to collapse
Thanks for your reply. I corrected the paths in previous posts.
Is it stable for very day use???
Everithing working lie Cam and HW video?
Using it since yesterday. It's very smooth and fast. No freezes at all.
Sent from my ARCHOS 80G9 using Tapatalk 4
Installation on Mac OS X
For those of you who want to brave installation from a Mac, you can use FUSE to mount the data partition. You'll need to follow the directions here to be able to mount the partition with write access. Once the partition is mounted, follow @Quallenauge's fabulous instructions! I'm watching a spinning CyanogenMod logo right now!
Note: If you copy the file from the command line, you'll probably get a message saying "could not copy extended attributes to data/local/archos.ext4: Operation not permitted". Don't worry, the file copied just fine. If you're really paranoid, run md5sums on the file to verify.
- Dave
stealthdave said:
For those of you who want to brave installation from a Mac, you can use FUSE to mount the data partition. You'll need to follow the directions here to be able to mount the partition with write access. Once the partition is mounted, follow @Quallenauge's fabulous instructions! I'm watching a spinning CyanogenMod logo right now!
Note: If you copy the file from the command line, you'll probably get a message saying "could not copy extended attributes to data/local/archos.ext4: Operation not permitted". Don't worry, the file copied just fine. If you're really paranoid, run md5sums on the file to verify.
- Dave
Click to expand...
Click to collapse
Damn to install it yesterday i installed debian on virtualbox on my macbook
Sent from my ARCHOS 80G9 using Tapatalk 4
My tablet is still showing the snazzy CyanogenMod bootloader image after an hour and refuses to load the Android GUI. I tried starting the process over again with the same results. I am able to get to an adb shell and play around there, but Android never finishes loading. I'm running a G9 80S with 1GHz OMAP 4430 and 512MB of RAM. Logcat attached.
Hi,
thank you for building this and all your other ROMs.
Quallenauge said:
Code:
sudo mkdir <Mount_Path>/local
sudo cp archos.ext4.update <Mount_Path>/data/local/archos.ext4
Click to expand...
Click to collapse
This is inconsistent.
Is it local/ or data/local/?
I tried to install the ROM following your instructions.
I renamed "archos.ext4.update" to "archos.ext4".
I reset Android and Storage, exported the USB storage, on my machine it was mounted on /media/username/data.
I then used the following commands:
Code:
sudo mkdir /media/username/data/local
sudo cp archos.ext4 /media/username/data/local/
Then I selected "OK" in the tablet and "Flash Kernel and Initramfs" followed by:
Code:
sudo cp zImage /media/username/A80S_REC/
sudo cp initramfs.cpio.lzo /media/username/A80S_REC/
Then I rebooted the tablet.
Now the tablet was flashing the Archos logo for a second and then rebooting, in a loop.
So I guessed the local/ directory was wrong and I might have to use data/local/.
I repeated the steps above, replacing "local/" with "data/local".
This time the tablet didn't reboot in a loop, but I only got the static Archos logo, not the animated Archos logo or the CyanogenMod logo.
I probably missed a step or misread some instruction.
Any idea where I made the mistake?
@esque: Sorry for the confusion... Your first attempt was right:
Code:
sudo mkdir /media/moronoxyd/data/local
sudo cp archos.ext4 /media/moronoxyd/data/local/
@all: Please perform an unmount before pressing "OK" on the device. If not, the image is broken!
Just to be sure, reboot the tab and mount the drive and perform a
Code:
md5sum <Mount_Path>/local/archos.ext4
and verify that value with the image on your host.
If there are the same values, we have to find another solution for the problem.
@stealthdave: Your logcat file looks very close to the problem above (file image broken).
Quallenauge said:
@stealthdave: Your logcat file looks very close to the problem above (file image broken).
Click to expand...
Click to collapse
Yes, that was the issue. umount for everyone!!!
Thanks.
Great job, like buying a new tablet.
The only thing I would add is to sudo sync before unmounting.
Quallenauge said:
@all: Please perform an unmount before pressing "OK" on the device. If not, the image is broken!
Click to expand...
Click to collapse
D'oh! I knew I made a rookie mistake.
Yes, that did the trick.
Thanks Again!
Hi,
Great job.
Is there a possibility to have the same ROM for the 101 version ?
Regards
Sent from my Galaxy Nexus using xda premium
Hi,
After two days of using this rom I must say it is very fast and smooth. But on idle after 6 hours I got -40% battery drain. Also I can feel heat from it. Got installed only 2 apps and one game. Is there any chance to implement deep sleep in this rom, to minimize batery drain?

Zram customisation

hi,
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
i'm creating this new thread in order to help bring back to life our p880.
Android is like linux (of course it is)
it caches the background processes that are not currently in use and uses the physical ram for only the active apps.
But what happens if the app needs more physical ram ?
It has 2 ways to get it.
1. zram
2. swap
Let's go first with swap. Swap is slow, it uses the disk storage for "physical ram" but it's not a physical ram.
It only emulates the physical ram. What does this mean ? It does exactly what ram does.
But ram is at least 1 milisecond faster than hard disk. What ram does in 1ns (depends on the ram) the hard disk do it in 1ms (maybe more, depends on the disk).
Ram writes and reads every single "thing" the cpu needs to calculate and it's not found in L1,L2,etc cache...
Ram is our no1 upgrade on a pc hardware when we need to make it faster, because it cooperates with the cpu at everything. (cannot explain it with more simple words)
Zram on the other hand it's compressed physical ram. This way we sucrifice a very tiny amount of physical ram speed and cpu usage to compress the physical ram. But cpu and ram are 1 million times faster than the hard disk.
check your available ram
Code:
adb shell free
Anyway, below i will show you a way to double or triple your zram.
Download my attached file below,unzip and place it in /system/etc/init.d
Code:
adb root
adb remount
adb push <path to file>/97zram /system/etc/init.d/
check permissions and ownership.
They must be 755 and root:shell. If they are not, then do:
Code:
adb shell
su
chmod 755 /system/etc/init.d/97zram
chown root:shell /system/etc/init.d/97zram
Good. Now navigate back to /system/build.prop and open it like a text to edit it
At the end add the line:
Code:
persist.service.zram=200
200 is the size and it means 200% of the physical ram.
Of course you can use a lower value if you want.
Now reboot.
check again the available ram.
adb shell free
Surprise.
How much of ram do you have now ?
phys.ram + zram = ???
If you like it, hit thanks.
*If your init.d isn't executed on boot for some reason *maybe supersu blocks it *maybe the kernel has some mistake *for any reason ... you can use kernel adiutor to emulate init.d on boot.
**For those that don't have init.d support by their kernel , they must install busybox to install sysinit or/and init
***Those that don't have zram partition at all, too bad, change kernel because that one doesn't support zram at all.
XDA:DevDB Information
Zram and various tweaks for p880, Tool/Utility for the LG Optimus 4X HD
Contributors
kessaras
Version Information
Status: Stable
Created 2016-12-22
Last Updated 2017-03-22
p880 full/all tweaks
this is a script that goes in pair with my 97zram script.
In addition now in this script i have set some tweaks , as many as i can and only those that are not harmful and can damage a phone.
- Better mount point flags
- Internal storage:
nomerges
nr_requests
lower safe read_ahead_kb
cfq scheduler
remove add_random (if its enabled in the kernel by default)
rq_affinity
- external storage:
nomerges
nr_requests
lower safe read_ahead_kb
cfq scheduler
remove add_random (if its enabled in the kernel by default)
rq_affinity
- Net and virtual memory:
tcp_congestion_control
disable_ipv6
dirty_writeback_centisecs
dirty_expire_centisecs
dirty_background_ratio
dirty_ratio
drop_caches
kernel.panic
min_free_kbytes
overcommit_ratio
panic_on_oom
full swappiness
vfs_cache_pressure
- Kernel customisations
disable ksm
lowmemorykiller
read_wakeup_threshold
write_wakeup_threshold
- Only the safe internet customisations
tcp_timestamps
tcp_tw_reuse
tcp_sack
tcp_tw_recycle
tcp_window_scaling
tcp_keepalive_probes
tcp_keepalive_intvl
tcp_fin_timeout
- Reduce Vibration strength
How to "install" it ? Simple. just like you "installed" the zram script.
Set exactly same permissions, set ownership to root:shell and reboot.
Reserved for OP (Future use) If Needed
kessaras said:
hi,
i'm creating this new thread in order to help bring back to life our p880.
Android is like linux (of course it is)
it caches the background processes that are not currently in use and uses the physical ram for only the active apps.
But what happens if the app needs more physical ram ?
It has 2 ways to get it.
1.zram
2.swap
Let's go first with swap. Swap is slow, it uses the disk storage for "physical ram" but it's not a physical ram.
It only emulates the physical ram. What does this mean ? It does exactly what ram does.
But ram is at least 1 milisecond faster than hard disk, what ram does in 1ns (maybe less, depends on the ram, but not slower) disk does it in 1ms (maybe more maybe less, depends on the disk).
Ram writes and reads every single "thing" the cpu needs to calculate and it's not found in L1,L2,etc cache...
Ram is our no1 upgrade on a pc hardware when we need to make it faster, because it cooperates with the cpu at everything. (cannot explain it with more simple words)
Zram on the other hand it's compressed physical ram. This way we sucrifice a very tiny amount of physical ram speed and cpu usage to compress the physical ram. But cpu and ram are 1 million times faster than the hard disk.
check your available ram
Anyway, below i will show you a way to double or triple your zram.
Download my attached file below,unzip and place it in /system/etc/init.d
check permissions , owner and group.
Our current kernels now that are also compatible with f2fs do that by default, but you must check it , just in case they aren't set by default.
Good. Now navigate back to /system/build.prop and open it like a text to edit it
At the end add the line:
200 is the size and it means 200% of the physical ram.
Of course you can use a lower value if you want.
Now use kernel adiutor to emulate init.d on boot since it's not enabled by default.
Now reboot.
check again the available ram.
adb shell free
Surprise.
How much of ram do you have now ?
phys.ram + zram = ???
If you like it, hit thanks.
**The 98balance is just a gift from me.
Those are my default settings for everyday use.
Init.d can do anything if we have some time to manually make our own script.
Have fun
XDA:DevDB Information
Zram, Tool/Utility for the LG Optimus 4X HD
Contributors
kessaras
Version Information
Status: Stable
Created 2016-12-22
Last Updated 2016-12-22
Click to expand...
Click to collapse
I copy the file to /system/init.d by file explorer. I can set permisdion to 755 but I can"t change the group to shell (the only option is root)
Then I modified the build prop as suggested and activated emulated init in Kernel Adiutor.
After reboot my ram still not changed.
Any suggestion?
Sent from my LG-P880 using XDA Labs
masmoe said:
I copy the file to /system/init.d by file explorer. I can set permisdion to 755 but I can"t change the group to shell (the only option is root)
Then I modified the build prop as suggested and activated emulated init in Kernel Adiutor.
After reboot my ram still not changed.
Any suggestion?
Click to expand...
Click to collapse
Use another file manager that has more options.
It works only if kernel supports init.d.
kessaras said:
Use another file manager that has more options.
It works only if kernel supports init.d.
Click to expand...
Click to collapse
In which ROM you have tested this?? And What kernel you had tested with.
Salman Al-Badgail said:
In which ROM you have tested this?? And What kernel you had tested with.
Click to expand...
Click to collapse
Aosp6. Works on aosp7 and all.
Also works on almost any Rom. Omni,rr and more. It won't work only to kernels that don't support init.d
kessaras said:
Aosp6. Works on aosp7 and all.
Also works on almost any Rom. Omni,rr and more. It won't work only to kernels that don't support init.d
Click to expand...
Click to collapse
Thanks for reply, Can you tell me what is limit for extending RAM or in other words maximum limit of this RAM
Salman Al-Badgail said:
Thanks for reply, Can you tell me what is limit for extending RAM or in other words maximum limit of this RAM
Click to expand...
Click to collapse
At 250 it gave me an error. I believe it's close to 200 the limit
Did it only changed the swap or zram happens to be called swap when running "free"?
That was my output:
Code:
$ free -m
total used free shared buffers cached
Mem: 968 936 32 0 1 279
-/+ buffers/cache: 655 313
Swap: 1453 30 1422
Edit:
Forgot to mention:
Code:
persist.service.zram=150
Danielcdar said:
Did it only changed the swap or zram happens to be called swap when running "free"?
That was my output:
Code:
$ free -m
total used free shared buffers cached
Mem: 968 936 32 0 1 279
-/+ buffers/cache: 655 313
Swap: 1453 30 1422
Edit:
Forgot to mention:
Code:
persist.service.zram=150
Click to expand...
Click to collapse
exactly. good job. swap is called anyway. there isn't a word like zram anywhere. zram we call it because we use the ram to swap not the hard disk :good:
kessaras said:
exactly. good job. swap is called anyway. there isn't a word like zram anywhere. zram we call it because we use the ram to swap not the hard disk :good:
Click to expand...
Click to collapse
Cool, but, for it to work I had to manually run
Code:
swapoff /dev/block/zram0
Tried adding
Code:
busybox swapoff dev/block/zram0
To your script, but, I guess the rest of the script is executed before it finishes "cleaning" the swap, and I am no programmer.
kessaras said:
Use another file manager that has more options.
It works only if kernel supports init.d.
Click to expand...
Click to collapse
I am on AOSP 7.1.1 and use es explorer pro.
Are any option in Developer menu should be activated? Or should I install adb application?
Btw I use Termux for terminal.
Sent from my LG-P880 using XDA Labs
Danielcdar said:
Cool, but, for it to work I had to manually run
Code:
swapoff /dev/block/zram0
Tried adding
Code:
busybox swapoff dev/block/zram0
To your script, but, I guess the rest of the script is executed before it finishes "cleaning" the swap, and I am no programmer.
Click to expand...
Click to collapse
busybox echo 1 > /sys/block/zram0/reset
does swap off too why add
busybox swapoff dev/block/zram0 ?
but you gave me a great idea too for those that don't have init.d support in the kernel.
they can also download busybox to add init.d support. these days that i will have some free time i will improve it.
does not work for you ? if you want it to wait before it creates the new zram, give it the command
sleep 1
1 is time in seconds = 1 second
make it wait as much time you want
masmoe said:
I am on AOSP 7.1.1 and use es explorer pro.
Are any option in Developer menu should be activated? Or should I install adb application?
Btw I use Termux for terminal.
Sent from my LG-P880 using XDA Labs
Click to expand...
Click to collapse
es explorer never shows the group shell right ?
use root explorer or enable adb and do
Code:
adb shell
su
mount -o remount rw /system
chmod 755 /system/etc/init.d/97zram
chown root:shell /system/etc/init.d/97zram
or in a terminal inside your p880
Code:
su
mount -o rw remount /system
chmod 755 /system/etc/init.d/97zram
chown root:shell /system/etc/init.d/97zram
adb shell command not found. Is it missing something?
Sent from my LG-P880 using XDA Labs
Thanks for the info man, now i know how works zram and how configure it well
Thank you. It seems working
masmoe said:
adb shell command not found. Is it missing something?
Sent from my LG-P880 using XDA Labs
Click to expand...
Click to collapse
adb is used to open a port on pc for communication with the phone.
when we are in the phone terminal we directly do the command without adb , adb shell, etc.
for example :
Code:
cat /proc/sys/vm/swappiness/
to see our swappiness
at my previous post i gave you other commands to use inside p880
kessaras said:
adb is used to open a port on pc for communication with the phone.
when we are in the phone terminal we directly do the command without adb , adb shell, etc.
for example :
to see our swappiness
at my previous post i gave you other commands to use inside p880
Click to expand...
Click to collapse
I succesfully change permisdion and owner. I activated emulated init.d by kernel adiutor also but my swap dize still not changed. Any hints?
Sent from my LG-P880 using XDA Labs
masmoe said:
I succesfully change permisdion and owner. I activated emulated init.d by kernel adiutor also but my swap dize still not changed. Any hints?
Sent from my LG-P880 using XDA Labs
Click to expand...
Click to collapse
Init.d support missing in that kernel you are on now.
install busybox to enable init.d or change kernel

Categories

Resources