[ Guide ] (external link) Flashing Guide and Terminology for Pixel Devices - Google Pixel 4 Guides, News, & Discussion

I wrote a tutorial on my small blog site a while ago, and the couple people I've referenced to it have suggested I post it here for everyone. I recommend reading on the desktop, so you can see the table of contents to jump around. I describe flashing processes as well as some terminology commonly used.
Let me know if you think I should add anything or anything should be changed.

Related

Christ this ROM cooking thing is poorly documented

I'd like to start building my own ROMs.
I have now read two massive articles on how to do this. Two hours later I do not have a clue what either of them was on about.
Here is how I would expect the process to work. Roughly.
1. Get OS base files
2. Get device-specific kernel
3. Get device drivers
4. Get important apps and files to cook with ROM
5. Get less important apps and files to add in customisation
6. Set reg keys and provision XMLs
Then I'd expect at least one tutorial or page of notes which goes something like:
"First get a kitchen. Popular visual kitchens include Ervius Visual Kitchen and OSKitchen. This example talks about Ervius Visual Kitchen. There is a predefined hierarchy which you must use to build your ROM. The Tools folder is for [...], so you [...] to change the files there. To build a ROM for your device you need to first [...], the OS base files for a given OS can typically be found be searching for something like [...], and the kernel by searching for [...]. Don't forget to [...]. There is a comprehensive list of apps available as packages here on XDA at [...]. To add an app to your kitchen you'll need to either find or make a packaged version. More about packages here [...]. Packages [...] be made from CAB files. Here is a list of bullet points that you need to work through [...]. If you flash your ROM and the device fails to boot [...]."
As it is all the tutorials are assume you already know everything and skew off on more tangents than a kid with an electric spyrograph.
I get that some people have tried to write tutorials. I haven't found one yet though that's was worth the hour or more it took to read. All I've learned is that you can flash the radio separately to the OS and I'm not even sure about that. Does anyone know of some decent reading material?
at45 said:
I'd like to start building my own ROMs.
I have now read two massive articles on how to do this. Two hours later I do not have a clue what either of them was on about.
Here is how I would expect the process to work. Roughly.
1. Get OS base files
2. Get device-specific kernel
3. Get device drivers
4. Get important apps and files to cook with ROM
5. Get less important apps and files to add in customisation
6. Set reg keys and provision XMLs
Then I'd expect at least one tutorial or page of notes which goes something like:
"First get a kitchen. Popular visual kitchens include Ervius Visual Kitchen and OSKitchen. This example talks about Ervius Visual Kitchen. There is a predefined hierarchy which you must use to build your ROM. The Tools folder is for [...], so you [...] to change the files there. To build a ROM for your device you need to first [...], the OS base files for a given OS can typically be found be searching for something like [...], and the kernel by searching for [...]. Don't forget to [...]. There is a comprehensive list of apps available as packages here on XDA at [...]. To add an app to your kitchen you'll need to either find or make a packaged version. More about packages here [...]. Packages [...] be made from CAB files. Here is a list of bullet points that you need to work through [...]. If you flash your ROM and the device fails to boot [...]."
As it is all the tutorials are assume you already know everything and skew off on more tangents than a kid with an electric spyrograph.
I get that some people have tried to write tutorials. I haven't found one yet though that's was worth the hour or more it took to read. All I've learned is that you can flash the radio separately to the OS and I'm not even sure about that. Does anyone know of some decent reading material?
Click to expand...
Click to collapse
Brother,I agree with you 100%. I tried to follow their tutorials and I'm as lost as ever
did you read this thread?
http://forum.xda-developers.com/showthread.php?t=548130
Why not post your queries/concerns in the tutorial threads. No need to create a new thread for this
Thread closed

Pls Developers make a video Guide

