[Q] Create a zipable StockROM - Xperia Z1 Q&A, Help & Troubleshooting

Hey,
first of all sorry for my bad english. I really hope anyone understand the problem and can help me
I have tried the following steps to create the zip:
1. downloaded the actually FTF
2. renamed ROM.ftf to ROM.zip
3. extracted the system.sin
4. extract the system.sin to ext4 via Flashtool 0.9.12.1
Then occurred the first problem. I could not open the ext4 file with any tool from XDA.
So I searched for other options to create the zip and tried the following steps:
1. installed the FTF on the smartphone i prefer
2. installed the doomkernel with dual-recovery
3. started a twrp backup
4. copied the syststem.ext4.win to my harddrive
5. extrated the system.ext4.win and put it together with the META-files and the updater-script
Butevery time when i tried to flash this file, i received the error "error set_perm aborted ... 7"
I get the same message when I tried to flash the ROM from @krabappel2548
http://forum.xda-developers.com/showthread.php?t=2440408
Is there a problem with the recovery?
Can anyone help me?
greetZ,
Daniel

http://bit.ly/19HouFo
The first hit, that's what you need to read, learn and try,
Its a bit more complicated that what you have tried so far

Thanks for the quick response and the info.
But how would I proceed without tools? And the second question is, why can not I install the ROM from krabappel?

DanielGiGi said:
Thanks for the quick response and the info.
But how would I proceed without tools?
Click to expand...
Click to collapse
You need to install the tools. Either install a dual boot linux machine or a virtual Linux machine. Read post 3 of that thread
And the second question is, why can not I install the ROM from krabappel?
Click to expand...
Click to collapse
Because of this
Code:
== Information ==
Only for Unlocked bootloaders!!
You don't have an unlocked bootloader is my guess

At this time, the bootloader was unlocked. Now I have made ​​a TA recovery and everything is stock
But I will try it later one more time with the kitchen when i'm at home.
Thank you for your help. I will give you a feedback.

all hd
It does not work. I have installed a Linux client. Then I unzipped the system.sin via flashtool. After that I received a system.ext4, which I can not open in the KITCHEN.
Please help me.

DanielGiGi said:
It does not work. I have installed a Linux client. Then I unzipped the system.sin via flashtool. After that I received a system.ext4, which I can not open in the KITCHEN.
Please help me.
Click to expand...
Click to collapse
rename it to system.img.
Its in the instructions for the kitchen thread

Related

[Q] Modded kernel on stock rom?

