[Q] Some question about making a custom rom - Galaxy 3 Android Development

Hi
I hope someone can help me.
I am trying to make my own custom rom. I used this way.
- flashed xxJPM
- de odexed all apps and framework
- added stock android lockscreen
- removed some useless system apps
- then changed theme
all this works great. but I had problems with adding some other apps to /system/apps
1. I copied the *.apk file to /system/app
2. I extract the lib files into /system/lib
But apps like quickpic or the gingerbread keyboard are not working. When I just install them android create a data folder. What do I have to do with those database files in this folder? Can someone show me the right way for installing own system apps?
Then I do a factory data reset in the settings. After this nothing was working. I had no lockscreen. Even all options by pressing the shutdown button except "shutdown" disappeared. Does anyone know why this happened?
I am new to this. So it would be great if you can help me.

cal.mar said:
Hi
I hope someone can help me.
I am trying to make my own custom rom. I used this way.
- flashed xxJPM
- de odexed all apps and framework
- added stock android lockscreen
- removed some useless system apps
- then changed theme
all this works great. but I had problems with adding some other apps to /system/apps
1. I copied the *.apk file to /system/app
2. I extract the lib files into /system/lib
But apps like quickpic or the gingerbread keyboard are not working. When I just install them android create a data folder. What do I have to do with those database files in this folder? Can someone show me the right way for installing own system apps?
Then I do a factory data reset in the settings. After this nothing was working. I had no lockscreen. Even all options by pressing the shutdown button except "shutdown" disappeared. Does anyone know why this happened?
I am new to this. So it would be great if you can help me.
Click to expand...
Click to collapse
QuickPic/Gingerbread: Nope. Open the .apk and copy the lib files to /system/lib
About the rest. i have no idea since I don't know your internal files.
THIS IS DEVELOPMENT. DO NOT CLOSE.
It helps people with force close problems.

The Dark Lestat said:
QuickPic/Gingerbread: Nope. Open the .apk and copy the lib files to /system/lib
About the rest. i have no idea since I don't know your internal files.
THIS IS DEVELOPMENT. DO NOT CLOSE.
It helps people with force close problems.
Click to expand...
Click to collapse
dude he already added the lib files..so this is an un-usual problem
"1. I copied the *.apk file to /system/app
2. I extract the lib files into /system/lib"

cal.mar said:
Hi
I hope someone can help me.
I am trying to make my own custom rom. I used this way.
- flashed xxJPM
- de odexed all apps and framework
- added stock android lockscreen
- removed some useless system apps
- then changed theme
all this works great. but I had problems with adding some other apps to /system/apps
1. I copied the *.apk file to /system/app
2. I extract the lib files into /system/lib
But apps like quickpic or the gingerbread keyboard are not working. When I just install them android create a data folder. What do I have to do with those database files in this folder? Can someone show me the right way for installing own system apps?
Then I do a factory data reset in the settings. After this nothing was working. I had no lockscreen. Even all options by pressing the shutdown button except "shutdown" disappeared. Does anyone know why this happened?
I am new to this. So it would be great if you can help me.
Click to expand...
Click to collapse
After making your own dump your not suppose to factory reset, only after flashing your own dump your ready to factory reset, but if you factory reset while making a dump/removing and adding files, you will soft brick and loose your work..
Did you change the framework and tw framework?
Adding back some framework files via adb might help..
Or you will have to start over again..

I forgot to add that you should check your permissions on the lib file
Sent from my Alpha 17 1.2 GHz ACID Lestatious 2.0 BUILD 1.8 Galaxy 3 FROYO

rudolf895 said:
dude he already added the lib files..so this is an un-usual problem
"1. I copied the *.apk file to /system/app
2. I extract the lib files into /system/lib"
Click to expand...
Click to collapse
After copying lib files give this command over adb..
chmod 777 /system/lib/filename.so
InDroid 4.0 (Build 6)

