yashsingh1/xdaforums huggingface dataset:
[Sony Xperia S, Acro S, Ion] letama:
Here is a little update, (for devs only!):

I uploaded loader source code here.

To build:

You must have a proper toolchain (I use code sourcery but you should be able to use any arm toolchain) and edit the Makefile with your toolchain location.

You must copy the kernels and cpio in the source directory. They should be named stock_zimage, stock_cpio.gz, custom_zimage, custom_cpio.gz

I included the trimmed kernel and the cpio that launch the menu and handles the switch in the prebuilt directory. You have to copy them to the load source directory too.

Just do make to compile. At the end, you should have a dual.elf that can be directly flashed from fastboot.

I also finished a first kernel flasher (attached to first post, source here) to be able to flash directly from device.

Be careful, this is highly experimental, this flasher opens and writes directly to kernel partition. I won't be responsible if you kill or brick your device with it

It works fine though :), it only opens mmcblk0p3 so you should be safe and always be able to reflash a stock kernel on top of it. But anyway, this is highly experimental and barely tested.

Here is a way to use it:

boot to recovery

push kf and your kernel+cpio to device.

For instance:

adb push kf /tmp/
adb shell chmod 755 /tmp/kf
adb push stock_zimage /tmp/
adb push stock_cpio.gz /tmp/

flash the kernel.

For instance:

adb shell /tmp/kf 1 /tmp/stock_zimage /tmp/stock_cpio.gz
adb shell sync

It will replace kernel 1 (stock) with your kernel+cpio. Replace "1" by "2" to flash the "custom" kernel.
[Sony Xperia S, Acro S, Ion] letama:
I agree.

It means more work on recovery though and probably incompatibilities with apps that mounts/remounts partitions like root explorer. But for a secondary boot, it may not be a big deal.

I'll keep the native partition for my own use, but loopback is probably the way to go for a general release.
[Sony Xperia S, Acro S, Ion] Vipitus:
For now it's working ok, only problems are that I need to install Gapps and other things manually (push to system and change permissions) and if I boot stock kernel after using custom phone is reloading dalvik-cache of user apps (51 apps - 1 minute), but it's not so annoying ;)

For alpha version it's still amazing and very easy to install :)

Xperia S - Tapatalk
[Sony Xperia S, Acro S, Ion] mericon:
how i can get the cpio files?
[Sony Xperia S, Acro S, Ion] letama:
Ah, yes, I did the cm9 build very quickly as a proof of concept, I didn't include gapps in system. The dalvik-cache reload is a bit strange, both build should be on completely separate partitions, except if I messed up somewhere.

I'll take a look.
[Sony Xperia S, Acro S, Ion] letama:
From an existing kernel image ? I wrote a small tool that splits elf files into parts, source here, you can compile that, cpio is section 0x41300000, or you can use unpack-kernelsin.pl from DoomLord
[Sony Xperia S, Acro S, Ion] mericon:
hi thank you :)

an other problem :)

what does that mean?
[Sony Xperia S, Acro S, Ion] letama:
Ok, I checked, I don't have the dalvik-cache reload. I see two possible explanations:

1) Your apps are stored on internal storage / ext2sd. We are still sharing the internal storage, and if apps are stored on it, I can imagine that it can causes problems when switching from one to another.

2) Loopbacks corruption. I remember from the old days of hd2 that loopbacks could lead to fs corruptions as Android doesn't umount them properly when rebooting. That's why I always prefer native, and if it's the cause, we won't have solution.

Regarding gapps, I experimented with cwmod over loopbacks and was able to install them directly from the original zip with a modified cwmod. They seem ok so far. I'll keep working on this so that we stay on a "standard" way to install cm9+gapps through cwmod and zips. Some zip installation scripts will have to be modified though, partitions and kernel are hard-coded in some scripts.
[Sony Xperia S, Acro S, Ion] letama:
It means your kernel + cpio are too big. Most kernels here have cwmod in cpio, you should remove it from the cpio as it's not needed anymore and repackage it.
[Sony Xperia S, Acro S, Ion] mericon:
the dummy.bin.gz and the sec2-0x00020000.bin are missing.