Hi to all.
I have a rooted Incredible S (through HTCDev), stock ics rom and S-ON.
Is there a way to install a modded kernel on stock rom?
jauffre said:
Hi to all.
I have a rooted Incredible S (through HTCDev), stock ics rom and S-ON.
Is there a way to install a modded kernel on stock rom?
Click to expand...
Click to collapse
theres a guide in xics kernel thread
Can you give me the link, please?
I tried XS ICS 2.2, and followed some advices to make it work, but it didn't.
jauffre said:
Can you give me the link, please?
I tried XS ICS 2.2, and followed some advices to make it work, but it didn't.
Click to expand...
Click to collapse
l0st.prophet said:
Changelog
Instructions for S-OFF Users
Simply flash XS-ICSvX.X.zip in your favourite recovery!
Instructions for manual flashing (HTCDev.com unlocked S-ON Users)
Thanks to MrToastbrot for instructions
Step 1: Download the XS-Kernel.zip, then open the Zip on your computer and extract the file mkbootimg.sh in "kernel"
Step 2: Open mkbootimg.sh in a texteditor like notepad++ or notepad, then edit the following in line 3:
Code:
output /tmp/newboot.img
to
Code:
output /sdcard/newboot.img
Step 3: Save your edited file and place it back in your zip, copy your modified zip to your phone-sdcard and install it in the recovery. Then reboot your phone and connect it to pc and take the newboot.img from the root of the sdcard.
Step 4: Now reboot your phone into bootloader and flash it via fastboot flash boot newboot.img
Step 5: Once you phone has booted, mount the system as r/w using something like ES file explorer or Root explorer, then type the following:
Code:
adb push bcm4329.ko /system/lib/modules
Set permissions to rw-r--r--, reboot and enjoy!
Sweep2Wake: Q&A
Q: How do I disable / enable the feature?
A: Two options
Change the value in the file /sys/android_touch/sweep2wake to either 0 for disabled, 1 for enabled and 2 for enabled with backlight. This will be reset upon rebooting.
If your ROM supports init.d scripts, then flash the zip to enable or disable, this will stick over a reboot.
Q: It keeps taking screenshots when I lock the screen!?
A: This is due to an incompatibility with this feature and the native screenshot in Sense. TO stop the screen shots, you need to edit your build.prop and change the property ro.htc.framework.screencapture to false, and then reboot.
Click to expand...
Click to collapse
there
Thanks!
The problem is that although i changed the mkbootimg.sh file, i cannot find the newboot.img.
jauffre said:
Thanks!
The problem is that although i changed the mkbootimg.sh file, i cannot find the newboot.img.
Click to expand...
Click to collapse
Try looking on your sdcard. Assuming you followed the guide correctly...
I followed the guide as it is, i modified the file as the guide says, and there's no newboot.img file on sdcard.
jauffre said:
I followed the guide as it is, i modified the file as the guide says, and there's no newboot.img file on sdcard.
Click to expand...
Click to collapse
Upload your modded zip file.
Nonverbose said:
Upload your modded zip file.
Click to expand...
Click to collapse
here it is
jauffre said:
here it is
Click to expand...
Click to collapse
Your modded zip is working on my phone but It's s-off. I found the newboot.img on sdcard root. Run your flashable zip again then go to tools>copy recovery.log to sdcard. It will be in your 4ext directory. Have a look and see if you can spot any errors. Upload here if you need any help.
Nonverbose said:
Your modded zip is working on my phone but It's s-off. I found the newboot.img on sdcard root. Run your flashable zip again then go to tools>copy recovery.log to sdcard. It will be in your 4ext directory. Have a look and see if you can spot any errors. Upload here if you need any help.
Click to expand...
Click to collapse
This is the log.
I don't understand it very much, but it seems that it copies the boot.img file, and then there are some errors.
could you upload the newboot.img file?
jauffre said:
This is the log.
I don't understand it very much, but it seems that it copies the boot.img file, and then there are some errors.
could you upload the newboot.img file?
Click to expand...
Click to collapse
I'm not on stock Rom, so my newboot.img will not work on your phone because it has a different ramdisk. You might want to try changing your recovery to 4ext touch.
Nonverbose said:
I'm not on stock Rom, so my newboot.img will not work on your phone because it has a different ramdisk. You might want to try changing your recovery to 4ext touch.
Click to expand...
Click to collapse
ok; i changed recovery to 4ext, and here is the log.
jauffre said:
ok; i changed recovery to 4ext, and here is the log.
Click to expand...
Click to collapse
Wow still got that BOARD_KERNEL_CMDLINE error happening. Try flashing tpbklakes unsecured boot.img and then update http://forum.xda-developers.com/attachment.php?attachmentid=1238549&d=1343964381
Nonverbose said:
Wow still got that BOARD_KERNEL_CMDLINE error happening. Try flashing tpbklakes unsecured boot.img and then update http://forum.xda-developers.com/attachment.php?attachmentid=1238549&d=1343964381
Click to expand...
Click to collapse
Thank you Nonverbose!! It worked!!

Need help. Cannot recovery after ICS update attemp.

