Assembling system.img for the models on the processor Samsung Snapdragon &Exynos Octa - Galaxy Note 3 Original Android Development

Assembling system.img for the models on the processor Samsung Snapdragon &Exynos Octa
Assembling sewn images (img) for the models on the processor Samsung Exynos Octa (S4-GT9500; Note-3 SM-N900, etc..)
What's needed to build their own ROM images: Preferably installed natively (live, not to Wirth., Machine) operating system based on Linux (UBUNTU, Linux Mint) and always 64 bit version.​
Configure the system to use in building firmware:
Code:
sudo apt-get install git-core gnupg flex bison gperf libsdl-dev libesd0-dev libwxgtk2.8-dev build-essential zip curl libncurses5-dev zlib1g-dev valgrind libreadline6-dev gcc-multilib g++-multilib libc6-dev x11proto-core-dev libx11-dev libz-dev gawk texinfo automake libtool cvs libsdl-dev
Code:
sudo add-apt-repository "deb http://archive.canonical.com/ raring partner"
sudo apt-get update
Code:
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-jdk7-installer
Code:
sudo apt-get update
sudo apt-get install ia32-libs
Collect firmware:
1. - We will need to complete the assembly binaries Downloading this file
View attachment ext4_utils.zip
On versions of UBUNTU 13.04 and above may experience problems when you use these binaries, the way to solve:
http://forum.xda-developers.com/showpost.php?p=13834882&postcount=1
2. - Unpack the archive in your home directory, which is desirable in any folder you created previously, for example util
{
"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"
}
3. - Extract to the same folder from the downloaded firmware zip or in other formats, depending on where you get it. Prior to the status of individual images as below:
4. - Go to the folder in the terminal:
Code:
cd utils
We carry out the same in the terminal
Code:
ext4_utils/simg2img ./system.img ./system.raw.img
Code:
mkdir system
Code:
sudo mount -t ext4 -o loop system.raw.img system
Here, the terminal will be prompted to enter your administrator password, enter.
Here's what happened in the folder utils
5. - All our image system.img safely disassembled and placed in a folder for editing system (DO NOT close the terminal after these teams, if something else is needed to perform open another copy of the terminal) Next, go to the folder under administrator privileges (as root) and make the necessary changes. I've been using for these purposes Krusader, it is possible and usual file manager (as root)
For example:
Code:
sudo nautilus
But it more difficult to edit the permissions on files of modified, shorter than an amateur))
6. - After making the changes need to raise the image back to this continuing in the same place at the terminal where they made the disassembly:
Code:
ext4_utils/ext2simg -v system.raw.img system_new.img
Wait for the end of the process, and then:
Code:
ext4_utils/sgs4ext4fs --bloat system_new.img notesystem.img
Wait for the end of the process, and then:
Code:
chmod 0644 notesystem.img
7. - All our way safely assembled and ready after a subsequent packaging tar.md5 for flashing. Before packing firmware tar.md5 change the name of the new image notesystem.img on system.img simple renaming. Everything! Can clean the folder for the following assemblies, and unmount the mounted folder system
Code:
sudo umount system
Automated build process and edit images​ ----------------------------------​ --------------------​ ------------​ V
View attachment 2431367​
Special Thanks
Chainfire
A.S._id

Does this differ for SM-N9005?
Sent from my SM-N9005 using xda app-developers app

danieljamie said:
Does this differ for SM-N9005?
Sent from my SM-N9005 using xda app-developers app
Click to expand...
Click to collapse
Many of the other image format.

alexyuh said:
Many of the other image format.
Click to expand...
Click to collapse
help image I9505 Android 4.3
Help me the format image system.img.ext4, the working as above way and the result ODIN flash failed

thinh182009 said:
help image I9505 Android 4.3
But flash odin fail
Click to expand...
Click to collapse
Assembling sewn images (img) for the models on the processor Samsung Exynos Octa (S4-GT9500; Note-3 SM-N900, etc..)

alexyuh said:
Assembling sewn images (img) for the models on the processor Samsung Exynos Octa (S4-GT9500; Note-3 SM-N900, etc..)
Click to expand...
Click to collapse
Thank you for this tutorial. I did successfully I9500 version 4.3. You are asked to do all Note3 are successfully using this method. Thank you very much

Please SP all Qualcomm Snapdragon & Exynos 5 Octa
Thank you very much

Do you want a manual for Qualcomm Snapdragon?
Give me a log of commands from a terminal emulator.
Code:
cat /proc/partitions
and
Code:
cd dev/block/platform/dw_mmc.0/by-name
*************************************************************
or if does not work
*************************************************************
cd dev/block/platform/msm_sdcc.1/by-name
Code:
ls-l

alexyuh said:
Do you want a manual for Qualcomm Snapdragon?
Give me a log of commands from a terminal emulator.
Code:
cat /proc/partitions
and
Code:
cd dev/block/platform/dw_mmc.0/by-name
*************************************************************
or if does not work
*************************************************************
cd dev/block/platform/msm_sdcc.1/by-name
Code:
ls-l
Click to expand...
Click to collapse
Code:
[email protected]:/dev/block/platform/msm_sdcc.1/by-name # cat /proc/partitions
cat /proc/partitions
major minor #blocks name
253 0 512000 zram0
179 0 15388672 mmcblk0
179 1 12772 mmcblk0p1
179 2 52764 mmcblk0p2
179 3 128 mmcblk0p3
179 4 256 mmcblk0p4
179 5 512 mmcblk0p5
179 6 2048 mmcblk0p6
179 7 512 mmcblk0p7
179 8 512 mmcblk0p8
179 9 16896 mmcblk0p9
179 10 13952 mmcblk0p10
179 11 3072 mmcblk0p11
179 12 3072 mmcblk0p12
179 13 780 mmcblk0p13
179 14 780 mmcblk0p14
179 15 780 mmcblk0p15
179 16 2826240 mmcblk0p16
179 17 8192 mmcblk0p17
179 18 2119680 mmcblk0p18
179 19 6144 mmcblk0p19
179 20 10240 mmcblk0p20
179 21 10240 mmcblk0p21
179 22 10240 mmcblk0p22
179 23 6144 mmcblk0p23
179 24 3072 mmcblk0p24
179 25 8 mmcblk0p25
179 26 9216 mmcblk0p26
179 27 512000 mmcblk0p27
179 28 20480 mmcblk0p28
179 29 9728000 mmcblk0p
su-mksh: cd: /dev/block/platform/msm_sdcc.1/by-name/dev/block/platform/msm_sdcc.1/by-name: No such file or directory
2|[email protected]:/dev/block/platform/msm_sdcc.1/by-name # ls -l
ls -l
lrwxrwxrwx root root 1970-04-05 13:01 aboot -> /dev/block/mmcblk0p6
lrwxrwxrwx root root 1970-04-05 13:01 apnhlos -> /dev/block/mmcblk0p1
lrwxrwxrwx root root 1970-04-05 13:01 backup -> /dev/block/mmcblk0p23
lrwxrwxrwx root root 1970-04-05 13:01 boot -> /dev/block/mmcblk0p20
lrwxrwxrwx root root 1970-04-05 13:01 cache -> /dev/block/mmcblk0p18
lrwxrwxrwx root root 1970-04-05 13:01 carrier -> /dev/block/mmcblk0p28
lrwxrwxrwx root root 1970-04-05 13:01 efs -> /dev/block/mmcblk0p10
lrwxrwxrwx root root 1970-04-05 13:01 fota -> /dev/block/mmcblk0p22
lrwxrwxrwx root root 1970-04-05 13:01 fsg -> /dev/block/mmcblk0p24
lrwxrwxrwx root root 1970-04-05 13:01 hidden -> /dev/block/mmcblk0p27
lrwxrwxrwx root root 1970-04-05 13:01 m9kefs1 -> /dev/block/mmcblk0p13
lrwxrwxrwx root root 1970-04-05 13:01 m9kefs2 -> /dev/block/mmcblk0p14
lrwxrwxrwx root root 1970-04-05 13:01 m9kefs3 -> /dev/block/mmcblk0p15
lrwxrwxrwx root root 1970-04-05 13:01 mdm -> /dev/block/mmcblk0p2
lrwxrwxrwx root root 1970-04-05 13:01 modemst1 -> /dev/block/mmcblk0p11
lrwxrwxrwx root root 1970-04-05 13:01 modemst2 -> /dev/block/mmcblk0p12
lrwxrwxrwx root root 1970-04-05 13:01 pad -> /dev/block/mmcblk0p9
lrwxrwxrwx root root 1970-04-05 13:01 param -> /dev/block/mmcblk0p19
lrwxrwxrwx root root 1970-04-05 13:01 persdata -> /dev/block/mmcblk0p26
lrwxrwxrwx root root 1970-04-05 13:01 persist -> /dev/block/mmcblk0p17
lrwxrwxrwx root root 1970-04-05 13:01 recovery -> /dev/block/mmcblk0p21
lrwxrwxrwx root root 1970-04-05 13:01 rpm -> /dev/block/mmcblk0p7
lrwxrwxrwx root root 1970-04-05 13:01 sbl1 -> /dev/block/mmcblk0p3
lrwxrwxrwx root root 1970-04-05 13:01 sbl2 -> /dev/block/mmcblk0p4
lrwxrwxrwx root root 1970-04-05 13:01 sbl3 -> /dev/block/mmcblk0p5
lrwxrwxrwx root root 1970-04-05 13:01 ssd -> /dev/block/mmcblk0p25
lrwxrwxrwx root root 1970-04-05 13:01 system -> /dev/block/mmcblk0p16
lrwxrwxrwx root root 1970-04-05 13:01 tz -> /dev/block/mmcblk0p8
lrwxrwxrwx root root 1970-04-05 13:01 userdata -> /dev/block/mmcblk0p29
[email protected]:/dev/block/platform/msm_sdcc.1/by-name #
Please Slution. Thanks you very much:good:
---------- Post added at 11:29 AM ---------- Previous post was at 11:01 AM ----------
I was dumb to succeed, but I want you to open and close a tutorial of the original file system

You can collect an image directly on phone.
It will be flash.
Will contain already only regional part of csc. Thus I remade custom rom. For example
http://forum.xda-developers.com/showthread.php?t=2511167
Collected image internal sd to the card. It should be packed into tar.md5
Flashing Odin3
I will write the instruction for the personal computer later.
Okta
su
make_ext4fs -s -l 2436890624B -a system /sdcard/system.img /system
Snap
su
make_ext4fs -s -l 2894069760B -a system /sdcard/system.img.ext4 /system
Sent from my SM-N900 using xda app-developers app

