yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy Nexus] efrant:
As for backuping up apps, there are a few apps that do that -- the most popular being Titanium Backup. I suggest you try it (or something similar), as that would be the easiest way.

For mount /system as r/w, I'm sure I covered it in the first post.

If you are booted into Android (with a secure kernel), you need to do it this way:

adb shell
su
mount -o remount,rw -t ext4 /dev/block/mmcblk0p1 /system

If you are booted into Android (with an insecure kernel) or booted in CWM, you can do it this way as well:

adb remount
[Samsung Galaxy Nexus] chrone:
Thanks for replying. :) Yeah Titanium Backup did backup the apps but not in .apk format. I use TB to backup my paid apps, while manual copying or using ES File Manager App Manager to backup free apps to .apk format. :D

I guess this MIUI Official English ROM I'm using is a secured kernel one (stock Android Jelly Been kernel). I've tried your guide from adb shell, it worked out inside the shell but no luck from outside to push GoogleFeedback.apk on Windows to inside Android /system/app. I got it sorted out by purchasing Root Explorer and copy paste to system easily with the write mode toggle on/off.

I've also tried the adb remount from Windows command prompt while the phone was booted to CWM recovery mode and no luck, I haven't had the chance to try adb root first and then adb remount. Will try it soon and update later.

Do you happen to know how to disable system app without renaming the .apk inside /system/app?
[Samsung Galaxy Nexus] efrant:
Yes it does.

Push the file to /sdcard and then use cat to move it over. For example:

adb push GoogleFeedback.apk /sdcard/

adb shell

su

mount -o remount,rw -t ext4 /dev/block/mmcblk0p1 /system

cat /sdcard/GoogleFeedback.apk > /system/app/GoogleFeedback.apk

In CWM, all you have to do is click mount /system in the mounts menu.

You can "freeze" it in Titanium Backup. And I think you can disable it natively in the Android apps menu in settings.
[Samsung Galaxy Nexus] chrone:
Whoa, there's so much to learn from Titanium Backup how to backup to .apk format. I will look tomorrow, too sleepy here.

Thanks for the command line, didn't think to use cat before, now I can copy it. Awesome! :)

The XiaomiFrameworkService.apk and SuperMarket.apk cannot be disabled from the Apps menu in Settings unfortunately. Guess have to pay for the TB Pro to freeze.

Later dudet! :)
[Samsung Galaxy Nexus] efrant:
You can also disable apps using the command line. I can't remember exactly what it is, but I'll look into it later. I think it is "pm disable".
[Samsung Galaxy Nexus] chrone:
Is pm disable from adb device command line or in adb shell command line?

Sent from my Galaxy Nexus
[Samsung Galaxy Nexus] chrone:
never mind my question above. i got it sorted out with this from adb shell > su:

pm list packages

pm disable com.xiaomi.market

pm disable com.xiaomi.xmsf

pm disable com.miui.cloudservice

thanks heaps, efrant! :)
[Samsung Galaxy Nexus] efrant:
Just to revise my previous answer to you: a way to root without unlocking the bootloader using an exploit has been found. Link in post #2.
[Samsung Galaxy Nexus] ssanthosh:
Stock recovery

In the first post of this thread:

FAQ - I just flashed CWM, but every time I try to boot into CWM, I keep seeing the stock recovery. Why?

If you updated your Android build using an OTA update file (either manually or over-the-air), the update placed two files on your device that re-flash the stock recovery every time you reboot your device. These two files are:

/system/etc/install-recovery.sh <== this is the script that installs the patch file

/system/recovery-from-boot.p <== this is the patch

You have to rename (or delete) one or both of them, then re-flash your custom recovery. Now it will stick.

I deleted the above files and flashed the custom recovery. when i reboot into custom recovery - i still end up with stock recovery. i followed the following procedure

1. with rootexplorer i deleted the files.

2. put-off the phone

3. Restarted the phone is fastboot

4. with fastboot commands flashed custom recovery.

3. with custom recovery rebooted the system

4. put-off the phone

5. Restarted the phone is fastboot and tried to enter custom recover - but ended up with stock recovery.

Do i need to follow any other step or delete any file or flash any file to over come this.
[Samsung Galaxy Nexus] efrant:
Did the files actually delete? In root explorer, you need to make sure the folder is mounted read/write, then delete them. Otherwise, your procedure is good, and it should have worked. And are you sure you are flashing a custom recovery, not the stock one (by mistake)?
[Samsung Galaxy Nexus] ssanthosh:
Yes, i mounted the folders as rw, ensured the files are not present in the folders. I flashed file name "recovery-clockwork-6.0.1.0-maguro.img".
[Samsung Galaxy Nexus] efrant:
What happens if you flash CWM, then do NOT boot into Android, but either turn off device or boot into bootloader and select recovery.
[Samsung Galaxy Nexus] ssanthosh:
I get the same error - stock recovery

