How do you change package name in ai2 sources?

Congrats !! so is your implementation open source? if so, it can be solution to this topic :slight_smile:

Congrats upgrade source code
https://github.com/Nocodenz/nocodenz

Nope, that's a different paid project.
The client for which I am implementing the feature is paying me $30.

3 Likes

:face_with_thermometer:

When I change the packageName I get this (→ Manifest):

Yours:

3 Likes

I can't get what you are trying to say @Anke

its correct only right?

It's just a statement.

1 Like

AI2Offline:

2 Likes


vknow360
plz upgrade source code
this old source code not package name change

3 Likes

I modified StringUtils.java, and got this result -

Android Manifest

<manifest
	xmlns:android="http://schemas.android.com/apk/res/android"
	android:versionCode="1"
	android:versionName="1.0"
	android:compileSdkVersion="30"
	android:compileSdkVersionCodename="11"
	package="com.aquib.PackageTest"
	platformBuildVersionCode="30"
	platformBuildVersionName="11">
	<application
		android:theme="(reference) @0x7f09000b"
		android:label="PackageTest"
		android:icon="(reference) @0x7f030000"
		android:name="com.google.appinventor.components.runtime.multidex.MultiDexApplication"
		android:debuggable="false"
		android:networkSecurityConfig="(reference) @0x7f060000"
		android:roundIcon="(reference) @0x7f030000"
		android:requestLegacyExternalStorage="true"
		android:preserveLegacyExternalStorage="true">
		<provider
			android:name="androidx.core.content.FileProvider"
			android:exported="false"
			android:authorities="com.aquib.PackageTest.provider"
			android:grantUriPermissions="true">
			<meta-data
				android:name="android.support.FILE_PROVIDER_PATHS"
				android:resource="(reference) @0x7f060001"/>
		</provider>
		<activity
			android:name=".Screen1"
			android:configChanges="db0"
			android:windowSoftInputMode="2">
			<intent-filter>
				<category
					android:name="android.intent.category.LAUNCHER"/>
				<action
					android:name="android.intent.action.MAIN"/>
			</intent-filter>
		</activity>
		<uses-library
			android:name="org.apache.http.legacy"
			android:required="false"/>
	</application>
	<uses-sdk
		android:minSdkVersion="7"
		android:targetSdkVersion="30"/>
	<uses-permission
		android:name="android.permission.INTERNET"/>
</manifest>

Package Name

com.aquib.PackageTest

Blocks

CommonUtils is my component...

Apk Download Link

https://drive.google.com/file/d/1pZenHddDjbaYhSEps0V3hk3FJQOXPJrT/view?usp=sharing

1 Like

so it worked perfectly fine?

1 Like

Yeah... You can try the apk.

1 Like

Oh well thanks i will try it after some time :sweat_smile:

1 Like

Maybe if you Export the aia file, rename the aia file, and import it to app inventor.

its not that easy you have to change package name of the whole apk itself it cant be dont by renaming some aia files it has to be edited through some files in ai2 sources

1 Like

Is this custom package? no right? its just package name

1 Like

Trying to implement that feature too...

My question wasn't that...

I asked that is it the Custom Package name?
I guess it isn't because I too implemented package name a very long ago...