alexyuh said:
You can collect an image directly on phone.
It will be flash.
Will contain already only regional part of csc. Thus I remade custom rom. For example
http://forum.xda-developers.com/showthread.php?t=2511167
Collected image internal sd to the card. It should be packed into tar.md5
Flashing Odin3
I will write the instruction for the personal computer later.
Okta
su
make_ext4fs -s -l 2436890624B -a system /sdcard/system.img /system
Snap
su
make_ext4fs -s -l 2894069760B -a system /sdcard/system.img.ext4 /system
Sent from my SM-N900 using xda app-developers app
Click to expand...
Click to collapse
Hi alexyuh! Requirements of thinh182009 want your phone to run guide build Qualcomm Snapdragon chip by means of
which you have given above.
Please guide thinh182009. I trust you to do this Thank you very much.

FAQ
Repacker Exynos Okta
Made for themselves.
Before use, configure OS UBUNTU as stated in 1 of the theme topic
VIDEO: PUSH
TOOL: PUSH
Good luck!
Refinement welcome! :fingers-crossed:

To build on Snap:
http://forum.xda-developers.com/showpost.php?p=46906278&postcount=1
In one of the points have been a topic change:
4 -> After unpacking the firmware from zip -> Change the name on system.img.ext system.img, simply renaming the image.
Code:
mv system.img.ext system.img
And mount as indicated:
Code:
ext4_utils/simg2img ./system.img ./system.raw.img
Code:
mkdir system
Code:
sudo mount -t ext4 -o loop system.raw.img system
6-> Assembly:
Code:
sudo ./make_ext4fs -s -l 2894069760B -a system system_new.img system
Code:
sudo chown 1000.1000 system_new.img
Code:
rm -f system.img
Code:
mv system_new.img system.img.ext
Code:
sudo umount system
Code:
rm -r system
Code:
rm *.raw.img
Pack into the firmware tar.md5
To assemble the need to add this folder ext4_utils binary.
View attachment make_ext4fs.zip <-- Unpack the zip of a folder and add ext4_utils

alexyuh said:
Repacker Exynos Okta
Made for themselves.
Before use, configure OS UBUNTU as stated in 1 of the theme topic
VIDEO: PUSH
TOOL: PUSH
Good luck!
Refinement welcome! :fingers-crossed:
Click to expand...
Click to collapse
Thanks you very much
very professional:good:

