[Q] adding applications to custom rom questions - Android

Hi
in I have 3 questions about apps on custom roms
1: in some topics i read that people tried to put them in data/app or system/app . I guess system apps are not removable (or are partialy protected against uninstall). Or I am totaly wrong ... So what is the difference, where should i put the apps i wish to install ???
2: for some funny reason, some apps are installed, some not and some are visible but doesn't work .... What should i do to be sure that each app will work ??? should i first Zipalign or Deodex them ???
3: some apps require some configuration (for example i would like to add setcpu with profiling enabled to set the cpu at minimum when the display is off)
but how can i set this configuration in THE ROM so that i don't need to do it once the rom is installed ???

I don't remember off the top of my head, and I don't have access to my netbook with my data on it, but have you tried making a nandroid backup of your customized rom and pulling the ROM.zip file from within the backup and comparing your customized files between the backup rom.zip and the rom from your kitchen?
Edit; this was in reference to question three.

Related

[HELP Please] How to delete the app2sd option in a ROM file

Hi all
I would like to know how to delete the app2sd option in the .zip of villainRom 12.0.
i don't use it, and would like to have a more "light" file.
I tried to delete the "data" repertory, sign the rom, but can't flash
Thx in advance for help
just remove your ext partition?
Fabulous691 said:
Hi all
I would like to know how to delete the app2sd option in the .zip of villainRom 12.0.
i don't use it, and would like to have a more "light" file.
I tried to delete the "data" repertory, sign the rom, but can't flash
Thx in advance for help
Click to expand...
Click to collapse
You can remove/disable app2sd by removing the following file:
/system/etc/init.d/04apps2sd
so if i delete this file, i can too delete the data repertory, containing all the app2sd elements isn't it?
Thx for your help !!
edit: i deleted the file in /system/etc/init.d/04apps2sd and the data repertory , and during the flash, the phone said me can't chown "data" etc repertory....
it seems i must delete another thing to tell to the phone that there is no missing repertory...but which one..?
Why? It's built into the kernel that was custom developed for the rom.
There is no notable overhead or space that you can recover. I can't think of any legitimate reason to remove it that would benefit your user experience.
If you simply want to learn how to do it though speaking as a developer who's learning how to build your own rom, maybe it would be easier to look at a less customized rom than vr12.
Does someone know where the developer docs for apps2sd are for this person to get his answer from?
Sent from my HTC Hero using XDA App
hi dkelley
the problem is that in the data/app directory, the applications dont want to install them if i dont have an ext2 partition
but i must let at least one app in this folder , because if not, he will deseapear automatically and during the flash, the phone will tell me that the "app" directory is missing..
and the application in the folder don't appear in the list of my apps, whereas that it should be installed on the internal memory..
Moved to Q&A as not development

[Q] Removing unwanted applications from rom

The cookers of roms are by default including bunch of applications to ROM which i dont want to have and each time flash new version i need to manually remove them (like all google applications which takes quite a while and i am quite successfull at missing some). The rom is a zip file so i could make a program to kick apks out of rom automatically and repack it which isnt much of work to do but i am worried if such rom would still work. There is also a second problem, the digital signature which from expirience produces the yellow warning triangle at boot, i dont have problem with creating my own public/private keys and signing the rom but again i have no clue where the signature should be and where to register a private key (or maybe the samsung one is known?).
Is there some document on this topic or someone is prepared to help me out?
takes 20-30 seconds to open titanium and do a batch uninstall of the apps you dont need
Hmm... i dont use it but i will try, although i would still rather do a batch remove of all unwanted applications on my own before they even get installed. And adding a new application to install first also wouldnt be a bad idea (LBE privacy guard)
You can just extract the rom zip and from that delete the apks you dont want from the System --> App folders or Data --> App folders if there is anything in there. You could also use this 'opportunity' to choose which Kernel and Modem etc you wanted if you plan on changing / flashing different ones later. Re-zip and flash!
I will say this though, in the past i've done this and for some reason certain apps that I left in the zipped rom didn't install, no biggy though
Ok, this was the answer i was searching for. One more thing, what to do with digital signature?
Custom rom .
Open with Win Rar do not extract.
Open System Open Apps
Delete whatever you dont want and is safe to do so .
Close Win Rar and flash rom .
jje
Hmm, i am just playing with one thought, if the android is tied to apk extension for installing, the changing of zip header (actually from historical reasons it is footer ) to rename the apk to ap_ for unwanted application would acctually kill it from installing without ever unpacking it... and the code is actually even more trivial, search and replace...