Hi guys,
I tried to update my 2x from 20e to ICS today but it was unsuccessful (http://forum.xda-developers.com/showthread.php?t=1959545). I tried to do recovery from the CMW as recommended but it fails. Error/ mounting system. When I reboot its stuck on LG logo. I have tried do recovery using NVflash but not successful either (http://forum.xda-developers.com/showthread.php?t=1975274&page=5).
My previous setting: v20e. CWM 5.0.2.7.
Its been months since my last update for the 20e. I am not sure I am on the right driver. CMW version etc. and I have just use win7 from vista last two months. I am not sure if that affect too.
Any help are much appreciated. Thanks in advance.
Use nvflash to flash cm10 (old BL) and then recover nandoid
Sent from LG 2X using Tapatalk 3 Beta
Rayman96 said:
Use nvflash to flash cm10 (old BL) and then recover nandoid
Sent from LG 2X using Tapatalk 3 Beta
Click to expand...
Click to collapse
I have downloaded Homero2 nvflash. tried to follow the instruction. When I open the nvflash I dissapear as soon its open. Any step missing?
It should just open right? Sorry for my noob question, what is nandroid? I am on win7
ary820 said:
When I open the nvflash I dissapear as soon its open. Any step missing?
It should just open right?
Click to expand...
Click to collapse
Do you click on the batch file, or on the nvflash .exe file? You should use the batch file, not the .exe. Also, open command prompt first, and run the batch file from there -- you will see all the errors and other messages. (I should probably put this in my signature, as I already mentioned it probably half a dozen times in different topics...)
what is nandroid?
Click to expand...
Click to collapse
It's the backup that you create in CWM.
ary820 said:
Hi guys,
I tried to update my 2x from 20e to ICS today but it was unsuccessful (http://forum.xda-developers.com/showthread.php?t=1959545). I tried to do recovery from the CMW as recommended but it fails. Error/ mounting system. When I reboot its stuck on LG logo. I have tried do recovery using NVflash but not successful either (http://forum.xda-developers.com/showthread.php?t=1975274&page=5).
My previous setting: v20e. CWM 5.0.2.7.
Its been months since my last update for the 20e. I am not sure I am on the right driver. CMW version etc. and I have just use win7 from vista last two months. I am not sure if that affect too.
Any help are much appreciated. Thanks in advance.
Click to expand...
Click to collapse
reflash or flash it using nvflash!!
kt-Froggy said:
Do you click on the batch file, or on the nvflash .exe file? You should use the batch file, not the .exe. Also, open command prompt first, and run the batch file from there -- you will see all the errors and other messages. (I should probably put this in my signature, as I already mentioned it probably half a dozen times in different topics...)
It's the backup that you create in CWM.
Click to expand...
Click to collapse
Thanks for the feedback..how do I run batch file from command prompt?
Isit goto window-->cmd-->type: c:\nvflash\nvflash? I have created the "nvflash: folder in C.
Back to the source, I tried to follow as the instruction:
-Download the attached file and unzip it. The pack includes the APX driver (folder driver)
1.- Remove the battery to the phone.
2.- Press and hold Vol- and Vol+ and without releasing the 2 keys connect the USB cable to the PC
3.- Go to the NVFlash folder and run:
3a.- Windows should detect a new device APK, cancel the installation and install the driver which includes the ROM.
3b.- On Linux not ago missing driver.
4.- Browse to the folder where you unzipped the RAR and typing CMD in the breadcrumb bar, Linux opens the console.
- Type:
Windows
Code:
flash.bat
When I extract the file, the driver folder amd64 folder, i386 folder and nvidiausb file. I didn't see APX folder/file.
I am not clear abot step #3 open nvflash & run: (I am not sure what to run)
# How to go about in step 4? This is what I have tried. Go to the folder, type cmd, then type "flash.bat"
I see this:
c:\nvflasf>echo "flashendo lg optimus 2x" flashendo lg optimus 2x......
c:\nvflasf>nvflash.exe --bct star.bct --bct -- configfile android_fastboot_emm
c_ful.cfg - create -- bl.fastboot. bin -- go
Nvflash started
rcm version 0x20001
command send failed (usb write failed)
c:nvflash\ scho "listo!" listo!
Need help, I am sure where I do wrong.
Update: Somehow I made the recovery, same procedure as above. (Big thanks to Homero2 for the tools)
I wanna ask some question:
1-I have redo the ICS update (ICS extended by TonyP and Harsh). I encounter same problem as before (error 7). Any tips where might go wrong or what I should check before flashing.
2-Where I can flash from here (from Homero2 ROM)? GB only or I can flash to ICS or JB?
3-I try update the ROM manager via google play..but I think its only 5.2.0.7 version. Does higher version (v6) for ICS and do I need to do recovery before flashing via ROM manager?
Thanks in advance.

[Q] MiFlash difficulties

Hi guys
I need help about MiFlash!
In MiFlash I have the following problem message:
"The system can not find the specified file (0x"80070002: execute [my path] flash_all_except_storage.bat)"
What am I supposed to do? Maybe I'm a bit stupid, but I followed the guide step by step *thread* ...
Hope you guys can help me fastly, and have nice evening!
Prolution said:
Hi guys
I need help about MiFlash!
In MiFlash I have the following problem message:
"The system can not find the specified file (0x"80070002: execute [my path] flash_all_except_storage.bat)"
What am I supposed to do? Maybe I'm a bit stupid, but I followed the guide step by step *thread* ...
Hope you guys can help me fastly, and have nice evening!
Click to expand...
Click to collapse
Hi,
there are 3 methods to update the rom:
Method 1 - Phone's Updater app
Method 2 - From Recovery mode
Method 3 - From Fastboot mode
Method 1 & 2 use "update.zip" file.
Method 3 uses "update.tgz" file.
Using MiFlash should be method 3
Perhaps you can download the generic tgz file from:
http://en.miui.com/thread-14641-1-1.html
Or you can spend some time to look for a tgz file
that is specfic to your country and language.
Click Thanks if this helps.
Error description
Prolution said:
Hi guys
I need help about MiFlash!
In MiFlash I have the following problem message:
"The system can not find the specified file (0x"80070002: execute [my path] flash_all_except_storage.bat)"
What am I supposed to do? Maybe I'm a bit stupid, but I followed the guide step by step *thread* ...
Hope you guys can help me fastly, and have nice evening!
Click to expand...
Click to collapse
There are three batch (.bat) files in the .tar or .tgz file you chose for flashing :-
1)flash_all.bat
2)flash_all_except_storage.bat
3)flash_all_except_data_storage.bat
Therefore, the error simply meant that file no.2 (as above) is missing from the archive. So you can try the other two options or redownload the flashing archive.

