Can anyone help me in porting? - Xperia Z2 Q&A, Help & Troubleshooting

I'm currently porting Miui 8 for the Z2 based on stock rom. I'm at boot image editing now. Can anyone help me in that and to complete the port and test? "Save the changes and open init.cm.rc (In case of CyanogenMod) or init.pa.rc (In case of AOSPA). Add # before the import line like this-" what the name of the file in stock?

Related

[Q] custom backup list - cyanogenmod 9/10

Hi folks!
Since when did the Custom Backup List feature disappear from CyanogenMod? It's not working with either CM 9 or 10.
I've created this file: /system/etc/custom_backup_list.txt
I've put a line like this in the file: app/[MY_APP]
It's really not working, the app is gone after a flash. This is not that much of a biggie for me since I usually replace all my custom SystemApps using updater-script in flashable zips, but I just wonder if someone knows if this feature is unsupported in CM9+ or if it's just an issue? I doubt it's an unresolved issue when the stable builds are already out.
Is this feature gone or what? Thanks!
try this
get one addon.d from /system/addon.d
make a copy, change the number to some random number
open it
at this part, edit this
Code:
list_files() {
cat <<EOF
[B]etc/hosts[/B]
EOF
}
change n' add stuff, replacing the file in bold. examples
Code:
list_files() {
cat <<EOF
[B]etc/init.d/s03anything
app/Apollo.apk
media/bootanimation.zip[/B]
EOF
}
then, save it, and next update it will be restored.
btw, if you are editing in windoze, make sure you edited on notepad++. even your custom_backup_list.txt must be edited there.
good luck
Thank you marcellocord, you did it again! Just wanted to say that you can name the file to whatever you want to, with the .sh extension.

Can Anyone Help me Add this to kernel?

Hello guys, can anyone here help me add this line to kernel at init.rc?
Code:
service shelld /system/xbin/shelld
class main
I was trying to port MIUI to my device but sadly launcher and Themes FC because that line is not included at init.rc
Here's the kernel: http://www.mediafire.com/?m88pan88ew8bons
And If you guys can? Can you also include this?
http://www.mediafire.com/?fsn3dl3fez2r4u5
THANKS!!!

Can Anyone Help me Add this to kernel?

Hello guys, can anyone here help me add this line to kernel at init.rc?
Code:
service shelld /system/xbin/shelld
class main
I was trying to port MIUI to my device but sadly launcher and Themes FC because that line is not included at init.rc
Here's the kernel: http://www.mediafire.com/?m88pan88ew8bons
And If you guys can? Can you also include this?
http://www.mediafire.com/?fsn3dl3fez2r4u5
THANKS!!!

[GUIDE] How to port roms for Samsung Wave&Wave II

