[GUIDE][UBUNTU/LINUX]How to extract system images and get all cool 'stuffs' - XDA-University

In this small tutorial I'll explain how to extract apps from system images of Nexus devices using simg2img.
Requirements:
1. System.img or TAR file containing system.img. If you downloaded nexus images from Google sources you need to untar it to get .img file. Ubuntu's inbuilt archive extractor is enough for this.
2. simg2img - download it from mediafire (21KB file)
3. Computer running on Ubuntu or any other linux operating system.
Steps:
1. Create new folder in your home directory e.g. Nexus. Now move simg2img and system.img file to that folder.
{
"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"
}
2. Make the simg2img file executable. Right click on file>Go to permissions tab>Check "Allow executing file as program"
3. Create another folder in home directory e.g. nexussystem
4. Now lets make the image mountable.
Code:
CTRL+ALT+T
sudo apt-get install nautilus-open-terminal
Close terminal and browse to nexus folder. Right click and select open in terminal. Execute following commands...
Code:
./simg2img system.img nexussystem.raw
6. Mount the image.
Code:
sudo mount -t ext4 -o loop nexussystem.raw ~/nexussystem/
7. Browse the mounted image just like flash drive and copy all content you need. To unmount just click on eject icon.
Happy decompilation

Nice tutorial. Can you tell me which desktop environment are you using? I like it.

And now the 10$ question : how do you rebuild it with your mofifications ? Unless you can directly edit in the mounted file system ?

Related

Stock Icons, How to change them...

Do you wanna change the stock Honeycomb icons on your Xoom without applying an entire theme? This is how I did it…
You need Root Explorer, Photoshop (if you wanna create your own icons), ADB and the ability to copy to/from your Xoom from your PC.
1. Open Root Explorer on your Xoom and make /system/app Read/Write
2. Copy SystemUI.apk from your Xoom to your PC (via dropbox or some other method)
3. Associate .APK files with WinRAR, open SystemUI.apk in WinRAR
4. Browse to SystemUI.apk\res\drawable-mdpi and copy the icons you want to change to your dekstop. (ic_sysbar_home_default.png, ic_sysbar_home_pressed.png, etc.)
5. Do your thing in Photoshop. If you just wanna change the color CTRL + U, if you wanna totally change the icon paste your new icon in the image and save as a .PNG.
6. Copy the images back to the SystemUI.apk container in WInRAR, make sure they are in the exact same directory with the exact same filename.
7. Copy or Move SystemUI.apk to your Android SDK \ Platform Tools directory and type the following
Code:
adb push SystemUI.apk /system/app/SystemUI.apk
and then
Code:
adb reboot
That’s all there is to it, when your Xoom completed the boot process it will display the new icons you dropped in the SystemUI.apk container. I’ve attached the icons that I am using, they are pretty lo-tech but I like them because they are unobtrusive. If you make some you like better, let me know, I’d love to see em.
Here's a screen shot of mine, Im using Launcher Pro Plus.
{
"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"
}

S5830 boot.img problem, can't find .rle

Hey all, my problem is that I can't find the .rle image in the extracted ramdisk. I can find a bunch of things except that , if anyone knows where's the .rle image, so I can replace it with the one I want
Image of what I find in ramdisk:
{
"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"
}
Thanks in advance.
Originally Posted by alansj
How to create a boot image:
1. put a properly encoded initlogo.rle in root directory
2. insert this line in init.rc in the boot: section (optional, this disables the stock android boot animation)
setprop debug.sf.nobootanimation 1
3. wrap it all up and flash it to mtd2
Attached:
1. A boot image with these changes made. To try it on your phone, first back up your mtd2 image (the boot image). Type the following in a root shell to back it up to your sdcard:
cat /dev/mtd/mtd2 > /sdcard/mtd2.img
Then, unzip boot-rc29-customlogo.img.zip it and stick it on your sdcard and type the following in a root shell:
cat /dev/zero >> /dev/mtd/mtd2
flash_image boot /sdcard/boot-rc29-customlogo.img
(when you do the cat, it will tell you "write: No space left on device," which is fine)
To restore your original boot image, do the cat and then flash_image your mtd2.img backup.
2. Samples of the raw image as well as the rle encoded version.
3. A nifty photo of this working on my phone.
http://forum.xda-developers.com/attachment.php?attachmentid=128380&d=1226173630
Click to expand...
Click to collapse
this should help
badjaguar007 said:
this should help
Click to expand...
Click to collapse
Thanks at home I'll try to do it. D
Sent from my GT-S5830 using xda app-developers app

