Activity disappeared in Android manifest

Hi all,
I have a problem when I try to build or run my Android app.
I restored my project (after some others bugs), I removed and I added again Android platform.
Everything in Android manifest seems correct: activity, permission, service.
If I run “ionic cordova run android --device” the android manifest is recreated but It’s not the same !!!
How is it possible ? Can I run/build without recreate android manifest ?
That’s is very important because otherwise I got activity not found error in some situations.

cli packages: (/usr/local/lib/node_modules)

    @ionic/cli-utils  : 1.9.2
    ionic (Ionic CLI) : 3.9.2

global packages:

    Cordova CLI : 7.0.1 

local packages:

    @ionic/app-scripts : 1.3.7
    Cordova Platforms  : android 6.4.0 browser 4.1.0 ios 4.4.0
    Ionic Framework    : ionic-angular 3.5.3


    ios-deploy : 1.9.2 
    ios-sim    : 5.0.8 
    Node       : v8.4.0
    npm        : 5.3.0 
    OS         : OS X Yosemite
    Xcode      : Xcode 7.2.1 Build version 7C1002

It was a custom edit-config in config.xml that broken any rebuild.
I remove it and it seem to work.