gentoo on nexus 7 - Nexus 7 General

Figured this should go in the "Nexus 7 Original Development" but I can't post there
http://imgur.com/XjIDruA for picture
{
"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"
}
My directions are on the gentoo forums, in the install section at https://forums.gentoo.org/viewtopic-p-7604764.html
Don't attempt this if you don't know how to install gentoo, build tools from AOSP, or unbrick your device!
I don't have any ROMs for a gentoo install, at the moment, but I will probably eventually provide a way to flash an image or two, with a stage3 + wifi + dhcpcd + sshd added to the default rc runlevel. Please keep in mind, if you didn't read the source and compile it yourself, you don't know what's in the binary.

So it looks like I'm getting closer. From what I can tell, ubuntu is booting into the system (or root) partition, with an initramfs image that creates a chroot. They "pause" the loading of the Android OS, and boot into the chroot environment.
I've found abootimg though, and I'm thinking a properly grep'ed and hacked AOSP kernel can have most of the 'forced' directories and option changed, or set in the boot command line. I'm going to try kernel builds in my gentoo chroot, from the ubuntu install on the nexus 7. I'll have to at least get boot backups working in "TWRP 2.7 - Nexus 7" but that should be easy with cat, dd, and a system+userdata partition to reliably mount.
I'm aiming to get a kernel that boots into mmcblk0p9 (or userdata) without an initramfs, or any playing around with the system partition. I'd like to eventually use the recovery boot as a boot into a 'gentoo minimal cd' image, stored on the system partition.
Anywho, 8 more posts away from adding links and images

well, i can't help, but i can cheer for you to succeed

Well, looks like I got wifi, battery status, usb keyboard, backlight control, getty term, cpu gov, and most everything that works in ubuntu working.
Haven't built Xorg yet, but I'm sure that'll work too, and haven't tested bluetooth yet, but I'm sure it'll work too.
Directions are on the gentoo install forum board, if you have trouble following them, just ask me for help
I'll be configuring and building gentoo for the next week or so, but maybe in a month, I'll set-up some flash-able images. I'm using the ubuntu kernel for now (derived from the AOSP kernel, as far as I can tell), but I'll probably try a few more build of the gentoo kernel.
By the by, doing "emerge -1 system" with MAKEOPTS="-j5" and it's eating my battery, about 1% every 5 minutes, plugged into ac charger, so just be carefully when building gentoo, and watch your battery status ("cat /sys/devices/platform/tegra-i2c.4/i2c-4/4-0055/power_supply/battery/capacity" to view current battery %)

deadram said:
By the by, doing "emerge -1 system" with MAKEOPTS="-j5" and it's eating my battery, about 1% every 5 minutes, plugged into ac charger, so just be carefully when building gentoo, and watch your battery status ("cat /sys/devices/platform/tegra-i2c.4/i2c-4/4-0055/power_supply/battery/capacity" to view current battery %)
Click to expand...
Click to collapse
It might be best to cross compile from another device. I'm thinking that a lot of write activity will wear out the internal storage faster?
You could then host portage from said device and access packages over the network.
Is libhybris part of your plan?
What about booting "toram" from a squashfs filesystem stored on "sdcard". This could allow coexistence with the default filesystem as well as increased performance.

crache said:
It might be best to cross compile from another device.
Click to expand...
Click to collapse
It would be a little faster, but more time consuming to set-up. That would be outside the scope of this tiny pseudo tutorial anyways
I'm thinking that a lot of write activity will wear out the internal storage faster?
Click to expand...
Click to collapse
True, but I'd guess that's a 10 to 20 year process. Most phones are ssd, and last about that long... some laptops come with ssd drives, they wouldn't if they didn't last ~some~ amount of time. Besides - if cell phones are any indication of the future - I'll have cracked the screen by then, or dropped it in the toilet
Is libhybris part of your plan?
Click to expand...
Click to collapse
Nope, my plan is to have only gentoo on my tiny box. I may eventually look into setting up android in a chroot, if you google it, someone has done that before, on a different device. If i remember correctly, it booted Debian, then set-up the android chroot, and passed graphics control off to android.
What about booting "toram" from a squashfs filesystem stored on "sdcard". This could allow coexistence with the default filesystem as well as increased performance.
Click to expand...
Click to collapse
Well, if you wanted that, you could set it up that way. I'm looking to get Xorg up and running, lighttpd, firefox, and wine (for ie), and set-up a portable web development tablet. I'm turning this toy into a computer
That said, when i get around to making the "install CD" or image file, it'll probably be a 650-400MB image file, compatible with multiboot, and it'll be up to you to figure out the finer details. That is the idea behind gentoo anyways, to fine tune your system to how you want, and not how someone else thinks is best.
----
As an aside, after playing with cpufreq for a while, and wifi, I have a feeling my battery problem has more to do with the screen being powered. Apparently there isn't a way to turn off the power to the GPU and LCD from VT, without a working Xorg server. At least none that I can find.

Well I got a few more things working. Check the gentoo forum link at the top for more info. By the by, posting from my nexus 7 gentoo install using xorg and firefox 31.0.

Looks like I've got the kernel thinned out, and a few more things on the go. Check the gentoo forum link for the details.
Should have an install image within a couple months. Next steps are hacking the kernel drivers a bit, and then building a website for my wife (That's how I tricked her into letting me buy this thing in the first place, but don't let her know that! XD), and then figuring out the install image.

Related

Don't DOWNLOAD MemoryUp it HAS ADWARE

