[Q] Why do we need to create roms... - myTouch 4G Q&A, Help & Troubleshooting

On linux or mac?
How come you can't work on scripts and roms and such on windows?

the android OS is based off of a linux core. so you need linux or unix system to do it. not sure about the whole mac thing. though you can always dual boot or run a VMlinux system to compile the rom.

you can do it on windows... look into cygwin it will create a POSIX compatible system on windows

Related

Android SDK for Linux?

I installed linux just to help with the android development, now what?
same basic process as with windows, download the Android SDK from the dev site, and follow the directions on the site. If you have Ubuntu just use the software explore to get/install Java JDK, and Eclipse. From eclipse install android plugin, and then android components
you can add the Android/tools folder to Path if you so desire as well (for ADB), I believe that is also on the dev site.

run exe files on android (run linux ubuntu )

how can we run exe files or ubuntu when we installed android on hd2????????????????????????
majidmajd said:
how can we run exe files or ubuntu when we installed android on hd2????????????????????????
Click to expand...
Click to collapse
We can't, exe files are Windows only files. And we can't compile wine for ubuntu, so emulation is also out of the question.
ubuntu installation
Hootyhoo2 here! Man I sure hope I can download and run this properly...wanna install "ubuntu for linux" on my stratosphereso as I canget " chrome for Android" I'm running 2.3.5. W/ linux kernel. Any suggestions or alt upgrades would be greatly appreciated...self taught so far with all the smartphone hoopla!!!!

[IDE] Build System for Boot Images v0.1 (Kernel, Ramdisk, Recovery Archive, ...)

Hi,
Because of the need of a bootmanager and the lack of patience to type a hack a lot at the console, I created a ubuntu maverick based build system for arm crosscompiling with a script helps by building kernel, ramdisk, recovery archive, debugging via fastboot and so on. As chroot env it is very flexible, needs not to install something and runs inside all linux distris.
just extract it somewhere onto an ext partition goto the directory and type ./start
in the root of the chroot env is a README file which contains infos where is what. read it before.
it contains three tools
build (a script supports different actions, "build help" shows them)
unpack-boot (extracts a boot image into the actual directory)
unpack-ramdisk (extracts a ramdisk into the actual directory)
Download:
http://www.bisme.net/files/xda/bootbs.tar.bz2
TODO:
the chroot env is still based on a desktop version of maverick and bigger than needed, this will change soon.
PS: Bootmanager is still in work, should finish(as a trivial but working version) in the next days and is the first step to support multiboot different linux installations(also different android versions) on android tablets. But this is another story will get an own Thread here. In the meantime I hope all romcookers out there will have fun with this build system.

Natice Linux Installation No Android

As anyone who has tinkered around with android and linux will know there are tons of different security mechanism in place or even general lacks of features that dissallow the ability to start linux on boot instead of android. One of the features that will make booting our own OS easier is the use of RAM-Disk.
First we must consider the way that Android boots when we turn on our devices currently, The system powers on and depending on button combination or system state the bootloader decides where to start booting. In the case of my Samsung SM-T520 this means that I have 2 partitions that I can access in order to interrupt the Android boot sequence and boot instead into an OS of my choosing. Those two partitions are Labelled as Boot and Recovery and reside at /dev/block/mmcblk0p9 and /dev/block/mmcblk0p10, but it is not as simple as simply mounting the partition and modifying the contents, we have to Modify the stock Kernel as well a little bit to be able to achieve better performance in the Linux side of things.
In the case of the SM-T520 I have compiled a preconfigured Kernel for this and will upload it below, But for those of you who do Not have the SM-T520 I will upload a sample Kernel config that you can base your own off of.
That settles the Kernel side of things but there is still 1 other part missing, If we just modify the Kernel then we are really not making any difference so we must edit...
The Initial RAMDISK
The Initramfs as many know it is glued to the back end of our kernel zImage that we get from compiling our own kernel, and includes a few small files to set up the initial environment for Android, or our Guest OS to finish booting from. This means that we have a pretty good base to start out with booting Linux. We simply have to grab this base and modify to our will.
So to start I took an image of /dev/block/mmcblk0p9 using dd from recovery like so ‘dd if=/dev/block/mmcblk0p9 of=sdcard/mmcblk0p9.img’ and copied the file onto my linux development machine. I then used umkbootimg passing the file to it as input in order to deconstruct that file into the zImage and the Ramdisk. i then copied the Ramdisk which will be in a file called initramfs.cpio.gz into a new folder on my computer and ran unpack_ramdisk on it to get to the nitty gritty inside which is what we need. and i promptly threw out the old initramfs.cpio.gz and kept only the ramdisk folder. This allowed me to modify the “scripts” inside of it so that it would boot Linux by mounting the linux install location as / then telling if to boot using the init function that linux already has. while I was testing i decided to leave the android install mounted essentially, what that means is that the android install hides away in the filesystem inside the linux install if we ever want to boot Android into a chroot Jail of its own.
That is possible because Android’s file system and the linux filesystem being used are the same structure, but at different locations /system being empty for the Android system to occupy. This is all fine, but where do we put linux? The short answer, Wherever the heck ya want to!
My answer was to put the linux install onto my MicroSD card at /dev/block/mmcblk1p1 so that i could write an addition to the logic inside the Ramdisk to start linux or android based on whether the SD card was inserted at boot.
More yet to follow
Interesting read. It will be great to see where this leads.
Very interesting. If this develops in would love to test.
Hei @DJHenjin1 , any update on this? I would love to see ubuntu running native on my SM-T520, especially now that it is sure we are not going to get any firmware update. Anyway, nice job! Thanks

[Linux] How to Install Ubuntu/Kali Linux on Redmi 3s prime?

I have trouble in installing Linux versions from Linux Deploy, Complete Linux Installer apps. Got installed BusyBox, Terminal, VNC.
Also using Chinese beta rom with pre-root enabled. Still problems presist while installing.
#Complete Linux Installer: Checksum failed. The image is corrupted
#Linux Deploy: mounting partition., update env fail(in second check onwards)., no such file directory so on..
So anyone give me a brief description of installing Linux on Android(redmi 3s prime: idk they differ any permission) with possible error corrections. The github Linux Deploy description not working for me either.
use kali nethunter
pavan.sampara said:
use kali nethunter
Click to expand...
Click to collapse
was that just a penetration test system? I want to make a ubuntu environment to run json file. Is that possible??
sap_spectre said:
was that just a penetration test system? I want to make a ubuntu environment to run json file. Is that possible??
Click to expand...
Click to collapse
you can use it as linux environment too.

Categories

Resources