Huawei GT3 ROM Help [NO OS]

Hi, I saw some threads saying some stuff about the Huawei GT3, but they didnt helped me so Im posting this thread.
I have a huge Problem with my phone.
(Im a Newbie btw)
I wanted to root my phone so I installed TWRP and rebooted (TWRP works btw), now it said "Encryption unsuccessfull"
I looked up on YouTube to look how to fix this and ended up deleting my complete OS
Now I downloaded the Firmware of my Phone and looked how to install it with TWRP and ADB.
When I try to install the "update.zip" File with TWRP it says something like this :
[2017-11-14 08:00:21 623] E:unknown command [errno]
dload_format_userdata,line=527: dload_format_userdata ok!
script aborted: update_huawei_pkg_from_ota_zip: update package from zip failed
update_huawei_pkg_from_ota_zip: update package from zip failed
Updater process ended with ERROR: 7
I:Legacy property environment disabled.
I:Install took 0 second(s).
Error installing zip file '/data/update.zip'
I also tried to delete the "assert" parts in the updater-script file but it also didnt work.
Now I heard about the "dload" Method but I have some questions about that
1. Where is the dload folder exactly
2. When I try to move the folder cointaining the "update.zip" to as expample root It says not enough space on device (which Is not true) or something like this :
Running command: 'mv "/data/update.zip" "/root"'
mv: write error: No space left on device
mv "/data/update.zip" "/root" process ended with ERROR: 1
Do I maybe have the wrong ROM or something?
Please help me . (or try )
Check the dload guide in my signature. You will know everything. Let me know if any questions or doubts, will help. Dont worry twrp error is normal as these zips shouldn't be flashed with twrp
shashank1320 said:
Check the dload guide in my signature. You will know everything. Let me know if any questions or doubts, will help. Dont worry twrp error is normal as these zips shouldn't be flashed with twrp
Click to expand...
Click to collapse
Hi! Thanks for your reply!
I bought myself a Micro-SD card and extraced the ZIP like in your tutorial, and its working!
Its installing right now!
But I wanted to say something..first thank you very much and second the Russian Website you provided gave me the wrong package, this was the right one :
skyneel.com/huawei-gt3-nougat
niclasdriver said:
Hi! Thanks for your reply!
I bought myself a Micro-SD card and extraced the ZIP like in your tutorial, and its working!
Its installing right now!
But I wanted to say something..first thank you very much and second the Russian Website you provided gave me the wrong package, this was the right one :
skyneel.com/huawei-gt3-nougat
Click to expand...
Click to collapse
There are many ways to get firmware but the best part it worked and successful. Enjoy buddy.

