[Guide] How to Install Ubuntu On Galaxy Nexus - Samsung Galaxy Nexus

First before I start. I just wanted to say that this is not my work. This is simply a guide
to assist other galaxy nexus users who would like to run ubuntu but don't have an understanding
on what they should be doing precisely. The original thread called "linux on android" will be
posted at the bottom of the thread for those wanting to thank the original author. I couldn't
find a guide specific to our device hence the creation of this one. If this has not been posted
in the correct area, moderators please feel free to move it to the correct subforum.
Here is the part where I say, I'm not responsible for anything that happens to your phone. You do
this at your own discretion. This is something to tinker with for anyone who likes to mess with
their phone and show off a little bit.
Also be sure to follow my instructions exactly how I write them to avoid any unnecessary confusion.
As a base, I am using AOKP B39 and franco kernel Nightly 192.
If you have terminal emulator or androidVNC currently installed please clear app data and uninstall.
This of course is to be extra careful.
First things first: You want to have root and a kernel installed that has loop device support.
Like I've mentioned already, I am using Franco Nightly 192 and it is working perfectly fine
therefore I see no reason why it should not work for you. Best results in my opinion will come from using my
ROM base and kernel.
Next here are links to the following files you need. These files are quite big and there are 3
different kinds. The difference between each kind is explained on the page. Remember to keep in
mind how much space you must have on your phone before downloading a file. You don't want to waste
your time downloading the full image if you don't have the space to install it.
Here is the link to the full/small/core images. Download the version of ubuntu you wish to run on
your phone and make sure it is the latest which as of today is dated June 8th 2012.
Remember that the "core" version is for experienced ubuntu users only as it has no GUI. only
command line.
http://sourceforge.net/projects/linuxonandroid/files/Ubuntu/12.04/
Once you have downloaded the image you wish to run. You may extract the img file from the zip file
using 7zip or winrar. Both work perfectly fine. You will notice that once you extract the file
there is a ubuntu.img and an ubuntu.img.md5
The md5 file is a checksum file, if you wish to validate the integrity of the file you just downloaded
go ahead and use a program such as cygwin to compare the md5 hashes.
Moving on, once you have extracted the ubuntu.img file. Move the file onto your galaxy nexus
internal memory to the root of your sdcard inside a folder named "ubuntu".
If you have done this correctly your directory should be as follows. /sdcard/ubuntu
Next you want to download the bootscript which I will attach at the bottom of this thread. Extract the ubuntu.sh file from the zip i posted below.
Once you have downloaded the ubuntu.sh file I have attached. You need to place that file in
the same /sdcard/ubuntu directory where your unbuntu.img file is located.
To confirm you are on the right track you need to install terminal emulator from the
google play store as well as install androidVNC. Once you have both apps freshly
installed you can go ahead and open up terminal emulator, grant it superuser permission
and then type the following:
su
(followed by the enter key) you should see the $ turn into a # symbol.
Next you type:
cd /sdcard/ubuntu
(again followed by the enter key) now your directory should be changed to the /sdcard/ubuntu folder
Next command:
ls
(once more followed by the enter key) This should list all files currently in the folder if you
see ubuntu.img as well as ubuntu.sh listed then you are right where you need to be.
Once you have confirmed that both files are listed we can go ahead and start the process of starting
up ubuntu. In terminal emulator type the following:
sh ubuntu.sh (all commands are followed by enter key by the way)
Terminal emulator should start the launch sequence then ask you if you want to start VNC server.
Type "y" then hit enter. Type "y" without quotations of course.
Next it will ask you if you want to start the ssh server. Again type "y".
{
"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"
}
Next it will ask you for the screen size you wish to use. You can choose whatever resolution you
wish to use. I like to use the nexus native resolution which is 1280x720.
Therefore I type "1280x720" and press enter.
Next it will ask you if you would like to save your settings type "y".
Finally your terminal should say "[email protected]:/#"
Now you are ready to start up androidvnc. Press the home button and DO NOT EXIT terminal emulator.
Once you open up android VNC enter the following information:
nickname: ubuntu
password: ubuntu
address: localhost
port: 5900
Check off the keep password option then scroll down to the botton of that page where it says
Color Format and change it to 24-bit color (4bpp)
Then press connect and voila whatever ubuntu version you downloaded should start up. The mouse should basically be used as if the screen was a track pad.
Exiting ubuntu is also easy. Just hit the settings button and a prompt should pop up with an option that says disconnect. Simpy disconnect then switch over to terminal emulator which should still be running and type:
exit
Wait around 30 seconds and it should say It shut off correctly. Type exit once more and It will close the directory you were in. One more exit and terminal emulator will close itself.
The next time you want to load up ubuntu just open up terminal emulator follow the first 2 steps and once you load up ubuntu.sh your config file should be loaded and you will be able to skip all the tedious settings. Then go over to androidVNC and your settings should also be saved. All you do is hit connect and you should be good to go.
Good luck and hope you all enjoy it. I'll post pictures of the steps that I think will be helpful. Also if this helped you out. Hit the thanks button please.
Also don't forget to checkout the original thread for further information and details.
http://forum.xda-developers.com/showthread.php?t=1585009

This looks awesome, downloading atm and will test on Rascream/Trinity
Edit: Seems that trinity kernel doesnt support loop so it wont work.