After i flash the cwm, in custom recovery i could take backup, flash custom roms. After flashing custom rom and try to reboot into recovery, i get the same error - stock recovery.

Back ground - i purchased this phone and unlocked, rooted and used few custom Roms (past two months)- till two days back everything was working fine. Two days back i returned to stock by using your method and flashed factory image 4.0.4 - just to get OTA update of 4.1.1, take back up of this and then OTA update of 4.1.2, take backup of this. During taking backups of 4.1.1 and 4.1.2 i noticed this error. After backups, i flashed CWM and custom rom, but still am getting this error - stock recovery.
[Samsung Galaxy Nexus] efrant:
Very strange. Are you using CWM 6 as well?
[Samsung Galaxy Nexus] ssanthosh:
Am using CWM 6.0.1.0, tried with 5.5.0.2, but same result. After flashing cwm, i tried to reboot recovery, same error.

Edit: My mistake while flashing recovery

to flash custom recovery i used the command "fastboot boot cwm.img" - this is for temporary recovery.

I should have used this command "fastboot flash recovery cwm.img" - now every thing working fine.

I am sorry, if i have disturbed you with noob questions.
[Samsung Galaxy Nexus] Beamer9408:
Yeah fastboot boot won't install the recovery just boot into it.
[Samsung Galaxy Nexus] wcoaster:
700mhz bug using CNA 3.8

whoops sorry
[Samsung Galaxy Nexus] efrant:
Please do not post issues or questions related to custom ROMs in this thread. As stated in the first post, I will not be discussing custom ROMs here.
[Samsung Galaxy Nexus] efrant:
Added comment on installing the drivers on Windows 8 to the first post.
[Samsung Galaxy Nexus] chrone:
thanks for this! :)

hey Efrant, care to shed a light on busybox and how to install the official way? :D

i'm used to ubuntu and miss the terminal, would love to do ssh and ping also traceroute within galaxy nexus, any advise?
[Samsung Galaxy Nexus] efrant:
Not sure what you are asking exactly. :confused:

To install busybox, you can either download one of the installers on the Play Store -- I like Busybox Installer (and there is a donate version as well to help out the dev). <== this is the easiest way to install it.

You can also do install it manually (via a terminal on device, or adb shell from your computer) if you want. Download the latest version from here, move it to /system/xbin, set permissions to 644, and symlink it to /system/bin.
[Samsung Galaxy Nexus] chrone:
oh okay, will try it later. i just want to be able to ping and traceroute within android terminal. thanks! :)

update:

it works, i can ping and traceroute within terminal. now let's hunt for ssh client, any recommendation? :D
[Samsung Galaxy Nexus] osm0sis:
Hey, was just thinking it would be nice if this excellent 101/"Intro to Android" had an explanation of what the Android build code stands for, since we don't really have that in any of our go-to threads yet.
[Samsung Galaxy Nexus] efrant:
Sounds good. I'll add a little blurb and this link, which explains what each letter means in the build number.
[Samsung Galaxy Nexus] Winesnob:
Hopefully I'm not repeating a question, but could not find in this thread or by Google search. Will flashing system.img wipe user data from my GNex? Having issues with soft reboots and trying to work through some diagnostics before I request warranty replacement. So far have reflashed radios, boot.img , and bootloader.
[Samsung Galaxy Nexus] 3rdstring:
No. flashing just the system.img should not touch the /data partition.
[Samsung Galaxy Nexus] efrant:
Added a line on this in the first post.

On a slightly unrelated note, I added two links to the second post: how to recover deleted files, and how to perform a nandroid backup directly to your PC.
[Samsung Galaxy Nexus] rptw:
not sure if this is worth putting into the useful guides and threads section but a few posts have come up regarding this issue