cal.mar said:
Hi
I hope someone can help me.
I am trying to make my own custom rom. I used this way.
- flashed xxJPM
- de odexed all apps and framework
- added stock android lockscreen
- removed some useless system apps
- then changed theme
all this works great. but I had problems with adding some other apps to /system/apps
1. I copied the *.apk file to /system/app
2. I extract the lib files into /system/lib
But apps like quickpic or the gingerbread keyboard are not working. When I just install them android create a data folder. What do I have to do with those database files in this folder? Can someone show me the right way for installing own system apps?
Then I do a factory data reset in the settings. After this nothing was working. I had no lockscreen. Even all options by pressing the shutdown button except "shutdown" disappeared. Does anyone know why this happened?
I am new to this. So it would be great if you can help me.
Click to expand...
Click to collapse
As for the lockscreen and power menu, i was having same problem few days back. Searched all over, no solution. In the end I had to start it all over again. I suggest u do the same.
InDroid 4.0 (Build 6)

arunmcops said:
As for the lockscreen and power menu, i was having same problem few days back. Searched all over, no solution. In the end I had to start it all over again. I suggest u do the same.
InDroid 4.0 (Build 6)
Click to expand...
Click to collapse
yeah I think you are right. Thank you all for your help. I'll try it again. And I hope that it will work.

HI ok. I've tryed it again.
But know when I want to flash my new factoryfs.rfs the Download crashed.
I don't know where the problem could be.​

Do I have to use this command?
dd if=/dev/block/stl6 of=/sdcard/factoryfs.rfs
Click to expand...
Click to collapse
Can someone explain this command to me?

still third time flashing chrashes.
when Odin is flashing the factoryfs.rfs it stops at a specific level. odin get 99% of CPU and I have to interupped it. What is my fault? DId anyone have same problems? I try it to make like all the tutorials says.
Edit: Odin says before flashing "Big Partition size!" What do I have to do to make it smaller?
Edit: I get this:
# dd if=/dev/block/stl6 of=/sdcard/factoryfs.rfs
dd if=/dev/block/stl6 of=/sdcard/factoryfs.rfs
435200+0 records in
435200+0 records out
222822400 bytes transferred in 115.950 secs (1921711 bytes/sec)
Click to expand...
Click to collapse

Found the problem why odin crashes. I copied the factoryfs.rfs file with 7zip into the .tar package but I had to use TotalCommander.
But still I have no lockscreen after flashing and the options in the power menu are not visible.

Related

[EB13/EC05][Stock][Configurable Zip] System Apps Remove N Restore