i get:
[Sony Xperia S, Acro S, Ion] letama:
Ah, yes, I forgot to add dummy.bin.gz to prebuilt, sorry... it's an empty cpio. It's now on git in prebuilt.

sec2-0x00020000.bin is rpm.bin, I'm using the one extracted from 6.1.A.2.45 I believe.
[Sony Xperia S, Acro S, Ion] mericon:
Okay thank you. Will try it when im back at my PC :)

---------- Post added at 12:48 PM ---------- Previous post was at 12:10 PM ----------

it worked well :) thank you

---------- Post added at 01:44 PM ---------- Previous post was at 12:48 PM ----------

if i think right i have to modify the mounts in the init.semc.rc of the custom rom like this:

right?

is that the only thing i have to change?
[Sony Xperia S, Acro S, Ion] letama:
Well, I'm not sure init mount will support loop option. I did it like this:

# losetup on storage
mkdir /sd
mount vfat /dev/block/mmcblk0p15 /sd wait rw
exec /sbin/losetup /dev/block/loop2 /sd/system_cm9.ext4
exec /sbin/losetup /dev/block/loop3 /sd/data_cm9.ext4
exec /sbin/losetup /dev/block/loop4 /sd/cache_cm9.ext4

# mount /system, set up links to the modem, and remount r/o
mount ext4 /dev/block/loop2 /system wait rw barrier=1
mkdir /system/etc/firmware/misc 0771 system system
mount ext4 /dev/block/loop2 /system wait ro barrier=1
setprop ro.crypto.tmpfs_options size=128m,mode=0771,uid=1000,gid=1000
mount ext4 /dev/block/loop3 /data wait noatime nosuid nodev data=ordered noauto_da_alloc
mount ext4 /dev/block/loop4 /cache wait noatime nosuid nodev data=ordered noauto_da_alloc

You have to mount p15 first, and on a separate directory. Android mounts it through vold on /mnt/sdcard, it happens too late in the boot process and you don't want to interfere with vold mount point anyway.
[Sony Xperia S, Acro S, Ion] Vipitus:
Hmm, I don't have apps moved to internal on stock system, only on CM9 with custom kernel. I'll try to reflash your kernel and then set CM from "fresh" loops you provided :)

Xperia S - Tapatalk
[Sony Xperia S, Acro S, Ion] letama:
So on cm9, you have apps moved to sd ?

If you need more space on cm9, the best is to create a bigger data.ext4, I think it will be difficult to have app2sd to behave properly with two differents builds.
[Sony Xperia S, Acro S, Ion] Vipitus:
Yes, they are placed in "/mnt/asec", not in ".android_secure" on sdcard.

And if you can, please tell me how to make ext4 loop bigger or make it from beginning. I think this will solve my problem ;)

Xperia S - Tapatalk
[Sony Xperia S, Acro S, Ion] letama:
This is not strictly the right way, but it will do ok:

dd if=/dev/zero of=data_cm9.ext4 bs=1024 count=512000
mkfs.ext4 data_cm9.ext4

Say y when mkfs.ext4 prompts for confirmation. Change count (512M here) to the size you want, that's how I did for my release.

But to to do it really properly, there are some options to set, and ext4 shouldn't fill completely the image file. Archos does it this way:

mkfs.ext4 -v -b 4096 data_cm9.ext4 (512000 / 4 - 4)

(you have to compute the value, not use the expression like this)

then

tune2fs -c -1 -i 0 -m 1 data_cm9.ext4

I didn't check how it's configured on Sony ext4 yet. The 4 blocks at the end are certainly there though.
[Sony Xperia S, Acro S, Ion] dreamz0r:
I'm just wondering what the benefits are for dual boot on a phone? Aren't 'most' Roms pretty much the same? (except miui and cm of course)
[Sony Xperia S, Acro S, Ion] K900:
CM10 and stock.
[Sony Xperia S, Acro S, Ion] dreamz0r:
I understand what dual boot means but I meant for what reason is this good? Is it for developing purposes only or could cm10 use the let's say camera from the stock while you're on the cm10 boot?