alexyuh said:
Repacker Exynos Okta
Made for themselves.
Before use, configure OS UBUNTU as stated in 1 of the theme topic
VIDEO: PUSH
TOOL: PUSH
Good luck!
Refinement welcome! :fingers-crossed:
Click to expand...
Click to collapse
Thank you. You do a very professional.
You can create for me simg2img make_ext4fs adnroid version 4.4_r1 (https://android.googlesource.com/platform/system/extras/).
I really believe you do this. Thank you very much.

[/COLOR]
linhbs said:
Thank you. You do a very professional.
You can create for me simg2img make_ext4fs adnroid version 4.4_r1 (https://android.googlesource.com/platform/system/extras/).
I really believe you do this. Thank you very much.
Click to expand...
Click to collapse
Yes, show for us the master class, and will you make Makefile android-4.4_r1.2 brunch well, or even android-4.3_r2? we are trusting in you...

A.S._id said:
[/COLOR]
Yes, show for us the master class, and will you make Makefile android-4.4_r1.2 brunch well, or even android-4.3_r2? we are trusting in you...
Click to expand...
Click to collapse
Thank you. You can create makefile from https://android.googlesource.com/platform/system/extras/+/refs/heads/master/ext4_utils/ help me.
I want to get Make_ext4fs. If you create make_ext4fs help me. I believe you do this. Thank you very much.

Automated build process and edit images​ ----------------------------------​ --------------------​ ------------​ V
View attachment 2431377​

ext4_utils_4.3
1- Download folder on your computer and unzip
2- Open the folder ext4_utils in the terminal
3- Execute the command
Code:
make
4-Enjoy :laugh:
https://mega.co.nz/#!DwIjyRTY!a9Ega2UnJwDg_E__QV0GVSXqWVUl9IudzdsvNUkTGDU

dell

Related

[Q] How to install fdisk with stock kernel+ROM

My intention is to list all physical partitions of /dev/block/mmcblk0 but outputs the following:
Code:
# fdisk -l /dev/block/mmcblk0
sh: fdisk: not found
Any idea about how to install such fdisk, cfdisk, parted or alternative command? Apparently it is not shipped by default.
Note: Superuser is installed.
{
"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"
}
Hey! At least you made it on the right for part of the site!
Sent from my GT-I9100 using xda premium
Use busybox.
scandiun said:
My intention is to list all physical partitions of /dev/block/mmcblk0 but outputs the following:
Code:
# fdisk -l /dev/block/mmcblk0
sh: fdisk: not found
Any idea about how to install such fdisk, cfdisk, parted or alternative command? Apparently it is not shipped by default.
Note: Superuser is installed.
Click to expand...
Click to collapse
Do you have busybox installed?
EDIT: WAIT.
You said above:
My intention is to list all physical partitions of /dev/block/mmcblk0
Click to expand...
Click to collapse
Are you sure you want to use fdisk? Maybe you should read what fdisk does...
ctomgee said:
Do you have busybox installed?
EDIT: WAIT.
You said above:
Are you sure you want to use fdisk? Maybe you should read what fdisk does...
Click to expand...
Click to collapse
I had fdisk installed, but was version 1.17.1 which hadn't the fdisk applet. now I've got the BusyBox Pro 1.20.0 from market and does have it, just what I needed.
However, I haven't found what I am looking for. There seems to be only one partition, while I am looking for all the ones corresponding to efs, data, system, misc, boot, recovery and so on. Any ideas on that?
And yes, I used fdisk before on linux and cfdisk on freebsd so I feel quite comfortable with it.
scandiun said:
I had fdisk installed, but was version 1.17.1 which hadn't the fdisk applet. now I've got the BusyBox Pro 1.20.0 from market and does have it, just what I needed.
However, I haven't found what I am looking for. There seems to be only one partition, while I am looking for all the ones corresponding to efs, data, system, misc, boot, recovery and so on. Any ideas on that?
And yes, I used fdisk before on linux and cfdisk on freebsd so I feel quite comfortable with it.
Click to expand...
Click to collapse
Sorry, I missed the -l flag in your image, and for some reason I didn't process what you were looking for exactly.
Use the "df" command.
What are you trying to figure out exactly? Just a list of the partitions or sizes or something else...
Here is a list of the partitions and what they are used for
[email protected]:/sdcard # ls -l /dev/block/platform/dw_mmc/by-name/
lrwxrwxrwx 1 root root 20 May 12 21:24 CACHE -> /dev/block/mmcblk0p7
lrwxrwxrwx 1 root root 21 May 12 21:24 DATAFS -> /dev/block/mmcblk0p10
lrwxrwxrwx 1 root root 20 May 12 21:24 EFS -> /dev/block/mmcblk0p1
lrwxrwxrwx 1 root root 20 May 12 21:24 FACTORYFS -> /dev/block/mmcblk0p9
lrwxrwxrwx 1 root root 21 May 12 21:24 HIDDEN -> /dev/block/mmcblk0p12
lrwxrwxrwx 1 root root 20 May 12 21:24 KERNEL -> /dev/block/mmcblk0p5
lrwxrwxrwx 1 root root 20 May 12 21:24 MODEM -> /dev/block/mmcblk0p8
lrwxrwxrwx 1 root root 20 May 12 21:24 PARAM -> /dev/block/mmcblk0p4
lrwxrwxrwx 1 root root 20 May 12 21:24 RECOVERY -> /dev/block/mmcblk0p6
lrwxrwxrwx 1 root root 20 May 12 21:24 SBL1 -> /dev/block/mmcblk0p2
lrwxrwxrwx 1 root root 20 May 12 21:24 SBL2 -> /dev/block/mmcblk0p3
lrwxrwxrwx 1 root root 21 May 12 21:24 UMS -> /dev/block/mmcblk0p11
shadowofdarkness said:
What are you trying to figure out exactly? Just a list of the partitions or sizes or something else...
Here is a list of the partitions and what they are used for
[email protected]:/sdcard # ls -l /dev/block/platform/dw_mmc/by-name/
lrwxrwxrwx 1 root root 20 May 12 21:24 CACHE -> /dev/block/mmcblk0p7
lrwxrwxrwx 1 root root 21 May 12 21:24 DATAFS -> /dev/block/mmcblk0p10
lrwxrwxrwx 1 root root 20 May 12 21:24 EFS -> /dev/block/mmcblk0p1
lrwxrwxrwx 1 root root 20 May 12 21:24 FACTORYFS -> /dev/block/mmcblk0p9
lrwxrwxrwx 1 root root 21 May 12 21:24 HIDDEN -> /dev/block/mmcblk0p12
lrwxrwxrwx 1 root root 20 May 12 21:24 KERNEL -> /dev/block/mmcblk0p5
lrwxrwxrwx 1 root root 20 May 12 21:24 MODEM -> /dev/block/mmcblk0p8
lrwxrwxrwx 1 root root 20 May 12 21:24 PARAM -> /dev/block/mmcblk0p4
lrwxrwxrwx 1 root root 20 May 12 21:24 RECOVERY -> /dev/block/mmcblk0p6
lrwxrwxrwx 1 root root 20 May 12 21:24 SBL1 -> /dev/block/mmcblk0p2
lrwxrwxrwx 1 root root 20 May 12 21:24 SBL2 -> /dev/block/mmcblk0p3
lrwxrwxrwx 1 root root 21 May 12 21:24 UMS -> /dev/block/mmcblk0p11
Click to expand...
Click to collapse
That is what I was looking for. As i see, there is no such /misc partition.
scandiun said:
That is what I was looking for. As i see, there is no such /misc partition.
Click to expand...
Click to collapse
I have seen people using the normally unused partition 12 on /misc to hide files or just as extra space.
shadowofdarkness said:
I have seen people using the normally unused partition 12 on /misc to hide files or just as extra space.
Click to expand...
Click to collapse
Is there where linux/ubuntu is installed with some market installers?
How to get the size (dynamic, I mean kB, MB, etc) of all partitions? Why partitions won't shop up in mmcblk0 directly?
scandiun said:
How to get the size (dynamic, I mean kB, MB, etc) of all partitions? Why partitions won't shop up in mmcblk0 directly?
Click to expand...
Click to collapse
Use df:
Code:
[email protected]:/ # df
df
Filesystem Size Used Free Blksize
/dev 415M 32K 415M 4096
/mnt/asec 415M 0K 415M 4096
/mnt/obb 415M 0K 415M 4096
/system 503M 429M 74M 4096
/cache 98M 4M 94M 4096
/efs 19M 8M 11M 4096
/data 1G 666M 1G 4096
/mnt/.lfs: Function not implemented
/mnt/sdcard 11G 2G 9G 32768
/mnt/sdcard/external_sd 29G 24G 5G 32768
/mnt/sdcard/external_sd 29G 24G 5G 32768

Dump stock rom & build flashable image

For those who wants to know and learn how:
Requirements.
Preparation.
Collecting Information.
Dumping.
Build Up Flashable Image.
Click to expand...
Click to collapse
​
CREDITS
I do not want to take any credit for this as it is not my work, I just have forked it from http://www.freaktab.com.
You can check the original post here
I just have simplified it.
Requirements
Requirements :​
USB Drivers Of your device installed
ADB ( Android Debugging Bridge)
romdump_v82b.zip (Android ROM dumper by Sebastian404)
Micro-USB-cable
microSD-card OR USB-Stick
Newer busybox
Click to expand...
Click to collapse
Code:
[B]* If you don't want to work with microSD-card OR USB-Stick you can use:
ADB push <from-PC-file> <to-android-file>
ADB pull <from-android-file> <to-PC-file>
(don't forget the pathes)
[/B]
Preparations
Preparations​
Setup android
Settings -> [DEVICE] USB -> Enable Connect to PC
Settings -> [PERSONAL] Security -> Enable Unknown Sources
Settings -> [SYSTEM] Developer options -> Enable USB debugging
Click to expand...
Click to collapse
Install USB-Driver
Conect Your device With computer
open device manager
right click on not recognized device
click update driver.
Click to expand...
Click to collapse
Format SD Card
copy romdump form romdump_v82b.zip to the microSD-card
make directory "rompump.out" and "dd.out"
Remove it "secure" from PC
put it into your device
Click to expand...
Click to collapse
Collecting Information
1. Starting shell via ADB
Browse to the folder where adb files are places
E.G. I have My adb files in adb folder in C: drive
Code:
cd\
cd adb
Code:
C:\adb>
* daemon not running. starting it now *
* daemon started successfully *
List of devices attached
0123456789ABCDEF device
C:\adb>adb shell
Code:
[email protected]:/ #
=> this seems to be the ideal, because it's root (SU), if you don't have the # you have to try to type su
Confirm the correct user:
[email protected]:/ # id
Code:
uid=0(root) gid=0(root)
OR
[email protected]:/ # echo $USER
Code:
root
You can find your microSD-card under the directory "/mnt"
[email protected]:/ # cd /mnt
[email protected]:/mnt # ls
Code:
asec
external_sd
obb
sdcard
secure
shell
usb_storage
[email protected]:/mnt # cd external_sd
[email protected]:/mnt/external_sd # ls
Code:
LOST.DIR
dd.out
romdump
romdump.out
for the correct busybox release
[email protected]: # cat /proc/cpuinfo
Code:
Processor : ARMv7 Processor rev 0 (v7l)
:
After you have via PC download the newer busybox (I give it the name "busybox-armv7l_1.21.1") and put it to your microSD-card, then you have to copy it to your device
[email protected]:/ # cp /mnt/external_sd/busybox-armv7l_1.21.1 /data/busybox-armv7l_1.21.1
Destination MUST BE "/data/", otherwise it isn't executable...
[email protected]: # cat /proc/mtd
Code:
dev: size erasesize name
mtd0: 00400000 00004000 "misc"
mtd1: 01000000 00004000 "kernel"
mtd2: 01000000 00004000 "boot"
mtd3: 01000000 00004000 "recovery"
mtd4: 18000000 00004000 "backup"
mtd5: 08000000 00004000 "cache"
mtd6: 80000000 00004000 "userdata"
mtd7: 00400000 00004000 "kpanic"
mtd8: 20000000 00004000 "system"
mtd9: 113400000 00004000 "user"
[email protected]: # cat /proc/partitions
Code:
major minor #blocks name
31 0 4096 mtdblock0
31 1 16384 mtdblock1
31 2 16384 mtdblock2
31 3 16384 mtdblock3
31 4 393216 mtdblock4
31 5 131072 mtdblock5
31 6 2097152 mtdblock6
31 7 4096 mtdblock7
31 8 524288 mtdblock8
31 9 4509696 mtdblock9
179 0 3941376 mmcblk0
179 1 3941344 mmcblk0p1
[email protected]:/ # ls -al /dev/block
Code:
brw------- root root 7, 0 2013-10-27 15:39 loop0
brw------- root root 7, 1 2013-10-27 15:39 loop1
brw------- root root 7, 2 2013-10-27 15:39 loop2
brw------- root root 7, 3 2013-10-27 15:39 loop3
brw------- root root 7, 4 2013-10-27 15:39 loop4
brw------- root root 7, 5 2013-10-27 15:39 loop5
brw------- root root 7, 6 2013-10-27 15:39 loop6
brw------- root root 7, 7 2013-10-27 15:39 loop7
brw------- root root 179, 0 2013-10-27 16:29 mmcblk0
brw------- root root 179, 1 2013-10-27 16:29 mmcblk0p1
drwxr-xr-x root root 2013-10-27 15:39 mtd
brw------- root root 31, 0 2013-10-27 15:39 mtdblock0
brw------- root root 31, 1 2013-10-27 15:39 mtdblock1
brw------- root root 31, 2 2013-10-27 15:39 mtdblock2
brw------- root root 31, 3 2013-10-27 15:39 mtdblock3
brw------- root root 31, 4 2013-10-27 15:39 mtdblock4
brw------- root root 31, 5 2013-10-27 15:39 mtdblock5
brw------- root root 31, 6 2013-10-27 15:39 mtdblock6
brw------- root root 31, 7 2013-10-27 15:39 mtdblock7
brw------- root root 31, 8 2013-10-27 15:39 mtdblock8
brw------- root root 31, 9 2013-10-27 15:39 mtdblock9
drwxr-xr-x root root 2013-10-27 15:39 platform
drwx------ root root 2013-10-27 15:39 vold
[email protected]:/ # ls -al /dev/block/mtd/by-name
Code:
lrwxrwxrwx root root 2013-10-27 15:39 backup -> /dev/block/mtdblock4
lrwxrwxrwx root root 2013-10-27 15:39 boot -> /dev/block/mtdblock2
lrwxrwxrwx root root 2013-10-27 15:39 cache -> /dev/block/mtdblock5
lrwxrwxrwx root root 2013-10-27 15:39 kernel -> /dev/block/mtdblock1
lrwxrwxrwx root root 2013-10-27 15:39 kpanic -> /dev/block/mtdblock7
lrwxrwxrwx root root 2013-10-27 15:39 misc -> /dev/block/mtdblock0
lrwxrwxrwx root root 2013-10-27 15:39 recovery -> /dev/block/mtdblock3
lrwxrwxrwx root root 2013-10-27 15:39 system -> /dev/block/mtdblock8
lrwxrwxrwx root root 2013-10-27 15:39 user -> /dev/block/mtdblock9
lrwxrwxrwx root root 2013-10-27 15:39 userdata -> /dev/block/mtdblock6
[email protected]:/dev # /data/busybox-armv7l_1.21.1 blkid
Code:
/dev/block/mmcblk0p1: UUID="04A7-463C"
/dev/block/vold/31:9: UUID="8269-1ED1"
/dev/block/vold/179:1: UUID="04A7-463C"
/dev/block/mtdblock9: UUID="8269-1ED1"
/dev/block/mtdblock8: LABEL="system" UUID="06bc9880-9e07-4dec-ae8d-1e59a1b88921"
/dev/block/mtdblock6: UUID="57f8f4bc-abf4-655f-bf67-946fc0f9f25b"
/dev/block/mtdblock5: UUID="57f8f4bc-abf4-655f-bf67-946fc0f9f25b"
DUMPING
Dumping ROM​
Dumping (at adb shell)
1.) via dd:
dd if=/dev/block/mtdblock0 of=/mnt/external_sd/dd.out/misc.img
Code:
8192+0 records in
8192+0 records out
4194304 bytes transferred in 0.677 secs (6195426 bytes/sec)
dd if=/dev/block/mtdblock1 of=/mnt/external_sd/dd.out/kernel.img
Code:
32768+0 records in
32768+0 records out
16777216 bytes transferred in 1.734 secs (9675441 bytes/sec)
dd if=/dev/block/mtdblock2 of=/mnt/external_sd/dd.out/boot.img
Code:
32768+0 records in
32768+0 records out
16777216 bytes transferred in 2.665 secs (6295390 bytes/sec)
dd if=/dev/block/mtdblock3 of=/mnt/external_sd/dd.out/recovery.img
Code:
32768+0 records in
32768+0 records out
16777216 bytes transferred in 1.340 secs (12520310 bytes/sec)
dd if=/dev/block/mtdblock4 of=/mnt/external_sd/dd.out/backup.img
Code:
786432+0 records in
786432+0 records out
402653184 bytes transferred in 69.198 secs (5818855 bytes/sec)
dd if=/dev/block/mtdblock8 of=/mnt/external_sd/dd.out/system.img
Code:
1048576+0 records in
1048576+0 records out
536870912 bytes transferred in 57.050 secs (9410533 bytes/sec)
/data/busybox-armv7l_1.21.1 ls -ltr /mnt/external_sd/dd.out/
Code:
-rwxrwxr-x 1 1000 1015 4194304 Oct 27 21:09 misc.img
-rwxrwxr-x 1 1000 1015 16777216 Oct 27 21:12 kernel.img
-rwxrwxr-x 1 1000 1015 16777216 Oct 27 21:14 boot.img
-rwxrwxr-x 1 1000 1015 16777216 Oct 27 21:15 recovery.img
-rwxrwxr-x 1 1000 1015 402653184 Oct 27 21:17 backup.img
-rwxrwxr-x 1 1000 1015 536870912 Oct 27 21:27 system.img
?not really need?
Code:
dd if=/dev/block/mtdblock5 of=/mnt/external_sd/dd.out/cache.img
dd if=/dev/block/mtdblock6 of=/mnt/external_sd/dd.out/userdata.img
dd if=/dev/block/mtdblock7 of=/mnt/external_sd/dd.out/kpanic.img
dd if=/dev/block/mtdblock9 of=/mnt/external_sd/dd.out/user.img
2.) via "romdump":
cp /mnt/external_sd/romdump /data/romdump
/data/romdump
Code:
Android ROM dumper v0.82b
(c)2011 Sebastian404
Device : rk31sdk-eng 4.2.2 JDQ39 eng.linking.20130709.184313 test-keys
Creating required files... done.
Opening mtd table... done.
Dumping kernel config... sh: cat: /proc/config.gz: No such file or directory
done.
Dumping boot partition... done.
Dumping recovery partition... done.
Dumping system partition... done.
Creating Checksums... done.
Cleaning up... done.
All done.
ls -al /sdcard/romdump
Code:
-rwxrwxr-x system sdcard_rw 16777216 2013-10-27 22:46 boot.img
-rwxrwxr-x system sdcard_rw 275 2013-10-27 22:48 checksum.md5
-rwxrwxr-x system sdcard_rw 0 2013-10-27 22:46 config.gz
-rwxrwxr-x system sdcard_rw 16777216 2013-10-27 22:46 recovery.img
-rwxrwxr-x system sdcard_rw 1507 2013-10-27 22:46 system.info.gz
-rwxrwxr-x system sdcard_rw 373034496 2013-10-27 22:48 system.tar
cp /sdcard/romdump/boot.img /mnt/external_sd/romdump.out/boot.img
cp /sdcard/romdump/checksum.md5 /mnt/external_sd/romdump.out/checksum.md5
cp /sdcard/romdump/config.gz /mnt/external_sd/romdump.out/config.gz
cp /sdcard/romdump/recovery.img /mnt/external_sd/romdump.out/recovery.img
cp /sdcard/romdump/system.info.gz /mnt/external_sd/romdump.out/system.info.gz
cp /sdcard/romdump/system.tar /mnt/external_sd/romdump.out/system.tar
ls -al /mnt/external_sd/romdump.out
Code:
-rwxrwxr-x system sdcard_rw 16777216 2013-10-27 23:15 boot.img
-rwxrwxr-x system sdcard_rw 275 2013-10-27 23:15 checksum.md5
-rwxrwxr-x system sdcard_rw 0 2013-10-27 23:15 config.gz
-rwxrwxr-x system sdcard_rw 16777216 2013-10-27 23:15 recovery.img
-rwxrwxr-x system sdcard_rw 1507 2013-10-27 23:15 system.info.gz
-rwxrwxr-x system sdcard_rw 373034496 2013-10-27 23:16 system.tar
Build Up Flashable Image
Build Up Flashable Image​
WinHex or any other Hex-Editor who can work with large files
Rk29xx ImageTools V2.1 by wendal (I download it here at 4. (it's without "su" and "Superuser.apk"))
(Alternatively you can use RK3xxx Firmware Tools by SergioPoverony)
First check the "dd.out/backup.img" with a HexEditor to determine whether there is information in it (first 4 characters "RKAF") or only zeros (HEX "FF") what means it is empty...
If there is this information in it, you will perhaps* have the complete ROM in it, which will include the loader and parameter files and you can use "wendal tools" to extract it...
1. Put the "backup.img" into the wendal tools directory and rename it to "wendal.img"
2. Start the "Runme.bat",
2a. Select 1 + return
2b. then any key
2c. and then you have to wait.
Code:
D:\RK3066_IMG_Mod_Tool>lua rk29xx_rom_tools_tnt.lua
RK29xx Image Pack/Unpack Tools
Blog http://wendal.net
Project: https://github.com/wendal/teclast_tools
feedback: [email protected]
Pls input: 1-Unpack 2-Pack 3-Exit
1
Pls copy Image file into this folder,and rename to wendal.img
Notify any errors!
Drücken Sie eine beliebige Taste . . .
Reading file header...
File header: RKFWf
Read loader's offset
Read loader's len
Read update.img's offset
Read update.img's len
Output Loader
offset(0x66) len(0x2F8AE)
Output updata.img
offset(0x2F914) len(0x1973A804)
Unpack updata.img to Temp folder
Check file... OK
------- UNPACK ------
package-file 0x00000800 0x00000241
RK3188Loader(L)_V1.20.bin 0x00001000 0x0002F96E
parameter 0x00031000 0x00000266
Image/misc.img 0x00031800 0x0000C000
Image/kernel.img 0x0003D800 0x00846034
Image/boot.img 0x00884000 0x000FE6F1
Image/recovery.img 0x00982800 0x00B18000
Image/system.img 0x0149A800 0x16E09800
backupimage/backup.img 0x182A4000 0x01495004
update-script 0x19739800 0x000003A5
recover-script 0x1973A000 0x0000010A
Unpack firmware OK!
------ OK ------
Unpack -- All Done
Pls input: 1-Unpack 2-Pack 3-Exit
Amazing work,you should add your name at TWRP which you compiled.
Well,hats off bro.
Steps for MMC based devices
Thanks for the info. Don't know why it hadn't occur to me to use dd for taking the image.
This works great for MTD based devices but does nothing for MMC based devices.
Never fear, I found the answer in an old post from lavero.burgos on repartitioning a Nook tablet.
Turns out if you use the parted from the CM team you can acquire the partition information you need.
Here is a shorthand of the previous instructions as they apply to MMC devices:
Req:
USB Drivers for your device
ADB installed and in your path
Appropriately sized USB cable for your device
microSD card
GNU parted
a rooted device
Prep:
make directory "firmware-img" on SD Card
make directory "tools" on SD Card
copy parted to tools directory on SD Card
Remove SD Card safely from PC
put SD Card into rooted device
Collect Info:
Run the commands below (one per line)
adb shell
su (if not already root user)
cp /mnt/<sd card mount point>/tools/parted /system/bin
cat /proc/partitions
parted /dev/block/mmcblk0
print
make note of the partition number and name for the partitions you wish to dump​
quit
Dumping ROM:
Run dd as defined below each partition you wan to dump, the <partition path> will be /dev/block/mmcblk0p<partition number>.
dd if=<partition path> of=/mnt/<sd card mount point>/firmware-img/<partition name>.img
---------- Post added at 02:36 PM ---------- Previous post was at 02:21 PM ----------
I hope this helps. I'm by no means an expert on this type of thing, so if you have additions or corrections, plz feel free. I've been watching learning and gathering, now I have a chance to give back.
I've gotten this to work on Nook tablet, Atrix HD and gonna test it on my Xoom in the next few days.
I dont know much about the MMC based devices .. As I onLy Have used Mediatek devices so far, btw thanx for the information
When I tried to do cat proc/mtd I got this error
Code:
1|[email protected]:/ # cat /proc/mtd
cat /proc/mtd
sh: cat: /proc/mtd: No such file or directory
1|[email protected]:/ #
i have a question please help me if you can
i didnt find the cat /proc/mtd is working because the mtd is not found in proc so after search i used proc/mount with link
i got the system file only but i didn't got the recovery or boot
i need another way to get it to build CWM
my device is totally new and support for it at all because it is BCM 21663 broadom
i have dual core Arm 7
512 ram
8g storage
1024*600
2 sim 3g tablet
any other CWM may works? or firmware refer to this specs??
ANY EXPERT THERE???
Thank you very much for the post, it was very helpful! It's a good complement to this post:
http://forum.xda-developers.com/showthread.php?t=2450045
modify download directory
Hi. I have a problem with my lenovo A526, whenever I want to download, it says "modify thedownload directory of the ". How can I do that? Can someone help me please? Thank you.
Ruscelle23 said:
Hi. I have a problem with my lenovo A526, whenever I want to download, it says "modify thedownload directory of the ". How can I do that? Can someone help me please? Thank you.
Click to expand...
Click to collapse
Try Using any other browser like opera or UC and choose custom directory before downloading a file. Ruscelle23
hssrgh said:
i have a question please help me if you can
i didnt find the cat /proc/mtd is working because the mtd is not found in proc so after search i used proc/mount with link
i got the system file only but i didn't got the recovery or boot
i need another way to get it to build CWM
my device is totally new and support for it at all because it is BCM 21663 broadom
i have dual core Arm 7
512 ram
8g storage
1024*600
2 sim 3g tablet
any other CWM may works? or firmware refer to this specs??
ANY EXPERT THERE???
Click to expand...
Click to collapse
Use cat /proc/emmc
The original link for romdump doesn't work, so here is an alternative one.
romdump_v82b.zip | by bhiga for Generic Device/Other
Download GApps, Roms, Kernels, Themes, Firmware, and more. Free file hosting for all Android developers.
androidfilehost.com
codenation said:
The original link for romdump doesn't work, so here is an alternative one.
romdump_v82b.zip | by bhiga for Generic Device/Other
Download GApps, Roms, Kernels, Themes, Firmware, and more. Free file hosting for all Android developers.
androidfilehost.com
Click to expand...
Click to collapse
Thanks a lot for that.

Infinix x551 boot loop and cant mount /cache on recovery

Please help me,
First of all my infinix x551 16gb 2gb ram is running on kitkat, then i have successly upgrade to lolipop via flashtool. (my infinix ealry product is only support kitkat)
after while i realized my phone is slower with lolipop then i tried to downgrade to kitkat using stok rom and flashtool.
But my phone is now bootloop (after infinix logo then black screen)
tried to enter rec mode and it load rua1 autoCWM v5.5.0.4 but there is error e:cant mount /cache......
i have tried MTK Droid tools but i dont understand how to flash with it.
i have tried adb shell command :
~ # mount
rootfs on / type rootfs (rw)
tmpfs on /dev type tmpfs (rw,nosuid,relatime,mode=755)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
/dev/block/mmcblk0p5 on /system type ext4 (ro,relatime,data=ordered)
~ # rm - r /data/dalvik-cache
rm: can't remove '-': No such file or directory
rm: can't remove 'r': No such file or directory
rm: can't remove '/data/dalvik-cache': No such file or directory
~ # rm - r /cache/dalvik-cache
rm: can't remove '-': No such file or directory
rm: can't remove 'r': No such file or directory
rm: can't remove '/cache/dalvik-cache': No such file or directory
~ #
/sbin/sh: --wipe_data: not found
~ # recovery --wipe_data
sh: /sbin/postrecoveryboot.sh: not found
^Z[1]+ Stopped recovery --wipe_data
~ # recovery --wipe_cache
sh: /sbin/postrecoveryboot.sh: not found
^C
for information i tried install any stok rom i can find for my infinix with flashtool (download only or format and download) it is succed (after flashing) but it still blackscreen when i tried to boot.
I though the problem is from my stok rom that i tried to downgrade that corrupt my partition table.
i check with adb shell i found ext2fs is exist but ext4fs is not and my cwm is read only on ext4fs so there is mistmacth boot partition format. however i dont know how to change the partition and clean install my infinix.
anyway, i tried enter fastboot with adb fastboot,
then i tried fastboot oem unlock and there is confirm notification on phone.
but i cant choose with my volume key (no response) although in recovery is normal.
Is there anyway to unlock oem and confirm with out volume key?
any suggest are welcom...
i need help as fast as posible.
Thank you for any of you that help me.
here's another try with adb shell :
~ # parted /dev/block/mmcblk0
parted /dev/block/mmcblk0
GNU Parted 1.8.8.1.179-aef3
Using /dev/block/mmcblk0
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) mkfs
mkfs
mkfs
Error: /dev/block/mmcblk0: unrecognised disk label
(parted) print
print
print
Error: /dev/block/mmcblk0: unrecognised disk label
i tried to do rm then reboot recovery :
~ # ls -la /dev/block/mmcblk*
ls -la /dev/block/mmcblk*
brw------- 1 root root 179, 0 Jan 2 23:55 /dev/block/mmcblk0
brw------- 1 root root 179, 32 Jan 2 23:55 /dev/block/mmcblk0boot0
brw------- 1 root root 179, 64 Jan 2 23:55 /dev/block/mmcblk0boot1
brw------- 1 root root 179, 1 Jan 2 23:55 /dev/block/mmcblk0p1
brw------- 1 root root 179, 2 Jan 2 23:55 /dev/block/mmcblk0p2
brw------- 1 root root 179, 3 Jan 2 23:55 /dev/block/mmcblk0p3
brw------- 1 root root 179, 4 Jan 2 23:55 /dev/block/mmcblk0p4
brw------- 1 root root 179, 5 Jan 2 23:55 /dev/block/mmcblk0p5
brw------- 1 root root 179, 6 Jan 2 23:55 /dev/block/mmcblk0p6
brw------- 1 root root 179, 7 Jan 2 23:55 /dev/block/mmcblk0p7
~ # parted /dev/block/mmcblk0
parted /dev/block/mmcblk0
GNU Parted 1.8.8.1.179-aef3
Using /dev/block/mmcblk0
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print
print
print
Error: Can't have a partition outside the disk!
so, the memory can still remove folder and adding new one.
tried to flash it again... cross my finger
no hope....
it still get error on mmcblk0p6
(parted) print
print
print
Error: /dev/block/mmcblk0p6: unrecognised disk label
(parted) mklabel
mklabel
mklabel
New disk label type? msdos
msdos
msdos
(parted) print
print
print
Error: /dev/block/mmcblk0p6: unrecognised disk label
(parted)
only mmcblk0p5 can be print.... other than this it give error label.
~ # parted /dev/block/mmcblk0p5
parted /dev/block/mmcblk0p5
GNU Parted 1.8.8.1.179-aef3
Using /dev/block/mmcblk0p5
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print
print
print
Model: Unknown (unknown)
Disk /dev/block/mmcblk0p5: 2684MB
Sector size (logical/physical): 512B/512B
Partition Table: loop
Number Start End Size File system Flags
1 0.00B 2684MB 2684MB ext4
anyway when i flashing with spflashtool there is no error....
What can be wrong...
up...
is there anyway i can use my ext sd card to boot from that i case my internal ROM is dead?

[UNIVERSAL][GUI-DEV][ANDROID DEV-EL][i");] LG Optimus F7 (US780, AS870, BM870)

Hello XDA i"):, I am running into issues putting the LG Optimus F7 (US780) together the way I would like to. I have Stock Android 4.1.2, Baseband Version M8960A----, Kernel Version 3.4.0.freedom, Build JZO54K, Software US78011a, PRI version 01. I wanted to get to Android 7.0/8.0/9.0 Nougat/Oreo/Pie for this phone model (API 21+?), and options to other versions of firmware. I am not sure how.
I currently have the Stock Firmware, flashed Philz Recovery, and flashed the Freedom Kernel per these link directions i");
Download mode (hold "volume up" then plug-in usb, when phone is off, do not use the power button.)
Recovery mode (hold "volume down" and "Power button" then follow on screen instructions.)
**I used "2nd init" recovery (CWM) to initiate this process, and it is still currently in there, it opens sometimes...2 recoveries? (volume down and plug in usb?? or initiate from within system while phone is on.)
1.) https://androidforums.com/threads/root-recovery-touch-non-touch-optimus-f7-fx1.829374/
In recovery flash i");
2.) https://intechgeek.com/lg-optimus-f7-kernel/#more-297
or (potentially)
2.a.) https://androidforums.com/threads/kernel-lg870-freedom-kernel-updated-9-14-14.810988/
In recovery, I flashed Root 2.82 SR5 to update Root 1.99 with these instructions i");
3.) https://download.chainfire.eu/1220/SuperSU/SR5-SuperSU-v2.82-SR5-20171001224502.zip?retrieve_file=1
!");
Code:
s"):
18
1986
1001
1100
The above is a good system but:
(I wanted the "international unlocked/open features" ) :
1.a.) I thought the boost mobile was international/unlocked https://lg-firmwares.com/lg-870-firmwares/firmwares/
I have the backup of my working system (How to attach files?). It has Android 4.1.2 Freedom Kernel 3.4.0. Root 2.82 RS5, Philz Recovery.
I considered flashing Root 2.82 SR5 "System Mode" but I was unsure what "System Mode" meant or was for. (option)
3.a.) https://forum.xda-developers.com/apps/supersu/v2-64-2-66-supersu-mode-t3286120
Then, I wanted to do a few things and have changed my mind along the way a few times. I wanted to deodex and found it inherently difficult. I wanted to modify where necessary to open various features. I then found non-stock roms for the device:
4.) http://guideroot.net/lg-optimus-f7-download-firmware-android-8-0-o/
For some reason what I am running into is a phone that disconnects and reconnects while in download mode, and does not show as a device when I try to use "fastboot devices". I tried the registry edit in this fashion:
5.) https://community.acer.com/en/discussion/367018/android-usb-devices-keep-connecting-and-disconnecting-on-r7
I looked here and I tried the dial code and the linked Power Saving options to no avail:
6.) https://androidforums.com/threads/rapid-usb-connecting-disconnecting-problem-wtf.886075/
Is there a way I can make the Android 7.0/8.0/9.0 Nougat/Oreo/Pie into a flashable .zip or restore from recovery?
Do I just need to put the MD5 checksum file in the .zip folder? (Answer: NO, there is more to it, see points A-G below)
This would be the easiest solution if it works..does anyone have a flashable backup or .zip of Android 7/8/9?
I was switching through recoveries available (stock, Philz, CWM, and I tried various versions of TWRP (didn't work/ not ported to phone?))
and flashing as a recovery by changing the md5 checksum. I was thinking one could easily switch through several different "systems" in the same sense.
I.e. nandroid.md5
Code:
1206d938f5134e91b6d665963a3b6d83 boot.img
10cfbc80f2f32cb2695a1b5252bdaddd recovery.img
f99466ea6669a62d391e3529bc6ff3e3 system.ext4.tar.a
c536ef897fbc5463c5bc490af6331bc6 system.ext4.tar.b
d41d8cd98f00b204e9800998ecf8427e system.ext4.tar
d30337df9e8fcb7fa8d62d56bbd0f908 recovery.img Stock
c268160e7fe0c7eb6eb227d6127b5311 recovery.img TWRP 2.8.6 (didn't work)
7b1e3ac64571fe467aed602acc661a7b recovery.img TWRP 3.0.0 (didn't work)
6117790563a47026be46aca6265994b7 recovery.img TWRP 3.1.1 (didn't work)
10cfbc80f2f32cb2695a1b5252bdaddd recovery.img PHILZ
( Through different systems (Android 8) by using adb shell (at recovery) or terminal emulator (phone), df, ls -al /dev/block/*/, et al, and dd if=/starage/sdcard1/inputfile(system).img of=/dev/block/mmcblk0pIE
Misaligned (at one point working)
dd if=/external_sd/clockworkmod/ROM/system.img of=/dev/block/platform/msm_sdcc.1/mmcblk0p15
dd if=/external_sd/clockworkmod/ROM/system_other.img of=/dev/block/platform/msm_sdcc.1/mmcblk0p14
dd if=/external_sd/clockworkmod/ROM/vendor.img of=/dev/block/platform/msm_sdcc.1/mmcblk0p17
dd if=/external_sd/clockworkmod/ROM/radio.img of=/dev/block/platform/msm_sdcc.1/mmcblk0p18
dd if=/external_sd/clockworkmod/ROM/modem.img of=/dev/block/platform/msm_sdcc.1/mmcblk0p1
dd if=/external_sd/clockworkmod/ROM/bootloader.img of=/dev/block/platform/msm_sdcc.1/mmcblk0p27
dd if=/external_sd/clockworkmod/ROM/boot.img of=/dev/block/platform/msm_sdcc.1/mmcblk0p23
dd if=/external_sd/clockworkmod/ROM/hosd.img of=/dev/block/platform/msm_sdcc.1/mmcblk0p24
dd if=/external_sd/clockworkmod/ROM/aboot.img of=/dev/block/platform/msm_sdcc.1/mmcblk0p22
dd if=/external_sd/clockworkmod/ROM/xbl.img of=/dev/block/platform/msm_sdcc.1/mmcblk0p12
dd if=/external_sd/clockworkmod/ROM/tz.img of=/dev/block/platform/msm_sdcc.1/mmcblk0p16
dd if=/external_sd/clockworkmod/ROM/keymaster.img of=/dev/block/platform/msm_sdcc.1/mmcblk0p26
dd if=/external_sd/clockworkmod/ROM/hyp.img of=/dev/block/platform/msm_sdcc.1/mmcblk0p25
dd if=/external_sd/clockworkmod/ROM/cmnlib64.img of=/dev/block/platform/msm_sdcc.1/mmcblk0p28
dd if=/external_sd/clockworkmod/ROM/rpm.img of=/dev/block/platform/msm_sdcc.1/mmcblk0p8
dd if=/external_sd/clockworkmod/ROM/bootlocker.img of=/dev/block/platform/msm_sdcc.1/mmcblk0p2
dd if=/external_sd/clockworkmod/ROM/devcfg.img of=/dev/block/platform/msm_sdcc.1/mmcblk0p3
dd if=/external_sd/clockworkmod/ROM/pmic.img of=/dev/block/platform/msm_sdcc.1/mmcblk0p5
dd if=/external_sd/clockworkmod/ROM/apdp.img of=/dev/block/platform/msm_sdcc.1/mmcblk0p6
I.e. for updater script: package_extract_file("system.img", "/dev/block/platform/msm_sdcc.1/mmcblk0p15")
I flashed this image to the cache, it worked, then I tried flashing the rest of it, cleared the cache.. looking at BrickJig:
https://forum.xda-developers.com/ga...oUye9j5KTJ0uwSkqSLvTvOBhn3x1R_iW438kEzksGMS9c
https://www.instructables.com/id/US...8evS5RdqBoQv0bImE2XLhPxMx41vtsR5_sIrBjXU9EuyM
)
Original "PIT" drwxr-xr-x root root 2018-11-16 04:21 by-name
drwxr-xr-x root root 2018-11-16 04:21 by-num
lrwxrwxrwx root root >100823040 bytes 2018-11-16 04:21 mmcblk0 -> /dev/block/mmcblk0
lrwxrwxrwx root root 524288 bytes 2018-11-16 04:21 aboot -> /dev/block/mmcblk0p5
lrwxrwxrwx root root 12582912 bytes 2018-11-16 04:21 boot -> /dev/block/mmcblk0p7
lrwxrwxrwx root root >100823040 bytes 2018-11-16 04:21 cache -> /dev/block/mmcblk0p17
lrwxrwxrwx root root 8388608 bytes 2018-11-16 04:21 drm -> /dev/block/mmcblk0p22
lrwxrwxrwx root root 524288 bytes 2018-11-16 04:21 encrypt -> /dev/block/mmcblk0p28
lrwxrwxrwx root root 33554432 bytes 2018-11-16 04:21 fota -> /dev/block/mmcblk0p23
lrwxrwxrwx root root 3145728 bytes 2018-11-16 04:21 fsg -> /dev/block/mmcblk0p20
lrwxrwxrwx root root >100823040 bytes 2018-11-16 04:21 grow -> /dev/block/mmcblk0p30
lrwxrwxrwx root root 52428800 bytes 2018-11-16 04:21 lgipa -> /dev/block/mmcblk0p27
lrwxrwxrwx root root 1677216 bytes 2018-11-16 04:21 misc -> /dev/block/mmcblk0p13
lrwxrwxrwx root root 67108864 bytes 2018-11-16 04:21 modem -> /dev/block/mmcblk0p1
lrwxrwxrwx root root 3145728 bytes 2018-11-16 04:21 modemst1 -> /dev/block/mmcblk0p10
lrwxrwxrwx root root 3145728 bytes 2018-11-16 04:21 modemst2 -> /dev/block/mmcblk0p11
lrwxrwxrwx root root 33554432 bytes 2018-11-16 04:21 mpt -> /dev/block/mmcblk0p24
lrwxrwxrwx root root 1024 bytes 2018-11-16 04:21 pad -> /dev/block/mmcblk0p9
lrwxrwxrwx root root 8388608 bytes 2018-11-16 04:21 persist -> /dev/block/mmcblk0p16
lrwxrwxrwx root root 8192 bytes 2018-11-16 04:21 rct -> /dev/block/mmcblk0p29
lrwxrwxrwx root root 12582912 bytes 2018-11-16 04:21 recovery -> /dev/block/mmcblk0p19
lrwxrwxrwx root root 524288 bytes 2018-11-16 04:21 rpm -> /dev/block/mmcblk0p6
lrwxrwxrwx root root 524288 bytes 2018-11-16 04:21 rpmbak -> /dev/block/mmcblk0p26
lrwxrwxrwx root root 524288 bytes 2018-11-16 04:21 sbl1 -> /dev/block/mmcblk0p2
lrwxrwxrwx root root 524288 bytes 2018-11-16 04:21 sbl2 -> /dev/block/mmcblk0p3
lrwxrwxrwx root root 1048576 bytes 2018-11-16 04:21 sbl3 -> /dev/block/mmcblk0p4
lrwxrwxrwx root root 8388608 bytes 2018-11-16 04:21 sns -> /dev/block/mmcblk0p12
lrwxrwxrwx root root 8192 bytes 2018-11-16 04:21 ssd -> /dev/block/mmcblk0p21
lrwxrwxrwx root root >100823040 bytes 2018-11-16 04:21 system -> /dev/block/mmcblk0p14
lrwxrwxrwx root root 75497472 bytes 2018-11-16 04:21 tombstones -> /dev/block/mmcblk0p18
lrwxrwxrwx root root 524288 bytes 2018-11-16 04:21 tz -> /dev/block/mmcblk0p8
lrwxrwxrwx root root 524288 bytes 2018-11-16 04:21 tzbak -> /dev/block/mmcblk0p25
lrwxrwxrwx root root 524288 bytes 2018-11-16 04:21 userdata -> /dev/block/mmcblk0p15
drwxr-xr-x root root 2018-11-16 04:21 by-num
lrwxrwxrwx root root >100823040 bytes 2018-11-16 04:21 mmcblk1 -> /dev/block/mmcblk1
lrwxrwxrwx root root >100823040 bytes 2018-11-16 04:21 mmcblk1p1 -> /dev/block/mmcblk1p1
Is Android 7/8/9 even compatible with this phone? I am going to maybe try to build a .tar file from the systems .img's of Android 7/8/9 and go from there or when I get some time follow through A-G below.
For some reason that is where I am stuck for now. It seems a little bit unnatural that it would work for the original firmware flash but now it is troubling with this disconnect/reconnect issue. I am considering starting from the top except that the disconnect issue still exists.
If you have any ideas please feel free to suggest a solution.
A few more things I am interested in but am unable to build into without a reasonable grounding/base (Android 7/8/9). I was looking to make firmware upgrades more streamlined for after market, such that Linux, has Grub, and finds, at least some , of the firmware.
A.) Dissecting 3g/4g modems https://hackaday.com/2017/02/20/33c3-dissecting-3g4g-phone-modems/
B.) Complete Rom development https://forum.xda-developers.com/showthread.php?t=1661770
C.) What Should I know for Rom Devel? https://www.quora.com/What-should-I-learn-for-Android-ROM-development
D.) a.) Android Development https://forum.xda-developers.com/chef-central/android/guide-one-android-development-t3175121
b.) Android Development https://forum.xda-developers.com/chef-central/android/guide-android-rom-development-t2814763
E.) Create Personalized ROM http://en.miui.com/thread-21539-1-1.html
F.) Embedded Android Development https://www.slideshare.net/amraldo/android-booting-scenarios
G.) Linux Boot Sequence http://learnlinuxconcepts.blogspot.com/2014/02/android-boot-sequence.html
H.) Tools needed https://elitcan.com/tools-to-build-custom-rom-for-android.html?fbclid=IwAR2OXQut5yzL2dFR52s19GwGoqBT4umZx06YxEaNsaCi39xrOC8Fdngrtaw
I.) Android Open Source https://source.android.com/?fbclid=IwAR0BE_l15Y2TfHhr1Jglpbx8fsLMjWn7YVRc-RA2bglODmkz-YueH9-kvOs
J.) Previous Source https://github.com/android?fbclid=IwAR18FI9PTLbj2J-KLXrJE65Tb0zaXkarbUiibuZTKu1JM7knJQV9qUF51Pc
K.) Learn X Language in Y minutes https://learnxinyminutes.com/?fbclid=IwAR1vRPkuW3yLVjG4a9Z42GvZlFyyhdfJODbT1a-QxOoHMYAgZ0cDfVO4k-s
L.) platform_system_core/adb/ https://github.com/aosp-mirror/platform_system_core/tree/master/adb?fbclid=IwAR3XJ2arevlqOsHoFxXRuH4H3KDtsqcghTdZr1yr5I0uLcoJ5sS3H1rXmLU
M.) Guide to make FLASHABLE ZIP https://forum.xda-developers.com/android/software-hacking/framework-guide-to-make-flashable-zip-t3196490
for APK: https://www.maketecheasier.com/create-android-apps-recovery-zip/
https://www.guidingtech.com/49814/create-flashable-zips-custom-recovery/
https://androidforums.com/threads/tutorial-how-to-make-a-flashable-zip.828952/
CPU ASIC/DESIGN
A.) Reverse Engineering/Software Exploit (Video Lecture/PDF Slides)
https://plus.google.com/113611061190453317839
B.) Fritzing http://fritzing.org/home/
C.) Quite Universal Circuit Simulator http://qucs.sourceforge.net/
D.)How to become an embedded software developer? https://electronics.stackexchange.com/questions/3343/how-to-become-an-embedded-software-developer
BIOMEDICAL DEVICES
Robotic Eye https://www.designnews.com/electronics-test/artificial-eye-sensor-can-see-dark/94572894645119
Prosthetic Eye http://www.extremetech.com/extreme/...ic-eye-that-speaks-the-language-of-your-brain
IO > DNA > IO https://www.decodedscience.org/comparing-genetic-code-dna-binary-code/55476
Oxy Sensor https://en.wikipedia.org/wiki/Oxygen_sensor
I have more links and I planned to read through but I am running into some of these stops.
Lg Optimus F7 Links
https://www.gogorapid.com/flash-stock-rom-lg-optimus-f7-lg870/
http://blog.recovery-android.com/how-to-remove-bootstrap-recovery-on-android/
http://guideroot.net/lg-optimus-f7-download-firmware-android-8-0-o/
https://medium.com/@currentb4b/how-to-develop-stock-rom-for-android-mobile-59e7b3adeaa6
https://forum.xda-developers.com/showthread.php?t=1353903
https://forum.xda-developers.com/showthread.php?t=2320007
https://forum.xda-developers.com/galaxy-s2/general/ref-kernel-governors-modules-o-t1369817
https://github.com/omnirom/android_bootable_recovery/tree/android-7.1
https://github.com/shine911/Android_Device_lge_Fx1
https://github.com/chevanlol360/device_lge_fx1
https://www.frequencycheck.com/models/ARMNG/lg-optimus-f7-us780
https://www.frequencycheck.com/bands/lte-band-12-700-ac
https://lg-firmwares.com/lg-phone-firmwares-region-description/
https://lg-firmwares.com/lg-870-firmwares/firmwares/
https://lg-firmwares.com/lg-us780-firmwares/firmwares/
https://intechgeek.com/lg-optimus-f7-kernel/#more-297
https://boycracked.com/android-tuto...y-lg-android-devices-using-kdz-updater-tools/
https://boycracked.com/android-stock-rom/offcial-lg-optimus-f7-stock-rom-firmware/
https://androidforums.com/threads/guide-unbrick-unroot-lg-optimus-f7-us780-us-cellular.843446/
https://androidforums.com/threads/kernel-lg870-freedom-kernel-updated-9-14-14.810988/
https://androidforums.com/threads/root-recovery-touch-non-touch-optimus-f7-fx1.829374/
https://androidforums.com/threads/r...very-for-the-lg-optimus-f7-lg870-fx1s.785165/
https://androidforums.com/threads/optimus-f7-all-things-root-guide.691538/
Android Custom ROM Links
https://hackaday.com/2017/02/20/33c3-dissecting-3g4g-phone-modems/
https://sourceforge.net/directory/os:windows/?q=android+rom+maker
https://source.android.com/setup/build/building
https://forum.xda-developers.com/showthread.php?t=1767392
https://forum.xda-developers.com/showthread.php?t=633246
http://learnlinuxconcepts.blogspot.com/2014/02/android-boot-sequence.html
https://forum.xda-developers.com/showthread.php?t=2771411
https://forum.xda-developers.com/showthread.php?t=2195858
https://www.slideshare.net/amraldo/android-booting-scenarios
https://forum.xda-developers.com/chef-central/android/guide-android-rom-development-t2814763
https://forum.xda-developers.com/chef-central/android/guide-one-android-development-t3175121
https://circleci.com/build-environm...i&utm_content=Display-quora-Eng-ni-AndroidDev
https://www.quora.com/What-should-I-learn-for-Android-ROM-development
https://www.androidauthority.com/build-custom-android-rom-720453/
https://forum.xda-developers.com/showthread.php?t=1661770
[i"):]=A joke between friends until it works like that.
Flash Magisk instead of that root 2.82 thing
Peak.Krittin said:
Flash Magisk instead of that root 2.82 thing
Click to expand...
Click to collapse
Unfortunately, Magisk is for Android 5 Lollipop (21+) and above... I am stuck at Android 4.1.2.
Thank you for showing me the option for future/other phones.
https://www.xda-developers.com/how-to-install-magisk/
https://www.apkmirror.com/apk/topjohnwu/magisk-manager/
https://forum.xda-developers.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445
Hopefully, good developer got the phone and make great rom for your device!
also ...
Welcome to XDA.

[Solved] Permission denied <- adb shell ls -l /dev/block/bootdevice/by-name

Hi there,
The device is rooted.
But
Code:
adb shell ls -l /dev/block/bootdevice/by-name
It returned
Code:
/dev/block/bootdevice/by-name: Permission denied
However,
Code:
adb shell su -c 'ls -l /dev/block/bootdevice/by-name'
It returned
Code:
lrwxrwxrwx root root 1970-01-21 16:08 DDR -> /dev/block/mmcblk0p6
lrwxrwxrwx root root 1970-01-21 16:08 DRIVER -> /dev/block/mmcblk0p25
lrwxrwxrwx root root 1970-01-21 16:08 LOGO -> /dev/block/mmcblk0p24
lrwxrwxrwx root root 1970-01-21 16:08 aboot -> /dev/block/mmcblk0p10
lrwxrwxrwx root root 1970-01-21 16:08 abootbak -> /dev/block/mmcblk0p11
lrwxrwxrwx root root 1970-01-21 16:08 apdp -> /dev/block/mmcblk0p12
lrwxrwxrwx root root 1970-01-21 16:08 bluetooth -> /dev/block/mmcblk0p2
lrwxrwxrwx root root 1970-01-21 16:08 boot -> /dev/block/mmcblk0p35
lrwxrwxrwx root root 1970-01-21 16:08 cache -> /dev/block/mmcblk0p41
lrwxrwxrwx root root 1970-01-21 16:08 config -> /dev/block/mmcblk0p40
lrwxrwxrwx root root 1970-01-21 16:08 devinfo -> /dev/block/mmcblk0p9
lrwxrwxrwx root root 1970-01-21 16:08 dpo -> /dev/block/mmcblk0p14
lrwxrwxrwx root root 1970-01-21 16:08 fsc -> /dev/block/mmcblk0p15
lrwxrwxrwx root root 1970-01-21 16:08 fsg -> /dev/block/mmcblk0p8
lrwxrwxrwx root root 1970-01-21 16:08 hyp -> /dev/block/mmcblk0p33
lrwxrwxrwx root root 1970-01-21 16:08 hypbak -> /dev/block/mmcblk0p34
lrwxrwxrwx root root 1970-01-21 16:08 keystore -> /dev/block/mmcblk0p39
lrwxrwxrwx root root 1970-01-21 16:08 limits -> /dev/block/mmcblk0p5
lrwxrwxrwx root root 1970-01-21 16:08 misc -> /dev/block/mmcblk0p38
lrwxrwxrwx root root 1970-01-21 16:08 modem -> /dev/block/mmcblk0p1
lrwxrwxrwx root root 1970-01-21 16:08 modemst1 -> /dev/block/mmcblk0p17
lrwxrwxrwx root root 1970-01-21 16:08 modemst2 -> /dev/block/mmcblk0p18
lrwxrwxrwx root root 1970-01-21 16:08 msadp -> /dev/block/mmcblk0p13
lrwxrwxrwx root root 1970-01-21 16:08 oem_dycnvbk -> /dev/block/mmcblk0p19
lrwxrwxrwx root root 1970-01-21 16:08 oem_stanvbk -> /dev/block/mmcblk0p20
lrwxrwxrwx root root 1970-01-21 16:08 param -> /dev/block/mmcblk0p21
lrwxrwxrwx root root 1970-01-21 16:08 persist -> /dev/block/mmcblk0p37
lrwxrwxrwx root root 1970-01-21 16:08 pmic -> /dev/block/mmcblk0p3
lrwxrwxrwx root root 1970-01-21 16:08 pmicbak -> /dev/block/mmcblk0p4
lrwxrwxrwx root root 1970-01-21 16:08 recovery -> /dev/block/mmcblk0p36
lrwxrwxrwx root root 1970-01-21 16:08 reserve1 -> /dev/block/mmcblk0p22
lrwxrwxrwx root root 1970-01-21 16:08 reserve2 -> /dev/block/mmcblk0p23
lrwxrwxrwx root root 1970-01-21 16:08 rpm -> /dev/block/mmcblk0p31
lrwxrwxrwx root root 1970-01-21 16:08 rpmbak -> /dev/block/mmcblk0p32
lrwxrwxrwx root root 1970-01-21 16:08 sbl1 -> /dev/block/mmcblk0p26
lrwxrwxrwx root root 1970-01-21 16:08 sbl1bak -> /dev/block/mmcblk0p27
lrwxrwxrwx root root 1970-01-21 16:08 sdi -> /dev/block/mmcblk0p28
lrwxrwxrwx root root 1970-01-21 16:08 sec -> /dev/block/mmcblk0p7
lrwxrwxrwx root root 1970-01-21 16:08 ssd -> /dev/block/mmcblk0p16
lrwxrwxrwx root root 1970-01-21 16:08 system -> /dev/block/mmcblk0p42
lrwxrwxrwx root root 1970-01-21 16:08 tz -> /dev/block/mmcblk0p29
lrwxrwxrwx root root 1970-01-21 16:08 tzbak -> /dev/block/mmcblk0p30
lrwxrwxrwx root root 1970-01-21 16:08 userdata -> /dev/block/mmcblk0p43
In addition,
Code:
adb pull /dev/block/mmcblk0p43 43.img
It returned
Code:
adb: error: remote object '/dev/block/mmcblk0p43' does not exist
How to resolve the issue of "permission denied"?
Why are there differences in terms of results between adb shell ls -l /dev/block/bootdevice/by-name and adb shell su -c 'ls -l /dev/block/bootdevice/by-name'?
Why adb pull failed to create a disk image?
Is mmcblk0p43 recognized as a file so adb pull could copy it out of /dev/block/?
Thanks in advance.
--- Solution ---
Install adbd insecure and check "Enable insecure adbd" and"Enable as boot", these two boxes;
However, it ensued another problem that the device is no more recognised by adb. And this issue is solved by
- installing SELinux Switch and choosing "Permissive".
And both
Code:
adb shell ls -l /dev/block/bootdevice/by-name
and
Code:
adb pull /dev/block/mmcblk0p43 43.img
worked.
But how come that adbd insecure could enable the 2 commands above?
Apparently the device's bootloader is locked.
Code:
fastboot oem device-info
(bootloader) Device tampered: false
(bootloader) Device unlocked: false
(bootloader) Device is_verified: false
(bootloader) Charger screen enabled: false
(bootloader) Display panel:
(bootloader) console_locked: 1
(bootloader) exec_console_unconsole: 0
OKAY [ 0.072s]
wenyendev said:
Hi there,
The device is rooted.
But
Code:
adb shell ls -l /dev/block/bootdevice/by-name
Click to expand...
Click to collapse
There are 2 ways:
1. Use adb shell su instead. And then copy everything from root dir into internal storage after that you can pull files from internal storage using adb pull
2. Disable selinux enforcing with setenforce 0
'adb root' done?
CXZa said:
'adb root' done?
Click to expand...
Click to collapse
After adb root, it returned
Code:
adbd cannot run as root in production builds
Solved.. okay, I just leave this to this thread then. One more option...
Code:
adb exec-out "su -c cat /dev/block/mmcblk0p43" > [full path\]43.img
Above should work but there is quite many cases that it doesn't, i.e. \n are replaced with \r\n corrupting the file. Then below should fix the problem. If exec-out doesn't work, shell can be used too...
Code:
adb exec-out "su -c cat /dev/block/mmcblk0p43" | dos2unix -f > [full path\]43.img
More info...
Read binary stdout data like screencap data from adb shell?
Is it possible to read binary stdout from an adb shell command? For example, all examples of how to use screencap include two steps: adb shell screencap -p /sdcard/foo.png adb pull /sdcard/foo.png
stackoverflow.com
@CXZa dos2unix does not solve it, will mess up even more. best workaround so far is compress/decompress (for example gzip) also take care about exec-out stderr is mixed up with stdout.
btw @wenyendev the answer applies to all your following questions:
adbd cannot run as root in production builds. you have three options. 1) use adb root in TWRP recovery mode. 2) use insecure adbd daemon 3) use adb shell su shell instead. that's it.
https://forum.xda-developers.com/t/...as-root-in-production-builds-adb-root.4528831
https://forum.xda-developers.com/t/permission-denied-following-ls-dev-block.4530681
https://forum.xda-developers.com/t/permission-denied-cat-proc-partitions.4494267
https://forum.xda-developers.com/t/...wing-partition-identification-command.4528373
https://forum.xda-developers.com/t/...rtition-on-an-unrooted-android-device.4528247
https://forum.xda-developers.com/t/...ied-under-adb-shell-after-granting-su.4528815
https://forum.xda-developers.com/t/dd-versus-adb-pull.4535577
https://forum.xda-developers.com/t/closed-how-to-pull-partition-to-external-disk.4537667
Btw original SELinuxModeChanger by @MrBIMC occupied by SELinux Toggler (which is basically same as Selinux Switch) will work only on kernel that support developer mode.
[APP][Root][4.2+]SELinuxModeChanger v10.0 :: [24.07.2017]
Now opensourced under gplv3! GITHUB Get it in f-droid F-DROID page (v10 probably won't be there until release of stable gradle 4.0 and buildtools 26) Now available on the XDA Labs! XDA Labs page (UPD: somebody released a fork without changing...
forum.xda-developers.com
aIecxs said:
dos2unix does not solve it, will mess up even more.
Click to expand...
Click to collapse
No it doesn't. It is explained in the comments in the link I gave...
I know that link (and comments)
please try your own
https://pastebin.com/Z5ptLhqM
Various tests there. Tried with cache too in Windows using the latest dos2unix version mentioned there. Works if one has that problem, if not might make a mess. But in your case it looks like the file sizes aren't the same even when the command is the same. Odd...
Edit: I actually used shell too with the cache... exec-out also with some smaller files. So the exec-out can give different outputs... Edit2: As well as dos2unix it seems. Odd...
it works best with compressed streams as the decompression algorithm can handle minor encoding issues (such as CR CR LF)
Code:
C:\Android> adb exec-out su -c "cat /dev/block/platform/mtk-msdc.0/11120000.msdc0/by-name/cache 2> /dev/null | gzip" > cache.img.gz
after unpacking gzip (7-zip) I recommend checksum (if possible) but might not work "online"
Code:
CUBOT_KING_KONG:/ # md5sum /dev/block/platform/mtk-msdc.0/11120000.msdc0/by-name/cache
C:\Android> certutil.exe -hashfile cache.img MD5
@wenyendev does not concern you as afaik you're on darwin/macOS
You did a lot of tests indeed. BTW, not the best partition that cache of yours for testing dos2unix. Nothing to do for it as it didn't change a thing in those last files that worked.
So, many things might not work and shell is probably better option to use, and linux and compression. Still, if one doesn't have enough space i.e. sd card, it's an option...
Tested again. For me shell and exec-out work the same way. Both need the dos2unix treatment. Repeated it and it messed the file as there was still "leftovers" in it...
Code:
C:\bin\adb>adb shell "su -c cat /dev/block/mmcblk0p47" > C:\bin\adb\cache_aaa.img
C:\bin\adb>adb shell "su -c cat /dev/block/mmcblk0p47" | dos2unix -f > C:\bin\adb\cache_bbb.img
C:\bin\adb>adb exec-out "su -c cat /dev/block/mmcblk0p47" | dos2unix -f > C:\bin\adb\cache_ccc.img
C:\bin\adb>adb shell "su -c md5sum /dev/block/mmcblk0p47"
a87484dff7370bf71a253ee9af6baedf /dev/block/mmcblk0p47
C:\bin\adb>md5sum C:\bin\adb\cache_*.img
\2922f7f1ab51fa650779586e291e6783 *C:\\bin\\adb\\cache_aaa.img
\a87484dff7370bf71a253ee9af6baedf *C:\\bin\\adb\\cache_bbb.img
\a87484dff7370bf71a253ee9af6baedf *C:\\bin\\adb\\cache_ccc.img
C:\bin\adb>dos2unix -f -n cache_ccc.img cache_ddd.img
dos2unix: converting file cache_ccc.img to file cache_ddd.img in Unix format...
C:\bin\adb>md5sum C:\bin\adb\cache_ddd.img
\de27ad05c61510f4847651c44ab9922e *C:\\bin\\adb\\cache_ddd.img
results may differ between Win 7 10 11 cmd PowerShell platform tools and adb version
CXZa said:
Tested again. For me shell and exec-out work the same way. Both need the dos2unix treatment. Repeated it and it messed the file as there was still "leftovers" in it...
Code:
C:\bin\adb>adb shell "su -c cat /dev/block/mmcblk0p47" > C:\bin\adb\cache_aaa.img
C:\bin\adb>adb shell "su -c cat /dev/block/mmcblk0p47" | dos2unix -f > C:\bin\adb\cache_bbb.img
C:\bin\adb>adb exec-out "su -c cat /dev/block/mmcblk0p47" | dos2unix -f > C:\bin\adb\cache_ccc.img
C:\bin\adb>adb shell "su -c md5sum /dev/block/mmcblk0p47"
a87484dff7370bf71a253ee9af6baedf /dev/block/mmcblk0p47
C:\bin\adb>md5sum C:\bin\adb\cache_*.img
\2922f7f1ab51fa650779586e291e6783 *C:\\bin\\adb\\cache_aaa.img
\a87484dff7370bf71a253ee9af6baedf *C:\\bin\\adb\\cache_bbb.img
\a87484dff7370bf71a253ee9af6baedf *C:\\bin\\adb\\cache_ccc.img
C:\bin\adb>dos2unix -f -n cache_ccc.img cache_ddd.img
dos2unix: converting file cache_ccc.img to file cache_ddd.img in Unix format...
C:\bin\adb>md5sum C:\bin\adb\cache_ddd.img
\de27ad05c61510f4847651c44ab9922e *C:\\bin\\adb\\cache_ddd.img
Click to expand...
Click to collapse
Apparently it did not work out for me.
CXZa said:
Tested again. For me shell and exec-out work the same way. Both need the dos2unix treatment. Repeated it and it messed the file as there was still "leftovers" in it...
Code:
C:\bin\adb>adb shell "su -c cat /dev/block/mmcblk0p47" > C:\bin\adb\cache_aaa.img
C:\bin\adb>adb shell "su -c cat /dev/block/mmcblk0p47" | dos2unix -f > C:\bin\adb\cache_bbb.img
C:\bin\adb>adb exec-out "su -c cat /dev/block/mmcblk0p47" | dos2unix -f > C:\bin\adb\cache_ccc.img
C:\bin\adb>adb shell "su -c md5sum /dev/block/mmcblk0p47"
a87484dff7370bf71a253ee9af6baedf /dev/block/mmcblk0p47
C:\bin\adb>md5sum C:\bin\adb\cache_*.img
\2922f7f1ab51fa650779586e291e6783 *C:\\bin\\adb\\cache_aaa.img
\a87484dff7370bf71a253ee9af6baedf *C:\\bin\\adb\\cache_bbb.img
\a87484dff7370bf71a253ee9af6baedf *C:\\bin\\adb\\cache_ccc.img
C:\bin\adb>dos2unix -f -n cache_ccc.img cache_ddd.img
dos2unix: converting file cache_ccc.img to file cache_ddd.img in Unix format...
C:\bin\adb>md5sum C:\bin\adb\cache_ddd.img
\de27ad05c61510f4847651c44ab9922e *C:\\bin\\adb\\cache_ddd.img
Click to expand...
Click to collapse
Apparently it did not work on my device.
{
"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"
}
The environment is adb on Macintosh High Sierra.
Whether I enabled adbd insecure & Selinux, it produced the same result.
aIecxs said:
@CXZa dos2unix does not solve it, will mess up even more. best workaround so far is compress/decompress (for example gzip) also take care about exec-out stderr is mixed up with stdout.
btw @wenyendev the answer applies to all your following questions:
adbd cannot run as root in production builds. you have three options. 1) use adb root in TWRP recovery mode. 2) use insecure adbd daemon 3) use adb shell su shell instead. that's it.
https://forum.xda-developers.com/t/...as-root-in-production-builds-adb-root.4528831
https://forum.xda-developers.com/t/permission-denied-following-ls-dev-block.4530681
https://forum.xda-developers.com/t/permission-denied-cat-proc-partitions.4494267
https://forum.xda-developers.com/t/...wing-partition-identification-command.4528373
https://forum.xda-developers.com/t/...rtition-on-an-unrooted-android-device.4528247
https://forum.xda-developers.com/t/...ied-under-adb-shell-after-granting-su.4528815
https://forum.xda-developers.com/t/dd-versus-adb-pull.4535577
Btw original SELinuxModeChanger by @MrBIMC occupied by SELinux Toggler (which is basically same as Selinux Switch) will work only on kernel that support developer mode.
[APP][Root][4.2+]SELinuxModeChanger v10.0 :: [24.07.2017]
Now opensourced under gplv3! GITHUB Get it in f-droid F-DROID page (v10 probably won't be there until release of stable gradle 4.0 and buildtools 26) Now available on the XDA Labs! XDA Labs page (UPD: somebody released a fork without changing...
forum.xda-developers.com
Click to expand...
Click to collapse
What do you mean by using adb root in recovery TWRP mode?
The command above was run in the "Terminal" <- "Advanced" in TWRP.
wenyendev said:
What do you mean by using adb root in recovery TWRP mode?
Click to expand...
Click to collapse
Just connect the usb cable and try it in mac's terminal.
CXZa said:
Just connect the usb cable and try it in mac's terminal.
Click to expand...
Click to collapse
Ok, adb root worked only when adbd insecure is enabled.
in TWRP recovery, adb root is already enabled by default. no need to type 'adb root'
on macOS one have to install dos2unix
Code:
brew install dos2unix
aIecxs said:
in TWRP recovery, adb root is already enabled by default. no need to type 'adb root'
on macOS one have to install dos2unix
Code:
brew install dos2unix
Click to expand...
Click to collapse
After installation of dos2unix,
Code:
./adb shell "su -c cat /dev/block/mmcblk0p43" | dos2unix -f /Users/wenyuan/Desktop/android/adb/43.img
still did not work.
Now you need that ">"...
Code:
./adb shell "su -c cat /dev/block/mmcblk0p43" | dos2unix -f > /Users/wenyuan/Desktop/android/adb/43.img
But do you have that \n replacing problem? If not dos2unix is not needed.
Code:
./adb shell "su -c cat /dev/block/mmcblk0p43" > /Users/wenyuan/Desktop/android/adb/43.img

Categories

Resources