[GUIDE]How to port other rom - Sony Xperia P, U, Sola, Go

Hello
Maybe look like on our devices has a few little roms and for someone to port other rom from ther devices
Special for beginner developed
MUST HAVE APPLICATION
Notepad++ (DOWNLOAD)
Winrar (DOWNLOAD)
Notes:
I will be referring to the following:
BASE = The GB/ICS/JB ROM made for your Device only.
PORTED = The ROM you are trying to port from.
BASE and PORTED must be the same CPU. e.g. ARMv7, ARMv6, ARMv5
You must have the same settings in Notepad++ like mine.
Ignore the procedure, if the file or folder is not present!
BASE & PORTED should be the same Android version.
If you are porting a custom GB ROM, then use a GB BASE, the same goes for ICS and JB
Make sure both BASE & PORTED are deodexed (It's hard to port an odexed ROM)
Final ROM is inside PORTED Folder
(Don't get confused! This is a Major change from the previous Guide because this method is a lot faster and easier)
PORTED FOLDER
Please remove this folder on system folder except:
App
Framework
Media( it folder have sound system and bootanimation)
Fonts
BASE FOLDER
PLEASE REMOVE THIS FOLDER on system
App
Fonts
Framework
Media
WHAT TO DO NOW?
Copy all folder on ported folder to base folder..
Now go to the etc folder in base.zip and the port.zip now see if the base.zip has any extra files other than those in the port.zip
if you find any put them in your etc folder of port.zip
Open /system/build.prop
Copy & Replace the following:
ro.modversion
ro.cm.version
ro.config.ringtone
ro.config.notification_sound
ro.config.alarm_alert
ro.config.sms_received_sound
ro.config.sms_delivered_sound
persist.sys.themeId
persist.sys.themePackageName
MIUI
Add & Make sure the following values are like this:
ro.build.id=MIUI
ro.build.display.id=MIUI x.x.x
ro.build.version.incremental=x.x.x
ro.config.ringtone=MI.ogg
LEWA OS
Add & Make sure the following values are like this:
ro.build.display.id=LeWa_ROM_DeviceNickname_xx.xx.xx
ro.lewa.version=LeWa_ROM_DeviceNickname_xx.xx.xx
ro.lewa.device=DeviceNickname
ro.lewa.swapper.part_path=PORTED's_Value
ro.lewa.swapper.flash_swappiness=PORTED's_Value
ro.lewa.swapper.sd_swappiness=PORTED's_Value
ro.error.receiver.system.apps=com.lewa.fc
ro.error.receiver.default=com.lewa.fc
Make sure the following is for your Device:
rild.libpath=
rild.libargs=
BASE FOLDER
Open /system/build.prop
Highlight from: ro.build.tags=
to: # ADDITIONAL_BUILD_PROPERTIES
{
"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"
}
Copy & Replace that highlighted part to: PORTED's build.prop's highlighted part
Copy everything from: # ADDITIONAL_BUILD_PROPERTIES
To: the end of the file
Paste it to PORTED's build.prop

UPADE SCRIPT
BASE FOLDER
Move the following, to PORTED FOLDER:
COPY AND REPLACE IT
META-INF/com/google/android/update-binary
META-INF/com/android/metadata
META-INF/com/android/otacert
Now open folder in fornt rom folder you can see META-INF folder
META-INF/com/google/android/updater-script
Replace the following values, to PORTED FOLDER:
mount("xxxxxx");
format("xxxxxx");
retouch_binary
The installation of the kernel (Something like: assert(package_extract_file("boot.img",)
Take note of the added set_perms & set_perm_recursives that PORTED FOLDER added. Then replace all set_perm and set_perm_recursive from BASE FOLDER to PORTED FOLDER. Put back in the noted set_perms & set_perm_recursive you wrote down, to PORTED FOLDER updater-script
FOR ICS
If the updater-script in PORTED FOLDER is modded to have tweaks & addons do the set_perms procedure above
Now use BASE's entire META-INF Folder. Copy it to PORTED
MIUI
Add value to ported folder
set_perm(0, 0, 06755, "/system/xbin/invoke-as");
set_perm(0, 0, 0755, "/system/lib/liblbesec.so");

reserved

Reserved only

Related

[Q]Problems building a custom framework-res.apk

{
"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"
}
I managed to make a few changes to the framework-res.apk a custom rom (to display the buttons on the screen with a resolution pesonalized) i could decompile the file, but now I can not compile it again ... I'm using Apktool ..
Any idea´s?
Change apktool b framework-res.apk to apktool b framework-res
framework-res is your folder name,not framework-res.apk
neectron said:
Change apktool b framework-res.apk to apktool b framework-res
framework-res is your folder name,not framework-res.apk
Click to expand...
Click to collapse
A new error I do not want to give up...
Something to do with languages?
Check out this thread much of problem with apktool are solved there http://forum.xda-developers.com/showthread.php?t=1755243
neectron said:
Something to do with languages?
Check out this thread much of problem with apktool are solved there http://forum.xda-developers.com/showthread.php?t=1755243
Click to expand...
Click to collapse
I replace aapt.exe and i get a new problem
My original Framework-res.apk = 21mb
The new Framework-res.apk = 15mb
I have no idea what happens now
It is compressed that's all.
You can try ziping all the file in build folder with 0 compression.
neectron said:
It is compressed that's all.
You can try ziping all the file in build folder with 0 compression.
Click to expand...
Click to collapse
and how I can do that?
or I can use that file directly without problem?
In build folder,you will have apk folder.
This is how do it to with winrar
Select those files in apk folder -> Right Click -> Add to archive
Archive format zip
Compression method -> store
Ok.
Then rename extension of that archive to .apk.
Copy Meta-Inf and AndroidManifest.xml from orignal apk to new one.
neectron said:
In build folder,you will have apk folder.
This is how do it to with winrar
Select those files in apk folder -> Right Click -> Add to archive
Archive format zip
Compression method -> store
Ok.
Then rename extension of that archive to .apk.
Copy Meta-Inf and AndroidManifest.xml from orignal apk to new one.
Click to expand...
Click to collapse
How do you copy Meta-Inf and AndroidManifest.xml from orignal apk to new one?

[TUTORIAL] How to Decompile and Recompile ICS .Apk Files][Easy ONE]

This is an Easy Tutorial, How to Decompile .apk and Recompile .apk Files​If u like this Tutorial, Hit THANKS Button​CREDITS
Memnoc - For Gud Ideas.
Xavierjohn22 - the amazing author of AutoApktool go Here, Hit thanks to Him Too.
Sandy7-For Motivation.
Requirements
Java (last version)
JDK (last version)
JDR (last version, usually included in JDK or Java)
Auto_Apktool 2.0.0 (DOWNLOAD THIS ONE NOT OTHERS)
HOW TO DO
NOTE: before start, select Apktool version with option 21, YOU MUST CHOOSE 1.4.1 version
1) Download and simply unpack Auto_ApkTool
2)Click on "autoapktoolmain.bat", prompt will open
{
"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)put the apk you want to EDIT, in "_INPUT_APK"
4) Nw u Should Choose "option 6" for 'decompiling .apk
5) when option 6 is being selected, drag the apk from _INPUT_APK folder into the windows prompt and click enter
6) A Note window will appear, and will show IF the decompiling process has been done properly. Once you close that window, you will see the decompiled folder in _INPUT_APK folder
7) do your edits (xml, smali, or png, WHATEVER)
8) recompile with option 7 (NOTE: this time you MUST drag all the FOLDER, NOT the apk)
9) Once recompiling finished, u will Get a Dcompiled NOTE window that Shows your apk is sucessfully Compiled, Close that Window, Once open the decompiled folder, go to "dist" folder, and here you got your edited apk
10) NOW this is the Last step, since u cannot Sign System app, u will have to Copy the META-INF foldrer frm the Orginal apk to the edited apk, for more Info See the "Screen"
11) Rename the apk if Needed, and push it.
Reserved for tutorial on editing, decompiling/recompiling .jar files :thumbup:
For video tutorial!:thumbup:
FAQ's​Why can't we use Apktool???
Well, you can, but it's more difficult, that's it.
Why do you say "must use 1.4.1 apktool version"??
The reason why is that since 1.4.2 version, apktool generate java code while recompiling process is going on, and this lead to errors that 9/10 makes decompile process fail