in april i buyed the paid version of this app (ubuntu,because months ago backtrack and debian wasn't released i think)but never ever tried due to many probems\errors on vnc.thank you very much for this guide,now i'm downloading the 12.04 full and retry with yours tutorial.appreciated man!:good:

Afwasmassi said:
This looks awesome, downloading atm and will test on Rascream/Trinity
Edit: Seems that trinity kernel doesnt support loop so it wont work.
Click to expand...
Click to collapse
Try flashing a different kernel such as Franco's kernel to make sure it is indeed the kernel and not the rom.
Sent from my Galaxy Nexus using xda premium

Find much more here: androlinux.com

rjmohit said:
Find much more here: androlinux.com
Click to expand...
Click to collapse
That is a universal guide. I made this thread specifically for the galaxy nexus. Please do not post links as that can confuse other users on what they should be doing. Thank you.
Sent from my Galaxy Nexus using xda premium

*le bump-a to the top-a*

Theshawty said:
*le bump-a to the top-a*
Click to expand...
Click to collapse
Lol you didn't have to bump it. Just for people who are searching for a guide.
Sent from my Galaxy Nexus using xda premium

fire & ice said:
Lol you didn't have to bump it. Just for people who are searching for a guide.
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
Considering how people don't use the search button here, I thought I had to bump it
Sent from my Galaxy Nexus using Tapatalk 2

Thanks for the guide. I did exactly what you said, but I got this error:
http://dl.xda-developers.com/attach.../5/9/1/1/3/Screenshot_2012-08-13-20-51-35.jpg
That's probably connected to the kernel's loop device. I tried first with the one included in the rom (liquid beta1 JB), then I flashed the last release of Franco (r241) but got the same error. Am I missing something?
Thanks for your help

Great guide, i am gonna try to make a complete ROM + awesome kernel
Sent from my Galaxy Nexus using xda app-developers app

mastergrifis said:
Thanks for the guide. I did exactly what you said, but I got this error:
http://dl.xda-developers.com/attach.../5/9/1/1/3/Screenshot_2012-08-13-20-51-35.jpg
That's probably connected to the kernel's loop device. I tried first with the one included in the rom (liquid beta1 JB), then I flashed the last release of Franco (r241) but got the same error. Am I missing something?
Thanks for your help
Click to expand...
Click to collapse
I got the same thing running BAMF Paradigm and Franco's 241 nightly. It appears to be a problem with the busy box. I got the same message and researched that busybox distribution (is it a distribution?) and came across this:
https://play.google.com/store/apps/...ndroid&feature=nav_result#?t=W251bGwsMSwyLDNd
It booted to the shell and asked if I want to start VNC/SSH, I am able to connect to VNC/SSH from my phone (duh) and my laptop but the VNC client comes up and displays an error message:
"Xsession: unable to start X session --- no "/home/ubuntu/.xsession" file, no "/home/ubuntu/.Xsession" file, no session managers, no window managers, and no terminal emulators found; aborting."
I will get some screen shots up tomorrow. I'm using the v4 image from the download site. It might just be the image. I did an MD5 check and everything matched up.
I know this isn't your project, does anybody have any ideas? I tried installing ubuntu-desktop from command line but there was not enough room for the install...
EDIT: I feel like an idiot now... The OP clearly states that the core version has no GUI. That might be why I couldn't get to a GUI... I guess I could put the LAMP packages on it and use webmin... Or I'll just get the small package.

mastergrifis said:
Thanks for the guide. I did exactly what you said, but I got this error:
http://dl.xda-developers.com/attach.../5/9/1/1/3/Screenshot_2012-08-13-20-51-35.jpg
That's probably connected to the kernel's loop device. I tried first with the one included in the rom (liquid beta1 JB), then I flashed the last release of Franco (r241) but got the same error. Am I missing something?
Thanks for your help
Click to expand...
Click to collapse
The error is from the script trying to use the busybox that's included with the app. In order for it to work without the app installed, it needs to be changed to point to /system/xbin/busybox instead of /data/data/com.whatever/busybox. That is assuming that you have busybox installed (and that your busybox takes the same arguments for the loop command as the busybox the app provides).

Thanks everyone for the answers :laugh:

I'm using the same Rom build as you. How do you move the files into root of /? I am using Astro browser and it wont let me copy or move anything into that directory....I cannot see any way to do it through Windows either. Any help?
I assume I am getting my errors because the file is not located in that directory.
ttp://pic90.picturetrail.com/VOL2353/13103118/24172961/403735977.jpg[/url]
ttp://pic90.picturetrail.com/VOL2353/13103118/24172961/403735976.jpg[/url]

Looks like your Ubuntu image is corrupt. Did you download it on Wi-Fi?
The files should not be in the root of your filesystem either. Everything should be at /sdcard/ubuntu and it's case sensitive. If you know the image is good, just delete the md5 file and it won't do the check.
Sent from my Galaxy Nexus using xda app-developers app

Echo5ive said:
Looks like your Ubuntu image is corrupt. Did you download it on Wi-Fi?
The files should not be in the root of your filesystem either. Everything should be at /sdcard/ubuntu and it's case sensitive. If you know the image is good, just delete the md5 file and it won't do the check.
Sent from my Galaxy Nexus using xda app-developers app
Click to expand...
Click to collapse
I can only make my file path /storage/sdcard0/Ubuntu. I see no way to get it to plain old sdcard/Ubuntu
I downloaded it via wifi multiple times and same error. Tried small and large images too with same error.
I deleted the md5. Fails now during checking loop device...MISSING. Unable to create loop device.
I tried the kernal that came with the AKOP 39 rom as well as franco.Kernel-milestone2.zip, I cant find the franco 192 kernal that you are using anywhere
I did this EAILY on the first try with my Triumph many months ago....no idea why I'm having so many problems with my GNex...

Try clearing the app data, uninstalling, and then reinstalling the terminal emulator you are using. (And a reboot wouldn't hurt...) I haven't tried it on AOKP but it should handle it fine.
The Franco kernel I use is the most current release at the time of this writing, #241.
Sent from my Galaxy Nexus using xda app-developers app

Echo5ive said:
Try clearing the app data, uninstalling, and then reinstalling the terminal emulator you are using. (And a reboot wouldn't hurt...) I haven't tried it on AOKP but it should handle it fine.
The Franco kernel I use is the most current release at the time of this writing, #241.
Sent from my Galaxy Nexus using xda app-developers app
Click to expand...
Click to collapse
Still a no go with #241 Kernal.
Checking loop device... MISSING
Creating loop device...ubuntu.sh [86]: /data/data/com.zpwebsites.completelinuxinstaller/files/busybox: not found
FAILED
Error: Unable to create loop device
I have Busy Box Free v 1.20.2 installed.

Are you using the ubuntu.sh file from the OP or the app from one of my previous posts? I initially tried installing that app to install the specific busy box instance referred to in the script.
If you are using the app and trying to launch from there, try modifying the .sh file to point to your installed version (should be /system/xbin/busybox).
Sent from my Galaxy Nexus using xda app-developers app

Related

[MOD] Hulu Hack 10.3/GB

Ok guys, so I absolutely love Hulu and other legit TV sites, some of which prohibit mobile devices based on a "flash id" similar to what you have with a User Agent string for the browser. It is based on this ID that it prohibits mobile phones from accessing content such as hulu and HBO (I think?). With this mod your phone will appear as though it is a PC running flash and I believe it also modifies your version number to be something like 99.9.999.99 for sites that try and check the version number. I also must make sure to give credit where credit is due. Credit goes to imneveral0ne who posted the modified lib files in the Thunderbolt forums http://forum.xda-developers.com/showthread.php?p=12433036#post12433036.
His mod stopped working because Gingerbread (and 10.3) copies the lib files from the APK itself back into the lib folder (/data/data/com.adobe.flashplayer/lib/) on boot, thus require the mod be redone every reboot. I simply took his mod, wrote a simple script that installs the hacked lib files to /data/flash/ at first for storage, modifies permission of /data/data/com.adobe.flashplayer/lib/ so that it can be written to by the script, and also installs a "run on boot" script at /system/etc/init.d/01-fixflash.sh which will copy the hacked lib files from /data/flash to /data/data/com.adobe.flashplayer/lib/. It also adds Hulu Bookmark app (1.0) to /data/app.
For whatever reason, I've been having trouble replicating a "start from stock, flash, and you're good" situation. Something about my setup isn't quite perfect yet (this is my first "mod"/script, and first flashable zip so any suggestions would be greatly appreciated), as I've had some issues getting it to run on its own the first time. That being said my launcher pro also force closes on every reboot so the leaked EF02 and nagging (ef10 to ef02) downgrade screen may be responsible. The GOOD news is that it does seem to work like clockwork once the script has been run manually for the first time. Enough explaining why, now to the how:
REQUIREMENTS:
Kernel with init.d support (most custom kernels with root support) and root
Busybox (for running the copy commands. If you don’t have it, install ‘busybox installer’ from the market once you are rooted)
Root explorer (recommended, not required)
NOTE: I have developed this file FOR gingerbread, however I BELIEVE it should also work on froyo. Please let me know if it does/doesn’t work on Froyo. If it doesn’t work and needs troubleshooting let me know and I’ll downgrade again to see if I can get it worked out.
INSTRUCTIONS:
EDIT: I'm such a moron, I almost forgot:
Install latest flash player (10.3.185.25) from the market FIRST and be sure to uncheck automatic updates (and don't manually either)
Make sure busybox is installed. One way to test this is to type cp –help in ADB and see if it can run the command. If it does, you’re good to go.
Next, simply flash gbflash.zip. Wipe cache/dalvik if you want (I don’t believe it’s necessary, although again, this is my first time and for whatever reason the script doesn’t seem to want to run on its own the first time)
Upon first reboot, you MAY be lucky enough that it simply just works and you’re all set. I was not this lucky, either due to my semi-lockup (FC of launcher pro) on boot and/or the EF10->EF02 downgrade screen. Anyways, if you still get the "Hulu not available for your platform" error, simply use either root explorer or adb to run the script for the first time manually. In root explorer, navigate to /system/etc/init.d, tap on S98fixflash and select "execute". In ADB, navigate to /system/etc/init.d and type "sh S98fixflash". Wait a sec for it to run, then try Hulu again. It should be working immediately (without a reboot required) AND the script should then run correctly on subsequent reboots.
Like I said this is my first "product" I've been able to make available to the community and am more than open to suggestions, criticisms and ideas of how I can make this script better. Enjoy guys!
EDIT: If you do have issues with the script not running on every reboot, simply install "Script Manager" from the market, navigate to /system/etc/init.d, select S98fixflash and check the "run on boot" checkbox.
NOTE: I believe this hack is EXCLUSIVE to Gingerbread (and maybe Honeycomb). Froyo will not work
http://www.multiupload.com/E9GP7V1QJ1 - update 10/4//2011 for 11.0.1.152 AND hopefully fixed data mounting issues on certain devices so it works easily on CWM on more devices
NOTE: Latest update includes a brand new flashplayer.so files freshly edited, so no more issues with youtube in the browser, and uses TRUE flash 11.0.1.152 libraries for increased performance (no longer based on 10.2) (LOL, flash 11 was only released 4 hours ago, hehe
{
"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"
}
)
Note: after more feedback it seems using busybox installer from the market helps if running the script, even manually does nothing.
Cool
Sent from the Drivers Seat of my Suby txting and Driving doing 100MPH+ in a school zone! Ha.
Wait I'm a little confused...are you saying that your launcher pro FCs and EF10 downgrade are indepenent of this, or is this script causing those problems?
As of right now, Launcher Pro has never FCed on me on EF02, and the downgrade prompt never pops up (it used to but it stopped for some reason).
Jus trying to get all the info before I flash this.
Btw, I assume that simply deleting the .sh file would uninstall this mod, thereby preventing anything from being done at boot? If not, what would be the proper way to uninstall this?
Sent from my SPH-D700 using XDA Premium App
You are correct on uninstall procedure. Delete 01-fixflash.sh from /system/etc/init.d. It also places a 'flash' folder in /data that can be deleted. It also modifies permissions for /data/data/com.adobe.com/libs to make it writable (shouldn't cause any issues if left) but can be undone by uninstalling and reinstalling flash. Yes my launcher pro fcs because of the ef10->ef02 downgrade question (I think). Hope to check again on official release. Please let me know if this a) works b) doesn't or c) (like me) mostly works on most reboots, but script aways work when run by hand.
Another option is to install script manager because you can then tell script manager to run 01-fixflash.sh on boot, and then it should DEFINATELY work, although I know most people prefer not to install additonl appliations...
EDIT: I believe my launcher pro FCs INDEPENDENT of this script (ie it happens whether or not the script is installed) Also, Launcher Pro works, just FCs once on boot, then works like a charm the rest of the time
Sent from my SPH-D700 using XDA App
The flashable zip did not work. It flashed but did not successfully write anything usable to phone. However, the apk on the original posting worked great!
Yes, the APK I pulled from should work UNTIL you upgrade to gingerbread (correct me if I'm wrong). Did you happen to try the script manager trick? Sometimes the script won't run on boot on its own (particularly if you have a stock kernetl). This will probably be of more use to GB users who really require the boot script.
Ran the script, but the file is not in the init.d directory.....
In root explorer, navigate to /system/etc/init.d, tap on 01-fixflash.sh and select “execute”.
tazman19 said:
Ran the script, but the file is not in the init.d directory.....
In root explorer, navigate to /system/etc/init.d, tap on 01-fixflash.sh and select “execute”.
Click to expand...
Click to collapse
There will only be 1 file in /system/etc/init.d, 01-fixflash.sh. It copies files from /data/flash to /data/data/com.adobe.flashplayer/lib/. When you execute it, then visit Hulu In dolphin, set to desktop it still doesn't work?
Are you saying the 01-fixflash.sh doesn't exist? Or that's the only file you see in there. Also note you must install flash from the market first. It should Always work when being run by hand. How about running the script, choosing execute, then the hulu app? Sorry, trying to figure out what the issue is.
Also, I'm on EF02 odex (stock), ef02 plus kernel, cwm 3.1.0.1. U same?
compuw22c said:
There will only be 1 file in /system/etc/init.d, 01-fixflash.sh. It copies files from /data/flash to /data/data/com.adobe.flashplayer/lib/. When you execute it, then visit Hulu In dolphin, set to desktop it still doesn't work?
Are you saying the 01-fixflash.sh doesn't exist? Or that's the only file you see in there. Also note you must install flash from the market first. It should Always work when being run by hand. How about running the script, choosing execute, then the hulu app? Sorry, trying to figure out what the issue is.
Also, I'm on EF02 odex (stock), ef02 plus kernel, cwm 3.1.0.1. U same?
Click to expand...
Click to collapse
Same as your setup, can't get it to work, still getting unsupported device message on hulu.com. The apk won't work for me either since it wants to find com.adobe.flash (or whatever it's called), and the one that exists on my phone has number "1" attached at the end. And I do have the latest flash, I just installed it for this very reason.
One question though, the stock browser doesn't seem to have an option to turn off mobile view?
EDIT: one difference I just noticed is that I'm deodexed, not odexed. I wouldn't think that would matter though...
Sent from my SPH-D700 using XDA Premium App
LoO
squshy 7 said:
Same as your setup, can't get it to work, still getting unsupported device message on hulu.com. The apk won't work for me either since it wants to find com.adobe.flash (or whatever it's called), and the one that exists on my phone has number "1" attached at the end. And I do have the latest flash, I just installed it for this very reason.
One question though, the stock browser doesn't seem to have an option to turn off mobile view?
EDIT: one difference I just noticed is that I'm deodexed, not odexed. I wouldn't think that would matter though...
Sent from my SPH-D700 using XDA Premium App
Click to expand...
Click to collapse
You could change the script if you can't find that file. So your libflashplayer.so file is located where, /data/data/com.adobe.flashplayer-1/lib ? Also are you on ef02 or ec05? Have you tried running the script via adb to see what errors it gives? You may need to run busybox installer from market to make sure the cp (copy) command itself works.
Edit: Also, I know there's an apk with -1 at the end, this is different. Its a folder with lib files in it. I may need to downgrade back to froyo to dbl check but I believe they're in the same place. Deodexed should't make any difference I don't think... thanks for hangin in there, I'd love to get this figured out so others can actually benefit from my aggrivation with it lol
And no, stock browser has no option to disable mobile view.
Sent from my SPH-D700 using XDA App
Updated to latest flash and fixed script file a bit* (gb only)
Sent from my SPH-D700 using XDA App
Just flashed. everything opens and runs. But when show loads it says not supported on this device... Ran the root explorer command and still the same. feels like I'm close. Any ideas? Running ef02 plus
Grapes
Kif420 said:
Just flashed. everything opens and runs. But when show loads it says not supported on this device... Ran the root explorer command and still the same. feels like I'm close. Any ideas? Running ef02 plus
Grapes
Click to expand...
Click to collapse
Double check /data/flash/ exists and has 4 files. Make sure you have installed flash 10.3.185.25 from market and uncheck auto updates. Install busy box installer, and run to install IF and only if it still isn't working at that point.
You are the man! Thought I had busy box installed but.... I didn't.... Installed, ran the script, bam! Hulu! big thanks compuw22c. I owe u a fatty!
Grapes
Thanks! It worked after I rebooted it. Hulu app and Hulu.com working (dolphin in desktop mode)
Awesome! Just glad to hear it finally working for people. I actually just got a gsII but will try to continue posting here as well as we all know the epic needs all the help it can get! btw this should work on any gingerbread its with root (which usually comes with init.d support)
After running this I have a Lego looking block with a ? in it like flash is not installed. Verified in my browser with other flash sites that this is the same. Any Idea as whats going on?
formula84 said:
After running this I have a Lego looking block with a ? in it like flash is not installed. Verified in my browser with other flash sites that this is the same. Any Idea as whats going on?
Click to expand...
Click to collapse
Never mind, it was because i use titanium backup to integrate system app updates into ROM, this saves space...
I had to restore an old backup of.24 then do the market update (did not integrate this time) booted into CWM and flashed worked great.
My only issue now is when i do fullscreen from hulu app its off center, half screen is just white (left) and part of the video is on the right?
Anyway to fix this or maybe an app update?
Its basically just a browser, tap and drag or pinch and zoom. Also, install Dolphin HD, set it to desktop user agent and tap full screen button as on a desktop.
Gone on vacation for two weeks*
I got this working on AA i3 with script manager.
It Does not make Hulu Plus app work.
It does play nicely in default web browser if you change the user agent to desktop. The full screen button works properly as well.
-Roger

[MOD] Hulu Hack GB/ICS 11.1.115.12

Ok guys, so I absolutely love Hulu and other legit TV sites, some of which prohibit mobile devices based on a "flash id" similar to what you have with a User Agent string for the browser. It is based on this ID that it prohibits mobile phones from accessing content such as hulu and HBO (I think?). With this mod your phone will appear as though it is a PC running flash and I believe it also modifies your version number to be something like 99.9.999.99 for sites that try and check the version number. I also must make sure to give credit where credit is due. Credit goes to imneveral0ne who posted the modified lib files in the Thunderbolt forums http://forum.xda-developers.com/show...6#post12433036.
His mod stopped working because Gingerbread (and 10.3) copies the lib files from the APK itself back into the lib folder (/data/data/com.adobe.flashplayer/lib/) on boot, thus require the mod be redone every reboot. I simply took his mod, wrote a simple script that installs the hacked lib files to /data/flash/ at first for storage, modifies permission of /data/data/com.adobe.flashplayer/lib/ so that it can be written to by the script, and also installs a "run on boot" script at /system/etc/init.d/01-fixflash.sh which will copy the hacked lib files from /data/flash to /data/data/com.adobe.flashplayer/lib/. It also adds Hulu Bookmark app (1.0) to /data/app.
REQUIREMENTS:
Kernel with init.d support (most custom kernels with root support) and root
Busybox (for running the copy commands. If you don’t have it, install ‘busybox installer’ from the market once you are rooted)
Root explorer (recommended, not required)
NOTE: I have developed this file FOR gingerbread.
INSTRUCTIONS:
Install latest flash player (11.1.115.12) from the market FIRST and be sure to uncheck automatic updates (and don't manually either)
Make sure busybox is installed. One way to test this is to type cp –help in ADB and see if it can run the command. If it does, you’re good to go.
Next, simply flash the zip. Wipe cache/dalvik if you want (I don't believe it's necessary, although again, this is my first time and for whatever reason the script doesn't seem to want to run on its own the first time)
Upon first reboot, you MAY be lucky enough that it simply just works and you’re all set.If you still get the “Hulu not available for your platform” error, simply use either root explorer or adb to run the script for the first time manually. In root explorer, navigate to /system/etc/init.d, tap on S98fixflash and select “execute”. In ADB, navigate to /system/etc/init.d and type ‘sh S98fixflash’. Wait a sec for it to run, then try Hulu again. It should be working immediately (without a reboot required) AND the script should then run correctly on subsequent reboots.
Like I said this is my first "product" I've been able to make available to the community and am more than open to suggestions, criticisms and ideas of how I can make this script better. Enjoy guys!
EDIT: If you do have issues with the script not running on every reboot, simply install "Script Manager" from the market, navigate to /system/etc/init.d, select S98fixflash and check the "run on boot" checkbox.
NOTE: ICS Only version now (least as far as I know). May work on others, please let me and others know if it does work on GB
File is now attached to post due to multiupload being unavailable -
UPDATE 6/26/2012 for 11.1.115.12
Note: after more feedback it seems using busybox installer from the market helps if running the script, even manually does nothing.
ahh too much to do
cba
Sorry, lots of explaining. If your rooted just update flash to latest in market, uncheck auto update adobe flash, then flash the zip. Should just work like it did on my gsII.
Sent from my GT-I9100 using XDA App
A query
I was going thru your update-script. What does this line do?
Code:
set_perm(0, 2000, 0755, "/system/etc/init.d/01-fixflash.sh");
I did not find a 01-fixflash.sh in /system/etc/init.d folder, only S98fixflash?
sileshn said:
I was going thru your update-script. What does this line do?
Code:
set_perm(0, 2000, 0755, "/system/etc/init.d/01-fixflash.sh");
I did not find a 01-fixflash.sh in /system/etc/init.d folder, only S98fixflash?
Click to expand...
Click to collapse
Oops, your right. Sorry I quickly modified this script from my old one I used on my epic and forgot to change that line. Will repair and repost now...
http://www.multiupload.com/VJWDKZ23FR
compuw22c said:
Oops, your right. Sorry I quickly modified this script from my old one I used on my epic and forgot to change that line. Will repair and repost now...
http://www.multiupload.com/VJWDKZ23FR
Click to expand...
Click to collapse
No problem. I already made the necessary changes. Will help others.
Sent from my GT-I9100 using Tapatalk
Cool. Also, it did work for you after those changes correct?
Sent from my SPH-D700 using XDA App
Note: after more feedback it seems using busybox installer from the market helps if running the script, even manually does nothing.
Sent from my GT-I9100 using XDA App
update 9/5/2011 for 10.3.186.6 AND hopefully fixed data mounting issues on certain devices so it works easily on CWM on more devices
NOTE: Latest update includes a brand new flashplayer.so files freshly edited, so no more issues with youtube in the browser, and uses TRUE flash 10.3.186.6 libraries for increased performance (no longer based on 10.2)
does nothing no matter what on kh3 deodexed
I'm using it now on litening 6.1 (kh3) just fine with nymphetamine kernel. This thread is also in the epic 4g forums. Troubleshooting instructions are there a well as the op. Understand what the mod does by reading, then find out where its getting hung up. I guarantee if you read you'll find your problem. Sorry but I keep having to help people read my own posts... First guesses, reflash, check to see files were installed, run busybox installer,.try another kernel with working init.d support... Run script manually?
Nice work. Any way of getting this to work for HC on the Xoom?
Maybe, try it let me know. Our buy me a 10.1
compuw22c said:
Maybe, try it let me know. Our buy me a 10.1
Click to expand...
Click to collapse
LOL! Nah didn't work for me.
Actually I feel I remember it working fire xoom.maybe try the manual troubleshooting in the op. find and replace libflashplayer.so with what's in the zip
it won't let me even flash the file says:
E: Error in /sdcard/gb_hack_flash_hulu10.3.186.6.zip
(Status 0)
Installation aborted.
all you need to do to get it to work is to extract the libflashplayer.so from the zip the op posted and copy it to (and replace) the libflashplayer.so in
Code:
/data/flash/libflashplayer.so
and
Code:
/data/data/com.adobe.flashplayer/lib/libplayerflash.so
do this using root explorer
this also enables crackle as well
there is no need to run a script
Beautiful, tried so many things in the past, and this works beautifully! Thanks!
Um, at the risk of sounding like a complete euro-dummy: What is Hulu, what does this hack do? Perhaps a bit of description in the first post?
ogdobber said:
all you need to do to get it to work is to extract the libflashplayer.so from the zip the op posted and copy it to (and replace) the libflashplayer.so in
Code:
/data/flash/libflashplayer.so
and
Code:
/data/data/com.adobe.flashplayer/lib/libplayerflash.so
do this using root explorer
this also enables crackle as well
there is no need to run a script
Click to expand...
Click to collapse
Yes but when you reboot with 2.3 or higher it replaces those files again back to stock.

[Resource] Epic 4G Touch Owner's Toolkit

I did this for the EVO 4G so I'm going to do it for the E4GT. After watching people ask and sometimes search and ask again for the same things over and over, I thought it would be a good idea to have one thread to hold all of these valuable resources, basic tips and tricks. Many of these links will be found in multiple locations, forums, threads and posts and I will try to keep this single thread updated with links to as many resources as we can come up with.
There are already several great posts like this. Barnacles has the incredibly informative E4GT Wiki stickied in General (hopefully this can contribute to that wiki), Qbking has his threads with links to his excellent video tutorials, and sfhub posts up all sorts of goodness with his Auto Root and stock tar threads. But I didn't really find a thread devoted to just basic methods and problem solving. This thread strives to provide a collective space for learned knowledge, quick tips and fixes for common issues.
If this isn't needed or wanted, it will surely fall to the XDA basement no harm no foul If it has any value, then hopefully it will help a few people in their endeavor to create the best personal Android experience possible!
I take no credit for many of these items, I have only gathered and edited most of them for a one-stop easy shop opportunity. All fixes have been edited for clarity and efficiency with links wherever possible. Please let me know of any broken/missing links or errors. Links to the original source are provided when possible. I have not run all of these fixes personally, but try and confirm fixes I don't test by finding at least three user corroborations for each.
If you have questions on a specific fix with a Source listed, I recommend directing questions/issues to the original source for best results. Otherwise feel free to ask here and we may be able to assist. ~js
Like my EVO Owner's Toolkit, this is a work in progress and a living document. I try to keep it up to date and appreciate new information, suggestions and knowledge which can be added to the OP's. I always provide credit when possible/applicable.
Epic 4G Touch Owner's Toolkit​Updated: January 6, 2011​
Always make a NANDROID before you do anything!​
If you have any questions/needs that are not listed here, I recommend starting with a Search and reviewing ☞ ☆.☆. [WIKI] ROOT, ROMs, KERNELS, MODEMs, HOW-TOs
If you still have questions/concerns, post 'em!
E4GT HOWTO's
How to make a nandroid backup (as requested)
Make sure you have your setup where you want it (I usually update all my apps in the market and do a Titanium Backup before my Nandroid as well.)
Boot into recovery (Hold [Power]+[Vol. Up] or just Hold [Power] if your ROM supports boot menu)
Navigate to Backup and Restore and press [Power] (or [Home] soft key depending on your recovery version)
On next screen select Backup and let it do it's thing
Reboot and you are good to go.
*The backup will look something like 2011-12-26.03.00.15 and likely be in /sdcard/external_sd/clockworkmod/backup.
If you decide to rename the backup, make sure that there are no spaces in the name. (I.e. 2011-12-09_Calk_2.0_EG31 would be fine, while 2011-12-09 Calk 2.0 EG31 would be a no-no.)
Hands Free Activation A way to improve data speed and stability, address data or wifi issues, etc. (especially after flashing a new modem):
Make sure you are not roaming (WiFi is fine, even a poor signal is fine, but roaming can mess with things.)
Make sure you don't have system updates removed or frozen in titanium backup
Get your Master Subsidy Lock (MSL) code (Use Terminal Emulator and type "su" then "getprop ril.MSL" (case sensitive and if using swype make sure the "i" in "ril" doesn't auto capitalize. Use another kb if necessary.) **alternate method below.
Go to dialer and enter ##72786#
Enter your MSL and hit OK
On the SCRTN screen select yes
Phone will auto reboot and take you to Hands Free Activation
If you have an SD card, media scanner will do its thing first.
Re-activation will initiate, let it run (DO NOT TOUCH THE SCREEN, no need to Press OK it will continue on its own)
Phone will then update Profile, then PRL, (you can select cancel when it searches for Firmware update if you want)
Phone will reboot again
Also a good idea to pop out your battery for a few seconds (many have reported this helping and Sprint usually has you do this during the process.)
That should improve things.
**Alternate Method for obtaining MSL for those having trouble with original method after upgrading to ICS
Download the alogcat app from Market
Open alogcat. Press the hourglass and type "msl" and wait while it filters. The screen should go blank.
Press your Home button
Go to your dialer and enter ##3282#
When the menu pops up choose Edit and when it asks for your msl, enter 6 random numbers. You will get an error message.
Long press the home button to bring up recent apps and choose the alogcat app.
At the bottom of the list it will say "MSL result : XXXXXXX" where xxxxxx is your MSL number.
That's it.
(*Unfortunately MSL Reader app in market only works on HTC CDMA phones.)
Click to expand...
Click to collapse
How to boot into 'Safe Mode' should you need to for any reason
Hold Home softkey while rebooting
That's it you are in 'Safe Mode' (I don't know exactly what you can do in safe mode, but probably similar to Windows safe mode.)
Click to expand...
Click to collapse
How to extract an apk from a ROM/zip (you'll need a program like 7-zip, winrar, etc.)
Download the ROM/zip that contains the desired apk(s)
Double click the zip and it will open in your default zip program
Navigate to system/app and drag the desired apk(s) to an easy to remember location. (I use Dropbox or Minus, which makes the apk available on my phone without any further desktop steps.)
If not using a cloud storage option, connect your phone to your desktop and copy apk(s) to your SD
That's it, you now have the apk(s) on your phone and can proceed with double clicking and installing the app or if a system app to the next tutorial for installing a system apk.
Click to expand...
Click to collapse
How to remove a system apk w/Root Explorer (ROM Toolbox can also be used, but slightly different process):
Open Root Explorer (or ROM Toolbox Root Browser) and navigate to system>app
Mount R/W (top right in Root Explorer, R/W is on by default in ROM Toolbox)
If this is a system app, long press existing apk and either move (if you want to keep it) or delete (if you don't care)
Hit OK and your free of the undesired app.
CAUTION: make sure you research before randomly removing things or you are likely to bork something. A good list of items that have/can be removed successfully in naerok's incredibly streamlined ROM can be found in Post #3 here.
Click to expand...
Click to collapse
How to install a system apk w/Root Explorer (ROM Toolbox can also be used, but slightly different process):
Download or extract the desired app apk and place it somewhere on your SD where you can find it (I highly recommend Dropbox for this)
Open Root Explorer (or ROM Toolbox Root Browser or ES or Other) and navigate to /system/app
Mount R/W (top right in Root Explorer, R/W is on by default in ROM Toolbox)
If this is a system app, long press existing apk and either move (if you want to keep it) or delete (if you don't care)
If moving, navigate to the place you want to store the original apk using the Parent Folder line at the top
Paste to the desired location then go to the place with the new/replacement system apk
Longpress the replacement apk and choose copy or move
Navigate back to /system/app (should still be mounted) and paste the replacement apk
Longpress the replaced apk and select permissions
On the permissions pop-up leave all three in the first column (Read) checked, only the top item in the middle column (Write) checked and none in the third column, (Execute) and nothing else checked.
Hit OK and enjoy! Your permissions should now read (rw-r--r--)
Click to expand...
Click to collapse
How to extract a bootanimation from a ROM (you'll need a program like 7-zip, winrar, etc.)
Download the ROM/zip that contains the desired bootanimation.zip
Double click the zip and it will open in your default zip program
Navigate to system/media and drag the bootanimation to an easy to remember location. (I use Dropbox or Minus, which makes the apk available on my phone without any further desktop steps.)
If not using a cloud storage option, connect your phone to your desktop and copy bootanimation.zip to your SD
That's it, you now have the bootanimation zip on your phone and can proceed to the next tutorial for installing/replacing a bootanimation
Click to expand...
Click to collapse
How to replace/add a boot animation
Download or extract a bootanimation.zip
Place the bootanimation.zip on root of your SD card (or use a cloud app i.e. Dropbox, Minus, Box, etc.)
Make a copy of the bootanimation and name it sanim.zip and move that to your SD card as well
Open a root manager app (I prefer Root Explorer)
Navigate to system/media
Select Mount R/W (top right in Root Explorer, on by defauly in ROM Toolbox) then either delete, or move existing bootanimation.zip and sanim.zip
Navigate back to sdcard, then copy or move bootanimation.zip to system/media and then repeat with sanim.zip
Some people replace only the bootanimation.zip and others only the sanim.zip, but I find each of those methods seem to create issues if the kernel you are running does not support custom bootanimations by default. So I replace both zips and it has worked well on multiple ROMs/Kernels. If this doesn't work for you, try replacing each individually. One of the three methods will definitely work for your ROM/Kernel combo.
User 12MaNy has created a thread with several bootanimations available as well some methods for install
Boot animation sounds can be found/added at /system/etc/poweron.wav and /system/etc/1_Power_on.ogg (may be listed as /system/etc/poweron.bak and /system/etc/1_Power_on.bak if these have been "muted".)
Also make sure to check and see if your dev has already moded the boot ani setup as nerys71 discovered here.
Click to expand...
Click to collapse
How to hack custom bootanimation support (Via chris41g) Only works with source built kernels. Thanks dtm_stretch.
Rename /system/bin/samsungani to something else... (eg samsungani.old)
Rename /system/bin/bootanimation to /system/bin/samsungani
After that it will load whatever bootanimation is at /system/media/sanim.zip
Click to expand...
Click to collapse
How to add/restore/change bootanimation sounds (you'll need a program like 7-zip, winrar, etc.)
Open the ROM zip that you want to run
Navigate to /system/etc/ and look for poweron and 1_Power_on
If they appear as poweron.wav and 1_Power_on.ogg you are good to go
If they appear as poweron.bak and 1_Power_on.bak you need to rename them as above
If they don't exist, you will need to add them to this location or replace them with similar sized sound files of your choice. Make sure to keep the filenames and formats as above
Click to expand...
Click to collapse
Stuck at a black screen, bootanimation, etc
No need to jump through all sorts of hoops. Simply download and flash a different CWM Kernel. You can try it first by holding down [Power] + [Vol. Up] until it takes you to recovery (it may reboot once or twice, just keep holding.) If it never does take you into recovery, you can flash a kernel via Odin. Once you have the kernel flashed you will either be up and running on your new ROM or you can now go into recovery and flash the ROM of your choice.
*Assumes you were rooted to begin with as you are in this thread and have previously flashed the ROM.
Click to expand...
Click to collapse
Lockscreen/Reboot Issues
If you are having issues with reboots and resets and are using a 3rd party lockscreen or the native lock pattern, make sure that the selected custom lockscreen is "None"
Settings>Lockscreen Settings>Lockscreen Settings>Lockscreen style>None
Click to expand...
Click to collapse
SOME HOT LINKS TO OTHER GREAT HACKS, MODS AND FIXES
[How To] Upload a custom PRL to your Epic Touch 4G by R1ptide Thanks to TonyTurboII for the recommendation
I used to use a similar hack from Techknowfile back on the EVO 4G and it did work well, just make sure to be aware of the risks if you overuse data while roaming.
Click to expand...
Click to collapse
Always make a NANDROID before you do anything!​
► New Modems - First, do not run out and flash the latest modem just for the hell of it. Use some restraint and think before you act. There are sometimes unknown hazards, such as the issue of no return from the EG31 modem to EG30 a few weeks back. Consider why you want the new modem. Are you having legitimate issues or do you just want the latest stuff? It's your phone, do as you please, just remember that you had a choice if something bad happens, like being stuck on an unofficial build.
► LoS issues - LoS issues really should be a thing of the past since the EK02 and EL13 modems emerged, but if for some reason you have not moved to those modems and you are having LoS issues flash a stock kernel! I prefer Rogue *STOCK* kernels, but pretty much any kernel listed as "stock" should help.
► Data/signal Issues - If you are having data/signal issues after flashing a modem, perform a Hands Free Activation, if that doesn't work, try pulling the battery for a few seconds (thanks Guillo1). If that still doesn't work you may need to call Sprint.
► Poor Battery Life - If you have poor battery life make sure you have calibrated your battery and given yourself several full charging cycles. And use either Battery Repair (Doctor Boost) ($2.69) or Battery Calibration (FREE). User evolart passed on this method as well: Best way to calibrate S2 Battery. I'm not quite ready to believe that calibration does nothing for us, but this is an alternative method to try for those who feel compelled. I sent messages to both app developers. I'll test and keep an eye out for other user's opinions and update this as necessary.
► Bootloops? -
Make sure that you have a default launcher selected and if using a 3rd party launcher that it is NOT set to auto update in the market as an update overnight would leave you without a default selected. (Thanks to 1BadHEMI, rickyq12 and playya for jogging my memory.)
If that didn't solve it and you are absolutely sure you wiped properly, you probably didn't so you might want to try that again. Recovery > Wipe Cache + Dalvik cache > Reboot (see Issues Flashing ROM below re: wiping)
If that doesn't work, flash a stock kernel via recovery or odin and start from fresh ROM again. This time let everything settle in before applying any changes (voltage tweaks, themes, mods, new apps, restoring settings, etc.)
► Issues Flashing ROM - If you are having issues flashing a ROM or an update here are some tips.
With some ROMs like Calkulin's ROMs, you generally do not need to wipe anything when going from one version to another. Just boot into recovery and apply the zip, his wipes for you. I have had the most success doing this and the Dev will note otherwise if the process changes. (It doesn't hurt to wipe cache + dalvik cache, so do that if you are fearful of not wiping anything.)
If coming from one ROM to another, you should wipe everything. I do it manually and use the Format_All zip, but you can do it anyway you like so long as everything (cache, dalvik, system, battery stats) gets wiped at least once. Some format system for good measure, I don't. Your choice.
If you have done either of these processes and are having issues it could be anything from a bad download to wiping issue to bad luck. Do it again and take a look at the Bootloops note above.
► Google Voice - when I answer my phone I get a recording where I have to press 1 to answer
Open Google Voice > Options (gear icon top right) > Voice Settings > Calls > Call Screening > toggle to "Off"
► Apps Issues - Apps missing, not working, acting strangely?
Reboot your phone
Reboot your phone
Reboot your phone
Fix permissions (ROM Manager > Fix Permissions or boot into recovery > Advanced > Fix permissions)
Clear app data (Settings> Applications > Manage applications > All > [the app] > Clear data)
Uninstall and reinstall the app
If it is something like Google music, Amazon Appstore, Spotify, etc. you may need to go to the web and clear some connected/authorized devices from the settings, there is a limit.
► Fresh Start - If you've tried everything else, try flashing the STOCK EG30 TAR or Stock EL13 TAR via Odin. Either will help you start fresh.
► More Links And a whole bunch more useful links in qbking77's thread.
► Post Logs - Super easy way to grab logs and post them for review. Install a log collector such as aLogcat and Pastebin from the market. Then run alogcat after the event, click share from the log and select Pastebin from the popup list. Copy the URL it provides you and send that or post it here.
GPS Fixes
Various fixes. If one doesn't work, try another. More posted as they come. Unfortunately, everything I have posted in this GPS fix section is sketchy at best, working for some not for others. Right now it is the best we have so it doesn't hurt to try, but remember, YMMV.​
Using the Supersonic GPS Driver Thanks
Download one of the drivers below. (CM7 version shared by ebuechler3 and daryelv and "flash3" version shared by colorado_al, thanks to lunchboxVA for pointing it out.
Download GPS Status and Toolbox App from the Market.
Boot into Recovery (Hold [Power]+[Vol. Up] or just Hold [Power] if your ROM supports boot menu)
Wipe cache + dalvik cache
Flash the zip
Connect to GPS
Turn on GPS Status and Toolbox and let it get a fix
Turn on the map/nav app of your choice and let it get a lock
*Lock should be significantly faster than before the flash (mine went from just under 5 min. to about 11 seconds.)
You'll want to come back and try again later in the day to make sure it's still working. You may have to flash again when changing ROM's making mods. Good thing it's easy
UPDATE: user adma84 brings up a good point in that this driver does not appear in /system/lib/hw after flashing and I am actually unable to locate the driver anywhere in /system at all. I am going to see if I can get any sort of explanation, but as of now the jury is out in if/how this fix actually works. I can confirm that I did extensive controlled testing on this process and I definitively experienced a quantifiable improvement in lock time and duration, however whether the improvement was coincidence or a result of flashing the zip is unconfirmed. I can also confirm that flashing the zip does nothing bad so that you should have nothing to lose by flashing it irrespective of whether it is actually proven to work or not. I will update if I learn anything new on this.
Click to expand...
Click to collapse
GPS Status & Toolbox Fix
Download GPS Status & Toolbox from Market
Enable GPS
Open GPS Status & Toolbox
Menu > Tools > Manage A-GPS state > Reset
Menu > Tools > Manage A-GPS state > Download
Menu > Tools > Compass calibration > follow popup directions
Other app options that I've had occasional success with are:
All FREE and found in the Market, Faster Fix, GPS Fix and GPS Test Each of these just seem to act as a catalyst to get things moving. I haven't had consistent success with any of them, but in a pinch these are three that I use.
Click to expand...
Click to collapse
GPS EPST (##GPSCLRX#) Fix
Get your Master Subsidy Lock (MSL) code (Use Terminal Emulator and type "su" then "getprop ril.MSL" (case sensitive and don't use stock swype as the "I" malfunctions.)
Launch phone dialer and dial ##GPSCLRX# (##4772579#)
Enter the MSL Number from above as the password
Your phone will automatically reboot
Once booted back in the ROM open Maps or Navigation and obtain a GPS fix (This is an important step!)
Click to expand...
Click to collapse
GPS Configuration tweaks post by Xenova
These tweaks have been around for a long time. I used them on MIUI on the EVO 4G and they seemed to work really well for some and not for others. This is definitely work a look if nothing else is working for you.
Click to expand...
Click to collapse
Exchange the Phone
Sadly the other option is to take your phone back to Sprint and see if you can get a new one. Several people have claimed to get better signal on a new handset. That wasn't the case for me, but my exchange was very early on after release of the phone, so who knows what hardware changes may have occurred since then.
Click to expand...
Click to collapse
Get Free Storage and Mount it as a Virtual Drive​
This is how to get a ton of free storage space and then mount it as a virtual drive on your Windows PC (sorry, haven't tested the Linux method personally and don't have a mac, but I'm sure someone slick can figure out a method based on my post.) The free storage is from Box.net and GMail. These are both workarounds/mods and neither method is sanctioned by Box.net nor Google. These have worked for me for quite awhile, but I am in no way responsible should either entity decide to penalize your accounts for use of these methods. Use at your own risk.
Box.net 50GB Promotion (there are several great tutorials on this hack here at XDA, I used tomcat420m's as I felt is was really clear)
This is a limited time promotion offered by Box.net for a free 50GB account upgrade for owners of LG PHONES. Some slick users came up with a method of modifying the build prop in order for any Android user to take advantage of the offer. It's a free 50gb Account and raised upload limit from 25mb to 100mb. The promotion ends 3/30/2012, but the 50GB is free forever. Here is the official promotion page Box.net.
Now hit the link to tomcat420m's tutorial and grab you some free space, then come back here to learn how to mount it as a drag and drop virtual drive!!
=========================================================================================
Mount Box.net Account(s) as Virtual Drives on Windows 7 (XP and Vista may works as well.)
Install MS Software Update for Web Folders or (\Downloads \MSWebfldrs-KB907306-ENU)
Open Windows Explorer
Right click on Network
Select Map Network Drive
Click on link (Connect to a Web site…)
Click Next
Click Choose custom network location, then Next
In the address bar paste http://box.net/dav
Click Next, then enter your box.net user name and password and click OK
Name your drive and drag it to link to the Favorites bar
Repeat the process with a second Box.net and so on for a whopping 50GB of storage per virtual drive!!
*Alternately, there are many services that let you mount multiple accounts such as Otixo which is free and Gladinet which is limited for free.
=========================================================================================
Mount Box.net Account(s) as Virtual Drives on Linux Thanks to Benjamin Kerensa for his howto on this.
What you are going to do is mount a WebDAV filesystem on Linux so that you can access the files like you do with any other folder on your desktop.
Open a Terminal window and install davfs2 by typing:
Code:
sudo apt-get install davfs2
Create the mount directory by typing:
Code:
sudo mkdir /media/box.net
Mount the WebDAV system:
Code:
mount -t davfs https://www.box.net/dav /media/box.net
(Note: The HTTPS should create a secure connection so your authentication will be safe)
Add your username and password:
Code:
sudo nano /etc/davfs2/secrets
echo “https://www.box.net/dav username password” >> /etc/davfs2/secrets
Benjamin notes you can access Box.net via Nautilus using WebDAV:
Just use Connect to Server to dav://www.box.net/dav and make sure to select Secure WebDAV.
A slightly different method by Andrew Martin can be found here.
======================================================================================
Mount GMail Storage as a Virtual Drive on Windows 7 (7.48GB per account)
DL and Install Gmail Drive Shell extension
Double click on the new mounted drive "GMail Drive"
Enter the credentials for one of your GMail accounts
Sign in and let it authorize
Download Gmail Drive Config utility from Convivea
Right-click the gmail_drive_config file and 'Run as administrator'
Click Add Drive
Enter a unique Label and another GMail user account name
You should receive a pop-up confirmation that reads:
DllRegisterServer in
C:\Windows\system32\ShellExt\GMFS004.dll succeeded.
Click to expand...
Click to collapse
Close all explorer windows
Re-open an explorer window
The new drive will appear under Computer after the last drive
Double-click this new drive to enter the password and login
Close all explorer windows...
Repeat steps 6-12 to add up 999 Gmail accounts
An neat little trick to Gmail Drive is that every file that shows up in your Gmail Drive is visible in your Gmail account with GMAILFS: somewhere in the subject. Gmail Drive can even organize files into folders based on the subject.
For example, sending yourself an empty email with a subject of GMAILFS: /music/ should create a music folder in your Gmail Drive. Then sending an email with an attached file called my_song.mp3 with the subject GMAILFS: /music/my_song.mp3 should place my_song.mp3 into your music folder in Gmail Drive, browsable with Windows Explorer.
I also setup filters to automatically label and archive any message with GMAILFS with my label of choice GMail Drive which keeps these all together and keeps my inbox tidy.
Warning: Be aware that if you upload too much too soon Google is likely to temporarily freeze your account for "Unusual Usage". Also, there's still a number of limitations of the file-system (such as total filename size must be less than 65 characters). Since the tool hooks up with the free Gmail Service provided by Google, changes in the Gmail system may break the tool's ability to function so there is no guarantee that files stored in this manner will be accessible in the future. The file size is limited to the same restrictions as Gmail attachment size, which I believe is 25mb.
{
"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"
}
Just because.
Can we just sticky this right now please? Nice job!!! If I didn't wait long enough, just let me know Just_s. Thanks!
Sent from my SPH-D710 using xda premium
JohnCorleone said:
Can we just sticky this right now please? Nice job!!! If I didn't wait long enough, just let me know Just_s. Thanks!
Sent from my SPH-D710 using xda premium
Click to expand...
Click to collapse
Lol, thanks. This is just a rough draft. It will be much more complete when I can get to it.
As far as sticky, I'm going to see if I can get it in Barnacles wiki. Jerdog wants to keep that first page clean, which is a good thing. I'll bump it from time to time as I keep it updated.
Sent from my SPH-D710 using xda premium
Wow! Definitely some good info for the newbies. Nice work man
Sent from my E4GT
One word. Awesome! Thanks for this. Hopefully it'll save alot of future questions.
Sent from my SPH-D710 using Tapatalk
Great job with this.
qbking77 should be dropping in soon
Awesome guide. Just a few notes:
-For some reason the "How to hack custom bootanimation support" does not work on stock pulled kernels, but does work on source built kernels, it will just send the phone into boot animation loops on stock pulled.
-For the "Stuck at a black screen, bootanimation, etc" you really could flash any kernel that has the appropriate recovery(CWM), it doesn't have to be that specific kernel.
Again great job.
dtm_stretch said:
Awesome guide. Just a few notes:
-For some reason the "How to hack custom bootanimation support" does not work on stock pulled kernels, but does work on source built kernels, it will just send the phone into boot animation loops on stock pulled.
-For the "Stuck at a black screen, bootanimation, etc" you really could flash any kernel that has the appropriate recovery(CWM), it doesn't have to be that specific kernel.
Again great job.
Click to expand...
Click to collapse
Thanks! Alot of these are a couple of months old and most were in relation to Starburst ROM, so I am in the process of updating everything now. Hopefully others will follow your lead and let me know of any quirks such as the bootanimation hack.
Looks awesome, you and qbking77 would be a great how to team
Thanks for your time and work.
cds0699 said:
Looks awesome, you and qbking77 would be a great how to team
Thanks for your time and work.
Click to expand...
Click to collapse
Thanks. Gotta respect qbking's work. He puts in some serious time making those awesome videos. There are some definite high powered users here and I think the more users that can contribute the better.
I'm hopeful that between qb's vids, Barnacles wiki, contributions like sfhub's and this thread, we can help the devs focus on dev'ing ROMs and Kernels rather than wasting time answering the same old played out questions over and over.
Thanks so much for doing this. I think this is a great resource for everyone.
Just FYI, I followed the steps in the Hands Free Activation section and while the phone rebooted, it never ran the hands free activation. Tried it three times. Am I missing something?
FYI, I am running Calkulins 2.6 ROM
Awesome guide !
I would like to suggest adding instructions for making a Nandroid backup.
this is a fantastic guide! made it in my top 10 bookmark bar in Chrome
curious though. i want a VERY specific font flashed to my system and its not available in rom toolbox pro. does anyone have a link to a guide on how to get one into the system? im asking here because im assuming its very similar to what you posted for pushing/pulling apks, boot animations, and sounds? please slap me silly if this isnt the case
This thread is lame and posted by a lame person!
LOL
Love you bro! Great idea on this, we know that your tool kit on our MIUI.US forum was super helpful and popular
Sent from my SPH-D710 using xda premium
dr_gibberish said:
Thanks so much for doing this. I think this is a great resource for everyone.
Just FYI, I followed the steps in the Hands Free Activation section and while the phone rebooted, it never ran the hands free activation. Tried it three times. Am I missing something?
FYI, I am running Calkulins 2.6 ROM
Click to expand...
Click to collapse
Yes, definitely missing something. Are you following each step exactly? What happens after it reboots?
Drumrocker said:
Awesome guide !
I would like to suggest adding instructions for making a Nandroid backup.
Click to expand...
Click to collapse
Done.
JasonK75 said:
This thread is lame and posted by a lame person!
LOL
Love you bro! Great idea on this, we know that your tool kit on our MIUI.US forum was super helpful and popular
Sent from my SPH-D710 using xda premium
Click to expand...
Click to collapse
Don't listen to this guy, he moved to MI willingly LOL Where you been?
stretchwookie said:
this is a fantastic guide! made it in my top 10 bookmark bar in Chrome
curious though. i want a VERY specific font flashed to my system and its not available in rom toolbox pro. does anyone have a link to a guide on how to get one into the system? im asking here because im assuming its very similar to what you posted for pushing/pulling apks, boot animations, and sounds? please slap me silly if this isnt the case
Click to expand...
Click to collapse
Really easy to do.
Download font apk
Install font apk
Go to Settings > Display > Screen display > Font style > choose the font you want
That's it
You can start with this FlipFonts. Also, a collection of font apk's you should be able to use here and a how to create your own thread here.

[HOW TO][MOD] V6 SuperCharger Script

Hi all,
I own no credits to this mod/script, it's all put together by zeppelinrox, Thanks go out to him for this! Orginal thread can be found here.
http://forum.xda-developers.com/showthread.php?t=991276
This is the first post of this kind I have ever made, so it might not be that good, or any help at all, but for those who want to try this script for the first time, I shall try my very best to explain how to do so.
I had been running ROMS for my Nexus with the V6 SuperCharger built in, and decided to see if it'll run well on our humble little Tabs. And indeed it does, it could be a placebo of course, but I seem to notice a good difference.
First, there are a few requirements in order to use this script :-
You NEED to be Rooted, in order to do this (if you aren't already) you could try the excellent Quick and Easy Root Script by the genius Crossix http://forum.xda-developers.com/showthread.php?t=1472521
Download and Install Script Manager from the Market
https://market.android.com/details?id=os.tools.scriptmanager
You also need to have BusyBox installed for the script to be run, I suggest installing the Script attached to the above V6 SuperCharger thread (even if you already have BusyBox installed to avoid errors). Simply scroll to the bottom of the thread and download the file named "busybox_v1.19.3_installer_script_wraithdu.zip"
To install this version of BusyBox navigate to where you saved the ZIP file, if on the Tab it should have downloaded to "/mnt/sdcard/Download", extract it using your file manager, I use ES File Explorer. Then open Script Manager and navigate to the extracted folder, find the script that should be called "busybox_v1.19.3_installer_wraithdu.sh", open this and select the "su" icon, make sure it is selected as a script and not executable.
To Run the Script:-
Scroll to the bottom of the SuperCharger thread and Download the file named " V6_SuperCharger_for_Android-update8.sh.txt" Navigate to where this file is downloaded, if on the Tab it should have downloaded to "/mnt/sdcard/Download", rename it using your favourite file manager, usually via a long-press to "V6_SuperCharger_for_Android-update8.sh"
Then open Script Manager and navigate to the script, open it using script manager, again taking care to run it as "su" as a script not an executable. The script should Run and prompt you for an option numbered 1-17. I chose Option 2, which is Aggressive Level 2 and noticed a good improvement, you can of course opt for the balanced options of 3 or 4. To input a number touch the screen and the on screen keyboard should pop up, hit a number and enter it.
The Script Should run and then prompt you for another option, don't choose another one just yet.
If you are running the excellent build.prop by Crossix, Icewyng et al, it is recommended to disable the device keeping Launcher in memory for the script to run properly. To do this, open Root Explorer, navigate to the build.prop, in "/system", and open it in the text editor. Scroll to the part of the prop file that begins "store launcher in memory" and change the below string to "ro.HOME_APP_ADJ=0"
In order for this to be a persistent change to how RAM is managed on our Tabs, a script has to be set up to be run at boot. To do this, in Script Manager, navigate to "/data" and open the script named "99SuperCharger.sh", and check the boxes of "su" along with "boot" to run it at boot.
After you have followed these steps reboot your Tab and you *should* see a snappier Tab
Please be aware that this is the very first HOW TO I have ever written, and it will probably be inaccurate and crap. So, please, feel free to correct my errors and I will try to help running the script.
Yours,
Toyface
Awesome scripts. Im going to give it a try here in a bit and see if there is a difference in performance.
Could someone confirm if this really works?
I just did this and have notices an improvement but do follow instructions carefully
Sent from my A500 using xda premium
I can't download the update 8 sh.txt file it just opens it in my browser
I used taptalk to download it it worked great and is still working its magic
Sent from my A500 using xda premium
Super huge improvement. Thank you!
rando152 said:
I can't download the update 8 sh.txt file it just opens it in my browser
Click to expand...
Click to collapse
Which browser are you using? If chrome on the PC, try a right click and save as a txt file and rename it as a file ending .sh
Sent from my A500
Thanks for all the cool info. Using info I found in sin threads Skype seems to stay running for hours now instead of just 15 Minutes.
Sent from my modified A100 using Tapatalk and SlideIT keyboard.
so far so good.
Just had time to get this installed. So far it seems to be a bit snappier. Wish i had thought to benchmark first. Grrrr....
I think this should be in the dev section, I might ask to have it promoted... Good Work!
Frankly the whole you cant modify his script deal is a HUGE turn off. I understand him wanting credit for his hard work, BUT wth. I'll stick to safer things.
EDIT: Forget what I said I completely miss understood what he says in his post. He says
"Personal Use: You may tweak the V6 installation script (leaving credits intact) to your own personal liking as long as it is NOT redistributed in any way."
His autostart script script looks very handy. I was considering trying Gscript already here is a new reason hehe.
NoSudo said:
Frankly the whole you cant modify his script deal is a HUGE turn off. I understand him wanting credit for his hard work, BUT wth. I'll stick to safer things.
EDIT: Forget what I said I completely miss understood what he says in his post. He says
"Personal Use: You may tweak the V6 installation script (leaving credits intact) to your own personal liking as long as it is NOT redistributed in any way."
His autostart script script looks very handy. I was considering trying Gscript already here is a new reason hehe.
Click to expand...
Click to collapse
I can see why he doesn't want redistributables floating around, even with the open source (something I feel very strongly about) nature of the forum.
All I wanted to do was spread the word, maybe help along the way, if I've done this then I'm happy
Sent from my Nexus S using xda premium
NoSudo said:
His autostart script script looks very handy. I was considering trying Gscript already here is a new reason hehe.
Click to expand...
Click to collapse
You can also auto start scripts without having to use script manager or any other scripting program by calling them from within install-recovery.sh (see my sdswap mod).
For example if you had a script /data/app/supercharger.sh
in install_recovery.sh you'd add a line sh /data/app/supercharger.sh
crossix said:
You can also auto start scripts without having to use script manager or any other scripting program by calling them from within install-recovery.sh (see my sdswap mod).
For example if you had a script /data/app/supercharger.sh
in install_recovery.sh you'd add a line sh /data/app/supercharger.sh
Click to expand...
Click to collapse
Cool. I have re-written another version of my hulu script in .sh and set it up to be able to run in a normal verbose mode, or to accept "silent" as a command line argument to redirect output to a lhulu.log file instead to better allow for the option of running at startup like a cron entry or what ever our allowed methods are on android.(like the one you just referenced, thanks) I'm planning on playing with it a little to figure out the best and easiest method. Then repost the updated version that can be a semi permanent fix.
NoSudo said:
Cool. I have re-written another version of my hulu script in .sh and set it up to be able to run in a normal verbose mode, or to accept "silent" as a command line argument to redirect output to a lhulu.log file instead to better allow for the option of running at startup like a cron entry or what ever our allowed methods are on android.(like the one you just referenced, thanks) I'm planning on playing with it a little to figure out the best and easiest method. Then repost the updated version that can be a semi permanent fix.
Click to expand...
Click to collapse
install-recovery.sh won't work for the hulu lib, sometime after that script is loaded all the apks libs get extracted for whatever reason. Unless you put a wait in there for the prop sys.boot_complete or something like that. Might also need to use busybox run-parts for a seperate init.d script, not sure if the wait would actually stop the rest of the boot process.
It should be fine, install_recovery is called really late in the boot process you're right about putting the waits in, if you look at my swapscript you'll see the amount of time I used to get it to work (and it does not pause the other processes).
Sent from my MB860 using XDA App
crossix said:
It should be fine, install_recovery is called really late in the boot process you're right about putting the waits in, if you look at my swapscript you'll see the amount of time I used to get it to work (and it does not pause the other processes).
Sent from my MB860 using XDA App
Click to expand...
Click to collapse
It's not as late as I previously thought myself. dmesg won't work at that point and getting a logcat from there you'll see it's the start of the system log just when vold starts up. Which is why you need a few sleeps in your script. Using it was my second attempt at 2nd-init, which wasn't possible until after my first bootloop, the boot animation starts later but also before the libs are replaced.
For hulu I've just been running a gscript after a reboot because of this, at least until I find a different solution.
Anyway install-recovery is the perfect spot for any kind of kernel tweaks and also SuperCharger.
@toyface sorry for being off topic
Sorry a little confused with the last part how do I navigate to /data in script manager?
Edit.. never mind. ma bad noob moment, couldn't for the life of me figure out how to get out of the mnt part of the directory.
Sent from my A100 using Tapatalk

How-to Repartition

This is a discussion lifted from [Kernel] TRIM: Speeding up the Galaxy S2 Epic 4G Touch d710, as it is not really relevant in that thread.
Dudebowski said:
heimdall shell scripts for backup and repartition worked as expected. Thank you once again, Lanchon, very straightforward.
CWM backup to removable SD, backup internal storage contents to removable sd, remove the removable SD, adb reboot recovery, run backup script, run repartition script, reboot recovery, format every partition, power down, insert sdcard again, restore CWM backup, run lanchon's recovery trim zip.
[attached lanchon's trim/FPbug kernel, and recovery trimmer. note you'll have to mount all the partitions you wish to trim before executing the zip]
However great that was... I went of the beaten trail and tried reformatting my internal storage space (sdcard0) as ext4. Didn't know CWM had added that option... anyhow, it seems I have some permissions issue with the internal storage space now, can't write to it at all. What did I do wrong?
/storage/sdcard0 rwx rwx --x root:sdcard_r
Click to expand...
Click to collapse
I've been trying all morning, but I can't get Heimdall to see my phone. It never shows up in zadig.exe as "Samsung ..." instead my phone shows up as "Gadget Serial Control" and "Gadget Serial". I can not replace the driver for "Gadget Serial Control". I replaced it for "Gadget Serial", but Heimdall still could not talk to my phone. I tried all 3 different driver options. none of them worked. So far I've tried it on my 2 workstation both with windows 8.1. I am going to try to find a Windows 7 PC later and give it another go.
Kjricker said:
This is a discussion lifted from [Kernel] TRIM: Speeding up the Galaxy S2 Epic 4G Touch d710, as it is not really relevant in that thread.
I've been trying all morning, but I can't get Heimdall to see my phone. It never shows up in zadig.exe as "Samsung ..." instead my phone shows up as "Gadget Serial Control" and "Gadget Serial". I can not replace the driver for "Gadget Serial Control". I replaced it for "Gadget Serial", but Heimdall still could not talk to my phone. I tried all 3 different driver options. none of them worked. So far I've tried it on my 2 workstation both with windows 8.1. I am going to try to find a Windows 7 PC later and give it another go.
Click to expand...
Click to collapse
just use linux! a live pendrive would be enough
linux mint cinnamon 64
or simply ubuntu
to install heimdall type this:
sudo apt-get install heimdall-flash
Lanchon said:
just use linux! a live pendrive would be enough
linux mint cinnamon 64
or simply ubuntu
to install heimdall type this:
sudo apt-get install heimdall-flash
Click to expand...
Click to collapse
I thought about that as well. Easier to do that then find a Windows 7 PC for me
It'll have to wait until tonight though. I put off work too long today. I'll report back once I give that a go tonight.
A few suggestions for Windoze compatibility:
Latest Samsung ADB drivers + installer (works in W8.1, and without keeze or whatever that sammy bloatware is)
http://www.modaco.com/topic/361286-...ver-for-mobile-phones-15490-drivers-win-87xp/
Google's official Android USB driver (says it's only for nexus devices, but I've found it has worked for sammy gear too.)
https://developer.android.com/sdk/win-usb.html
Before installing those, you might want to remove the drivers for whatever devices listed as: adb interface, serial modem, gadget, samsung mobile devices. Anything that suddenly shows up when you plug the phone into the PC.
Do this from device manager (winkey+r, devmgmt.msc) and click 'View -> Show Hidden Devices' to see hardware that's not currently active / plugged in. Right click on treelist entry, 'uninstall'
when installing the new drivers, make sure the phone is NOT plugged into the PC. Once installed, reboot, then plug your phone back in. Whatever drivers necessary for connectivity should be activated now.
Neither of those drivers worked for me either. My phone always comes up in the device manager as modem or gadget. With either gadget serial driver or modem driver. The Google driver installed, but never got used.
Time to switch to a Linux live and give it a try.
Kjricker said:
Neither of those drivers worked for me either. My phone always comes up in the device manager as modem or gadget. With either gadget serial driver or modem driver. The Google driver installed, but never got used.
Time to switch to a Linux live and give it a try.
Click to expand...
Click to collapse
I don't think it is in the cards for me. In Linux Mint I also did not get it to work properly. I got initialization errors. I got it to download the current pit once. Then I tried to repartition with the new pit and I kept getting initialization errors. It would not work any more, not even download the current pit again. I tried different cables and usb ports. SIGH.
Kjricker said:
I don't think it is in the cards for me. In Linux Mint I also did not get it to work properly. I got initialization errors. I got it to download the current pit once. Then I tried to repartition with the new pit and I kept getting initialization errors. It would not work any more, not even download the current pit again. I tried different cables and usb ports. SIGH.
Click to expand...
Click to collapse
its ok. every time u use heimdall you need to restart the phone in download mode again. --no-reboot does not mean the phone keeps listening to commands. this is samsung after all
Lanchon said:
its ok. every time u use heimdall you need to restart the phone in download mode again. --no-reboot does not mean the phone keeps listening to commands. this is samsung after all
Click to expand...
Click to collapse
You gotta be kidding....Each time a Heimdall command is run, the phone needs to be restarted back into download mode. How crazy. I'll try again tomorrow then. I made an Ubuntu live flash drive now. I thought maybe I'd have better luck with it. Once again, thanks for the help.
Kjricker said:
You gotta be kidding....Each time a Heimdall command is run, the phone needs to be restarted back into download mode. How crazy. I'll try again tomorrow then. I made an Ubuntu live flash drive now. I thought maybe I'd have better luck with it. Once again, thanks for the help.
Click to expand...
Click to collapse
lol
Lanchon said:
lol
Click to expand...
Click to collapse
Success!
{
"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 ended up using Mint Linux 32bit installed and ran from a USB flash drive. Ubuntu was awful. I haven't used an Ubuntu live distro of it in a while, and I did not care for it. Neither version of Linux I used had proper drivers for my Nvidia 750TI, but at least with Mint I had a full desktop. With Ubuntu it was like working on and old win95 PC with a resolution of 640x480. YUCK!
Before starting this journey, you should already have your phone running CM11 with a current recovery.
Here are my complete steps.
Get files for install after partitioning
Download CM11 nightly, GAPPS, Lanchon's kernel with TRIM (optional), Lanchon's sensor fix v2 and FL24 modem.
Place the above files on the phone's external SD card. Unmount and eject the card.
Get files for partitioning
Download partition files and scripts provided by Lanchon:
http://forum.xda-developers.com/showpost.php?p=58317191&postcount=83
Unzip the file.
Prep live Linux usb drive
Download Linux Mint Cinnamon 32bit no codecs:
http://www.linuxmint.com/edition.php?id=175
Install Mint Linux onto flash drive using rufus-1.4.12:
https://rufus.akeo.ie/downloads/rufus-1.4.12.exe
Prep repartition files and scripts
Boot PC from usb flash drive into Linux Mint.
Place phone into download mode by turning the phone off. Then press power and volume down. When the warning screen comes on, press volume up to continue into download mode.
Plug phone into PC.
In Linux Mint navigate to the folder where you unzipped the partition files and scripts you downloaded earlier. Copy all the files to the Mint "Download" folder. Select the .sh files and right click them and choose properties. Check the box labeled "Allow executing file as a program." I also set both Group and Others access to "Read and Write". Then select the rest of the files and change their permissions as well. I just changed them all to "Read and Write". I do not know if this step is necessary or not, but it is what I did. Why copy the files to the Mint "Download" folder you ask. Well because I could not change their properties where I had originally saved them. That's why.
Next right click on the above "Download" folder and choose open in terminal. Now you should have a terminal window open at the locations of those files. You can verify it by typing in "ls". You should see a list of the files.
Install Heimdall
In the terminal window install Heimdall, the command is:
Code:
sudo apt-get install heimdall-flash
If you are not sure whether your device is connected, the command:
Code:
heimdall detect
should return Device detected.
Download you current pit
At the terminal prompt type:
Code:
sudo ./download-current-pit.sh
If all goes well you should get 2 new files in the Downloads folder:
downloaded.pit
downloaded.pit.txt​If the downloaded.pit file is 0kb, then something has gone wrong. Don't move forward. Time to figure out what went wrong. If the file is around 4kb, then compare "downloaded.pit.txt" to "d710-stock.pit.txt". If they match, move forward. Otherwise proceed at your own risk.
Repartition Phone
Due to weirdness I don't understand, each time a Heimdall command is done you need to restart the phone in download mode. Since you just downloaded your current pit, you executed a Heimdall command. So turn off the phone. Then restart it in download mode again. No need to unplug the phone from the PC while you do this.
Now , with the phone in download mode again execute the following command in the terminal window:
Code:
sudo ./repartition-now.sh
* This script uses the d710-1GBsys-6GBdata-7.3GBsdcard-8MBpreload.pit file. If you want to use one of the others that were provided, you either do the command manually or edit the .sh file accordingly.
You should see a few lines go by in terminal showing the result and then instructions on what to do next. Following is what I did.
Reinstall CM11
Unplug phone from PC and reboot into recovery. I had a little panic here as it seemed my phone did not want to boot into recovery. I had not unplugged my phone from the PC. Once I unplugged it from the PC I could restart into recovery just fine. I believe the sequence is, turn off the phone, then press power and volume up at the same time.
Once in recovery, follow the instructions from the .sh file listed in the terminal window. Go to "mounts and storage", then format the /system, /cache, /data (as vfat) and /storage/sdcard0. You can try to format /preload, but I always get an error when trying to format that.
Now, insert SD card with the CM11 files you downloaded at the start. Flash the .zips
FL24.zip
cm-11-20150118-NIGHTLY-d710.zip
gapps-kk-20140105-signed.zip
sensor-fix-v2-d710.zip
kernel-Lanchon-TRIM-FPBug-20150113-cm-11-20150111-NIGHTLY-d710.zip (optional)
Reboot the phone and complete the CM11 setup process. If you installed the TRIM kernel listed above, then you may want to run the trim commands. Open the terminal app on your phone and enter the following:
Code:
su -c "fstrim -v /system; fstrim -v /data; fstrim -v /cache; fstrim -v /preload"
Congratulate yourself and then move on with your life.
gald u made it!!!
couple of comments...
you can use bash xxx.sh to run a script that doesnt have execute permissions.
before partitioning, you should compare the downloaded.pit.txt with the stock pit.txt (bundled in zip) and if there's any difference, abort the process!! IMHO anyway.
Lanchon said:
gald u made it!!!
couple of comments...
you can use bash xxx.sh to run a script that doesnt have execute permissions.
before partitioning, you should compare the downloaded.pit.txt with the stock pit.txt (bundled in zip) and if there's any difference, abort the process!! IMHO anyway.
Click to expand...
Click to collapse
Ah okay. I didn't know about bash. So the command then would be "bash xxxx.sh"? So I can remove all the steps about changing the permissions?
I agree about comparing the pit files. I guess I didn't make that clear enough. I'll fix that.
Kjricker said:
Ah okay. I didn't know about bash. So the command then would be "bash xxxx.sh"? So I can remove all the steps about changing the permissions?
I agree about comparing the pit files. I guess I didn't make that clear enough. I'll fix that.
Click to expand...
Click to collapse
sudo bash xxx in this case, but leave it as it is! same thing
Lanchon said:
sudo bash xxx in this case, but leave it as it is! same thing
Click to expand...
Click to collapse
Okay awesome. I added the bit about comparing the 2 files.
Thank you so much for all your help. I laughed, I cried, I learned.
Kjricker said:
Okay awesome. I added the bit about comparing the 2 files.
Thank you so much for all your help. I laughed, I cried, I learned.
Click to expand...
Click to collapse
Thank you thank you, Lanchon and Kjricker! Worked for me! You have my eternal gratitude!
Here are a few observations for any one who is hesitant to try this, especially those who are unfamiliar with Linux:
Linux is the way to go. Follow the instructions. But not every Linux distro works. I have a netbook running a two year-old version of Lubuntu. That didn't work. I flashed the LInux Mint distro in Kjricker's post to a 2gb USB drive and booted into it from the netbook.
From Linux Mint home screen, connect to your network (Ethernet or wireless).
From the Toolbar on the bottom of the screen, select File Manager. Locate on your PC where you copied Lanchon's files, select them in File Manager; and from the right-click menu copy those files to the Downloads folder.
From the Menu, open the Terminal application and install Heimdall (the command is: sudo apt-get install heimdall-flash). (I wasn't sure if Heimdall was already included in Linux Mint so I did it anyway.)
Change to the Downloads directory (the command is cd /home/mint/Downloads).
Now put your phone in Download mode and plug it into the PC.
If you are not sure whether your device is connected, the command heimdall detect should return Device detected.
Ahh yes you must install Heimdall. I'll add that.
Sent from my SM-T700 using Tapatalk
Recently I restored a nandroid backup of Mokee 8-Nov-2014 release. I had made this backup prior to repartitioning. Then I updated the apps and data etc.. After verifying that my phone was running fine, I booted into recovery to do a new nandroid backup.
The backup failed, with a message "couldn't mount /preload". It's been reported in this thread, after partitioning, format of /preload failed.
Still in recovery, I formatted and mounted /preload. Rebooted the system (Mokee, that is) to make sure everything was working. (It was.)
Then I booted into recovery and made a successful nandroid backup.

Categories

Resources