Need your opportunity :)

ive created a tool which consists of scripts and binarys called SIDK alias System-Image-Development-Kit!
It allows you to unpack system.img for hammerhead and mako with one command called: "./unpack-mako.sh" which will automatically detect if the corresponding system.img is present in the device specific directory. It will unpack system.img to system directory and let you repack with just one command called: "./repack-mako.sh" and put the new compiled img in the output directory, now my q is: should i release it for mako and hammerhead or even more devices? would it be useful?
Sent from my Nexus 4 using xda-developers app
OldDroid said:
ive created a tool which consists of scripts and binarys called SIDK alias System-Image-Development-Kit!
It allows you to unpack system.img for hammerhead and mako with one command called: "./unpack-mako.sh" which will automatically detect if the corresponding system.img is present in the device specific directory. It will unpack system.img to system directory and let you repack with just one command called: "./repack-mako.sh" and put the new compiled img in the output directory, now my q is: should i release it for mako and hammerhead or even more devices? would it be useful?
Sent from my Nexus 4 using xda-developers app
Click to expand...
Click to collapse
Since you're here in the General forum you might need to explain what the purpose of this tool is for non-developers, or give some more details. It's possible that there would be interest in it but I don't think anyone knows what the use cases are from your description. :good:
You may start with mako and hammerhead and when it is stable enough release it for all nexus devices and then to sony/samsung/htc devices.
It's a matter of time, but first... NEXUS
{
"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"
}

how to enable multiwidow in [MRA58M] Marshmallow

boot in recovey and mount system
connect phone to pc (install abd drivers if not installed check your device manager for that in pc)
open adb and type
HTML:
adb pull /system/build.prop
open build prop file and
then change your build type from user to userdebug
save it then follow instruction
HTML:
adb push build.prop /system/
open shell in command prompt now
HTML:
adb shell
then type
HTML:
cd system
chmod 644 build.prop
and reboot device as normal
boot you have multiwindows now
For already rooted devices
downlaod given buildprop editor given in attachment and install it
And change the value of build type to userdubug as shown below in screenshot
{
"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"
}
:good:
Any possible way to use RRO layers without root?
Is there anu way to do this without pc ? I have custom recovery and root access running Android 6.0 Marshmallow on my Karbonn Sparkle V
Dhruv Goswami said:
Is there anu way to do this without pc ? I have custom recovery and root access running Android 6.0 Marshmallow on my Karbonn Sparkle V
Click to expand...
Click to collapse
Well then it's piece of cake
Install or use es file explorer or root file manger and open
Device/system/build.Prop
And edit it as mentioned above save it n just reboot normally
Viola work is done

[solved] [apps] [batch script] Install apps over ADB using install script

{
"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"
}
Install apps over ADB
Install apks on any Android device running any Android version over ADB!​
Hi all,
From a long time i was fiddling around with a problem of installing/downloading apps after installing a new ROM.
Thus i came up with an idea of a Batch File to install all of your apks from your system
to your phone in a few tips and taps. Hah! Found my solution .
How does it look?
To see some screenshots, please click below.
Tested on
The script had been tested on a couple of androinds but should work on any android device.
Downloads
Google Drive - Here is the link to Drive.
Link Below - You can also find the file below.
Installation instructions
Prerequisites
1. Platform Tools for Windows (ADB),
2. APK files,
3. Target phone connected to PC and
4. A cup of COFFEE or TEA as you like it.
Process
1. Download it from the attachments below or from the drive link above or here.
2. Copy the file to the ADB folder.
3. Execute the file.
4. You can either place your apps in "D:\Apps" folder. (Sllloooowwwww.....)
OR​Change the folder location in batch file itself. (Requires some Coding Skills)
OR​Batch file will ask you to change the location, if required. (Easy Installation, Pick Me!)
Troubleshooting
I don't think it's needed. But even then if you get any problem do write. I'll be happy to resolve it.
Enjoy, and also don't forget to write anything (Good, Bad or Thanks etc.)!

Categories

Resources