:[Disclaimer]:
As always, performing a "nandroid backup" from Clockwork Mod is recommended as a precaution.
Use this at your own risk!
:[Requirements]:
An Epic 4G with Clockwork Mod recovery installed (preferably 3.0.0.6).
A text editor to edit the config file.
Note:: The EB13 files are from deodexed EB13, and are intended to be used on an EB13 based Rom.
Note:: The EC05 files are from deodexed EC05, and are intended to be used on an EC05 based Rom.
:[Description]:
This is a configurable zip that has the ability to selectively remove and restore system apps.
This is a follow up to this proof of concept.
:[Features]:
Selectively remove and / or restore any of the 66 system apps listed below.
User configurable by editing a config file that is placed onto the SD card.
[Download EB13 zip package here.]
[Download EC05 zip package here.]
:[Usage]:
This download files are not flash-able zips! (The flash-able zip is inside the downloads)
#1:: Extract the 2 files that are in the zip package onto your computer.
#2:: Copy the "system_apps.zip" onto your SD card.
#3:: Make the desired changes to the "system_apps.cfg" file, changing "no" to "yes" as desired.
For example, to remove qik, change
remove.system.qik=no​to
remove.system.qik=yes​Note:: If you don't make any changes to the "system_apps.cfg" file, the zip will not do anything other than output text!
Note:: Make sure your file is saved with unix line endings (Windows users do not create any new lines and you should be OK).
#4:: Copy the "system_apps.cfg" onto the root of your SD card ("/sdcard/system_apps.cfg").
#5:: Use Clockwork Mod recovery to install the "system_apps.zip".
:[Included apps]:
AppWidgetPicker was taken from Bonsai 3.0.1, but originated here.
LbsTestMode was taken from here, credit goes to BThomas22x it seems.
The rest of the EB13 files came from Dameon87's Stock Deodexed EB13 Rom.
The rest of the EC05 files came from Bonsai4All_EC05_UnTouched.
I have confirmed with k0nane that none of these files should effect the CIQ removal.
(With the possible exception of EC05's SprintID "W_Installer.apk" file, but who in their right mind is going to install that?)
Code:
amazonmp3.apk
AppWidgetPicker.apk
Asphalt5_DEMO_ANMP_Samsung_D700_Sprint_ML.apk
AxT9IME.apk
Brightness.apk
Browser.apk
BuddiesNow.apk
ClockPackage.apk
cm-android.apk
Divx.apk
Dlna.apk
Email.apk
FactoryTest.apk
FBAndroid-1.4.1.apk
FreeHDGameDemos.apk
Gallery3D.apk
GenieWidget.apk
HiddenMenu.apk
HTMLViewer.apk
install_flash_player.apk
KeyBoardSlideUpCounter.apk
LatinIME.apk
LatinImeTutorial.apk
Launcher2.apk
LbsTestMode.apk
lcdtest.apk
LiveWallpapers.apk
LiveWallpapersPicker.apk
MediaHubV102_Epic4G.apk
Memo.apk
Mms.apk
MusicPlayer.apk
MyFiles.apk
nascar09-prod-release.apk
Protips.apk
qik.apk
SamsungApps.apk
SamsungWidget_CalendarClock.apk
SamsungWidget_FeedAndUpdate.apk
SamsungWidget_ProgramMonitor.apk
SamsungWidget_StockClock.apk
SamsungWidget_WeatherClock.apk
SelfTestMode.apk
SetupWizard.apk
sfl-prod-release.apk
SN28-1100-sprint-signed.apk
SnsAccount.apk
SnsProvider.apk
SoundPlayer.apk
Sprint_App_Updater.apk
SprintAndroidExtension.apk
SprintTV.apk
SprintTVWidget.apk
SprintZone.apk
Swype.apk
TAT_LiveWallpaper_Dandelion.apk
TAT_LiveWallpaper_Luminescence.apk
TAT_LiveWallpaper_OceanWaves.apk
thinkdroid.apk
TouchWiz30Launcher.apk
TouchWizCalculator.apk
TouchWizCalendar.apk
Vending.apk
VideoPlayer.apk
W_Installer.apk ([COLOR="Blue"]EC05 only[/COLOR])
YouTube.apk
:[Q & A]:
What happens when the system_apps.cfg file is missing or in the wrong location?
Click to expand...
Click to collapse
Clockwork Mod recovery will give a status 7 error.
What happens if I change "no" to something besides "yes or "no" in the config file?
Click to expand...
Click to collapse
The script checks for "yes", so if the value is anything else, the item will be skipped (just stick with "yes" and "no").
What happens if I did not use unix line endings?
Click to expand...
Click to collapse
Clockwork Mod recovery will give an error. Probably status 7, but possibly status 6.
Why does it take so long to boot after running this?
Click to expand...
Click to collapse
Because it clears out the cache and dalvik-cache, causing it to be rebuilt.
:[Testing]:
This has been tested and confirmed working on an Epic 4G running Bonsai 4.0.0.
:[ChangeLog]:
Code:
Update for EC05. (03-22-2011)
Initial release. (03-08-2011)
=]
great idea, thank you.
Sent from my SPH-D700 using Tapatalk
neat! thanks
also what i do is use sdx stock app removal. when there is actually a stock app that i like i backup that app. then when i flash new roms with all bloat removed i can restore the stock apps of my choosing. the biggest one i do this with is the terrible bubble mms app and put back the eclair mms.
Updated for EC05, check OP.
=]
nubecoder said:
Updated for EC05, check OP.
=]
Click to expand...
Click to collapse
Awesome bro Thank you
will it matter to flash the whole file as it is..without checking for any existing apks?? ie if i already have qik foreg.. and i dont change that to no... should it be still ok?
I want to try this, was just going to wait for the next SFR version so I can do it all at one time during my 'scheduled maintenance window'. (Reading that makes me feel that I've spent too many years in IT.) Just 2 questions:
1. There are a bunch of apps that I have removed before, like mms.apk/browser.apk, using sdx stock app removal tool and it causes FCs. Is this different if removed from CWM? If so, do we know which of these sys apps are required?
2. If I am not installing particular .apks, can they be removed from the zip to make it smaller?
App .apk brief description
To the OP,
Can you put a brief description on what each .apk is for the ones that are not known by reading them? For example, I have no idea if I still need to install FactoryTest.apk, cm-android.apk, HiddenMenu.apk, SN28-1100-sprint-signed.apk...? For some, I have no idea what it is and it would help if you can put a brief description on what the apk is?
There is a brief description of all sys apps in a thread called all app safe to remove. Search for it or page back to it in the dev section.
Sent from my SPH-D700 using XDA App
hardrock121 said:
will it matter to flash the whole file as it is..without checking for any existing apks?? ie if i already have qik foreg.. and i dont change that to no... should it be still ok?
Click to expand...
Click to collapse
As the OP states, all values are defaulted to no, so flashing as is will only print text to the screen and waste your time.
BiggDavin said:
Just 2 questions:
1. There are a bunch of apps that I have removed before, like mms.apk/browser.apk, using sdx stock app removal tool and it causes FCs. Is this different if removed from CWM? If so, do we know which of these sys apps are required?
2. If I am not installing particular .apks, can they be removed from the zip to make it smaller?
Click to expand...
Click to collapse
#1 - I did my best to only include things that could be safely removed, but YMMV.
There's a link below to a thread of apps and what they do, if they've been removed safely, etc...
#2 - Yes, removing the apks from the zip is fine if you are only doing removals.
rcastel2 said:
To the OP,
Can you put a brief description on what each .apk is for the ones that are not known by reading them?
Click to expand...
Click to collapse
jbadboy2007 said:
There is a brief description of all sys apps in a thread called all app safe to remove.
Click to expand...
Click to collapse
This is the thread being referred to.
=]
ok i want to add some missing apps, what do i need to type? im confused bc it says remove, and if i leave some as no ie if i have qik and want to keep it will i need to change the script? all i want is TV, genie weather widget, and nav so sorry if im sounding noobish but its just confusing a lil
evilsock said:
ok i want to add some missing apps, what do i need to type? im confused bc it says remove, and if i leave some as no ie if i have qik and want to keep it will i need to change the script? all i want is TV, genie weather widget, and nav so sorry if im sounding noobish but its just confusing a lil
Click to expand...
Click to collapse
Skip past all the remove lines in the cfg file and there are some install lines... change those to yes
Sent from my SPH-D700 using XDA App
Ok i moved the config file from the folder to the SD card and i cannot find the zip file anywhere and i dont see a Status 7 error either, can anyone help?
latindor17 said:
Ok i moved the config file from the folder to the SD card and i cannot find the zip file anywhere and i dont see a Status 7 error either, can anyone help?
Click to expand...
Click to collapse
Ok i think i know what might be wrong, i think i converted the config file to notepad in order to edit the files i wanted but now i dont know how to convert it back. Please help
Edit: i just realize that i couldve done this all on root explorer but now i cant because the config file has converted to notepad and i cant change it back!!!!
latindor17 said:
Ok i think i know what might be wrong, i think i converted the config file to notepad in order to edit the files i wanted but now i dont know how to convert it back. Please help
Edit: i just realize that i couldve done this all on root explorer but now i cant because the config file has converted to notepad and i cant change it back!!!!
Click to expand...
Click to collapse
Does the config file have an extension, like "config.txt" - if so, then you can use root explorer on your phone and rename the file without the extenstion or the appropriate extension - you can't change the file extension to none on the PC because the PC needs the extension.
I am not stating this because I have the same problem as you, but I had another instance that was simuliar needing a certain file structure, so this is what worked for me - and maybe work for you.
Good Luck - hope this helps!