There was a disturbance in the Android App Market today as an application called MemoryUp was allegedly erasing contacts and installing adware. The mystery is how it got there in the first place.
The app, created by a developer named Peter Liu to optimize the handset's memory, was also responsible for random memory wipes and email account spamming.
At the Android forums, users who had downloaded the app and suffered the consequences were, understandably, up in arms and warning others to not download the app.
User “kr33p1n” (via Geek.com) said, “Doesn’t work at all erased my phone numbers and froze my phone.” User "Mark" added, “Do not download. Destroyed my memory card/system delete. Then my email was spammed. TMobile can’t stop you from downloading this! So don’t!”
Other victims claimed their SD cards were wiped clean; others still said their email accounts were spammed and adware was installed on the handset.
What's really mind-boggling is that, as of this writing, 10,000-50,000 downloads had taken place, with around 932 ratings logged (mostly negative, one star, see pic). We really can't understand how such an app got there in the first place.
The sad thing is that, as noted by many Android forum dwellers, Java cleans up memory on its own as required, no outside help necessary.
Editor's Note: I did not link to the MemoryUp web page because it had obnoxious pop up ads. [Geek.com - Thanks, Chris!]
http://i.gizmodo.com/5138822/rogue-android-app-allegedly-destroying-g1-memory-installing-adware
I was one of those that downloaded it, Hell I even suggested that it did in fact do something.... but then I decided to really try and see a difference and lo and behold there's no difference as far as performance goes.
Still I never would have assumed that there was anything like adware on it, but one thing is certain IT DOES NOTHING TO INCREASE PERFORMANCE, so there's really no point to it anyways.
I don't see it on the Market now. It must have been taken down.
Yeah there is another post in main dream forum. Believe it or not handango has been selling it. Great post by both of you to get the word out about this garbage!!
Yea, I sent vendors of the product a message and links regarding this issue. Hopefully it'll be pulled off the stores soon.
I did some investigation on this issue. I managed to get the program to delete my contacts on a dummy account I set up. I started getting some weird issues, like I couldn't use my camera anymore because it said I need to install my SD Card. That was a red flag to me. So I pulled the card and opened it up on my test laptop and here is the screen shot of the sh!t I found. Needless to say I'm pretty upset by this.
{
"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"
}
Nothing from this card can be deleted. Tried using chmod a+x to regain access and remove the... whatever those files are but I got back a message stating that the file system was read-only and that the permission set 40700 was unrecognized and could not be changed. I did some more research and found that the file types are octet data files. Opening them in gedit doesn't display anything. Not sure if its some other encoding that I can't view through standard text editing. Nevertheless, I'm sick of dealing with this issue and have started trying to get this thing banned from as many outlets as possible.
Woah! That's seriously messed up. Definitely wasn't doing that when I installed it. Now that I think about it though my pc caught that malware that sets up an "autorun.inf" at the root of all drives to run crap some time ago. I don't really visit weird pages and I'm pretty careful not to get any virus/malware/adware so I was kinda surprised. Anyways I remember seeing somebody else 3 or 4 days after saying their g1's card had the same thing. Not being one to believe in coincidence, I'm willing to bet he also installed this on his android at some point.
Exactly, I had an autorun.inf and an start.exe file embedded on all my sd cards that came in contact with my pc after pulling some files from my G1. Things got so bad I just gave up and went full blown Linux in hopes of catching and fixing the problems. I lost control of cmd, task manager and regedit on my windows machines. Couldn't get any antivirus programs to completely clean the infected drives.
d474rpr said:
Exactly, I had an autorun.inf and an start.exe file embedded on all my sd cards that came in contact with my pc after pulling some files from my G1. Things got so bad I just gave up and went full blown Linux in hopes of catching and fixing the problems. I lost control of cmd, task manager and regedit on my windows machines. Couldn't get any antivirus programs to completely clean the infected drives.
Click to expand...
Click to collapse
Aha! Oh and Malwarebytes' anti-malware got rid of it for me immediately. Anyways, Blue*lable mentioned something probably even more important than the program being adware, and that's the fact that despite all the negative remarks on the comments, so on and so forth, people were still downloading it. Now as you all know the comments section is full of comments made by idiots (for the most part), and many don't even read the comments because of it (I can at least say that I don't read them anymore), so there's a little thread on the official android forums where a few of us have tried to convince google to do something about it. The thread is:
http://www.google.com/support/forum...ad?fid=6aa202f080f83438000460b52bc0c075&hl=en
If any of you have some free time let google know that nobody warned us about all those irrelevant and disrespectful comments when we got this phone. They are slowly taking care of somethings, but they really need to up the ante and implement some sort of moderation or something.
PS. sorry for going off topic and hijacking the thread.
yeah, got that one too, though before downgrading from rc30 to rc29 and back to rc33... but anyway, it garbled my SD so bad that it did not worked on any of my readers connected to pc (either windows or linux) however... while mounted in my G1 and connected to the windows based machine, i was able to remove and put back partition (since i could not format card because under "size" was unknown) after that format, and voila... works like a charm... used built-in windows partition tool.
hope that helps in case of problems.
--
HE3r0
d474rpr said:
I did some investigation on this issue. I managed to get the program to delete my contacts on a dummy account I set up. I started getting some weird issues, like I couldn't use my camera anymore because it said I need to install my SD Card. That was a red flag to me. So I pulled the card and opened it up on my test laptop and here is the screen shot of the sh!t I found. Needless to say I'm pretty upset by this.
(image3 removed)
Nothing from this card can be deleted. Tried using chmod a+x to regain access and remove the... whatever those files are but I got back a message stating that the file system was read-only and that the permission set 40700 was unrecognized and could not be changed. I did some more research and found that the file types are octet data files. Opening them in gedit doesn't display anything. Not sure if its some other encoding that I can't view through standard text editing. Nevertheless, I'm sick of dealing with this issue and have started trying to get this thing banned from as many outlets as possible.
Click to expand...
Click to collapse
I had that happen on my phone too,but i DIDNT use memory up....I think what happened was google did an eval and decided there was nothing bad...
BTW,that card will never work again, happened to me
Talk to whoever soldyou the phone: its defective
memoryup
Hmm I must have the super antidote virus G1 cause as much as I try for the program to fck something up on my phone such as delete my contacs,spam email, or something at this point I really feel like I'm not using the application as I'm supposed to I can't seem to make it do what 90% of the ppl say it does I try to run it 3 times a day hoping for some malfuction on my phone or atleast 1 contact to erase but I just can't seem to do it maybe someone in here can teach me how to use this app the proper so that atleast I get one spam emailor one contact deleted and ill be content with that and I would feel much better too knowing I don't have a super G1. I'm open to any suggestions on how to make this app work
pdspatrick said:
I had that happen on my phone too,but i DIDNT use memory up....I think what happened was google did an eval and decided there was nothing bad...
BTW,that card will never work again, happened to me
Talk to whoever soldyou the phone: its defective
Click to expand...
Click to collapse
I appreciate your suggestion but the phone is not defective.
The card that was infected was a Sony Micro USB drive, not the SD card from my phone. When the application was ran in my emulator it caused the sd.iso to have more data than what I was able to see. I moved this data from my windows box to my laptop running Ubuntu to get a better look. That's when I discovered that the only application residing in the sd.iso image was memoryup and a gaggle of octal files that I haven't been able to decode. Immediately after running that application my work PC became infected to the point of having to completely format the harddrives. My USB drive is also unsalvagable. If I can be proven wrong and that this application had nothing to do with my experience I will openly apoligize for my misdiagnosis. I have been working in the mobile device industry for several years and have never had any issues as to the extent of what I'm assuming this application caused. I find it curious as to why the application was removed from the Market and several online stores that carried the application if there wasn't a problem to begin with. If anyone has any further information on the contacts being deleted, if maybe this was an attack on the actual gmail accounts or if it was device based... what was causing everyone to have simular issues around the same time with adware/spyware/viral infections on SD cards/PC's??? Feedback please!!!

anyone having any luck hacking the webtop to run full linux?

