How to fix the failure of brushing into vendor.img! - Honor 9 Questions & Answers

I'm trying to brush in vendor.img.
But I ran into the following mistakes
127|hi3660:/ $ dd if=/external_sd/vendor.img of=/dev/block/bootdevice/by-name/vendor_a
dd: /external_sd/vendor.img: No such file or directory
I confirm the following.
My SD card storage space and mobile phone storage space is sufficient.
2. I have vendor.img on my SD card.
I'm from China.
Because I am not very good at English, so I use machine translation!
Thank you.

Related

"Invalid MS-DOS function" <-- what is this?!

My Computer is viewing my internal memory as a CD Drive. I tried to copy some pictures from the Galaxy Vibrants internal memory to my computer today and I got this wonderful message "Invalid MS-DOS function".
At first I thought it might be corrupt internal memory... but then I can still view all the information on my phone.
Any ideas what this may be?
aludus, what rom are you using? some of the older froyo roms have issues mounting storage card as read only, which may contribute to the above error.
Thanks for your reply im using the newest nero 5 rom. When I had the Nero 3 rom I didn't experience this ... I find it kind of strange. Ill try to reinstall the drivers.
Sent from my SGH-T959 using XDA App
make a backup of your SD card:
Code:
adb pull /sdcard/
This will backup your internal and external sdcard. Make sure you have adb setup first, and don't mount any of your sdcards.
Next, using your phone, format BOTH memory cards. See if they still mount as a CD drive.
thanks,
will give that a try when I get home

Need help to swap desire x dual SIM

Dear All
I could able to create swap partition on my phone SD card using AParted.
Now, I want to make use of that by creating swap file.
I tried to use swapit script which I found in some other thread.
The script says swap can be done and I was given few options
1. Create swap in SD card
2. Create swap in internal memory
3. Create swap in system memory
4. Choose own location
I was unsuccessful with 1,2,4 and fortunately successful with option 3
It says success. I rebooted my phone and run free in emulator which given me 0 and 0.
Im not sure what went wrong.
But I feel my mobile is faster after doing this exercise..not sure if its my myth
Can you please let me know how can I implement swap for my phone..
Is swap working fine through it is showing 0 in terminal emulator
Your help is very much appreciated.
Thanks for your help in advance
Any update..pleaseeeeeee
Swap partion only applies for one boot, don't reboot afterwards, so you will have to run the script at the beginning of every startup. Also keep in mind you cannot mount a swap partion at boot(i.e via init.d script), as the sd card is often not mounted at that point. I also do not recommended making a physical partion on your sd card, instead you should be using an image file(a random one will do). Here's the commands to make things easier:
To create a swap image:
Code:
touch /sdcard/swap.img
dd if=/dev/zero of=/sdcard/swap.img bs=1024k count=262144
mkswap /sdcard/swap.img
This creates a 256mb image
To mount image(This one is the one to be run at startup)
Code:
su
swapon /sdcard/swap.img

[HOWTO] Use external SD card as internal storage in KitKat