http://xdaforums.com/showthread.php?t=1999214
[Samsung Galaxy Nexus] efrant:
Can you explain to me why one would want to keep the old directory structure?
[Samsung Galaxy Nexus] rptw:
from what ive read, some people have problems with backups under the new directory. also some people have flashed repeatedly and gotten into situations where they have sdcard/0/0/0/0/. i myself havent updated to 4.2 so not sure what purpose there might be and i also stated in my original post that i wasnt sure if this was a useful guide, i was just noticing a trend or threads being created with this issue
[Samsung Galaxy Nexus] efrant:
I'll have a look into it. Seems to me that it may be an issue with the custom recovery being used. The new directory structure may not be compatible with what the custom recoveries are currently expecting to see.
[Samsung Galaxy Nexus] 3rdstring:
This is correct. When 4.2 dropped with the first wave of AOSP ROMs every time you installed a different ROM you would get another nested 0 folder. This has been fixed in the newest versions of both TWRP & CWM.
[Samsung Galaxy Nexus] le_prof:
For me, this whole sdcard restructuring thing is THE principal problem with 4.2. It kind of makes you loose control over your sdcard. I decided to stop flashing roms for a few weeks because I am under the impression it might fill up my sdcard gradually. Will wait for 4.2 roms. Also, cant use previous nandroids to restore to 4.1.2 since I cant copy them to Cwm backup folder under 4.2. It just doesnt work.
[Samsung Galaxy Nexus] efrant:
As was mentioned in the previous few posts, the latest recoveries have been fixed to accommodate the new directory structure, and it is no longer as issue (assuming you didn't mess anything up by changing the directory structure in the first place).
[Samsung Galaxy Nexus] xoulis:
Impresive guide!!

Do you mind if I translate it to Greek and repost it in a greek forum?
[Samsung Galaxy Nexus] efrant:
Don't mind at all. Be my guest.
[Samsung Galaxy Nexus] drkcreator:
LIL HELP PLS...

If I install the SDK pack would I be able to use my phone as a USB drive?? Cuz all I get is the mtp and the other camera option when I connect my phone to the comp... windowsXP.. have adb and phone driver installed already
[Samsung Galaxy Nexus] 3rdstring:
No. There is no USB maas storage on the gNex. You can use adb to push & pull data to / from your phone
[Samsung Galaxy Nexus] fire & ice:
ROM is not slang, it actually stands for read only memory. Its just incorrectly used as a name to identify different flavors of android builds. ROMs are actually used to identify the storage medium on a device that are not designed to be modified such as firmware on routers and bios chips. However as of late has become increasingly easier with the AOSP.

iOS and windows mobile is also stored on ROM however is a lot harder to modify.
[Samsung Galaxy Nexus] drkcreator:
How come in the sprint store I was able to view the picture they took with the phone and all the basic files on their PC??
[Samsung Galaxy Nexus] NCguy:
Efrant, what exactly is the /data partition? I see where /userdata is one of the 13 partitions in the op but I'm not seeing /data? Is it just shorthand for /userdata?

Edit: just noticed it wasn't your comment. Still, there isn't a /data partition is there?
[Samsung Galaxy Nexus] efrant:
Yeah, there is no "data" partition. The actual partition is called userdata, and is mounted as /data in Android.
[Samsung Galaxy Nexus] NCguy:
I understand that when you flash a stock rom that it clears the userdata partition which wipes programs, data and the internal sd. If you wipe before installing a custom rom it only clears the programs, data and not the internal sd. So it must not be wiping the entire userdata partition? What area of memory is it actually clearing? Is it possible to clear less than the whole partition?
[Samsung Galaxy Nexus] efrant:
Wiping "data" in a custom recovery does not wipe the userdata partition. It just deletes everything in /data except for /data/media (which is the internal SD). Wiping data in a stock recovery will wipe the entire partition.

You can flash a stock ROM without losing the contents of your internal SD. This is done by not flashing the userdata image.
[Samsung Galaxy Nexus] NCguy:
So is there a way to flash a stock rom like a custom rom and wipe all of userdata but /data/media as part of the flash procedure? Would using a custom recovery to do the wipe followed by installing the stock rom without flashing userdata accomplish the same thing?
[Samsung Galaxy Nexus] NCguy:
Thank you very much. I think I get it.
[Samsung Galaxy Nexus] efrant:
That is done via MTP or PTP. All the files show up on your computer, but there is no drive letter attached (because it is not using USB Mass Storage). MTP works, but it is not as fast as USB MS, and it is not as "stable" either. But for most people, it does the job.
[Samsung Galaxy Nexus] Mach3.2:
Here's a suggestion sir:

Add a what is a kernel section.

Seen some threads about it.
[Samsung Galaxy Nexus] efrant:
Good idea. If/when I have a moment, I will try to write up a quick little something (unless someone else does it for me... :) ).
[Samsung Galaxy Nexus] Mach3.2:
A quick google here, pretty much answers my question, maybe you could summarize if you have some time to spare, no hurries.

http://m.androidcentral.com/android-z-what-kernel
[Samsung Galaxy Nexus] beekay201:
Another suggestion, efrant.

How to add fastboot/adb binaries to $PATH or equivalent (on Windows).

Objective: commands can be issued from anywhere in the filesystem.