Don't get me wrong I'm glad people are developing for this device in whatever way.
[Sony Xperia S, Acro S, Ion] K900:
You can use camera and HDMI when needed, and then switch to CM10 for JB and Google Now.
[Sony Xperia S, Acro S, Ion] Felimenta97:
Silly question: It is/will be possible to share apps between the ROMs? Or each ROM will have a different partition for data?
[Sony Xperia S, Acro S, Ion] letama:
Well, it let you have a main firmware (stock, cm9, cm10, miui, whatever) that you trust and a second firmware to be able to test something else.

For instance, until recently only stock firmware let me use my phone like I need for day to day (long sms, camera), but I want to test and see cm9 and cm10. Before dual, my only solution would be nandroid backup of my firmware, flash cm9, test drive it and if I need my phone, nandroid restore my stock build. With boot manager, I just reboot from one to another.

There are also advantages for kernel devs or kernel tests. You can run the same firmware on two different kernels, one stable, and one with overclock, tweaks, changes.

The advantage for pure kernel development is that if your kernel in dev doesn't boot anymore, you boot on stable and get the last_kmsg of your dev kernel to see what went wrong.

Last point, with this boot manager, cwmod recovery is separated from kernel, so a single version for all devs here instead of each kernel dev having to maintain a working cwmod.
[Sony Xperia S, Acro S, Ion] letama:
Well, nothing is hard-coded in the way data is mounted, so we can rewrite the cpio to mount the same data partition. But most of the time having the same data partition is causing troubles, that's why I separated them in my sample.
[Sony Xperia S, Acro S, Ion] Felimenta97:
I see... Well, it was an curiosity. It would be better to share apps and their data, but there would be the specific Rom data...

Sent from my LT26i with Tapatalk 2
[Sony Xperia S, Acro S, Ion] electrash:
Will donation makes thing faster? ;)

Sent from my LT26i
[Sony Xperia S, Acro S, Ion] letama:
:)

No, not really, killing my boss and my wife would be far more efficient!

More seriously, I made some progress this weekend, I now have cwmod working for both kernels and I was a bit busy preparing few roms and documentation to show how to adapt a rom.

I should release everything soon, probably in a new thread as I forgot to reserve few posts on this one.
[Sony Xperia S, Acro S, Ion] electrash:
I am very glad to see this development.

Take your time, real life on first place :)

Sent from my LT26i
[Sony Xperia S, Acro S, Ion] championswimmer:
nice... so cwm for loopback device is working without much glitches ???
[Sony Xperia S, Acro S, Ion] letama:
Yes, I installed cm9 with it without problem. I also installed a stock on native with the other cwmod, so solution is basically working.

The only caveat is that installation scripts and cpio have to be modified in installation zip to handle loops, but I can't think of a better solution that would be completely transparent.
[Sony Xperia S, Acro S, Ion] championswimmer:
Change the recovery.fstab to handle the loopback devices as partitions???
[Sony Xperia S, Acro S, Ion] letama:
Yes, this is what I do already in my boot manager and this is working fine for cwmod mount/format/backup.

The issue is that installer scripts are using directly partitions files ( /dev/block/mmblk0p12), not mount("/system"), and kernel installation is an extract_files("boot.img", "/dev/block/mmcblk0p3"), not something like flash_kernel("boot.img"). And anyway original cpios is mounting directly /dev/block/mmcblk0p12 for system, so they have to be modified. Not a big deal if you know how, but until it becomes a standard (I can dream :D), the firmware zips will have to be modified.
[Sony Xperia S, Acro S, Ion] championswimmer:
We can get in touch with J to modify to OTA script in source to mount using partition names instead of block devices
[Sony Xperia S, Acro S, Ion] letama:
0.2 is out, I created a new thread for it as I forgot to reserve posts on this one.

Sorry about the mess...

So let's stop this one and continue here.