Beware, this guide is more or less untested, it will interfere with stuff like memory encryption and OTA or other firmware updates. You have been warned, I assume no warranties for bricked phones, SD cards or lost data.
Many cheap-ass Mediatek phones ship with Android 4.4.2 or later and only ridiculous amounts of internal storage (2GB in my case, CAT B15Q). That may be enough for basic apps, but as soon as you install Navigon or other data-heavy apps (or WhatsApp with a load of videos) you're going to run out of space in no time - and because Google is a bunch of fools, they disallowed app installations to SD cards entirely in 4.4!
So, we're going to move /data in its entirety to our nice huge SD card and be able to use even bigger apps on small phones. It might be possible that this guide works on other phones, but that depends on how they boot and where the fstab and init.rc reside!
Prerequisites:
Mediatek-based 4.4.2 or later phone with root access in recovery (boot it in recovery, run adb shell, therein run id. If it says root, all fine. If not, install CWM)
A large enough SD card (I chose a 32GB card with a 50:50 split between /data and the "external sd card")
Solid Linux knowledge, one Linux PC and one Windows PCs. I urge you to NOT use any kind of VM unless you have experience with USB passthrough.
spFlashTool and the Mediatek drivers from http://forum.xda-developers.com/general/general/stock-rom-cat-b15q-rom-development-t2988774, for a flashing guide see http://forum.xda-developers.com/android/help/howto-firmware-flashing-cat-b15q-t2989627
mtkdroidtools from https://www.androidfilehost.com/?fid=23501681358558543 on the Windows PC
mtk-tools from https://github.com/bgcngm/mtk-tools on the Linux PC (no, Cygwin does not work, it messes up the permission bits), cloned on an ext4 partition (not sure if ext2/3 can handle the extended permission bits...)
a network connection between the PCs or a USB stick to transfer files
Take the sd card out of the phone and insert it into your computer. Many laptop SD slots don't like SDXC (>4GB), you might need e.g. a Huawei 3G stick or a SDXC-compatible USB dongle.
Repartition the SD card using Acronis Disk Director, gparted or whatever you're familiar with. The first partition must only be resized (this is the FAT partition), the second partition is a ext4 (!) partition. Both MUST be primary partitions. Acronis and other tools on Windows might require a reboot to repartition SD cards. I recommend a 50:50% split, but if you're heavy on apps or their data, you might go for a 25% FAT: 75% EXT4 split.
Boot your phone into recovery, connect to it with adb in a root shell.
Assuming your data partition is at /dev/mmcblk0p8 (look in /fstab to find it out, followed by mount /data and ls /data to verify), execute the command "dd if=/dev/mmcblk0p8 of=/dev/mmcblk1p2", wait until it is finished. This can take up to ten minutes or more, depending how much data there is.
Shut down the phone, take out battery and SD card.
Insert the SD card into your Linux machine, run resize2fs /dev/sdb2 (or wherever the ext4 sd card partition ended up, check it in dmesg) as root so that the filesystem grows; then eject the SD card and put it back into your phone
Readback your BOOTIMG partition, transfer it to the linux PC (or, if you already have a boot.img for your current firmware, use this one)
On the Linux PC, open a rootshell (to avoid permission issues when building the ramdisk).
Run "./unpack-MTK.pl /path/to/bootimg"
"cd boot.img-ramdisk" (directory might be named different, depending on how you named the bootimg dump file)
Using a text editor, edit the "fstab" file(s) (there might be multiple, with suffixes): From (adjust if needed)
Code:
/[email protected] /data ext4 noatime,nosuid,nodev,noauto_da_alloc wait,check,encryptable=footer
to:
Code:
/dev/block/mmcblk1p2 /data ext4 noatime,nosuid,nodev,noauto_da_alloc wait,check,encryptable=footer
Now, edit the init.rc file (beware, other .rc files in the ramdisk root might also contain mount commands!).
Search for "on fs_property:ro.mount.fs=EXT4" and again replace /[email protected] (or whatever the node for /data had been) with /dev/block/mmcblk1p2 in the commands in this block (should be fsck, tune2fs,ext4_resize and mount).
Repack the boot image: ./repack-MTK.pl -boot boot.img-kernel.img boot.img-ramdisk/ /path/to/newboot.img
Transfer newboot.img to the Windows PC and flash it using spFlashTool
boot your phone, look in Settings->Memory to see if it went OK!
If the memory view didn't change, also modify the other blocks of on fs_property, in case your device does not use an ext4 rootfs (but yaffs or ubifs instead).
Functionality
It is a good idea, but
Are I still have part of it as external storage?
If yes, it means I can not remove it because there are some apps used it.
If no, it means I will not have external storage anymore!
e.ahmedmahfouz said:
It is a good idea, but
Are I still have part of it as external storage?
If yes, it means I can not remove it because there are some apps used it.
If no, it means I will not have external storage anymore!
Click to expand...
Click to collapse
The SD card is now both internal and external storage! You are not able to remove it because else your system will not boot anymore.
harddisk_wp said:
The SD card is now both internal and external storage! You are not able to remove it because else your system will not boot anymore.
Click to expand...
Click to collapse
what if the sd card is damaged ?
Can my phone boot again..or will booltloop
madthinker said:
what if the sd card is damaged ?
Can my phone boot again..or will booltloop
Click to expand...
Click to collapse
If you manage to kill your sdcard while you have my sdcard hack installed, then the phone will bootloop until you insert a new sd card partitioned just like the old one. Then it will act like you had factory-resetted it.
Alternatively you can always reflash original boot.img/recovery.img and use the phone with limited internal memory.
harddisk_wp said:
If you manage to kill your sdcard while you have my sdcard hack installed, then the phone will bootloop until you insert a new sd card partitioned just like the old one. Then it will act like you had factory-resetted it.
Alternatively you can always reflash original boot.img/recovery.img and use the phone with limited internal memory.
Click to expand...
Click to collapse
i see, thanks to explain me :good:
There is another way to get more space: Link2SD (2.- euros) with a second partition on your external SD-card exactly like shown above (ext4 partition, primary).
The advantage is, that if the sdcard is faulty the system still runs, just the apps which are symlinked to the ext4 partition won't run.
So I use this for all these not absolutely important apps which needs lots of internal memory, e.g. kindle bookreader, Amazon, WhatsApp etc. I dont use it for all apps, most importantly not for any app, where there is no alternative. Last week my two years old 64 GB MicroSD card (SanDisk, with warranty 10 years) in my SGS4 stopped working and this could happen all the time. They are not that reliable I think, that I would put my system on it.
I did this now with the Cat B15Q of my friend.
EDIT: and she has now more than 1 GB free internal space
I think this is the best solution, 2 GB for the pure ROM and the system apps is more than enough and all user apps go to the external sd-card (2nd partition).
good day!
hope you can help me.
what if i want vice versa? because my phone's default storage (0) is sd card.and i want my default storage will be its internal since it is 32gb rom. tried all ways but i think the answer is its boot.img. thank you..hoping for a help

Guide to set up 64 gigabyte SD cards to work with Lenovo P780 and TWRP