(GUIDE ) to create stock MOTO G5S PLUS twrp flashable firmware

My PC is in repair currently , so I am posting it to "guide" you guys to make a stock flashable Moto ROM . And yes I am typing it from my Moto phone.
TRY THIS PROCESS TO MAKE IT WORK!!!!
Prerequisites:- a) A Pc running "WINDOWS 10"
b) A Moto stock firmware zip, link below:- Indian firmware link :- https://firmware.center/firmware/Motorola/Moto G5s Plus/Stock/
c) A "ANDROID KITCHEN " link below :- https://forum.xda-developers.com/ch...-android-roms-editor-assayyedkitchen-t3410545
Now, as these prerequisites gathered
Steps:- 1) Extract Android kitchen . And go to that extracted Android kitchen folder , kitchen creates 2 folder's, one is "PLACE "folder and another is "OUTPUT" folder
2) Extract "Moto stock firmware zip " you will get some files. from there copy this files :-
(boot.img)(system.img_sparsechunk) and you must copy all these "system.img_sparsechunk.0" to" system.img_sparsechunk.6" to "PLACE FOLDER" inside kitchen created folder.
3) Open "ASSAYED.EXE" inside kitchen folder. And from there follow on screen instructions from kitchen
Try it and tell me
Does it require unlocked bootloader ?
mightyjai said:
Does it require unlocked bootloader ?
Click to expand...
Click to collapse
Definitely
tnx bro I'm definitely going to try it
I was successful in building it
but the device won't boot
Sri Datta said:
but the device won't boot
Click to expand...
Click to collapse
So it not working ,follow this process and grab system .img and post it online
So that we can directly flash it from twrp
Install terminal emulator
Type "su"
Then after type below command for system img
"dd if=/dev/block/mmcblk0p53 of=/sdcard/system.img"
Boot img ,I can grab it from moto firmware zip
So kindly help me
I don't think this will work because even restoring a TWRP backup of the 100% stock ROM doesn't work -- you'll always get a "ID: Bad Key" bootloader message.
ANDROID O said:
So it not working ,follow this process and grab system .img and post it online
So that we can directly flash it from twrp
Install terminal emulator
Type "su"
Then after type below command for system img
"dd if=/dev/block/mmcblk0p53 of=/sdcard/system.img"
Boot img ,I can grab it from moto firmware zip
So kindly help me
Click to expand...
Click to collapse
Sry for late reply bro but I have currently locked my bootloader so ask anyone else in g5s plus telegram grp

Categories

Resources