[TUT] compiling and decompiling for noobs

Hey Guys.....
I faced some problems and issues while compiling and decompiling apks.
I am using stock ics 4.1.b.0,587. So to compile you have to use following tools.
Files Required:
framework-res.apk
SemcGenericUxpRes.apk
SystemUI.apk
Note that you type correctly in command prompt window.
Softwares Required:
ThemeTool
Link:
http://forum.xda-developers.com/showthread.php?t=1374394
Thanx to XperienceD for this awesome guide.
Follow this guide for java path etc.
MediaFire Link:
http://www.mediafire.com/?tkjxk94yklm2rdu
Apk Manager r5
MediFire Link:
http://www.mediafire.com/?708sbbr0b7d5pbr
Now step by steps..follow these
Place apk in themetool folder.
Open command prompt from theme tool folder...Click Shift and right mouse click.
View attachment 1629889
Now ,
Enter commands
apktool if framework-res.apk
apktool d framework-res.apk
apktool if SemcGenericUxpRes.apk
apktool d SemcGenericUxpRes.apk
apktool if SystemUI.apk
apktool d SystemUi.apk
{
"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"
}
Our files are added to system.
Now we will use apkmanager to decompile and edit apks and then again compile/build apks.
Open Script window from apk manager.
Enter 22
Select your current project i.e 1 (for framework-res.apk)
Enter 9
It will decompile Framework-res.apk
repeat above for other two apks.
Now we have to edit our decompiled files that are present in project folder.
Select any folder i.e systemui.apk
then edit as you like.
Now See that your current project is set to the one you are modding.
Enter 11 to build apk
Enter y & y....
After that a keep folder will be created by apkmanager ....delete files that you have replaced(i.e original files are shown ,delete them .dont delete any xml file you edited,only delete icons,images etc & also delete resources.arsc from keep folder)
Press Enter.
All done.
Your new apk will be named as UnsignedSystemUI.apk..Note that dont sign or anything else for system apks. otherwise you will get problem i.e bootloop or other.
Copy your apk to sdcard and move to system/app....set permissions.
Reboot & enjoy.
For framework files,if you moded,do adbpush.
Hit thanx if i helped you.