NOTE: For this guide you need Base Rom and Port Rom must be same version. You should port roms from Samsung Galaxy S i9000. Some roms gives error (unfortunately... phone has stopped) it stems from kernel. if you have this error you should try different kernels.
Requirements
* Notepad++
* 7zip
Let's start porting!
*Every changes Base to Port...
- Create two folders named Base and Port . Base rom for our wave rom. Port rom for Galaxy S rom. Extract roms these folders.
- In port rom delete Meta-inf folder and copy paste Meta-inf from base rom.
- Now open system folders for both roms. From base rom copy replace addon.d files to port rom.
- In base rom bin/adb, app-process, atrace, dalvikvm, mediaserver, rild, sensorservice, setmodel.sh, vold, wpa_cli, wpa_suplicant ; copy replace these files to port rom bin folder.
- In base rom etc folder copy replace all folders and files (without>> dhcpcd, permissions, ppp, security) to port rom etc folder.
- In base rom etc/permissions copy replace all files (without>> latform.xml, handheld_core_hardware.xml) to port rom etc/permissions
- In base rom lib folder copy-merge-replace (drm, egl, hw, soundfx, ssl) to port lib. and again from base in lib copy replace (libaudioeffect_jni, libaudioflinger, libaudioutils, libmocha_ril.so, libreference-ril.so, libril.so, libril-client.so, librilutils.so, libsensorservice, libsrs-client.so) to port rom lib
- In base rom framework/framework.res.apk/res/xml-eri.xml and storage.list.xml copy replace to port rom framework/framework.res.apk/res/xml
- Delete in port rom "usr and vendor" folders and from base rom copy paste "usr and vendor" folders.
- From base rom in xbin copy replace (su) to port rom in xbin
- open build.prop files in port and base rom
edit base rom's build.prop... copy replace these lines from port rom build.prop (ro.build.id= - ro.build.tags= ro.cm.version= ve ro.mod.version= / ro.config.ringtone=, ro.config.notification=, ro.config.alarm=) to base rom's build.prop and save-exit..
- Delete build.prop in port rom and paste build.prop from base rom
- It's finished now open 7z and compress Port rom folder (Meta-inf and system)
Done! You can enjoy your own Port Rom ​
And porting can begin
Thanks for this guide
+ for guide
Can i port any CM7 rom (kernel 2.3.62)?
ghoslslender124 said:
+ for guide
Can i port any CM7 rom (kernel 2.3.62)?
Click to expand...
Click to collapse
Yeah, if you find/compile a corresponding kernel.
Sadly there is no "functionning" GB kernel for wave. (One exist but nothing work on it)
an idea
since wave doesnt have brightness control ambient sensor we dont have automatic brigtness but some apps let you adjest brightness using camera
so we can use automatic brightness using our front or back camera of phone
here is one application i have tested and work good or somebody here give better than that
https://play.google.com/store/apps/details?id=com.vito.lux&hl=en
black0000 said:
an idea
since wave doesnt have brightness control ambient sensor we dont have automatic brigtness but some apps let you adjest brightness using camera
so we can use automatic brightness using our front or back camera of phone
here is one application i have tested and work good or somebody here give better than that
https://play.google.com/store/apps/details?id=com.vito.lux&hl=en
Click to expand...
Click to collapse
Maybe it could be a "battery drain" solution... I suppose...
Hi Blue59 I appreciate what you mention in this post and I find very interesting.
Is a problem that commented on the following link and I asked in several forums but no one helps me.
http://forum.xda-developers.com/samsung-tizen/general/help-to-developers-t2820149
I have install Master ICS ROM Docs and am happy with this rom and do not want to use another rom.
But the camera works at 50%, If can take pictures, but you can not record videos.
I want to do port the camera folders and options from another ROM where if can record videos and add them to the ICS ROM Docs Master
Can I change folders Docs Master ICS ROM that have to do with the camera ........and replace them with another ROM where I SI works for video recording as well get to record videos too with ICS ROM Master Docs ?
I mean doing what you said in initiation post
Thanks for this guide
Blue59 said:
NOTE: For this guide you need Base Rom and Port Rom must be same version. You should port roms from Samsung Galaxy S i9000. Some roms gives error (unfortunately... phone has stopped) it stems from kernel. if you have this error you should try different kernels.
Requirements
* Notepad++
* 7zip
Let's start porting!
*Every changes Base to Port...
- Create two folders named Base and Port . Base rom for our wave rom. Port rom for Galaxy S rom. Extract roms these folders.
- In port rom delete Meta-inf folder and copy paste Meta-inf from base rom.
- Now open system folders for both roms. From base rom copy replace addon.d files to port rom.
- In base rom bin/adb, app-process, atrace, dalvikvm, mediaserver, rild, sensorservice, setmodel.sh, vold, wpa_cli, wpa_suplicant ; copy replace these files to port rom bin folder.
- In base rom etc folder copy replace all folders and files (without>> dhcpcd, permissions, ppp, security) to port rom etc folder.
- In base rom etc/permissions copy replace all files (without>> latform.xml, handheld_core_hardware.xml) to port rom etc/permissions
- In base rom lib folder copy-merge-replace (drm, egl, hw, soundfx, ssl) to port lib. and again from base in lib copy replace (libaudioeffect_jni, libaudioflinger, libaudioutils, libmocha_ril.so, libreference-ril.so, libril.so, libril-client.so, librilutils.so, libsensorservice, libsrs-client.so) to port rom lib
- In base rom framework/framework.res.apk/res/xml-eri.xml and storage.list.xml copy replace to port rom framework/framework.res.apk/res/xml
- Delete in port rom "usr and vendor" folders and from base rom copy paste "usr and vendor" folders.
- From base rom in xbin copy replace (su) to port rom in xbin
- open build.prop files in port and base rom
edit base rom's build.prop... copy replace these lines from port rom build.prop (ro.build.id= - ro.build.tags= ro.cm.version= ve ro.mod.version= / ro.config.ringtone=, ro.config.notification=, ro.config.alarm=) to base rom's build.prop and save-exit..
- Delete build.prop in port rom and paste build.prop from base rom
- It's finished now open 7z and compress Port rom folder (Meta-inf and system)
Done! You can enjoy your own Port Rom ​
Click to expand...
Click to collapse
what is the base rom l need to use
and can l use this guide to port cm 14??????????(from s1)
no you can't use cm14 because we don't have N rom
Blue59 said:
no you can't use cm14 because we don't have N rom
Click to expand...
Click to collapse
Only need update kernel and build kernel
thinhx2 said:
Only need update kernel and build kernel
Click to expand...
Click to collapse
Yes it will Come for Wave

AOSP modifying / compiling keyboard LatinIME

Hello all! I have downloaded and successfully build the AOSP for marshmallow (android-6.0.1_r79). Than I made some changes to the stockkeyboard (regarding to my other topic, but not relevant here). The file which I modified was this here:
packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/LatinIME.java
I compiled the code and it was successfull too. But than I realize I face some problems.
I mounted the system.img and get into the path: /system/app/LatinIME/
I decompiled the app (jadx, apktool) to check if the modification there is available and here is the problem
This APK does not contain any Java sources?! Its just xml regarding to the layout. When I replace my old Stockkeyboard with this one, it is still perfectly working? So I got not clue whats going on.
Question regarding to this topic are:
How can I make a modification to the stock keyboard LatinIME
Building this new AOSP image with the new keyboard
And extracting the new keyboardj(APK) out of this image to install it on my device (Root permissions are of course available)
What I have tryed:
Modyfing the following Java file: packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/LatinIME.java
Compiling the complete project (make -j4 and just the keyboard: make -j LatinIME)
Replacing my own keyboard with the modified stock keyboard
My steps are as described not working. The keyboard appears and its working but the modification seems to be missing. Also by decompiling it, there are no Java sources within it.
I am relly glad for any help to this topic! Thank you!

Categories

Resources