[Galaxy S II Android Development] Troubadour666:
Binaries addons to enable WINSCP communications STEP

One day i ask myself how to bypass myself from adb command line.

I remember as an old Ipod user i'm that i can have access to its system partition with the use of winscp soft.

i try to find by myself the necessary binaries, and i find them .

i make myself an winscp-pack.rar or CWM-winscp-pack.zip to easily install it when i flash a rom, also this pack could be copied

in our new modded 2nd ROM structure before we flash it.

After that step, which can make communicate winscp installed on your PC with your i9100 system, on your personnal network.

Here, we can see how to put my winscp-pack.rar in our \system\ partition , by copying structure folder winscp-pack in external sdcard and

then with rootexplorer (or such a same tool) , we copy all folders form sdcard we have just talk to \system\ partition folders. we verify rights and change them if there are not good and we reboot.

you will find in some posts below WINSCP-PACK.rar (delete .pdf at end of WINSCP-PACK.rar.pdf) and CWM-winscp-pack.zip to flash.

use the first if you want put it manually in your future modded ZIP ROM 2nd ROM or on your phone like i describe you.

Now that we have the necessaries binaries installed on our system, we must have an application to enable SCP communication .

I found over the net an APK soft, Droidsshd.apk (https://code.google.com/p/droidsshd/)

i download APK from there, put it on my external sdcard and install it like normal apk by launching it using Rootexplorer.

result : it gives me a new installed APKs in \data\app\ named br.com.bott.droidsshd-1.apk.

below, a little video to show how to set-up droidsshd.apk V0.5 options.

[youtube]Jky5Ic2G18U[/youtube]

On your PC, once you have installed WINSCP download before, you have to set WINSCP options like this :

I specialized myself with dual-boot but i think this WINSCP-PACK could be integrated in ALL S2 JB SAMMY 4.1.2 ROMS, 1rst or 2nd position flashing.

I think that when you will have enable WINSCP to access on your phone like me , your understanding of your

system phone will change and so you will quickly learn more and more about your system phone , like i do it my friend !

This large confused image (my 1rst SHOOT) below resumes to you how you can integrate my winscp toolpack in your rooted tel or rom'zip

Here, an image shows you how you can fix and manage rights on files while runing WINSCP interface .

what we can do when WINSCP and TEL are communicating?

You can manage the entire system of your phone, in an explorer interface.

You can theme and add mods in your 2nd rom without flashig anything else (except vrtheme.zip files)

OTHER TWEAKS :

One day, i ask DorimanX how to mount the data partition from 2nd rom while runing 1rst rom,

he send me this 1rst response :

==================================================================================

all you do for adapt JB SAMMY to sec ROM is only your things, i am not interested.

about mounting the sec rom data!

i have added auto mount to kernel script!

so in next kernel it's will be by auto from now.

if you want to test now.

then do this!

using adb as su

losetup

this will show you all used LOOP devices.

see one that free (missing number)

then do this

mkdir /data_sec_rom;

chmod 777 /data_sec_rom;

losetup /dev/block/loop4 /sdcard/.secondrom/data.img;

mount -t ext4 /dev/block/loop4 /data_sec_rom;

ls -la /data_sec_rom;

i have used loop4 but if you see it already used then use other number!

then just go to /data_sec_rom;

and all files there

have fun.

==================================================================================

One another day, i ask DorimanX how to mount 1rst ROM \SYSTEM\ partition while i'm running my 2nd rom,

(dont forget that in 2nd rom, preload = system , so where is the mounted 1rst rom \SYSTEM\ partition ?)

so his response was :

==================================================================================

not mounted.

but exist

ADB:

mkdir /temp_system

chmod -R 777 /temp_system

mount -t ext4 /dev/block/mmcblk0p9 /temp_system

then you get system of PRI rom in folder /temp_system

==================================================================================

With this last sequence command lines, we have all systems partition mounted while we run our second rom, that's great, no ?