Guide to set up 64 gigabyte SD cards to work with Lenovo P780 and TWRP.
*Disclaimer I'm not responsible for damages to your device or tools or computers, all things done at your own risk*
Hello, I had been using a 32 gigabyte SD card for a long time, and it was getting so full that I was becoming frustrated with deleting items to make space for pics or a new backup. I thought, wouldn't it be great if I could use a 64 gig card instead. So I searched the forum and found the answer a few pieces at a time till I got the whole picture. So I thought to simplify things for the next Joe that wants to give it a go.
What you'll need: A Lenovo P780 *rooted*, TWRP (I'm using the ROW build 2.7.1.1), Laptop/PC with a card reader, a 64 gigabyte SD card, and minitool partition wizard (http://www.partitionwizard.com/free-partition-manager.html) The free version will do fine.
First step install the partition tool.
Second put your SD card into the card reader and clean it. Open up the Start Menu and type “diskpart” in the run box. Press enter. You’ll be prompted by the Windows UAC to authorize admin access to the DISKPART tool. A command-prompt-like window will open up, only the prompt will say “DISKPART”. At that prompt, type “list disk”. After identifying your SD card’s disk number, enter the following command “select disk #” where # is the disk number of your SD card. Whatever commands you execute after this point will only make changes to the selected disk; now would be a good time to double check you’ve selected the right disk just to be extra safe. Next, now enter the command “clean”. This will wipe the data and the partition too. Please backup anything you do not want to lose (I suggest starting with a new and empty SD card) Now launch the Minitool partition wizard. Find your SD card in the UI and highlight it with right click, Then navigate to the create selection. In the create partition section you will find many options in drop down lists to configure your new partition. Select the format type you'd like. I suggest FAT32 for now ( you may also be able to get exFAT working if it is set to primary, I will test that later.) the cluster size should be 32 KB (that is also the default in case you're not sure what to do with that one) Be sure you set the type to primary and not logical (If it is on logical TWRP won't mount it). Name your drive something if you like in the label field. After all that push the apply check mark at the top left of the UI and wait. It should work fine in the recovery and the ROM of your choice.
To set the SD card to exFAT: The mini wizard can't do that, but if you have already set the SD card to primary you can just reformat using the the format option in the drives and removable devices section. You right click on the SD card icon and navigate to format, pick exFAT format and run the format tool. The SD card will stay primary, so you won't have any problems with TWRP. I backup all files first and then simply mass restore them after. (flawless victory) Happy formatting.
Okay after some testing I noticed a problem with exFAT and TWRP. It can read to restore from the card but can't write files to the card, so backups won't take. I'm updating my recovery to see if it is just because I'm using an older recovery image. Nope. Sorry guys only works with FAT32.
Well done. Thanks.
Sent from my Lenovo P780
Thanks Mate, not sure if i ever gonna install SD card that big though
spiderclan said:
Thanks Mate, not sure if i ever gonna install SD card that big though
Click to expand...
Click to collapse
Maybe not on a P780. But there may come a time when you need to know.

SD Card Problem

Umm,i have a sandisk ultra sd card 64gb on my xiaomi redmi note 3,unfortunately a few days ago its broke,when i extract rar file on sd card because it takes some time i leave it but when i return to check it it shows error "i/o permission error".And after that when i try to delete,paste,cut something it will show failed to do such actions.
What have a tried:
1.Use card reader and then delete all files on pc,when i delete the files it deleted but when i restick the card the files that deleted show again(used space return to last state when it broke,3gb in my case)
2.formating:
a.use quick format(i'm on windows) its show unable to fornat disk
b.use cmd's diskpart when i type create primary partition after type clean it shows there are not enough space
c.use cmd's attrib and format it shows wrong format parameter
d.use inbuilt android formater(tried internal and portable),the sd card still in last broken state
e.tried third party tool,it shows formatted but when restick the card the problem still occur.
So anyone have solution to my problem?
Sorry for my bad English
handers1234 said:
Umm,i have a sandisk ultra sd card 64gb on my xiaomi redmi note 3,unfortunately a few days ago its broke,when i extract rar file on sd card because it takes some time i leave it but when i return to check it it shows error "i/o permission error".And after that when i try to delete,paste,cut something it will show failed to do such actions.
What have a tried:
1.Use card reader and then delete all files on pc,when i delete the files it deleted but when i restick the card the files that deleted show again(used space return to last state when it broke,3gb in my case)
2.formating:
a.use quick format(i'm on windows) its show unable to fornat disk
b.use cmd's diskpart when i type create primary partition after type clean it shows there are not enough space
c.use cmd's attrib and format it shows wrong format parameter
d.use inbuilt android formater(tried internal and portable),the sd card still in last broken state
e.tried third party tool,it shows formatted but when restick the card the problem still occur.
So anyone have solution to my problem?
Sorry for my bad English
Click to expand...
Click to collapse
I think the card can't be recovered anymore.
Raakib Zargar said:
I think the card can't be recovered anymore.
Click to expand...
Click to collapse
Huh,i think it can be recovered so i can give it to my friend since i changed card.Well thanks+1 for help.
But it is unfortunate coz i still can see and play video,picture and music files that stored on the card guess i must destroy it.

Categories

Resources