Sent from my i9250
[Samsung Galaxy Nexus] efrant:
Another good idea. Thanks!
[Samsung Galaxy Nexus] unobtainiumdroid:
Terrific thread. helped me out a lot.

bookmarked!!
[Samsung Galaxy Nexus] Rjshntrjn:
Hi all,

I just got my gnex and with the stock 4.2.1. Like to root my phone for volume+, system tuner and adfree...

Can I root the phone without unlocking the bootloader.

Downloaded the sdk & adb driver but getting issue with fastboot driver.
[Samsung Galaxy Nexus] efrant:
No, you cannot root without unlocking the bootloader.
[Samsung Galaxy Nexus] Rjshntrjn:
Thanks efrant, let me try again. I downloaded the sdk and installed Samsung adb driver. Don't know where to find the fastboot driver. Kindly help...
[Samsung Galaxy Nexus] efrant:
It's the same driver. But you need to be booted into fastboot mode (i.e., the bootloader) in order to install it.
[Samsung Galaxy Nexus] Rjshntrjn:
I connected with fastboot mode, but not sure to check the connectivity. It shows android1 in device manager....
[Samsung Galaxy Nexus] efrant:
That means your device is recognized, but the driver is not installed. Right click on that and update driver with the one you downloaded.
[Samsung Galaxy Nexus] Rjshntrjn:
Thanks a ton...

Successfully rooted...

Once again thank you for this wonderful thread. Gives a fair idea for noobs like me...
[Samsung Galaxy Nexus] spartangomez:
Thank you for this very helpful and easy to read:good:
[Samsung Galaxy Nexus] chrone:
on windows 7:

assuming that all the platform tools (fastboot.exe, adb.exe, and such) and all stock images on C:\nexus

go to start > right click on "Computer" > choose Properties > Advanced system settings

From Advance system settings, go to Environment Variables > System Variables > Path > Edit

Insert ";C:\nexus\" at the end of Variable Value line > Ok

Open the command prompt (start > run > type cmd, or press windows logo and r simultaneously and type cmd and hit ok)

Now you can do fastboot or adb anywhere inside the command prompt. :)

hope this helps. :D
[Samsung Galaxy Nexus] Mach3.2:
Put your phone in fastboot mode, then go to device manager then update driver for it, point to the drivers folder.

As of now, I think you have to unlock the bootloader to root.

Check this out:

http://xdaforums.com/showthread.php?t=2016628
[Samsung Galaxy Nexus] berniedc:
good work
[Samsung Galaxy Nexus] allgsmnetwork:
http://www.youtube.com/watch?feature=player_embedded&v=cpWHJDLsqTU

:good:
[Samsung Galaxy Nexus] samersh72:
i am wondering efrant if there is an adb or fastboot command to reboot gnex into download mode?
[Samsung Galaxy Nexus] chrone:
connect your gnex to pc while it's on,

enable usb debugging mode from settings > developer options,

and from command line on pc where your adb.exe and all adb*.dll are, type: adb reboot bootloader

or you could do that from inside android terminal emulator or so.

you could also command to boot into recovery by using this following command:

adb reboot recovery
[Samsung Galaxy Nexus] samersh72:
i mentioned DOWNLOAD MODE and not recovery or bootloader ;)

some devices support "adb reboot download" command, but not the Gnex. maybe there is an other command...
[Samsung Galaxy Nexus] Zepius:
i'm pretty sure there's not.
[Samsung Galaxy Nexus] chrone:
oops my bad. :D is it odin with power and volume down? hehe

thanks dude. :D
[Samsung Galaxy Nexus] iGorillafilms:
great guide. Thanks for the 101
[Samsung Galaxy Nexus] andrewjt19:
Awesome write-up- I just wish more people would read before posting...
[Samsung Galaxy Nexus] Shponglized:
Alright, I've been trying this for a while now. And I'm prepared to be flamed for not reading between the lines somewhere lol.

I'm new to this section but I've been in android for a long time now with an Evo 3d.

I'm having a lot of trouble just getting the drivers installed right.

I've got Samsung ADB Interface when booted up into android

But when I go into Fastboot it just gives me Android 1.0 and i can't seem to update it.

I've gone through with the Pdanet process but it gives an error.

What am I missing here?

Due to the drivers not being there in fastboot I can't run the Fastboot oem unlock command.
[Samsung Galaxy Nexus] chrone:
You could try this universal naked driver:

http://xdaforums.com/showthread.php?p=34220592

Do all the steps to uninstall any previous installed drivers as posted there.

Sent from my Nexus 4
[Samsung Galaxy Nexus] azlan96:
I am trying to install the NRT or even Naked driver, but I simply cant, I have turned off Driver Signature thingy on Windows 8, I had uninstalled