I've been looking constantly throughout many forums and have not found anyone with a hindrance of talk about running full linux on webtop with full functionality of the phone.
I've been messing around with the terminal and tried to fish around for something and i wasn't able to find anyway to put ubuntu on this app while being able to support the phone dock accessibilities.
So far for what i know is that its running a 32bit(kinda thought it may be possible for a 64bit counting the dual core) custom UI of Debian while having some source code from Ubuntu to run Firefox. I tried to manually install chrome but was not able. From what I've noticed is that there is a special partition hidden in the root for running webtop mode through the /osh folder i believe.
I bought the the laptop dock and honestly i got to say that this phone has a LOT of potential, the problem to me is that the OS build for webtop is WAY too limited. I would like to see this thing run a full linux with possibly openoffice, chrome, etc. If anyone has any info about a possible hack or something, i'd love to learn about it.
it wud be genious to get ubunut as the 'webtop'
why not
It is Ubuntu, but it has had some things stripped out or built from local sources. Many of the packages are package-name-123.123mot and this causes lots of dep res issues when trying to add in something like xterm from ubuntu feeds.
Lets be clear, there is a linux box lurking in there waiting to be freed. Make is there, gcc is there, X is running on HDMI, there are X apps, apt is there, dpkg is there, /etc is there.
I expect we'll get an xterm running on it this week, if not sooner.
I have the laptop dock, as well. The webtop is this phone's killer feature, imo. Being able to use a full desktop browser is a huge benefit in my line of work. It would be a huge improvement to gain root access and run a more complete Ubuntu.
An update: Success on xterm!
I was able to grab a debian armel xterm and extract it (couldn't install) to /osh/tmp (seemed handy) and fire up /osh/tmp/usr/bin/xterm and display it back to my laptop. I'll have to figure out more about dpkg and why it wasn't installing correctly with this command line, which it seems should have worked:
dpkg -i xterm-armel.deb -root=/osh
We should try to use dpkg properly so we have a maintainable /osh moving forward, to do otherwise is to invite issues. I have dd'ed off my /osh file-system so I can revert when if and when I break it. My goals are fairly straight forward with this endeavor:
* SSH via /osh so it is in init.d and supports -X.
* A terminal of some sort. (half ways done)
* All done via a maintainable and revertible package manager.
To go off laying down zip files or copying around files is far from my goals and should be far from yours.
Full linux?
Arm linux is different from x86 linux. When you say full linux what exactly do you mean?
I understand the need to have it more closely resemble and function like 10.04 lts but it is more likely gonna be closer to a distro like Angstrom...
infrared411 said:
Arm linux is different from x86 linux. When you say full linux what exactly do you mean?
I understand the need to have it more closely resemble and function like 10.04 lts but it is more likely gonna be closer to a distro like Angstrom...
Click to expand...
Click to collapse
ARM Linux and x86 Linux are not different, except in the architecture the binaries are compiled for. The functionality is the same, regardless of the target architecture.
When I say a full Linux I mean it looks and feels like a standard Linux/Unix system with a /var, /etc, /usr, etc. with the most of the functionality we would expect (apparently working /etc/init.d and an actual /etc/passwd) and some of the binaries we know and love (dd, bash, perl, python, vim, Xorg X bits)
It appears to be Jaunty 09.04 based from looking at /etc/lsb-release. Having said that, the packages appear to have been rebuilt at Motorola and some of the deps are missing or I am reading the output incorrectly.
You are confusing desktop linux with embedded linux. For example take a look at the differences in udev.
Sent from my MB860 using XDA App
I hear you, but it looks pretty much like a desktop distro to me, including udev. I do note that /proc and /sys are bind mounts onto /osh/proc and /osh/sys from android, so it is bastardized in that respect.
droidbird said:
I hear you, but it looks pretty much like a desktop distro to me, including udev. I do note that /proc and /sys are bind mounts onto /osh/proc and /osh/sys from android, so it is bastardized in that respect.
Click to expand...
Click to collapse
I'm fairly certain it's the full Ubuntu distro. They've probably snagged packages from Launchpad or such, so once we have dpkg set up, we should just be able to start running with it.
It clocks in (/osh) at 677MB with ~77MB free on the file system. It's pretty feature complete as a userspace from what I can tell.
droidbird said:
It clocks in (/osh) at 677MB with ~77MB free on the file system. It's pretty feature complete as a userspace from what I can tell.
Click to expand...
Click to collapse
Only 77MB free... I might grab an SD card and start installing applications onto it. It'd be easy to add the respective paths to the applications on the SD card to the PATH variable via a script. (I'm thinking about being able to make something that we can pass on as a package to others in the future.
I think the biggest problem will be the RAM. I don't know Android much (2nd week messing with it) but we should find a way to close down some of the apps when launching our 'full' linux. Maybe freeze them or something. If we're using an SD card could we not partition 1GB for swap? I heard about memory problems after having 11 tabs up in Firefox, it'll only get worse with more apps.
Throw in a keyboard/mouse and we could have a desktop that we can plug into any HDMI capable tv/monitor, that would be nice!
droidbird said:
An update: Success on xterm!
I was able to grab a debian armel xterm and extract it (couldn't install) to /osh/tmp (seemed handy) and fire up /osh/tmp/usr/bin/xterm and display it back to my laptop. I'll have to figure out more about dpkg and why it wasn't installing correctly with this command line, which it seems should have worked:
dpkg -i xterm-armel.deb -root=/osh
We should try to use dpkg properly so we have a maintainable /osh moving forward, to do otherwise is to invite issues. I have dd'ed off my /osh file-system so I can revert when if and when I break it. My goals are fairly straight forward with this endeavor:
* SSH via /osh so it is in init.d and supports -X.
* A terminal of some sort. (half ways done)
* All done via a maintainable and revertible package manager.
To go off laying down zip files or copying around files is far from my goals and should be far from yours.
Click to expand...
Click to collapse
I'm interested in this too. I was poking around /osh and trying to get gcc to work so I could try compiling some different things.
I think my aims are slightly different than yours, but lots of the same knowledge is needed. I'm interested in getting applications to run on the phone and showing up in the webtop. i.e. I'd like to have the xterm showing up on the top, not just across the network on a remote X display, like your laptop.
I can't get gcc to work because they seem to have left out the ARM 'cc1' binary which is called.
Anyway, do you mind posting the steps you took (and the site where you got the ARM xterm binary) to get the xterm up and running on the phone? I'm trying to get an ARM cc1 so I can get gcc up and going. From there, I'm hoping I'm not from from 'configure' and 'make' to get lots of different things working. (I realize this isn't something most people would want, but I'm looking at this from the point of view of someone who might like to develop applications for the webtop.)
Also, if you can find out what the proper DISPLAY environment variable is for the webtop itself (and what to tell the 'xhost +' command to let it display X on the webtop), that would be huge for me.
I'll post anything I'm able to find out as well. The more shared knowledge, the better.
For your .deb files, take a look at Launchpad. I'm guessing that's where Motorola probably got their files from.
Does anyone have a backup of their /osh? I might of screwed some stuff up and would like to compare.
I do, currently a 4k dd of the device, ~700mb.
Sent from my MB860 using XDA App
the memory problem is not really an issue, you just have to manually set the partition for webtop mode to be bigger, there is an extra 10gigs built in the phone to run, all that is needed is just the edit on that.
what i mean in full Linux is that i wan't to run REAL applications, not web apps. I ran an external hard drive will movies and music and what not. I saw that this device can really handle heavy traffic like 1080p videos and it brought me to think that this device has the performance to handle a full Linux with minimal lag. a 1080p video runs at an average 2gigs and running on the ram with about at a constant of 150-250 Mb/s depending on how it is running the codec. To be honest the ram is VERY efficient, and the only problem i see to be honest is trying to stream 720p off of YouTube because the phone can't take all the speed (even when in wifi off of a t3 network). There is some limitations but the system can definetly handle high traffic off the ram.
Anyways, aside from that. I searched through the /osh and i found that there is a way to script out addons to do specific back door functions. I'm not really a code scripter so this is where im in uncharted territories. Since this is Ubuntu source code, i believe that if you design a special function script to unlock service mode within the webtop, we might get a full terminal and maybe admin functions. Then maybe we will have right to install specific functionalities. Since Motorola built this build, my guess is that they'll have a pretty complicated security to tap into service mode. Anyone find anything of such resemblance in the root of the os?
Mafisometal said:
the memory problem is not really an issue, you just have to manually set the partition for webtop mode to be bigger, there is an extra 10gigs built in the phone to run, all that is needed is just the edit on that.
what i mean in full Linux is that i wan't to run REAL applications, not web apps. I ran an external hard drive will movies and music and what not. I saw that this device can really handle heavy traffic like 1080p videos and it brought me to think that this device has the performance to handle a full Linux with minimal lag. a 1080p video runs at an average 2gigs and running on the ram with about at a constant of 150-250 Mb/s depending on how it is running the codec. To be honest the ram is VERY efficient, and the only problem i see to be honest is trying to stream 720p off of YouTube because the phone can't take all the speed (even when in wifi off of a t3 network). There is some limitations but the system can definetly handle high traffic off the ram.
Anyways, aside from that. I searched through the /osh and i found that there is a way to script out addons to do specific back door functions. I'm not really a code scripter so this is where im in uncharted territories. Since this is Ubuntu source code, i believe that if you design a special function script to unlock service mode within the webtop, we might get a full terminal and maybe admin functions. Then maybe we will have right to install specific functionalities. Since Motorola built this build, my guess is that they'll have a pretty complicated security to tap into service mode. Anyone find anything of such resemblance in the root of the os?
Click to expand...
Click to collapse
We have root. We could go as far as setup our own desktop environment separate from Webtop. There would be no need to worry about Motorola's security problems.
droidbird said:
An update: Success on xterm!
I was able to grab a debian armel xterm and extract it (couldn't install) to /osh/tmp (seemed handy) and fire up /osh/tmp/usr/bin/xterm and display it back to my laptop. I'll have to figure out more about dpkg and why it wasn't installing correctly with this command line, which it seems should have worked:
dpkg -i xterm-armel.deb -root=/osh
We should try to use dpkg properly so we have a maintainable /osh moving forward, to do otherwise is to invite issues. I have dd'ed off my /osh file-system so I can revert when if and when I break it. My goals are fairly straight forward with this endeavor:
* SSH via /osh so it is in init.d and supports -X.
* A terminal of some sort. (half ways done)
* All done via a maintainable and revertible package manager.
To go off laying down zip files or copying around files is far from my goals and should be far from yours.
Click to expand...
Click to collapse
Fair warning, I'm frequently wrong... but off the top of my head, I think you would need to chroot into the webtop environment in order for a dpkg / apt-get install to work correctly. From what others have posted and my own (brief) investigation, the webtop isn't completely standalone... it shares with the android environment. I've been thinking of leaving the webtop alone for now, and trying the method used to run a chrooted Ubuntu instance on the Nexus One. The risk is low, and once that is in place, I could take a shot at starting an X session that runs out the HDMI, instead of just a VNC server...
EDIT: I should have asked if you chrooted before I just assumed... Sometimes I think before I post, but not often enough.
I got xterm and xeyes to run locally
{
"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"
}
(binaries are from a ubuntu-jaunty-arm setup I did in qemu)
After I get a bit more working I'll post better instructions, but for tinkerers:
DISPLAY:0.0 is correct but you also need XAUTHORITY=/data/home/adas/.Xauthority
lxterminal seems to have issues running locally.
Things can be added to the dock by editing /data/home/adas/.gconf/apps/avant-window-navigator/window_manager/%gconf.xml but you'll also need to create a (standard) .desktop file. You can modify the nautilus one to browse /.
i agree package management is needed, but I don't think using the existing one is a good idea. I think either:
1) Create a ubuntu-arm based distro that can be launched when plugged into a dock/hdmi, but leave /osh mostly untouched
2) Or keep everything in a separate prefix, like macports/fink do.
A problem with using /data though is it's mounted nosuid. And /osh is near capacity already.

Custom 2.2.2

Took a break from porting 2.3 and threw together this themed 2.2.2
Its Gingerbread themed, a few graphical elements are missing though.
{
"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"
}
Install through ClockworkMod
Wipe first in CWM ONLY, user data, and cache.
Download
http://www.multiupload.com/WSDGWB5XM1
Install another launcher, our display isn't good enough for the default.
Its late, I have to get some sleep for work in the morning. Will post credits, and detailed instructions later.
Also, Its looking like a ghost town in here, we need more roms. I can help those interested in compiling. You can use the Android Kitchen to get started.
Thanks for your contribution
Sent from my Dell Streak 7 using XDA Premium App
Seems like screen resolution is screwed up a little in wallpapers
Edit: in your stock launcher is the only place I see size issues but I am loving this rom running very smooth
Sent from my Dell Streak 7 using XDA Premium App
bout to give this a go
Do you have any screens to share?
Does this have djSteve's tweaks?
^ Posted a pic, and what tweaks?
Will post new rom with full info this weekend. Lots of new tweaks, additions, and subtractions.
Stay tuned.
Thank you streaker!
I agree on the lack of ROMs. I'm going to start to try to develop something simple (I'm self-teaching Java and Linux; what better way to learn than to tweak?).
I'll be downloading the Kitchen and playing with it in a couple of days's time, if not sooner. Since you offered, I'll ask for help when I get stuck!
Are you still working on a 2.3 ROM? Can a n008 offer any assistance? I really want to get my feet wet in development (apps or ROMs), so if I can be at all useful I will be.
vetvito said:
Took a break from porting 2.3 and threw together this themed 2.2.2
Its Gingerbread themed, a few graphical elements are missing though.
Install through ClockworkMod
Wipe first in CWM ONLY, user data, and cache.
Download
http://www.multiupload.com/WSDGWB5XM1
Install another launcher, our display isn't good enough for the default.
Its late, I have to get some sleep for work in the morning. Will post credits, and detailed instructions later.
Also, Its looking like a ghost town in here, we need more roms. I can help those interested in compiling. You can use the Android Kitchen to get started.
Click to expand...
Click to collapse
idk if you are doing this, but it won't hurt to repeat it
make sure you wipe data/cache before you capture the cmw image this way you can avoid some issues for people flashing
I'll be flashing this in a sec, here. Gotta love more Streak 7 devs!
Did you make this in ROM Kitchen? If so, how did you go about it? I couldn't get ROM Kitchen to work on my S7.
Great to see some more developers! I'll definitely give this a go.
So I loaded it up and slapped on Zeam launcher; I have to say, it's pretty nice. This is basically vanilla, stock 2.2.2 with the bloat removed and a black bar (with some Gingerbread theme touches here and there). This is a great alternative to stock, and seems to run everything really smoothly. Nice mod!
Looking forward to the weekend version!
But quick question, if i go about flashing this, while in DJs HS7, do i have to return back to the stock then flash cwm then flash the rom?
RavenSEAL said:
Looking forward to the weekend version!
But quick question, if i go about flashing this, while in DJs HS7, do i have to return back to the stock then flash cwm then flash the rom?
Click to expand...
Click to collapse
Yes, you do. Unfortunately, there's not CWR for HC, yet (and, even if there were, I don't know that it would allow flashing FroYo ROMs).
Z4nd4r said:
Yes, you do. Unfortunately, there's not CWR for HC, yet (and, even if there were, I don't know that it would allow flashing FroYo ROMs).
Click to expand...
Click to collapse
Figured :S
I don't wanna risk destroying my internal memory
Installed and working perfectly. Im using vtl launcher. Very fast and works well!!! Thanks much and im looking forward to future releases.
Suggestions :
1) maybe a battery icon w / percentage
2) go launcher or vtl launcher
3) any cooked in file explorer
4) a modified wpa supplicant file to allow adhoc tethering
4) maybe a task killer. Im using autokiller memory optimizer and free mem stays near 150
Great work!!
pyraxiate said:
Installed and working perfectly. Im using vtl launcher. Very fast and works well!!! Thanks much and im looking forward to future releases.
Suggestions :
1) maybe a battery icon w / percentage
2) go launcher or vtl launcher
3) any cooked in file explorer
4) a modified wpa supplicant file to allow adhoc tethering
4) maybe a task killer. Im using autokiller memory optimizer and free mem stays near 150
Great work!!
Click to expand...
Click to collapse
FroYo has very good, built in task management. Task killers generally hurt performance and battery life. Android isn't Windows; it's Linux. Having little free memory isn't a bad thing.
Z4nd4r said:
FroYo has very good, built in task management. Task killers generally hurt performance and battery life. Android isn't Windows; it's Linux. Having little free memory isn't a bad thing.
Click to expand...
Click to collapse
Hence why I said "maybe " a task killer. Mine without one hits that critical 40 - 50 mb ram level where things start to lag (I have a ton of apps installed which like to run as a background service even though I only use them once or twice a week) . Also if you researched.... most task killers do NOT REPLACE stock task management....they merely lower or raise values already in place. This means closing idle processes a little faster than default ( if I don't use an application in 12 hrs....do I really need it running in the background??????) Also, you can set limits on oom values for specific tasks so they have a lower / higher priority. There are absolutely advantages to task managers......
One good example...... without it, when my memory ran in the critical 40 mb range, ebuddy services would shut off.....which is one app I WANT running 24/7. Using a task manager I can set its oom value to -17mb which virtually keeps it alive even if the system goes into swap. Also another I change values on is gmail so it can background sync and I don't worry about it closing syncing services.
Anyway, I hope that clears some things up for you if you ran as many apps as I do, and don't have a completely fresh installed os, they are absolutely helpful I know that free ram ia wasted ram ....but that only holds true until you hit the levels at which the system needs to operate properly. Don't forget....you DO need SOME ram for cache / swap!!! ( 70-100mb free keeps things perfectly smooth)
Also, an fyi for you. I know android isn't windows. I am linux guy myself and have compiled many things from source. While I may not be a GURU, im no where near a novice. I understand how the OS works. Try running ubuntu 11 on 64 -128 mb ram and tell me how free ram isn't important.
pyraxiate said:
Hence why I said "maybe " a task killer. Mine without one hits that critical 40 - 50 mb ram level where things start to lag (I have a ton of apps installed which like to run as a background service even though I only use them once or twice a week) . Also if you researched.... most task killers do NOT REPLACE stock task management....they merely lower or raise values already in place. This means closing idle processes a little faster than default ( if I don't use an application in 12 hrs....do I really need it running in the background??????) Also, you can set limits on oom values for specific tasks so they have a lower / higher priority. There are absolutely advantages to task managers......
One good example...... without it, when my memory ran in the critical 40 mb range, ebuddy services would shut off.....which is one app I WANT running 24/7. Using a task manager I can set its oom value to -17mb which virtually keeps it alive even if the system goes into swap. Also another I change values on is gmail so it can background sync and I don't worry about it closing syncing services.
Anyway, I hope that clears some things up for you if you ran as many apps as I do, and don't have a completely fresh installed os, they are absolutely helpful I know that free ram ia wasted ram ....but that only holds true until you hit the levels at which the system needs to operate properly. Don't forget....you DO need SOME ram for cache / swap!!! ( 70-100mb free keeps things perfectly smooth)
Also, an fyi for you. I know android isn't windows. I am linux guy myself and have compiled many things from source. While I may not be a GURU, im no where near a novice. I understand how the OS works. Try running ubuntu 11 on 64 -128 mb ram and tell me how free ram isn't important.
Click to expand...
Click to collapse
LOLZ, ubuntu?
Vanilla linux can run fine on 64mb of ram
Sure it can...but not with a current version of gnome or kde maybe using xfce or window maker. Those don't need much resource. I stated ubuntu due to its popularity lol
Was just making a point on the necessity of SOME free ram
Side note.... did you see ubuntu is functional on the streak 7 ???? Awesome!! I can't wait until it is completely ready to go. I've been experimenting trying to get any desktop session up and running but no good so far It wont be long though!!!

[PORT] Ubuntu 13.04 Alpha (very)

Ubuntu 13.04 Alpha for HP Touchpad
*working sound (I think you will like the volume button sounds)
*working wifi powered on at startup
*working bluetooth powered on at startup
*working 5 finger gestures with touchegg
*DeLorean Dark Theme
*custom Kernel+Modules for Wine+Qemu Add-on?
*Did I mention Wine Add-on? To play solitaire and space cadet pinball. They are in Applications Other..
*SquashFS Added
*A bunch of hacks.. they removed /etc/fstab and if you try to add an entry like I did then udev won't boot! I used the /etc/init.d/audiod_srv file to mount what I wanted.
*Freedreno latest with Mesa (THANK YOU ROB CLARK AND JCSULLINS, Calc1Programmer, BodenM, castrwilliam, Mystikal57!)
{
"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"
}
You will need the Kernel that comes with it.
If you want to run wine x86 with qemu.. Simply put the wine.sqsh file on your sdcard when you boot.
I did that to save space.. and so people can toggle back and forth. I originally had wine merged into the filesystem but now everything symbolically links to /usr/gnemul. That is my other "fun" project. Wine 1.5.23 with Qemu 0.14.1 with NPTL patch. Barely runs. http://wiki.winehq.org/ARM x86 per Qemu.
Links....
http://www.gdriveurl.com/?idl=913607779492&out=2 4GBUbuntuInstallSystem13Alpha.sh
http://www.gdriveurl.com/?idl=913607779509&out=2 Rootfs.tar.gz
http://www.gdriveurl.com/?idl=713607779506&out=2 uImage.Ubuntu13
http://www.gdriveurl.com/?idl=913607779518&out=2 wine.sqsh
This is a link to the original thread that started it.
http://forum.xda-developers.com/showthread.php?t=1304475 By BodenM
To Install:
Become familiar with the Ubuntu on HP Touchpad project. Try other builds.. 11.10, 12.10 if you feel the need. Read the 87 page thread above. You need to have a 4GB Partition created for ubuntu to be installed on before hand. This is a branch of an ongoing project.
http://code.google.com/p/hp-touchpad-ubuntu/wiki/Installation
Step 6 ends with you about to extract the file on the sdcard to the ubuntu partition. That is what you need to be familiar with.
Be handy with Novacom. That is a way to get root access to the touchpad in webos.. There are a TON of sites that cover this. Google it.
Do this in novacom.. you should have a bash shell with root at /media/internal
Place Rootfs.tar.gz and wine.sqsh and 4GBUbuntuInstallSystem13Alpha.sh and uImage.Ubuntu13 on the sdcard. You WILL need to replace the Kernel to run wine. If you don't and want to use your own kernel, then you MUST replace the modules. If you run your kernel with my modules you MIGHT get a reboot when using a lot of bandwidth over wifi. If I ftp'd a file over wifi, it would crash. I had to recompile ath6k to get around that. That is what happens 100% of the time if I use my kernel with the standard modules that we have been playing with. It's because my kernel is compiled with VMSPLIT-3G and it affects ath6k unless it gets recompiled along with the kernel.
TO INSTALL KERNEL
mount -o remount,rw /boot
cp /media/internal/uImage.Ubuntu13 /boot/uImage.Ubuntu
mount -o remount,ro /boot
sync
TO INSTALL FILE SYSTEM
sh /media/internal/4GBUbuntuInstallSystem13Alpha.sh
when it's done you should have it.
PROBLEMS YOU MAY ENCOUNTER:
Touchscreen may stop responding. If it does do a 5 finger tap to verify that. You may need to do it a couple of times. That seems to help. 5 finger tap is like pressing the start\windows key on your keyboard.
I added 3 startup programs
1. Touchegg
2. Sound enable unmuting at login
3. Bluetooth enable at login
Touchegg can be removed by just going to startup applications and removing it. That will go back to single touch. Check out the gestures and the onscreen keyboard. Hold down on a mouse key and then click on an icon. It should work. Easier to resize the keyboard.
DOUBLE CLICKING WITH TOUCHEGG
You can two finger click for a double, use the onscreen keyboard.. or do a fast double to triple tap.. It is odd.. Somethings can't be double clicked very easily and some can....Maybe you guys can help with that? Maybe its a 13.04 Alpha thing.
THREE FINGER SWIPE UP AND DOWN MAXIMIZES AND MINIMIZES.
It's alpha.. No, really.
http://cdimage.ubuntu.com/daily-live/current/
http://cdimage.ubuntu.com/daily-live...rmhf+omap4.img
Amazing !
Very happy for multi touch and freedreno !
Could you share kernel sources on github please ? If we made any modifications, it could be good to have the same kernel's base :good:
Keep up the good work
<--Ubunutu newb. How do I change the font color? I can't read anything when searching Software Center.
mdleal said:
<--Ubunutu newb. How do I change the font color? I can't read anything when searching Software Center.
Click to expand...
Click to collapse
TweakTool doesn't work... You have to go to dconf editor.. Go to like org, desktop, interface.. you can change themes and stuff like that.
Mystikal57 said:
Amazing !
Very happy for multi touch and freedreno !
Could you share kernel sources on github please ? If we made any modifications, it could be good to have the same kernel's base :good:
Keep up the good work
Click to expand...
Click to collapse
Thanks! No problem will soon.. All I did was change 3 things in the config file.. 2 for wine and 1 for squashfs. The kernel is from CyanogenMod. I will also post the freedreno sources.. BodenM also has them available.. The kernel.. It just doesn't have the 2 changes for wine.. We could run wine 0.9.x and keep the kernels that we have.. But that is less fun.
EDIT! I added you to the thank you list! I knew you sounded familiar! Thanks for the sound! GREAT JOB! Seriously.. I saw how you are doing it.. That is ingenious, using webOS for sound.
links dead
links dead:crying:
WTH
Why did the links die.. Don't tell me Google Drive changes the links... That would suck.
Unfortunately the OP appears to have based this on my 12.10 beta1, not my 12.10 final. I'm making an overlay tarchive that will fix most of the bugs, along with a few I didn't encounter on my release.
Bugs which will be fixed:
SDcard is mounted with incorrect uid/umask (Downloads aren't writable, etc.)
PulseAudio crashes in middle of long outputs (like music) - This requires the disablement of PulseAudio. Sorry, no OSX-like volume sounds.
No kexec capable kernel.
/dev/mmcblk0p13 is mounted on top of existing files in /boot, making it difficult to install kexec kernel.
No swap or zram.
Most init scripts are in obsolete /etc/init.d format.
Major remaining bug: Freedreno won't support EXA. We need an EXPERIENCED kernel CODER (not me) to fix our kernel by PROPERLY backporting KGSL from Kernel 3.0.8 to 2.6.35. I don't see any other solution, because I don't think the person who is workiing on Freedreno wants to backport their driver.
Soon-to-be-added feature: Automount of other OS's filesystems, if they exist, under /mnt.
nice
castrwilliam said:
Unfortunately the OP appears to have based this on my 12.10 beta1, not my 12.10 final. I'm making an overlay tarchive that will fix most of the bugs, along with a few I didn't encounter on my release.
Bugs which will be fixed:
SDcard is mounted with incorrect uid/umask (Downloads aren't writable, etc.)
PulseAudio crashes in middle of long outputs (like music) - This requires the disablement of PulseAudio. Sorry, no OSX-like volume sounds.
No kexec capable kernel.
/dev/mmcblk0p13 is mounted on top of existing files in /boot, making it difficult to install kexec kernel.
No swap or zram.
Most init scripts are in obsolete /etc/init.d format.
Major remaining bug: Freedreno won't support EXA. We need an EXPERIENCED kernel CODER (not me) to fix our kernel by PROPERLY backporting KGSL from Kernel 3.0.8 to 2.6.35. I don't see any other solution, because I don't think the person who is workiing on Freedreno wants to backport their driver.
Soon-to-be-added feature: Automount of other OS's filesystems, if they exist, under /mnt.
Click to expand...
Click to collapse
keep up the good work dude
Okay.. I updated the thread with the new url's and ran them through google drive url to create permalinks.. They should now be permanent. Why google? Why.... Pain in butt.
netkillercat said:
keep up the good work dude
Click to expand...
Click to collapse
castrwilliam said:
Unfortunately the OP appears to have based this on my 12.10 beta1, not my 12.10 final. I'm making an overlay tarchive that will fix most of the bugs, along with a few I didn't encounter on my release.
Bugs which will be fixed:
SDcard is mounted with incorrect uid/umask (Downloads aren't writable, etc.)
PulseAudio crashes in middle of long outputs (like music) - This requires the disablement of PulseAudio. Sorry, no OSX-like volume sounds.
No kexec capable kernel.
/dev/mmcblk0p13 is mounted on top of existing files in /boot, making it difficult to install kexec kernel.
No swap or zram.
Most init scripts are in obsolete /etc/init.d format.
Major remaining bug: Freedreno won't support EXA. We need an EXPERIENCED kernel CODER (not me) to fix our kernel by PROPERLY backporting KGSL from Kernel 3.0.8 to 2.6.35. I don't see any other solution, because I don't think the person who is workiing on Freedreno wants to backport their driver.
Soon-to-be-added feature: Automount of other OS's filesystems, if they exist, under /mnt.
Click to expand...
Click to collapse
Cool! Yeah I realized the sdmount problem yesterday.. You had to wait until I gave it its own thread! :laugh: Waiting to update! Good job! What is the main benefit to the kexec kernel? Will update the files with your fixes!
And.. it's a little bloated.. :laugh:
Aww man.. Does this mean we have to use alsamixer? What is a good replacement for that in gnome?
My last setup had VLC and gstreamer both configured to use "plug:dmix" so that you could dstill have multiple sounds playing at one time.
A good mixer is "xfce4-mixer". Despite the name, it doesn't pull in too much XFCE bloat.
You can in theory still run PulseAudio as a dmix client but of course you will then have the complexity of multiple independent mixer applications. The best PA mixer is "pavucontrol", not the one in Control Center, because it has both Windows-style per-app volume controls AND global playback and recording controls by source/sink.
any problem in first use:
1) gnome-tweak-tools does not work for change black theme and other option
2) initramfs cant update
3) many packages dont need in tablet
4) compiz, rotate screen cant work correctly
5) i have any problem in reboot and halt tablet
6) cant access to flash memory ,permission denied.
7) cant detect vga driver, i guess ubuntu 11.04 for tablet can be detect it.
8) panel widget options dont work correctly in touch finger
9) installed webserver such az apache does not work. http://localhost , could not find server
10)cant access to internal memory ,permission denied.
11)plymouth couldnot disable/remove from kernel
Made an account to say thank you.
Wonder if it can be overclocked to 1.8ghz from within Ubuntu. Also rsyslog took up a lot of CPU cycles so I deleted it. udevd takes up a lot of cycles as well but you can't really delete that afaik, but killing it after boot seems to not have much adverse effects, and the tablet runs smoother as a whole afterwards.
Thank you for the nice new toy for our tablet! I successfully installed it on a 6GB partition. So far I can report the following things:
Pros:
- more responsive touchscreen than on 12.10
- better working onboard virtual keyboard than on 12.10 - resize, move, pop-up - working great
- very nice multi-touch gestures for scrolling, maximize, minimize and right-click
- I feel it faster and better responding than 12.10 - may be this is becuase of the optimizations in 13.04
Cons:
- volume keys doesn't increase or decrease the audio
- dnsmasq uses a lot of the cpu - need to kill it
- internet access stops after a while, although the Wi-Fi is connected - need to reconnect the wi-fi, can this be related to killing dnsmasq?
- udevd uses a lot of the cpu - need to kill it - I ran "udevadm monitor" and I can see only reports for the battery and something else (not known) on 5 secs refresh basis
- rsyslogd uses a lot of the cpu - need to kill it
- System Settings panel is bigger than the screen - can not resize it
- VLC can not play song after song - resource is not available - I think this is reported already
- no swap partition
If anyone else experience this you can report it, I think this will be useful for further optimiziations and fixes.
Also is it a good idea to have a repo with the kernel and distro, so we can make/sync/test changes?
@jshafer817,
Sorry for the lame question, but do you use an already compiled distro, or you compile it on your own?
I have a problem. WiFi worked correctly after the very first boot but every boot now it just connects to my WiFi network but doesn't actually establish a connection. My WiFi is working fine though on webOS and my laptop with Ubuntu (all on the very same network). I tried removing it from network manager and connecting all fresh again but it still doesn't give me a connection.
Anyone has an idea on how to fix it?
---------- Post added at 12:50 PM ---------- Previous post was at 12:49 PM ----------
stdinov said:
Thank you for the nice new toy for our tablet! I successfully installed it on a 6GB partition. So far I can report the following things:
Pros:
- more responsive touchscreen than on 12.10
- better working onboard virtual keyboard than on 12.10 - resize, move, pop-up - working great
- very nice multi-touch gestures for scrolling, maximize, minimize and right-click
- I feel it faster and better responding than 12.10 - may be this is becuase of the optimizations in 13.04
Cons:
- volume keys doesn't increase or decrease the audio
- dnsmasq uses a lot of the cpu - need to kill it
- internet access stops after a while, although the Wi-Fi is connected - need to reconnect the wi-fi, can this be related to killing dnsmasq?
- udevd uses a lot of the cpu - need to kill it - I ran "udevadm monitor" and I can see only reports for the battery and something else (not known) on 5 secs refresh basis
- rsyslogd uses a lot of the cpu - need to kill it
- System Settings panel is bigger than the screen - can not resize it
- VLC can not play song after song - resource is not available - I think this is reported already
- no swap partition
If anyone else experience this you can report it, I think this will be useful for further optimiziations and fixes.
Also is it a good idea to have a repo with the kernel and distro, so we can make/sync/test changes?
@jshafer817,
Sorry for the lame question, but do you use an already compiled distro, or you compile it on your own?
Click to expand...
Click to collapse
For System Settings, that's not a problem from this port at all. On the desktop it's also non-resizable.
And the volume keys work fine here.
3.0.8 is working.. sort of
Wifi and Touch are working with KGSL and EAX in 3.0.8
jshafer817 said:
Wifi and Touch are working with KGSL and EAX in 3.0.8
Click to expand...
Click to collapse
Weren't those the big things? Then what's still broken?