Hi to all.Sry if is not the right section of the forum but i wonder if someone can make a full video guide about how to flash a custom android rom in X1.Step by step.For example how to make a partition in sd card and all the others.I ask that beacuse as me and i guess many others find the video guides more usefull than the writing guides.As for me i have read many guides for flashing a custom rom (not android) in my x1 but ONLY when i see the BIOVOLT full video guide about flashing only then i start flashing my x1.So pls to all devs in this android development section if its not so hard make a full video guide for flashing the custom android roms.Tnx in advance to all of you and keep up the good work.
xxSAKISxx said:
Hi to all.Sry if is not the right section of the forum but i wonder if someone can make a full video guide about how to flash a custom android rom in X1.Step by step.For example how to make a partition in sd card and all the others.I ask that beacuse as me and i guess many others find the video guides more usefull than the writing guides.As for me i have read many guides for flashing a custom rom (not android) in my x1 but ONLY when i see the BIOVOLT full video guide about flashing only then i start flashing my x1.So pls to all devs in this android development section if its not so hard make a full video guide for flashing the custom android roms.Tnx in advance to all of you and keep up the good work.
Click to expand...
Click to collapse
First of all, if you use a SD rom you don't flash anything, you just add files to the SD card. So, there are no risk to try any SD rom (in fat32, ext2 or ext3 using CWM).
Second, you already have threads for newbies: http://forum.xda-developers.com/showthread.php?t=1021658. There you find videos to know how to split a SD in different partitions.
The rest is follow the guides steps. You have to read a bit because is important to know what is happening in your mobile.
On the other hand, we write guides because it is the XDA-developers treasure. If we upload a video in youtube, Google stays with the exclusive. Therefore, we like to say thanks to XDA making our tutorials. It's more useful that developers work with their stuff and the rest should try to help making videos or whatever.
Best.
Now I'm not testing sd card ROMs, but nand ones... If you want to flash NAND ROM (instable for the moment) you can watch the 2 videos on youtube with links here http://forum.xda-developers.com/showpost.php?p=18978624&postcount=1.
PLEASE READ DESCRIPTION AND DETAILS FIRST!!!
I never do videos for 2 reasons:
1)My upload speed is capped at 50 kb/s
2)Users must read,if them can't follow a simple written tutorial,they won't be able to run my things.

How do I figure out block/partition for the sdcard?

I'm trying to recover deleted files so I'm following this guide here..http://forum.xda-developers.com/showthread.php?t=1994705 I know it's for a different phone but it seems like it should work still.
So I have all the files installed and ready, but on the first step where I need the block/partition, I followed the guide he linked to but it's not working for me, most likely because it's not written for my phone and the file structure is different.
The example he has for his phone is... /dev/block/mmcblk0p12 How can I obtain that for my sdcard?
Hope this makes sense..
urmystlkal said:
I'm trying to recover deleted files so I'm following this guide here..http://forum.xda-developers.com/showthread.php?t=1994705 I know it's for a different phone but it seems like it should work still.
So I have all the files installed and ready, but on the first step where I need the block/partition, I followed the guide he linked to but it's not working for me, most likely because it's not written for my phone and the file structure is different.
The example he has for his phone is... /dev/block/mmcblk0p12 How can I obtain that for my sdcard?
Hope this makes sense..
Click to expand...
Click to collapse
The HTC One's sdcard is block mmcblk0p37 I think. I am going off of this list I found of a EMMC readout from some thread. Sorry don't have a direct link to the thread but here is the EMMC readout:
https://dl.dropboxusercontent.com/u/36946918/HTC_ONE_Partition_Info.xls
It may require that you specify:
/dev/block/mmcblk0p37/sdcard

at the end of my rope. ( 11extsd2internalsd, unlockable bootloader, safestrap ?)

