Le vendredi 29 janvier 2016 10:24:03 UTC+1, Gabriele Svelto a écrit :
> 
> System applications are usually stored under /system/b2g/webapps and
> their presence is recorded in the /system/b2g/webapps/webapps.json file.
> Normally speaking if you shallow-flash your device you will be
> overwriting all of them effectively getting rid of whatever was on the
> phone in the first place (that's unless you actively try to prevent the
> existing apps from being discarded). To remove them on by one, provided
> your phone is rooted, just delete the app directory and remove its entry
> from webapps.json.

Well, this is what I was doing. But this doesn't seem to properly/completely 
remove a system application.

Still taking JrdLog as an example, I've deleted 
/system/b2g/webapps/jrdlog.gaiamobile.org folder and removed 
jrdlog.gaiamobile.org entry from /system/b2g/webapps/webapps.json, but also 
from /system/b2g/user.js and /system/b2g/defaults/pref/user.js. So in short, 
the "Gaia part".

But there are leftovers in the "Gonk part".

Indeed, looking at /system/b2g/webapps/jrdlog.gaiamobile.org/application.zip 
content before deleting it, I've found calls made to several scripts/binaries 
in /system/bin, such as jrddmesgservice, jrdhttpgeckolog, jrdlogcatservice, 
etc. And looking at these scripts, some of them refer configuration files (such 
as jrdqxdmservice that reads /system/vendor/diag.cfg) or call yet other 
binaries (such as jrdtcpdumpservice that calls /system/xbin/tcpdump). 

This isn't limited to JrdLog. I have evidences that MMI Test, shared tests and 
testbox system applications all install files in /system/bin besides 
/system/b2g/webapps. And start/stop statements related to those system 
applications are added to init.rd/init.target.rc. Some are disabled by default 
using configuration variables.

Hence my question about "package manifest" as I cannot find references to the 
binaries in /system/bin or /system/xbin in webapps.json. Completely/properly 
removing those system applications implies removing the related 
binaries/scripts. But how to be sure that I'm not forgiving some of them 
without such "package manifests" that would keep track of all the files 
installed/modified by an application?

     Émeric
_______________________________________________
dev-fxos mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-fxos

Reply via email to