mFSTRIM: A REAL, FOSS fstrim utility for Android, no root necessary

Hey XDA!
I actually just posted about another app called Buoy, but over my spring break I went ham and made four apps and I wanted to show off two of them to get some feedback. So here's mFSTRIM!
What is fstrim?
So you know how hard drives get fragmented over time right? Data is placed far apart from other data, increasing latency as the disk needs to physically seek to a certain partition of the disk to read/write data. Well, flash storage doesn't really get fragmented. Instead, when parts of the flash are deleted, the system doesn't actually have a way of knowing which sectors it doesn't care about anymore, and which ones it does. So we go through periodically and TRIM (hence fstrim, the command line utility that does this) all the unused blocks so the system can use them again.
Doesn't Android ALREADY fstrim regularly?
Well, sorta. Newer versions of Android will check at midnight if the device is alive at midnight and is currently charging. If so, it will run fstrim during the next time the device is idle and charging. But what about if that can't happen? I, for one, don't plug my phone in overnight because I care about my battery health. Android also imposes an upper limit! If the device has not run fstrim within the past 3 days, it will force one during the next bootup. And here's where mFSTRIM comes in...
How does mFSTRIM work?
mFSTRIM uses Secure Settings to change how long Android can go without an fstrim before forcing one during bootup. With that logic, we can set that interval to 1 millisecond (aka, one is ALWAYS needed), so that during every reboot, an fstrim is done.
Links
Play Store: https://play.google.com/store/apps/details?id=com.draco.mfstrim
GitHub: https://github.com/tytydraco/mFSTRIM
Feedback is appreciated!
Is there a free version?
orb3000 said:
Is there a free version?
Click to expand...
Click to collapse
Hi,
Sorry, I didn't release a free version since the app is really simple. But just a tip: once you change the setting, it persists even after you uninstall. So do what you want with that information
This is awesome! Any chance to add the ability to run fstrim whilst in the app on demand?
fobtob387 said:
This is awesome! Any chance to add the ability to run fstrim whilst in the app on demand?
Click to expand...
Click to collapse
Hey! Sadly this isn't possible due to the way the app works. Internally in Android there's a setting that tells the system the longest we can go without doing an fstrim on bootup. My app simply changes this setting. The fstrim is actually done by Android still, not my app. Since the only time Android checks our newly changed setting is on a reboot, we have to reboot to make it happen. With root I can do what you suggested, but sadly without root it's not possible.
tytydraco said:
Hey! Sadly this isn't possible due to the way the app works. Internally in Android there's a setting that tells the system the longest we can go without doing an fstrim on bootup. My app simply changes this setting. The fstrim is actually done by Android still, not my app. Since the only time Android checks our newly changed setting is on a reboot, we have to reboot to make it happen. With root I can do what you suggested, but sadly without root it's not possible.
Click to expand...
Click to collapse
Would it be possible to make a root variant?
fobtob387 said:
Would it be possible to make a root variant?
Click to expand...
Click to collapse
It's possible! Also, you can run this via the command line with ADB (no root): adb shell sm fstrim
That forces an fstrim
Nice app! I set it to fstrim on reboot, and sure enough the "last-fstrim" file was modified at boot to confirm fstrim took place. The app is free in the Play Store now (reading the previous comments and it seems this may not have been always the case). I also like that the app doesn't use the network for anything at all (no analytics). I'm rooted, so it did ask me to grant root when starting it up for the first time.
{
"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"
}
Hey! Can we please be able to create a custom interval for fstrim?
My phone becomes slow after like 5 mins of fstrim so I'd need this to run every like 1-2 seconds. I don't want to root my phone xd
Auditormadness9 said:
Hey! Can we please be able to create a custom interval for fstrim?
My phone becomes slow after like 5 mins of fstrim so I'd need this to run every like 1-2 seconds. I don't want to root my phone xd
Click to expand...
Click to collapse
No
No
No
No, you definitely do not want to fstrim every 1-2 seconds
No.....
Your "slowness" probably comes from the discard option on the mount point, if its EXT4, takes longer to do its job
Running fstrim multiple times wont fix that
73sydney said:
No
No
No
No, you definitely do not want to fstrim every 1-2 seconds
No.....
Your "slowness" probably comes from the discard option on the mount point, if its EXT4, takes longer to do its job
Running fstrim multiple times wont fix that
Click to expand...
Click to collapse
Oh bummer. And what would fix that slowness then?
Auditormadness9 said:
Oh bummer. And what would fix that slowness then?
Click to expand...
Click to collapse
Without root nothing you do will change a thing
fstrim other than the stock ROM scheduled one will not work without root
73sydney said:
Without root nothing you do will change a thing
fstrim other than the stock ROM scheduled one will not work without root
Click to expand...
Click to collapse
Got it. And one more thing. Do you think this would work if I had root?
SSD Boost - Apps on Google Play
Minimizes writings on the your phone's SSD, increasing speed and extending life
play.google.com
Auditormadness9 said:
Got it. And one more thing. Do you think this would work if I had root?
SSD Boost - Apps on Google Play
Minimizes writings on the your phone's SSD, increasing speed and extending life
play.google.com
Click to expand...
Click to collapse
For starters its not my app, and theres no real detail on what it does beyond change a few mount point options - which you can probably find already (depending on android level and ROM) exists (noatime already on my ROM) by the following in a terminal:
mount | grep noatime
and/or
mount | grep nodiratime
As for its other listed function, running TRIM on demand, theres this app which has been around forever and is ad free
Trimmer (fstrim) - Apps on Google Play
Trim your device NAND chip manually and fix lags.
play.google.com
As for the app you quoted generally, realise its *possible* to brick your device doing some of the things it claims, so check the warnings
Also the author even points out it doesnt actually boost an SSD, it just changes some kernel and mount options that *may* improve filesystem performance
Note: I just tried running SSD Boost on my Pixel 2XL...toggled it on, and it sat there forever saying "Boosting your SSD", and sat there a long time (to the point i thought id have to kill it), and then showed it had made some changes (factoring in i already had noatime set)
Heres some tests before
and after....
Androbench:
Seq Read: +15MB/s
Seq Write: +12MB/s
Ran Read: -3MB/s
Ran Write: +0.4MB/s
SQLite Insert: -57 QPS
SQLite Update: -101 QPS
SQL Delete: -74 QPS
SD Card Test Pro:
Write: +95MB/s Read: +20MB/s
Would i bother installing it (if its safe for your device)...as always , up to the individual. As always these are benchmarks, and just a snapshot in time, real world result in real world usage, dunno if you’d notice
73sydney said:
Without root nothing you do will change a thing
fstrim other than the stock ROM scheduled one will not work without root
Click to expand...
Click to collapse
Why are you posting misleading info? The other user (quote below) actually verified the operation, and it works!
ninjæon said:
Nice app! I set it to fstrim on reboot, and sure enough the "last-fstrim" file was modified at boot to confirm fstrim took place. The app is free in the Play Store now (reading the previous comments and it seems this may not have been always the case). I also like that the app doesn't use the network for anything at all (no analytics). I'm rooted, so it did ask me to grant root when starting it up for the first time.
View attachment 5382223
Click to expand...
Click to collapse
I observed the same change in last-fstrim date! The utility works, it's great!!! Surprising so few people noticed it ...
Thanks for this!
Somewhat related question: will TRIM prevent data recovery?
From my understanding, when you delete data from an SSD it will just remove it from being viewed and allow it to be overwritten but the data is still there and can be recovered through recovery apps or forensics.
Does TRIM prevent this?
DonDizzurp said:
Thanks for this!
Somewhat related question: will TRIM prevent data recovery?
From my understanding, when you delete data from an SSD it will just remove it from being viewed and allow it to be overwritten but the data is still there and can be recovered through recovery apps or forensics.
Does TRIM prevent this?
Click to expand...
Click to collapse
It's a complicated question, each implementation is different. TRIM will tell controller the blocks are unused, not sure if anything else happens to them. Read some of this to get an idea:
Perform a SSD Secure Erase - Thomas-Krenn-Wiki-en
In this article, we will show you how to perform a secure erase on a SSD under Linux. By doing this, you can increase the performance of frequently used SSDs for future use. But, all of the data will be lost. For Fusion-io’s ioDrives, see Low-level Formatting a Fusion-io ioDrive.
www.thomas-krenn.com
I am going to post the actual command to activate this as there is nowhere I can find that has in even the repository. Even though the command is stated on the display, you still have to manually type it so here it is:
adb shell pm grant com.draco.mfstrim android.permission.WRITE_SECURE_SETTINGS
Enjoy
This app only adds a Global Table parameter called "fstrim_mandatory_interval", set to 1 if you choose every reboot. This is possible with SetEdit and ADB very easily (in 10 seconds) and it is permanent. I am a bit surprised that a whole app has been made only to set this one parameter. Also, the parameter is not effective on a lot of ROMs. If OP's app is paid, that is ridiculous; I sure hope it is not!
With magisk root, you can make a script that runs on every boot running fstrim through busybox. That's what I do, because this parameter used in the app is useless; automatic fstrim is not run on any MIUI ROM I have tried so far.
I have no idea why OP states it adds a Secure Table parameter; I have not seen such being added.
Note that these are my observations and could be wrong.
nosak said:
This app only adds a Global Table parameter called "fstrim_mandatory_interval", set to 1 if you choose every reboot. This is possible with SetEdit and ADB very easily (in 10 seconds) and it is permanent. I am a bit surprised that a whole app has been made only to set this one parameter. Also, the parameter is not effective on a lot of ROMs. If OP's app is paid, that is ridiculous; I sure hope it is not!
With magisk root, you can make a script that runs on every boot running fstrim through busybox. That's what I do, because this parameter used in the app is useless; automatic fstrim is not run on any MIUI ROM I have tried so far.
I have no idea why OP states it adds a Secure Table parameter; I have not seen such being added.
Note that these are my observations and could be wrong.
Click to expand...
Click to collapse
It's a free app. It's conveinient for those who don't want to remember the parameter or how to use SetEdit. Also nice to just be able to toggle on/off. It has worked for me on every Lineage-based ROM I've tried it.
Good to know that it doesn't work on MIUI ROMs however, and that there's a permanent method that doesn't require installation of an app!

Categories

Resources