But after I uninstalled and ticked the option to delete the software, after I reboot the computer and plug in the phone back (with USB debugging enabled), It is back there.. I even used USBDeview to remove the drivers, but I was unable to get Other Devices and Android 1.0 to appear for me to install the Naked Driver..

Can anyone lend me some help? I really wanted to flash to takju from yakjuxw by Friday..

I even tried the steps here http://webtrickz.com/new-method-ins...vers-for-galaxy-nexus-on-windows-7-windows-8/ , but when the UAC popup for the launching of the driver .exe, nothing happens.
[Samsung Galaxy Nexus] chrone:
From the screenshot, right click on the driver you wish to uninstall, delete and click the check box to delete driver package.

Never tried to delete driver in windows 8 though, but the procedure perhaps is still the same since windows xp and beyond.

Sent from my Nexus 4
[Samsung Galaxy Nexus] azlan96:
After I deleted that, Rebooted, opened up my device manager, this comes up..

I really need help in flashing to takju, I cannot stand with yakjuxw anymore
[Samsung Galaxy Nexus] chrone:
the attached thumbnail cannot be loaded. and yeah on windows 8 there's no option to delete the driver package.

if you want to install the fastboot driver then:

reboot into bootloader mode from your phone by pressing power plus volume up and down at the same time, and wait the bootloader popups. afterward, plug it in, and right click the unknown device on device manager, and update manually by pointing the windows driver installer to the universal naked driver extracted path.

then use efrant's guide how to return to stock with takju factory image reset here: http://xdaforums.com/showthread.php?t=1626895
[Samsung Galaxy Nexus] azlan96:
Can u see it now?

This happens when I am in USB debugging mode. To my understanding, I need to install the ADB drivers first, before I can install the fastboot drivers. I currently have problems installing the ADB drivers. Unfortunately, I dont have any pre-Windows 8 PC running in my home... so what should I do?
[Samsung Galaxy Nexus] TheMysteriousOne:
Install VirtualBox with windows 7/xp perhaps?
[Samsung Galaxy Nexus] azlan96:
That's the only solution? :(, I seriously do not want to do that. Any other alternatives?
[Samsung Galaxy Nexus] chrone:
you don't need to install adb driver to install fastboot

just boot your phone into fastboot mode and plug it in, and use the universal naked driver, voila! :D
[Samsung Galaxy Nexus] kaiyoto123:
How can i copy files from my comp to phone storage in recovery mode?

Just wipe my system then i realized that my rom in storage had interrupted how can i copy another rom to my phone:crying:
[Samsung Galaxy Nexus] efrant:
Use adb. Boot into recovery and copy the file to your device: adb push name-of-file.zip /sdcard/

If what I just said doesn't make sense, then have a read of the first post in this thread.
[Samsung Galaxy Nexus] beekay201:
efrant, how about linking this one on the second post? http://xdaforums.com/showthread.php?t=2016628

a maguro wrote this.

---------- Post added at 01:26 PM ---------- Previous post was at 01:02 PM ----------

I can see the image attached on your 2 posts. Unfortunately, I'm not a Windows guy.

Not sure if this is the issue here http://xdaforums.com/showthread.php?p=37086556

a manta wrote this.
[Samsung Galaxy Nexus] efrant:
Done!
[HTC Amaze 4G] vgs929:
Hello, this is my second time trying to flash a custom rom on my HTC Amaze.

S-On

The last working rom on my HTC Amaze was Fourth Bar 3.0. The battery life was very poor so I have been trying to install a different rom ever since.

The last rom I have installed is, Engergy_8.1.2012.Amaze.Sense.3.6_ICS_STOCK_LOOK which is giving me my reason to post.

I am using 4ext Recovery. It installed the rom and also flashed the kernel (faux) and stock on the second install attempt. I also wiped everything before each install and also had the aroma installer wipe everything as well.

After install, it said it needed to reboot. Now it's stuck on bootloop. I can access recovery. But I am not sure what to do now. I have re-installed it twice with the same result.

Any suggestions?

Thanks for the help.
[HTC Amaze 4G] Double0EK:
Wow...another one of these threads.

Flash the ICS RUU thread first. You can't just flash an ICS Rom coming from GB. It needs to be updated first.
[HTC Amaze 4G] vgs929:
I tried this one with this result.
[HTC Amaze 4G] death4u:
http://xdaforums.com/showthread.php?t=1679486

http://xdaforums.com/showpost.php?p=26865752&postcount=27

Follow those 2 threads for any and all amaze questions. The second thread is the specific one you need for your question.