Thanks!
[Sony Xperia S, Acro S, Ion] ashqmallik:
This is definitely very neat and new..am sure this goes a long way in the development world :D. Surely gona wait for a much developed version :D :D. Very well done bro
[HTC EVO 3D] holmesnmanny:
http://xdaforums.com/showthread.php?t=1218193&page=22
[HTC EVO 3D] holmesnmanny:
is it safe to assume that my phone is the patched version that is not able to be rooted ?
[HTC EVO 3D] aoaleman:
This might work better.

http://xdaforums.com/showthread.php?p=24530433
[HTC EVO 3D] mingolianbeef:
Orrrrrr u can try this...

http://xdaforums.com/showthread.php?p=28159543
[HTC EVO 3D] EJerVJerO:
It also appears you have problems posting in the correct forum.

At least I got my reporting fix in for the day.
[HTC EVO 3D] eagleeyetom:
I'm moving this into Q&A Section where this should be originally posted :rolleyes:
[Sony Tablet S] papacarla:
I'm not seller, I just want to know did somebody try to get a root by unlockroot program?

Here is an original link. And here is the list of devices. There is an our tablet. I can not try it for now, but if somebody tried it I just want to know does it work really?
[Sony Tablet S] gordo79:
Tried and didn't work
[Sony Tablet S] rrlu21:
Tried and failed. (OTA 4.0.3 release1a unroot user)

But thanks for this way shared.
[Sony Tablet S] RichyE:
It worked for my Sony Tablet S (TISU0R0110110) 32GB Wi-fi 4.0.3.1a.

When you install it make sure to uncheck the option to install the free search/tool bar.

According to their list it should work for.

Sony Sony Tablet S 4.0.3 TISU0077 80

Sony Sony Tablet S 4.0.3 TISU0R0110 107

Hope this can help anyone else.
[Sony Tablet S] sapphire88:
for me it didn't work... 4.0.3 r2a, sgpt114s/it 3g + wifi 16gb.. it does something but it doesn't gain root access and it doesn't install super user apk...
[Sony Tablet S] stifilz:
Didnt work for me NZ tab changed region to US with ICS R5 :mad:

After unrooting just to try it lol. Binarys tool worked though
[myTouch 4G Q&A, Help & Troubleshooting] SdRasta:
I did a hard reset on my phone. When it turns back on i have no homescreen. The "introduction" screen comes on as if it was BRAND NEW phone. Go through setup and i have no home page just a black screen with notification bar,Which shows regularly as if phone was fine. I can view recent apps by holding home screen and besides that, that's about it.

What do i do?

Ideas?
[myTouch 4G Q&A, Help & Troubleshooting] Archer:
Moved to mytouch 4G forum.
[myTouch 4G Q&A, Help & Troubleshooting] estallings15:
Seriously? This section is for an HTC device.
[myTouch 4G Q&A, Help & Troubleshooting] THEindian:
Dude. HTC Mytouch 4g. The op obviously says LG.
[myTouch 4G Q&A, Help & Troubleshooting] saranhai:
Even the mods get confused? :confused:

-Saranhai
[myTouch 4G Q&A, Help & Troubleshooting] SdRasta:
My fault. I searched for the mytouch section couldn't find on app..

But anyway, this is all i see.. just a blank screen with the notification bar.
[myTouch 4G Q&A, Help & Troubleshooting] saranhai:
...yeah...we're sorry...but we can't really help you as we don't even own this device...
[myTouch 4G Q&A, Help & Troubleshooting] rockstarar:
Reboot

Or try hooking up your USB and transferring an apk that you download from your computer for a launcher such as Go launcher or launcher pro ( you can do this using notification bar to mount) and then drag and drop from your computer.

Install the apk, and if your problem is no home screen app, press the home button and it will work.

--sent from my glacier.
[myTouch 4G Q&A, Help & Troubleshooting] THEindian:
The best advice i can give you is return the phone since you said its new anyway. And a word of advice, if you can return it and if you can exchange it, i would get a different phone.
[myTouch 4G Q&A, Help & Troubleshooting] SdRasta:
So I did what "rockstarar" said and it worked.

Now i then went into Rom manager and chose "install rom from SD".