Vrtheme issue - Onle for developers/expert discusion.

So here I have noticed issue with using vrtheme on new 4.3 MJ2 and seeking some Linux expert help to solve it.
work around
Simply using vrtheme causing FCs, SO i have changes the destination to see outcome file structure.
-All changes we have applied through vrtheme applied to output file. but icons get changed to android icon.
-Now if you move that output file to other destination using root explorer then also it regenerates original icons and we can use as final apk ready to push to System/app
-Again if we giving same command through recovery, it doesn't works
-Also copying with terminal emulator with cat command, it regenerates original structure. again same command using recovery fails to do it.
May be recovery issue??
here is log cat along with used vrtheme script.
dr.ketan said:
So here I have noticed issue with using vrtheme on new 4.3 MJ2 and seeking some Linux expert help to solve it.
work around
Simply using vrtheme causing FCs, SO i have changes the destination to see outcome file structure.
-All changes we have applied through vrtheme applied to output file. but icons get changed to android icon.
-Now if you move that output file to other destination using root explorer then also it regenerates original icons and we can use as final apk ready to push to System/app
-Again if we giving same command through recovery, it doesn't works
-Also copying with terminal emulator with cat command, it regenerates original structure. again same command using recovery fails to do it.
May be recovery issue??
Click to expand...
Click to collapse
doc, am not a linux expert, but i tried to inject your black aosp vrtheme files into the apk and flash them from cwm, it kills the wifi and have to wipe and reflash the whole rom. so, perhaps you want to put more attention to it.
waiting for your aosp theme and thanks a lot.
Wifi issue will be solved by reflashing recovery
I can show you temporary solution.
Just change path of pushing files to other from System/app then 1. you want get FCc bcoz it is not in system/app
2. Now from where you have defined destination from there move to some pther place with root explorer, now you will be able to see icons, once icons are correct you can pust to system/app.
dr.ketan said:
Wifi issue will be solved by reflashing recovery
I can show you temporary solution.
Just change path of pushing files to other from System/app then 1. you want get FCc bcoz it is not in system/app
2. Now from where you have defined destination from there move to some pther place with root explorer, now you will be able to see icons, once icons are correct you can pust to system/app.
Click to expand...
Click to collapse
sorry doc, but i cannot understand what you mean.
do you mean i should change the flashing path (in the script)? or do you mean i should copy the apks manually into the system/app by root explorer? if you mean the later, i can do, but the first one i don't.
i can see all the icons, just the wifi would not start after i flashed the modified apks through cwm flash. what do you mean by reflashing recovery?
Ok making clear again who want to use vrtheme
1.Change path in vrtheme installertheme.sh from system/app to other (e.g. just system)
2.Now when you flash vrtheme, you won't see any changes in system bcoz all apps will be in system and not in System/app.
3. Manually cut all app with root explorer from system to SDcard
4. Now you can see correct icons of all appl after moving to sdcard.
5.Now move those apk to system/app OR System/framework, where it should be.
6.Enjoy all the changes now in system
7.By this process you will lose wifi and you have to reflash recovery to get it back.
PS : For AOSP for MJ2 I have made it with same method above and uploading, Once uploaded will post to MJ2 thread, you have to simply flash that file. without doing anything above.
dr.ketan said:
Ok making clear again who want to use vrtheme
1.Change path in vrtheme installertheme.sh from system/app to other (e.g. just system)
2.Now when you flash vrtheme, you won't see any changes in system bcoz all apps will be in system and not in System/app.
3. Manually cut all app with root explorer from system to SDcard
4. Now you can see correct icons of all appl after moving to sdcard.
5.Now move those apk to system/app OR System/framework, where it should be.
6.Enjoy all the changes now in system
7.By this process you will lose wifi and you have to reflash recovery to get it back.
PS : For AOSP for MJ2 I have made it with same method above and uploading, Once uploaded will post to MJ2 thread, you have to simply flash that file. without doing anything above.
Click to expand...
Click to collapse
will just wait for your file then. dont want to mess my setup again. spent too much time experimenting with it today. lucky it's saturday in my country...
ok then wait 10 min.
EDIT : AOSP theme for MJ2 ROM Posted to MJ2 thread post#2
Doc.
I just came across thia issue thread discussion.
Surprised to see vrtheme issues.
I think it is worth trying morphing instead of vrtheme.
If it fails, then it is not a recovery issue..m
It might be android 4.3 security files that I noticed in /system...
I will dig in further and check...
Thx for sharing this discussion thread. :thumbup:
wesamothman said:
Doc.
I just came across thia issue thread discussion.
Surprised to see vrtheme issues.
I think it is worth trying morphing instead of vrtheme.
If it fails, then it is not a recovery issue..m
It might be android 4.3 security files that I noticed in /system...
I will dig in further and check...
Thx for sharing this discussion thread. :thumbup:
Click to expand...
Click to collapse
Already fixed that (at least in my MJ2 rom)
vrtheme works perfect on framework-res.apk and secsettings.apk