[BOOTANIMATIONS][ROOT]Collection Of Bootanimations [1080x1920] ;)

ORIGINAL THREAD --> HERE <--​
DOWNLOADS​
--------------------------------------------------------------------------------------------------------------------------------------------------------------
Knight Rider
IMPORTANT : This is NOT created by me. I just resized the images and edited the animation to be able to play on Full HD devices!
ALL CREDITS FOR IDEA, RESOURCES AND DEVELOPMENT GO TO @OptimusADDiCT
Installation:
1. Enable Custom Boot Animations
2. Download K.I.T.T. Car & Voice Box (Android Version).zip
3. Unzip it
4. Copy/Paste bootanimation.zip into system/media folder with Root Browser (or similar tool) and set permissions to r-w-r-r
5. [OPTIONAL] Copy/Paste PowerOn.ogg into system/media/audio/ui overwriting the original file (make backup first)
:laugh: Enjoy your Knight Rider styled Galaxy S5
--------------------------------------------------------------------------------------------------------------------------------------------------------------
Supernatural
IMPORTANT : This is NOT created by me. I just resized the images and edited the animation to be able to play on Full HD devices!
ALL CREDITS FOR IDEA, RESOURCES AND DEVELOPMENT GO TO @climhz
Installation:
1. Enable Custom Boot Animations
2. Download Supernatural Season 10 + Theme.zip
3. Unzip it
4. Copy/Paste bootanimation.zip into system/media folder with Root Browser (or similar tool) and set permissions to r-w-r-r
5. [OPTIONAL] Copy/Paste PowerOn.ogg into system/media/audio/ui overwriting the original file (make backup first)
:laugh: Enjoy your Supernatural styled Galaxy S5
--------------------------------------------------------------------------------------------------------------------------------------------------------------
Monster Energy
IMPORTANT : This is NOT created by me. I just resized the images and edited the animation to be able to play on Full HD devices!
ALL CREDITS FOR IDEA, RESOURCES AND DEVELOPMENT GO TO @ogdobber
Installation:
1. Enable Custom Boot Animations
2. Download Monster Energy.zip & Monster Energy.z01 in the same place
3. Open the .zip file and extract it
4. Copy/Paste bootanimation.zip into system/media folder with Root Browser (or similar tool) and set permissions to r-w-r-r
5. [OPTIONAL] Copy/Paste PowerOn.ogg into system/media/audio/ui overwriting the original file (make backup first)
:laugh: Enjoy your Monster Energy styled Galaxy S5
--------------------------------------------------------------------------------------------------------------------------------------------------------------​
GIFs
Knight Rider
{
"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"
}
Supernatural
Monster Energy