did a backup and then when the phone finished it rebooted and stuck at the CM9 Mod Bootscreen...
[myTouch 4G Q&A, Help & Troubleshooting] estallings15:
Install ROMs through recovery, not ROM Manager.
[myTouch 4G Q&A, Help & Troubleshooting] SdRasta:
but it went to recovery after i selected..

so how do i start over?

I hold down power and vol DOWN and just starts phone no clockwork or ANYTHING besides regular boot

EDIT:

I got it!

Thanks for the help

BUT i need to know how to get the play store
[myTouch 4G Q&A, Help & Troubleshooting] bas3balman:
Google is a tool my friend. Search for Google play apk, look for the latest one and install like any other app
[myTouch 4G Q&A, Help & Troubleshooting] estallings15:
I'm fairly positive Google Play has to go in system/app. It can't just be installed normally. Make sure you change permissions to rw-, r--, r--.
[myTouch 4G Q&A, Help & Troubleshooting] bas3balman:
No it can, I've done many times before
[myTouch 4G Q&A, Help & Troubleshooting] estallings15:
Sooo, why does every Android device I've ever installed it on go through a tremendous amount of effort to get vending.apk to system/app?

---------- Post added at 11:41 AM ---------- Previous post was at 11:16 AM ----------

I tried to edit the above post, but I kept getting "invalid thread id."

I wanted to say, I'm not arguing with you. I'm asking a question.

As a for instance, when I wanted to put the Play Store on my wife's Nook Tablet I had to root it first to be able to put the apk in /system/app.
[myTouch 4G Q&A, Help & Troubleshooting] bas3balman:
I'm not sure about a tablet or whether it needs root or not. It always just installed for me
[myTouch 4G Q&A, Help & Troubleshooting] ...Awesome...:
Look for Gapps for the LG and flash them if the framework for Play Store isn't present in Framework u CAN'T just click install u have to push it to system/apps but if IT IS present u can install it like a normal apk
[myTouch 4G Q&A, Help & Troubleshooting] estallings15:
Hey, there we go. My question is answered.
[myTouch 4G Q&A, Help & Troubleshooting] bas3balman:
Both of ours... It got me wondering too. ...Awesome... to the rescue again!
[Galaxy S II Q&A, Help & Troubleshooting] timflores07:
First, I'd like to apologize if this is like a duplicate post or something. I'm really new. I can't even post a reply because of some restrictions as a new member here. Okay, I need help pls. I'm really stupid. I flashed SiyahKernel S2-v4.1.2 in my phone Samsung Galaxy S2 Anycall (SHW-M250S). After that, it just booted and wont go past the icon(Soft bricked as I researched). I really can't do anything anymore. Any help please?
[Galaxy S II Q&A, Help & Troubleshooting] Sun90:
that kernel is best suited for I9100. if u can enter 'Download' Mode then flash a stock kernel meant for SHW-M 250S and see if the same doesn't wrk,then u have to flash a stock Rom meant for SHW-M 250S thro ODIN:)
[Galaxy S II Q&A, Help & Troubleshooting] Jokesy:
what's the Android version of your phone?

You will first need to flash a GT I9100 firmware or custom ROM, before flashing a GT I9100 custom kernel.

I have a friend with your phone (M250s, Korea), and he's running fine with GT I9100 stuffs butt after flashing GT I9100 custom ROM first

Swyped from my Galaxy SII
[Android Q&A, Help & Troubleshooting] Plymouthbiker:
Hi Everyone.

I have a question.. Which security software would you say is better for a non-rooted/rooted Android?

I have Cerberus on my SGS3 (Rooted), but a friend of mine has a non rooted SGS3 and wants to buy either Phone locator Pro or Cerberus.

1. (For Non-Rooted) In your mind, which would you say is better and why?

2. (Rooted) In your mind, which would you say is better and why?

Thanks for your help.
[Android Q&A, Help & Troubleshooting] calanizzle:
I have Cerberus, I really liked it, I just can't flash through recovery in order to merge with ROM and the ability to activate GPS if it's off.