Custom ROM tweaks

In most of custom ROM description I see
"Dalvik to cache tweak"
"Memory tweak"
etc
What is this ?
Search here and google do not help much.
Modified dalvik.vm.heapsize and Low level memory killers possibly
《tapatalked from galaxy s3》
What exactly modified if there is no init.d scripts ?
Which file(s) added modified for the tweaks ?
Most certainly only the build.prop
It's the configuration files that manages most of the Android userland settings including DPI, Cache, ...
There exist several apps in the market which allow you to hot-change the values. Requires root of course.
However you should only change the values you understand and keep a backup copy of the file. You can mess up the phone pretty bad to the point of not booting or not displaying an usuable interface. If you're backed up, you can always recover through ADB (in Recovery mode) by replacing the file with the original.
I find there is no real need to tweak the file, it's good as-is.
I'd like to remove tweaks, already included in most custom ROM's
Create your own rom
Sent from my GT-I9300 using xda premium

Tips on how to port ROM's

Hello Everybody! want to port any ROM to your android device without FC problems or force closes?! Here's the right place!
THIS IS ONLY A QUICK TIP GUIDE AND NOT THE WHOLE GUIDE!​1) NEVER port ROM's which are not from the same phone manufacturer!
2) ALWAYS make sure that the ROM you're porting has the same specs that your phone does, i.e. the CPU and the GPU etc.!
3)BE CAREFULwhile copying/pasting the system apps! Choose Wisely!
4) ALWAYSmake sure you pack the three folders "System", "META-INF" and the "Boot.img" into a .ZIP and not a .TAR OR .RAR!!
5)Make a CLEAN INSTALL of the phone i.e, Erase all the user apps and cache!
:laugh::laugh::laugh:​

[Q][test] change your rom without flashing anything [DUALBOOT ONLY]

Hi,
when i download some roms, release after release, i saw that, sometimes, only some files are changed.
if i make a little zip with only the differencies comparing two zip, and if i change updater-script
(deleting "delete system" process , deleting flashing kernel lines, generaly, at end of script and managing other things)
can someone confirm that if my updater-script never delete /system/ , i have no risk to "kill" my device ?
i have an idea about the reply but its good to have a thread about this question, no ?
i have test this following when i run a 2nd rom with dorimanx kernel.
- I search about differencies on two spirit releases rom. (using 7zip , good interface to compare and you have the total size of each folder in zip)
- On a structured folder, i keep only the new files from new release.
(apk, binary,priv-app,framework..., comparing them using size files essentialy because using the date as comparison filter never help in this way)
- i run my 2nd rom
1 - Remember us, with dorimanx kernel, when we are dualbooting roms, no matter the position rom you are run at a moment (1rst or 2nd), you will be able to see /system/ and /data/ partitions from the other rom which generaly sleep
2 - On PC, i generaly use WINSCP soft to acces easily on all structured folders of my device. (just let you know)
So,
- i launch WINSCP on PC, then i can log-in as root on my device, 2nd rom runing.
- in the interface gui of WINSCP, on left side, i see my extracted differencies structured with all files and in right side, i can see all folders from my device.
- with the interface gui from WINSCP, i can copy all that i need in /system_pri_rom/ and /data_pri_rom/ , which are the auto-mounted partitons from 1rst rom
- if DEV have moving some apks from /system/app/ to /system/priv-app/ , i move the files too. If DEV have delete some files, i delete too.
- when i reboot my 1rst rom, it booted without any trouble.
result :
the +
i dont flash anything
i dont change kernel
the -
looking for differencies between 2 zip take time
the +/-
i dont format/delete entire system and maybe with time, this can be corrupted.
If someone can help me this way by making a little script which can make the differencies with an output zip , it will be much appreciated
thanks.

Categories

Resources