Hi everybody,
hopefully someone here can answer a few questions for me.
I have a Samsung Galaxy 3 mini.
android version 4.4.2
kernel version 3.4.0-1670137
baseband version g730aucubng4
my service provider is AT&T
what I want to do is pretty simple, or so I thought.
I read this article ( https://www.androidpit.com/galaxy-s3-note2-memory-bump) about swapping your phone's internal and external storage so the thing doesn't get so full of apps etc. it runs like crap.
I thought "hey, I haven't rooted my phone yet for fear of loosing stuff, but it's old and slow and if it's that easy, why not"
I rooted it using kingo-root, but decided to use o-nandroid backup to create a backup before I did anything. I fallowed these instructions (http://forum.xda-developers.com/showthread.php?t=1620255/) but during the process of flashing the zip file I got a failure message and managed to wipe my memory loosing everything that wasn't on the external sd card.
anyway, to make a long story short, after 4 days of messing with different apps and trying, unsuccessfully, to do various tasks (mainly dealing with creating backups. using twrp, cwm, titanium backup) I think I've discovered the problem.
contrary to what I had read, my android device's boot-loader was not unlocked, or in fact unlockable.
I finally managed to create a backup using Safestrap. but now to my question.
with my bootloader locked, and working through Safestrap, is it possible to use something like the 11extsd2internalsd file from that first article to swap my two hard drives? or am I stuck, since I can't install new kirnels?
--now, someone is bound to say "hey, you should have searched xyz, there is a thread there about this exact thing". I thought I'd respond to that now and save them the trouble. I have spent the past 5 hours searching, googleing, and reading articles about this. so far, I have learned a lot, but I'm tired and quite frustrated with the whole endeavor.
so I thought I would try asking the experts if it's even possible to do what I originally wanted to do, or if I should just delete all these apps, unroot my phone and go back to deleting my pictures and text messages every other day to save space.
Thanks for having the patiance to read through my tale of woes, hopefully someone will be able to help me out and answer my question.
JM
You can swap internal storage with external SD by editing fstab.<device_name>.
Look, here is this file for my phone (yours will be little different) https://github.com/TeamCanjica/andr...dina/blob/cm-11.0/rootdir/fstab.samsungcodina
Just swap in places this code "voldmanaged=sdcard0"/"voldmanaged=sdcard1"
This file you can edit only after unpacking and repacking boot.img (you need to get ramdisk filesystem, more info and how to http://forum.xda-developers.com/showthread.php?t=2036528).
For flashing boot.img (kernel) after making changes, your device must be rooted (minimum this) or have custom recovery which will let you flash zip package.
As I know, last step is to edit from /system/etc/permissions/platform.xml one line (more info http://trendblog.net/fix-kitkat-sd-card-write-restriction/ )

Need Help fixing many errors in Android Studio

Hi
So I want to learn how to make Android apps in Android Atudio with Udacity's Android Fundamentals course. I have no knowledge or experience in app-development and very very veeeeerry basic programming knowledge. The problem is though that there are many error messages everywhere and I already searched on the internet a few times but have newer gotten a working answer to the problems I'm having. So I thought i could ask the people at the xda-forum for help
I am going to post the problems one after another (posting the next problem after the one before is fixed), because maybe with one answer multiple problems get fixed.
Also I completely reinstalled Android Studio just to be sure I didn't create any more problems myself.
The first problem is that there is an error message saying:
failed to find Build Tools revision and then the Version specified in the build.gradle
I know that I need to change the SDK versions in the build.gradle file but I cant find where you can look up the Build Tools Version currently installed. By the way I want to compile for android Marshmallow hoping that it also works for Android Lollipop if that helps in any way
I am thanking in advance to everyone trying to help me
Hey!
I'm also a new learner to android app development
Just wanted to know if the udacity tutorial videos are helpful?
Do they explain well?
ChahatGupta said:
Hey!
I'm also a new learner to android app development
Just wanted to know if the udacity tutorial videos are helpful?
Do they explain well?
Click to expand...
Click to collapse
I did't really come that Far in the Tutorial (because of obvios reasons) but I Can say they are really good. Easy to understand and straight forward.
DasMaennel said:
I did't really come that Far in the Tutorial (because of obvios reasons) but I Can say they are really good. Easy to understand and straight forward.
Click to expand...
Click to collapse
Thanks
I followed a lot tutorials but none of them worked out
Will try this one
Did you check on the Sdk manager whether you have the needed build tools installed?
I don't comprehend what the correct name is for s highlight this way, yet I will simply depict it.
I am utilizing android studio and I included some java classes from an alternate venture. Presently it says
"missing bundle articulation: whatever". Be that as it may, there is not alternative in the mistake popup to simply naturally include the missing bundle articulation. I know it appears to be lethargic to not sort it, but rather I get a kick out of the chance to do things rapidly.
At the point when there is a mistake this way, is there a route for android studio to naturally included the required lines of code like obscuration would?
For Windows/Linux, you can go to File -> Settings -> Editor -> General -> Auto Import -> Java and make the following changes:
change "Insert imports on paste" dropdown value to "All"
check "Add unambiguous imports on the fly" option
On a Mac, do the same thing in Android Studio -> Preferences
That way, as you type, or when you copy and paste, many imports will be added automatically. Those that aren't are ambiguous; put the cursor on the class, press alt+enter and select which version of the class you meant.

Categories

Resources