Modyfying existing ROM

Hi,
I decided to try to make a modification of an existing ROM which would suit me better right after flashing. Nothing large, only adding some apps and stuff. But Ive got a couple of questions:
1) Ive read some apps cant run from /system partition. Looks like that (at least) one of mine is one of them - it FCs when in /system/apps or /system/priv-apps. Is there any workaround to make this work? I dont want to lose it when doing factory reset (or to flash the ROM again after every factory reset).
2) I wanted to add langunages (http://forum.xda-developers.com/showthread.php?t=2602704) but according to forums those files are odexed. How could I deodex them to make them run on an deodexed ROM?
3) I want to include the faux kernel but Im not sure if simply copying those files into the ROM would do ... in the other cases it went ok but Im not sure about the kernel - Im afraid I could break something.
4) Can I also use the ROM file to store other files? I mean - if I put files into the ROM in /data/media/0/ would it simply appear in my home directory or could this break anything - by which I mean to destroy my existing files?
Thanks for any leads!
michalurban said:
Hi,
I decided to try to make a modification of an existing ROM which would suit me better right after flashing. Nothing large, only adding some apps and stuff. But Ive got a couple of questions:
1) Ive read some apps cant run from /system partition. Looks like that (at least) one of mine is one of them - it FCs when in /system/apps or /system/priv-apps. Is there any workaround to make this work? I dont want to lose it when doing factory reset (or to flash the ROM again after every factory reset).
2) I wanted to add langunages (http://forum.xda-developers.com/showthread.php?t=2602704) but according to forums those files are odexed. How could I deodex them to make them run on an deodexed ROM?
3) I want to include the faux kernel but Im not sure if simply copying those files into the ROM would do ... in the other cases it went ok but Im not sure about the kernel - Im afraid I could break something.
4) Can I also use the ROM file to store other files? I mean - if I put files into the ROM in /data/media/0/ would it simply appear in my home directory or could this break anything - by which I mean to destroy my existing files?
Thanks for any leads!
Click to expand...
Click to collapse
1) What is the app? on system/app they should work fine since kitkat update, i think
2) To deodex i used a kitchen i got out of foro nexus (cant get the link atm) that only worked on linux. If you want to translate things in your rom, i think it can be done without deodexing, im not sure.
3) Copy paste should work fine but if you take a look at faux's meta inf, see what's there, merge it with your rom's meta inf. But it should work with cp
4) You can use the meta inf to link files to storage like your sdcard, yes. However, if you try to put a wallpaper somewhere inside the rom it wont show up
anerik said:
1) What is the app? on system/app they should work fine since kitkat update, i think
2) To deodex i used a kitchen i got out of foro nexus (cant get the link atm) that only worked on linux. If you want to translate things in your rom, i think it can be done without deodexing, im not sure.
3) Copy paste should work fine but if you take a look at faux's meta inf, see what's there, merge it with your rom's meta inf. But it should work with cp
4) You can use the meta inf to link files to storage like your sdcard, yes. However, if you try to put a wallpaper somewhere inside the rom it wont show up
Click to expand...
Click to collapse
Thanks very much for your reply! Now:
1) The app is a game, Traffic Racer. When I flash a ROM where this app has been put in /data/app it runs fine. In /system/app or /system/priv-app it FCs. As you say it should work Ill try to do it again - but I tried it twice in /system/priv-app and once in /system/app already so I dont believe it would work. BTW I use APKs from update.zip created by TiBa if it could be relevant.
2) Linux is not a problem so Ill try to find the link here.
3) Ill try only to copy the files first before messing with meta files.
4) I only want to store some apps config backup files (for Apex launcher and Agenda widget mainly).
michalurban said:
Thanks very much for your reply! Now:
1) The app is a game, Traffic Racer. When I flash a ROM where this app has been put in /data/app it runs fine. In /system/app or /system/priv-app it FCs. As you say it should work Ill try to do it again - but I tried it twice in /system/priv-app and once in /system/app already so I dont believe it would work. BTW I use APKs from update.zip created by TiBa if it could be relevant.
2) Linux is not a problem so Ill try to find the link here.
3) Ill try only to copy the files first before messing with meta files.
4) I only want to store some apps config backup files (for Apex launcher and Agenda widget mainly).
Click to expand...
Click to collapse
Oh, games could cause issues, yes. Better leave it on data app. Messing with meta inf is totally easier than it sounds anyways and could help fixing any possible bugs, you gotta try it. Backup files i dont think they'll work on the rom but you can store them into storage/emulated/legacy which is the storage, though you could do this any other easier way
anerik said:
Oh, games could cause issues, yes. Better leave it on data app. Messing with meta inf is totally easier than it sounds anyways and could help fixing any possible bugs, you gotta try it. Backup files i dont think they'll work on the rom but you can store them into storage/emulated/legacy which is the storage, though you could do this any other easier way
Click to expand...
Click to collapse
Thanks again! Ive got one more question about including the faux kernel. The updater-script is supposed to run this command during the installation in CWM:
Code:
package_extract_file("boot.img", "/dev/block/platform/msm_sdcc.1/by-name/boot");
... which I dont know how to implement. If I would only copy all files it would overwrite the original boot.img (Kitkat+ 1.1 original anyway) - which im not sure is the same. So Im not sure if it wont screw something up ...
Or is this extraction the same as copying it? Does the "/dev/block/platform/msm_sdcc.1/by-name/boot" just mean - "its a block device on first SD, partition name boot"?
michalurban said:
Thanks again! Ive got one more question about including the faux kernel. The updater-script is supposed to run this command during the installation in CWM:
Code:
package_extract_file("boot.img", "/dev/block/platform/msm_sdcc.1/by-name/boot");
... which I dont know how to implement. If I would only copy all files it would overwrite the original boot.img (Kitkat+ 1.1 original anyway) - which im not sure is the same. So Im not sure if it wont screw something up ...
Or is this extraction the same as copying it? Does the "/dev/block/platform/msm_sdcc.1/by-name/boot" just mean - "its a block device on first SD, partition name boot"?
Click to expand...
Click to collapse
Put faux's boot.img on the rom first, then on updater script go to the line that refers to extracting boot.img (should be like the last one) and replace that with the command on faux's updater script. That means it will extract it in that directory, nothing else. Be sure to copy modules aswell and set the perms
Q&A threads should be created in the Q&A forum... not the Development forum.
Thread moved.
One more question - is there a special way how to pack the ZIP file? Cause I unpacked a ROM, added some apks, packed it but it didnt work (no error, just ended at "opening rom" or what the CWM message is) ... but when I modified existing ZIP it went fine ...

