remove specific lines from the AndroidManifest.xml

Just starting out? Need help? Post your questions and find answers here.
remaliki
Posts: 6
Joined: Mon Jul 21, 2025 6:14 am

remove specific lines from the AndroidManifest.xml

Post by remaliki »

How can I remove certain lines from the AndroidManifest.xml in SpiderBasic?
hoerbie
Posts: 139
Joined: Sun Mar 17, 2019 5:51 pm
Location: DE/BY/MUC

Re: remove specific lines from the AndroidManifest.xml

Post by hoerbie »

It should be possible, if you select to keep the compile directory after compiling and find it’s temporary location.
Then you can change everything you want and do the app making again and direct with cordova.
remaliki
Posts: 6
Joined: Mon Jul 21, 2025 6:14 am

Re: remove specific lines from the AndroidManifest.xml

Post by remaliki »

Could you give me guidance on how to do it? Thank you for your help
hoerbie
Posts: 139
Joined: Sun Mar 17, 2019 5:51 pm
Location: DE/BY/MUC

Re: remove specific lines from the AndroidManifest.xml

Post by hoerbie »

Sorry, I can't give you the real way I did it, cause I think I wrote it somewhere here in the board, but I can't find it now. Maybe it was deleted by Fred, as it was in the "Bugs" section and the bugs I posted were solved. :shock:

Through the menu bar you open "Compiler" and there you open "Create App", switch to "Android" and the lowest point is named "Keep app directory", please activate it. When you then compile your app with SB, somewhere in your system SB builds a new directory, where it compiles your app inside, and with this switch it is not deleted after compile.

The following is from small notices I found at my NAS and how I remember it:

It will be a directory named "spiderbasic-<timestampinnumbers>" or "SpiderBasic<somenumbers>" and on Windows can hopefully be found at "C:\Users\<yourusername>\AppData\Local\Temp". If you don't find it there or use other OS have a look at other temporary directories of your system., somewhere it should be.

If you have found such a directory there will be a subdirectory "app" with the normal Cordova structure and inside for example in subdirectories like "platforms\android\..." will be everything you need, like the config.xml and AndroidManifest.xml etc.

Make your changes, go through console into the main "app" directory and type "cordova build" there, then your app should be compiled new and you can find it somewhere in the "platforms\android\app\build\outputs" directory and its subdirectories.

It should also be possible to open everything in android studio, change it there and rebuild it there, but I never tried it.
remaliki
Posts: 6
Joined: Mon Jul 21, 2025 6:14 am

Re: remove specific lines from the AndroidManifest.xml

Post by remaliki »

thank you for the explanation, hoerbie. i will try it later
Fred
Site Admin
Posts: 1822
Joined: Mon Feb 24, 2014 10:51 am

Re: remove specific lines from the AndroidManifest.xml

Post by Fred »

Another way would be to tune the 'SpiderBasic\Compilers\after_prepare.js' file which is automatically called when building a package. I added this file to fix some perm issues with the manifest
Post Reply