I might try Phone locator Pro, since you can get the photos in your dropbox instead of your mail as Cerberus
[AT&T Samsung Galaxy S II SGH-I777] chillywillyhoe:
Im experienced rooting phones and i already read the faqs, but this seems to be the hardest phone ive ever come across with rooting. superoneclick freezes before i get a chance to use it,i tried using odin which gets stuck halfway through, ive closed all kies process also, ive tried using "DooMLoRD's Easy Rooting Toolkit" and it gives me this error "rm: can't remove '/system/app/Maps.apk': Read-only file system

--- copying busybox to /system/xbin/

/system/xbin/busybox: cannot open for write: Read-only file system

--- correcting ownership

Unable to chmod /system/xbin/busybox: No such file or directory

--- correcting permissions

Unable to chmod /system/xbin/busybox: No such file or directory

--- installing busybox

/system/xbin/busybox: not found

--- pushing SU binary

failed to copy 'files\su' to '/system/bin/su': Read-only file system

--- correcting ownership

Unable to chmod /system/bin/su: No such file or directory

--- correcting permissions

Unable to chmod /system/bin/su: No such file or directory

--- correcting symlinks

rm failed for /system/xbin/su, Read-only file system

link failed Read-only file system

--- pushing Superuser app

failed to copy 'files\Superuser.apk' to '/system/app/./Superuser.apk': Read-only

file system

--- cleaning

--- rebooting

ALL DONE!!!""

i feel like i exhausted every idea to root it, i feel like i either brought a broken phone or im just dumb lol,but can anybody please help me.
[AT&T Samsung Galaxy S II SGH-I777] seanpr123:
Last I tried I did with SuperOneClick and ZergRush exploit.

Make sure you have dev mode enabled on phone, and I had to run the app in compatibility mode (running Win7 x64) AND as admin (right-click).
[AT&T Samsung Galaxy S II SGH-I777] creepyncrawly:
The SuperOneClick tool, DooMLoRD's Easy Rooting Toolkit and the zergrush exploit do not work on UCKK6 (2.3.6) Gingerbread, only on UCKH7 (2.3.4).

You can follow the guide which is the first link in my signature. You will need to flash the stock plus root package using Odin, paragraph 2C. You said you had trouble with Odin before, but you didn't say with what firmware package. This is your best path to root, and the only one that does not increment the flash counter.
[AT&T Samsung Galaxy S II SGH-I777] chillywillyhoe:
With odin ive tried both packages in [Heimdall][Odin][Stock][Root]UCKH7/KK6 Return/Unbrick to Stock (or Root), ive also tried the "odin3 one-click" from that thread, it wouldn't recognize my phone all the odins ive tried would recognize it. i will try the stock root package from that thread.
[AT&T Samsung Galaxy S II SGH-I777] creepyncrawly:
Could be user error. Have you ever used Odin successfully before?

Or it could be a driver problem.

I would suggest that you make sure it's not user error first. Use the following guide. Follow it step by step in order

How to use stand-alone Odin3 to flash firmware:

Follow and recheck each of the following steps. Do them in order listed, as some steps are dependent on previous steps. Instructions are for Odin3 v1.85. It should work with any version of Odin, but some details, like color of items, may be different.

1.) Open Odin on the Windows Desktop.

2.) Have the USB cable plugged into USB port on the computer, but *Not* plugged in to the phone.

3.) Shut the phone off.

4.) While holding down the vol+ & vol- keys, plug micro-usb plug into phone.

5.) In Odin, you should get the yellow box under where it says ID:COM with the text 0:[COMx], and in the Message area, <ID:0/00x> Added!! where x is some number, usually 1-8.

6.) In Odin, make sure Auto Reboot and F. Reset Time are checked and all other items are not checked.

7.) Click on the PDA button. Browse to the tar file you want to install and select it so its path appears in the text edit box next to the button.

8.) Make sure the check box next to the PDA button is checked.

9.) Click the Start button.

10.) You should see the green progress bar advancing.
[AT&T Samsung Galaxy S II SGH-I777] chillywillyhoe:
i can't even use odin now my phone is labeled as unknown device, its a shame i don't know what else to do. ill either just keep using it on 2.3.6 or sell it since i don't think its possible to root it now. Before it was being recognized by both computers now its not.

is there anyway to root it from the phone?