Need some help regarding Odex Files and corresponding apks

Hi guys, I got this problem in my odexed stock rom, I have this problem in sysui, gallery and calculator.
I downloaded 4.2.2 style sysUI, pushed it in the respective folder by replacing with its stock sysUI.
I rebooted my core, the statusbar was gone, so I deleted 'SystemUI.odex" file, then rebooted it worked!
In the same way, I replaced stock gallery with note3 gallery, and stock SecCalculator2
Luckily note3 gallery worked, but it doesn't support Sim2 so I can't change Sim2's wallpaper or make it same as Sim1's.
In the statusbar, I can't see most notification cuz its completely transparent, and also its a bit laggy.
Calculator never worked
So I wanted to replace these with stock, when I pushed it in system>apps> I noticed that there were no .odex files for .apks
I replaced them with their stock odex files, none of 'em worked, I guess cuz of the odex thing, so I again deleted odex files and rebooted, nothing worked..
Now, I need some developer's advice, plz don't tell me to "Flash Stock Rom via Odin" I can't do it...
Is there any other left way to make them work plz I need help..
You are saying 'in my deodexed rom' and then you said 'deleted. Odex file for systemUI'
How could this be possible?
If you have .Odex files in system/apps folder then your ROM is not odexed.
Deodex it first using xUltimate tool
And yup Don't forget to set permissions = rw--r--r--
M_E_G_A_T_R_O_N said:
You are saying 'in my deodexed rom' and then you said 'deleted. Odex file for systemUI'
How could this be possible?
If you have .Odex files in system/apps folder then your ROM is not odexed.
Deodex it first using xUltimate tool
And yup Don't forget to set permissions = rw--r--r--
Click to expand...
Click to collapse
Sorry bro, huge typo. I meant in my odex rom and yes I set the proper permissions...
Well, it seems to me that you have messed up your phone alot.. Flashing stock rom via odin would've been the correct solution to this problem. It's not as difficult as you think, and you're capable of doing it. Follow thecoreguy's tutorial for that.
CoreGuy said:
Sorry bro, huge typo. I meant in my odex rom and yes I set the proper permissions...
Click to expand...
Click to collapse
Then you have done wrong.
Not every apk can be used by just deleting the .odex file.
You need to deodex the apps in system/app and system/framework folder then you can easily replace the apks.
1.First restore back to any working backup.
2.Download xUltimate Tool.
3. Run it.
4. Then just run commands with options 1,2,3,4 (You just need to type 1 and then enter, then 2 and then enter, so on upto option 4.)
5. Exit after executing 4th option.
6. Download ADB tool(don't download the complete package, you will get a 1-2MB ADB.exe from the from itself) - Use it to push the deodexed files made from xultimate.
---------- Post added at 09:47 AM ---------- Previous post was at 09:22 AM ----------
If you find it difficult then Better you upload the apks with their respective odex file. I will deodex those apks
M_E_G_A_T_R_O_N said:
Not every apk can be used by just deleting the .odex file.
Click to expand...
Click to collapse
Not even the stock apks? I want to replace the ported/modded apks with the stock ones..
No you can't because almost all stock apks have their respective odex files and every odex file contains resources that are needed to run those apks. Also there exists dependencies in system/framework folder. So just deleting odex file won't work all time.
Finally got it! Special thanks to megatron
Solution if u r screwed in my situation: don't panic, what I found why I cant do it was bcuz my phone has dat "newest" update of samsung ota. So b4 u take someone's apk and odex file always cross check this(image)
And then you are gud to go!!! U wont even need to restart it'll come automatically(my dad has same phone and same updated version as mine so I copied everything needed frm his phone to mine) @AnsleyC at times, the answer should not be "flash stock rom via ODIN" if u have a crappy pc, u can either repair faulty parts(easier and efficient) or buy a new one(bullcrap)
Have fun everyone!
Sent from my GT-I8262 using XDA Premium 4 mobile app

[Solved] Uninstall theme by deleting / editing files

Hi,
I m using DU Rom 8.1 with a great pleasure.
unfortunately, I install a theme which seems not being compatible.
I have constant systemui crashes, on lock screen and can't do anything.
So, I thought to remove or unapply this theme "manually".
I can t do with adb cause the phone is not recongnized form my PC cause these crashes.
So I thought to do it by the recovery with aroma file manager.
I already deleted the data/app/xxx.apk and the data/data/com.xxxx folder, but it doesnt seem to be enough.
is there something more to do ? => edit a config file and /or delete another file / folder.
Thanks per advance for your help.
Edit , it s OK, I mnaged to do it.
In fact it was sufficient to delete apk and com.xxx folder.
My problem was that I used a style from one theme and the police from another one... so I it was necessary to remove all the applied themes.

Categories

Resources