[TOOL] DragonOS Project [v3.0] | Fast and EASY | jars/apks/dex/xml/source extract

DragonOS Tool Project​VERY LITE AND EASY TO USE​
{
"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"
}
Error recompile window
Error not found file
​
FEATURES=================
>> Easy to use, great for those who want to venture into this area or for more convenience
v1.0:
>> Automatic processes
>> Self-signed apks, you are free to edit the manifest
>> Autofill in general with the original add-ons of the apk or jar (once compiled it is ready for use)
>> Import in real time of the framework with which you want to work
>> Decompilation/Compilation of the dex using the reliable backsmali (to always ensure the correct compilation in versions such as Oreo/Pie)
v1.5
>> Added language selector (English/Spanish)
>> 3 selectable options to treat apks
(Normal Decompile, Decompile only of dex, Explore the contents of the apk with classy)
>> Semi-encoding for individual xml (more is useful to see and examine them but not to use them)
v2.0
>> Themes Support (Tool customization) (10 themes)
>> Logger v1.0 (logs reco/decompile)
>> Visual corrections and improvement in the structuring
>> Added error warning window in case of failures during recompilation
v3.0
>> Design improvements
>> Added two more options for the apks
(Direct extraction of Source Code in Gradle Source project format / Exploration and manual extraction of it)
>> Added warning window if no file is found
>> Updated backsmali/smali
>> Multiple text color mod Added
>> Greater stability
>> Last but not least, very LITE
INSTRUCTIONS================
*If you want to use a specific framework-res for the compilation, just place it in the folder "framework"
(or if it's the first time you compile something)
I think this one, but as I mention it, it is necessary to have Java
>>>It is more advisable to run it in administrator mode<<<
1. Put the apk/jar/dex or xml (it will only be semi translated, will appear as SemiDecoded-xml-OnlyForView)
2. Open the Decompile and wait for decompiling...
3. In case it is an apk select the option you prefer
4. Make the changes you want
5. Open the Recompile and wait for recompiling...
(can check the logs in case of error)
6. Modified apk or jar will be inside the "FINISH_WORK" folder with the "base" name
(if it's an apk, it's self-signed, you are free to edit the manifest )
(If it is a jar it will also be ready for use, there is no need to put anything else )
7. In case it is a dex it will be inside the "COMPILED" folder
8. After using it, it is recommended to clean the work area, for that only open Clean
DOWNLOADS================
DragonOS Tool v3.0 Stable
CREDITS================
@Misma13(for development tool )
@iBotPeaches(for apktool)
@JesusFreke(for backsmali/smali)
@ apio (for sign)
@ borisf (for classyShark)
@ google (for axml)
@ skylot (for jadx)
@ Igor Pavlov (for 7zip)
If I forget someone please report
Now stable

Categories

Resources