boot loop after flashing partitions from stock firmware


Question

I have Arch linux installed and have installed android-tools(so fastboot and adb commands are available).



Because I had a problem with kingroot I needed to flash the phone to stock.



I had stock firmware downloaded and extracted it to see the sin files inside it.



I flashed partitions using these commands :



fastboot flash system system.sin
fastboot flash userdata userdata.sin
fastboot flash cache cache.sin
fastboot reboot


Now the first two succeeded but the third one failed saying partition not found(guess I don't have cache partition for some reason).



After that I got stuck in a boot loop.



Normally sony Xperia P boots with Sony word and then to Xperia word(which blinks) and then to android but it's stuck in the Sony word.



I tried powering off the phone and flashing the boot partition using this command :



fastboot flash boot kernel.sin


rebooted, the same problem.



I tried to flash FOTAKernel but I don't seem to have this partition.



I tried also fastboot reboot-bootloader and then reboot but the same.



I've read the boot-loop wiki, both Safe mode and recovery mode are unreachable.



I would try to flash the other .sin files But I don't know to what partition they belong and google didn't help me to get this information :3 .



So what to do ?



Update



I forgot to mention that I tried to flash .ftf file using FlashTool 0.9.19.10, this tool didn't work, I click the lightning bolt, I chose the Flash mode, I choose the .ftf file(after putting it in ~/.flashtool/firmwares), after clicking ok it tells me to plug my device in fastboot mode.



I click Volumne Up while plugging the device and I see the blue(somewhat purple) Led light on.



I wait and wait and even when Flashtool said "Device connected in fastboot mode" it doesn't do anything but telling me to plug my device :3 .



Device



Sony xperia P runing android 4.0.4, bootloader is unlocked but the phone is not rooted nor has custom recovery(so no CWM or TWRP here).


Answer

I have found the answer.



FlashTool worked after using Flashmode, it wasn't working because of my mistake, I was plugging the device in fastboot mode instead of flashmode.



After I flashed it it works great.


Topics


2D Engines   3D Engines   9-Patch   Action Bars   Activities   ADB   Advertisements   Analytics   Animations   ANR   AOP   API   APK   APT   Architecture   Audio   Autocomplete   Background Processing   Backward Compatibility   Badges   Bar Codes   Benchmarking   Bitmaps   Bluetooth   Blur Effects   Bread Crumbs   BRMS   Browser Extensions   Build Systems   Bundles   Buttons   Caching   Camera   Canvas   Cards   Carousels   Changelog   Checkboxes   Cloud Storages   Color Analysis   Color Pickers   Colors   Comet/Push   Compass Sensors   Conferences   Content Providers   Continuous Integration   Crash Reports   Credit Cards   Credits   CSV   Curl/Flip   Data Binding   Data Generators   Data Structures   Database   Database Browsers   Date &   Debugging   Decompilers   Deep Links   Dependency Injections   Design   Design Patterns   Dex   Dialogs   Distributed Computing   Distribution Platforms   Download Managers   Drawables   Emoji   Emulators   EPUB   Equalizers &   Event Buses   Exception Handling   Face Recognition   Feedback &   File System   File/Directory   Fingerprint   Floating Action   Fonts   Forms   Fragments   FRP   FSM   Functional Programming   Gamepads   Games   Geocaching   Gestures   GIF   Glow Pad   Gradle Plugins   Graphics   Grid Views   Highlighting   HTML   HTTP Mocking   Icons   IDE   IDE Plugins   Image Croppers   Image Loaders   Image Pickers   Image Processing   Image Views   Instrumentation   Intents   Job Schedulers   JSON   Keyboard   Kotlin   Layouts   Library Demos   List View   List Views   Localization   Location   Lock Patterns   Logcat   Logging   Mails   Maps   Markdown   Mathematics   Maven Plugins   MBaaS   Media   Menus   Messaging   MIME   Mobile Web   Native Image   Navigation   NDK   Networking   NFC   NoSQL   Number Pickers   OAuth   Object Mocking   OCR Engines   OpenGL   ORM   Other Pickers   Parallax List   Parcelables   Particle Systems   Password Inputs   PDF   Permissions   Physics Engines   Platforms   Plugin Frameworks   Preferences   Progress Indicators   ProGuard   Properties   Protocol Buffer   Pull To   Purchases   Push/Pull   QR Codes   Quick Return   Radio Buttons   Range Bars   Ratings   Recycler Views   Resources   REST   Ripple Effects   RSS   Screenshots   Scripting   Scroll Views   SDK   Search Inputs   Security   Sensors   Services   Showcase Views   Signatures   Sliding Panels   Snackbars   SOAP   Social Networks   Spannable   Spinners   Splash Screens   SSH   Static Analysis   Status Bars   Styling   SVG   System   Tags   Task Managers   TDD &   Template Engines   Testing   Testing Tools   Text Formatting   Text Views   Text Watchers   Text-to   Toasts   Toolkits For   Tools   Tooltips   Trainings   TV   Twitter   Updaters   USB   User Stories   Utils   Validation   Video   View Adapters   View Pagers   Views   Watch Face   Wearable Data   Wearables   Weather   Web Tools   Web Views   WebRTC   WebSockets   Wheel Widgets   Wi-Fi   Widgets   Windows   Wizards   XML   XMPP   YAML   ZIP Codes